Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#31356 - [libedit] can not download sources with makepkg

Attached to Project: Arch Linux
Opened by Sergej Pupykin (sergej) - Friday, 31 August 2012, 10:51 GMT
Last edited by Gaetan Bisson (vesath) - Friday, 31 August 2012, 12:38 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Vesa Kaihlavirta (vegai)
Gaetan Bisson (vesath)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

makepkg reports 406 HTTP error, because of upstream site is too restrictive

I suggest to add following line directly to PKGBUILD, so sources can be downloaded on any machine independent on makepkg.conf settings.

DLAGENTS=('http::/usr/bin/wget -c -t 3 --waitretry=3 --no-check-certificate -O %o %u -U "Mozilla/5.0 (Windows NT 5.1; rv:10.0.2) Gecko/20100101 Firefox/10.0.2"')
This task depends upon

Closed by  Gaetan Bisson (vesath)
Friday, 31 August 2012, 12:38 GMT
Reason for closing:  Deferred
Comment by Gaetan Bisson (vesath) - Friday, 31 August 2012, 11:29 GMT
Here makepkg downloads the sources just fine with the default makepkg.conf. Please try to diagnose why you got a 406; right now I see no reason to bypass the DLAGENTS from makepkg.conf in the PKGBUILD.
Comment by Gaetan Bisson (vesath) - Friday, 31 August 2012, 11:30 GMT
Makepkg downloads the sources just fine on sigurd too...
Comment by Sergej Pupykin (sergej) - Friday, 31 August 2012, 12:13 GMT
It is strange, on my machine even wget without -U key does not work

$ wget http://www.thrysoee.dk/editline/libedit-20120601-3.0.tar.gz
--2012-08-31 16:11:28-- http://www.thrysoee.dk/editline/libedit-20120601-3.0.tar.gz
Resolving www.thrysoee.dk... 94.231.109.254
Connecting to www.thrysoee.dk|94.231.109.254|:80... connected.
HTTP request sent, awaiting response... 406 Not Acceptable
2012-08-31 16:11:28 ERROR 406: Not Acceptable.




$ wget http://www.thrysoee.dk/editline/libedit-20120601-3.0.tar.gz -U "Mozilla/5.0 (Windows NT 5.1; rv:10.0.2) Gecko/20100101 Firefox/10.0.2"
--2012-08-31 16:12:04-- http://www.thrysoee.dk/editline/libedit-20120601-3.0.tar.gz
Resolving www.thrysoee.dk... 94.231.109.254
Connecting to www.thrysoee.dk|94.231.109.254|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 472640 (462K) [application/x-gzip]
Saving to: ‘libedit-20120601-3.0.tar.gz’

100%[=====================================================================================>] 472 640 567KB/s in 0,8s

2012-08-31 16:12:05 (567 KB/s) - ‘libedit-20120601-3.0.tar.gz’ saved [472640/472640]
Comment by Sergej Pupykin (sergej) - Friday, 31 August 2012, 12:14 GMT
If it works for most machines I think this bug can be closed.
Comment by Dave Reisner (falconindy) - Friday, 31 August 2012, 12:15 GMT
The default makepkg.conf uses curl, not wget.
Comment by Gaetan Bisson (vesath) - Friday, 31 August 2012, 12:38 GMT
I can confirm that www.thrysoee.dk is filtering wget's user-agent out. For now we seem to be fine with curl as our default DLAGENT; if it gets filtered out in the future too I'll switch to "curl --user-agent $(openssl rand -base64 48)".

Loading...