Pacman

Historical bug tracker for the Pacman package manager.

The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues

This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
Tasklist

FS#35023 - makepkg: set $srcdir before sources download

Attached to Project: Pacman
Opened by ilya (leniviy) - Monday, 29 April 2013, 07:27 GMT
Last edited by Allan McRae (Allan) - Monday, 14 October 2013, 05:49 GMT
Task Type Feature Request
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Please see: https://aur.archlinux.org/packages/asfbin-bin/
To download the sources from the author's site, the http referer field should be the download page, or 404 returned.
This is why I added these lines:

source=('wgetrc'
"http://www.radioactivepages.com/downloading.ashx?file=asfbin/asfbinlinux${pkgver}.zip")
makedepends=(wget)
export WGETRC="$srcdir/wgetrc"
DLAGENTS=('http::/usr/bin/wget -c -t 3 --waitretry=3 -O %o %u')

Of course, I could just download it myself in build(), but then I would have to unzip it and also take no advantage of $SRCDEST

In recent makepkg (4.1?) the variable $srcdir is set later than it downloads the sources. Could you please set it earlier and make it documented?
This task depends upon

Closed by  Allan McRae (Allan)
Monday, 14 October 2013, 05:49 GMT
Reason for closing:  Won't implement
Comment by Matthias Dienstbier (fs4000) - Monday, 29 April 2013, 10:09 GMT
Why don't you use curl's --referer option?

DLAGENTS=('http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 --referer http://www.radioactivepages.com/asfbin.aspx -o %o %u')
Comment by ilya (leniviy) - Monday, 29 April 2013, 10:33 GMT
You're right.
Comment by Allan McRae (Allan) - Monday, 14 October 2013, 05:49 GMT
Not that this was really requesting $srcdir to be set before the PKGBUILD is sourced.

I do not see the need to add this to makepkg.

Loading...