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.
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.
FS#10559 - makepkg ignores SRCDEST when running 'makepkg --source'
Attached to Project:
Pacman
Opened by Vlad George (DonVla) - Monday, 02 June 2008, 00:22 GMT
Last edited by Allan McRae (Allan) - Wednesday, 09 September 2009, 10:40 GMT
Opened by Vlad George (DonVla) - Monday, 02 June 2008, 00:22 GMT
Last edited by Allan McRae (Allan) - Wednesday, 09 September 2009, 10:40 GMT
|
DetailsSummary and Info:
makepkg ignores SRCDEST when running 'makepkg --source' Steps to Reproduce: set PKGDEST and SRCDEST; run 'makepkg --source' in build directory; src.tar.gz file is copied to PKGDEST. solution: in "create_srcpackage" function line 967 set "local pkg_file="$PKGDEST/${pkgname}-${pkgver}-${pkgrel}${SRCEXT}"" to "local pkg_file="$SRCDEST/${pkgname}-${pkgver}-${pkgrel}${SRCEXT}"" |
This task depends upon
Closed by Allan McRae (Allan)
Wednesday, 09 September 2009, 10:40 GMT
Reason for closing: Not a bug
Additional comments about closing: See comments
Wednesday, 09 September 2009, 10:40 GMT
Reason for closing: Not a bug
Additional comments about closing: See comments
Does anyone else have thoughts? When I originally wrote this I definitely did this (put the built source package in PKGDEST) on purpose.
or change it to
"local pkg_file="${SRCDEST:-$PKGDEST}/${pkgname}-${pkgver}-${pkgrel}${SRCEXT}""
vlad
pkg.tar.gz is the package.
"... and both end up in PKGDEST."
then why two different directories (SRCDEST, PKGDEST)?
SRCDEST: the destination for files makepkg needs to build packages (aka downloaded source)
PKGDEST: the destination for archives built by makepkg (aka binary & source packages)
I define both in my makepkg.conf, and that doesn't mean I want my src.tar.gz *built* packages to end up in SRCDEST.
i'll close this since it's no bug at all.
thanks,
vlad
I think it's ok the way it is.
Though the name SRCDEST is misleading, CACHEDIR will fit better.
vlad
PKGDEST has also been around forever, so that isn't changing.
I think a third variable would be OK if people actually used this --source option. Any thoughts? So far we are +1/-1.
I think it's very useful. Is it so "controversial"?
> something, which would be used for the src.tar.gz destination if defined, or we would just fall back to PKGDEST and then the
> local directory otherwise.
This seems like a good idea to me. I especially like the fallback option for simplicity when you don't need/want alternate target directories.
afais there is no bug at all.
Dan McGee described this in his second post:
"
This is how I see the two variables:
SRCDEST: the destination for files makepkg needs to build packages (aka downloaded source)
PKGDEST: the destination for archives built by makepkg (aka binary & source packages)
"
I think a third variable would not change or help much here.