Modify

Opened 8 years ago

Closed 8 years ago

#3815 closed enhancement (fixed)

"PKG_SOURCE_PROTO:=svn" doesn't behave

Reported by: steven@… Owned by: developers
Priority: low Milestone:
Component: base system Version:
Keywords: Cc:

Description

I am having some issues downloading from SVN, namely:
My Makefile has this:
=========================
PKG_BRANCH:=
PKG_SOURCE_URL:=http://localhost/svnroot/server/trunk
PKG_REV:=35

PKG_NAME:=server
PKG_VERSION:=r$(PKG_REV)
PKG_RELEASE:=1

PKG_SOURCE_PROTO:=svn
PKG_SOURCE_VERSION:=$(PKG_REV)
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz

PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
=========================

But this fails somehow:
=========================
mkdir -p /home/steven/openwrt/dl
--17:53:58-- http://mirror2.openwrt.org/sources/server-r35.tar.gz

=> `-'

Resolving mirror2.openwrt.org... 88.198.39.176
Connecting to mirror2.openwrt.org|88.198.39.176|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
17:53:58 ERROR 404: Not Found.

Download failed.
--17:53:58-- http://downloads.openwrt.org/sources/server-r35.tar.gz

=> `-'

Resolving downloads.openwrt.org... 195.56.146.238
Connecting to downloads.openwrt.org|195.56.146.238|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
17:53:58 ERROR 404: Not Found.

Download failed.
No more mirrors to try - giving up.
Checking out files from the svn repository...
svn: REPORT request failed on '/svnroot/server/!svn/vcc/default'
svn: Can't find a temporary directory: Error string not specified yet
=========================

My remark here:
1) First part is the downloading from openwrt... I told explicit with "PKG_SOURCE_PROTO:=svn" (at least i thought I did) that it should use svn? But still it seems to be willing to fetch the sources from openwrt... How can I disable this behaviour?

2) The second part is svn - not that it gives an error, i know what that is... But it's doing a checkout of the sources? And afterwards it's removing all .svn files/folders.
Wouldn't it be more prudent to do an "export" instead of a "checkout"?

Attachments (0)

Change History (1)

comment:1 Changed 8 years ago by nbd

  • Resolution set to fixed
  • Status changed from new to closed

this first download attempt is for mirroring, because grabbing a mirrored tarball is
usually faster than checking out from svn.

packages can now (as of r12034) disable the mirroring feature by setting
PKG_SOURCE_MIRROR=0

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.