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!
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!
FS#19192 - $startdir is not set within makechrootpkg
Attached to Project:
Arch Linux
Opened by Andreas (drschwalbenmann) - Wednesday, 21 April 2010, 11:28 GMT
Last edited by Pierre Schmitz (Pierre) - Sunday, 02 May 2010, 13:24 GMT
Opened by Andreas (drschwalbenmann) - Wednesday, 21 April 2010, 11:28 GMT
Last edited by Pierre Schmitz (Pierre) - Sunday, 02 May 2010, 13:24 GMT
|
DetailsDescription:
$startdir is not set within makechrootpkg Additional info: * devtools 0.9.5-1 |
This task depends upon
PKGBUILD extract:
build() {
echo $startdir
echo $srcdir
echo $pkgdir
}
makechrootpkg output:
...
==> Starting build()...
/build
/build/src
/build/pkg
$ sudo makechrootpkg -r /media/data/arch32/ -- --noconfirm
==> Making package: rar 3.9.3-4 i686 (Wed Apr 21 12:53:42 UTC 2010)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
-> Downloading rarlinux-3.9.3.tar.gz...
--2010-04-21 12:53:42-- http://www.rarlab.com/rar/rarlinux-3.9.3.tar.gz
Resolving www.rarlab.com... 217.70.129.242
Connecting to www.rarlab.com|217.70.129.242|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 833828 (814K) [application/x-gzip]
Saving to: `rarlinux-3.9.3.tar.gz.part'
100%[============================================================================================================================================>] 833,828 898K/s in 0.9s
2010-04-21 12:53:45 (898 KB/s) - `rarlinux-3.9.3.tar.gz.part' saved [833828/833828]
==> ERROR: rar.1 was not found in the build directory and is not a URL.
Build failed, check /media/data/arch32/copy/build
[andreas@neosalio rar]$ ls
PKGBUILD rar.1 rarlinux-3.9.3.tar.gz
[andreas@neosalio rar]$ ls /media/data/arch32/copy/build/
PKGBUILD src
The issue is makepkg.conf is not sourced by makechrootpkg so CARCH is unset at the point the PKGBUILD is sourced and so the source array appears to be empty.
Adding:
CARCH=$(grep '^CARCH=' /etc/makepkg.conf | cut -d= -f2)
should fix that.
It still didn't copy the file.
CARCH=$(grep '^CARCH=' "$copydir/etc/makepkg.conf" | cut -d= -f2 | sed 's|"||g')