[pacman-dev] [PATCH] makepkg: canonicalize paths from environmental variables
Xavier
chantry.xavier at gmail.com
Thu Sep 30 11:29:08 EDT 2010
Allan McRae wrote:
>
> No. It also affects the location of the tarfile. e.g. PKGDEST="."
> puts the tar file in $pkgdir because we create the tarball location
> using $PKGDEST while in $pkgdir:
>
> cd $pkgdir
> ...
> pkg_file="$PKGDEST/${nameofpkg}-${pkgver}-${pkgrel}-${PKGARCH}${PKGEXT}"
> ...
>
ok but do we need to be in $pkgdir ?
IIRC this is exactly what I had to change in repo-add (the current working dir).
The problem is always the same : if we change dir, then relative paths become
broken.
Looking at the create_package function, it seems we just need to add a few
$pkgdir/ here and there.
More information about the pacman-dev
mailing list