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#5315 - cpio package bug
Attached to Project:
Arch Linux
Opened by Martin Devera (devik) - Wednesday, 30 August 2006, 20:33 GMT
Last edited by Woody Gilk (Shadowhand) - Tuesday, 10 October 2006, 05:03 GMT
Opened by Martin Devera (devik) - Wednesday, 30 August 2006, 20:33 GMT
Last edited by Woody Gilk (Shadowhand) - Tuesday, 10 October 2006, 05:03 GMT
|
Detailscpio package can't add symlinks. It is because in system.h it checks for HAVE_LSTAT which is not
defined and uses stat instead. Attached is patch file, I modified my PKGBUILD as follows: build() { cd $startdir/src/$pkgname-$pkgver + patch -p1 -i $startdir/cpio_lstat.patch ./configure --prefix=/usr |
This task depends upon
Closed by Aaron Griffin (phrakture)
Monday, 12 February 2007, 17:31 GMT
Reason for closing: Works for me
Additional comments about closing: Upstream bug
Monday, 12 February 2007, 17:31 GMT
Reason for closing: Works for me
Additional comments about closing: Upstream bug
cpio_lstat.patch
In meantime one can use CVS version.
It can be seen at http://cvs.savannah.gnu.org/viewcvs/cpio/?root=cpio.
of cpio, I updated to cpio-2.7-2 and the link is weird:
[devik@devix smaz]$ find -type f -o -type l|cpio -o > xx
1 block
[devik@devix smaz]$ cpio -t -v < xx
-rw-r--r-- 1 devik users 0 Feb 12 16:01 a
lrwxrwxrwx 1 devik users 14 Feb 12 16:01 b -> a\241\366\267X\241\366\267\314^\006\b1
-rw-r--r-- 1 devik users 0 Feb 12 16:06 xx
1 block
[devik@devix smaz]$ ls -l
celkem 4
-rw-r--r-- 1 devik users 0 2007-02-12 16:01 a
lrwxrwxrwx 1 devik users 1 2007-02-12 16:01 b -> a
-rw-r--r-- 1 devik users 512 2007-02-12 16:06 xx
[devik@devix smaz]$
http://lists.gnu.org/mailman/listinfo/bug-cpio
Test below:
# manual build
$ ls -l
total 0
-rw-r--r-- 1 agriffin users 0 2007-02-12 17:31 a
-rw-r--r-- 1 agriffin users 0 2007-02-12 17:31 b
lrwxrwxrwx 1 agriffin users 1 2007-02-12 17:31 xx -> a
$ find -type f -o -type l|../cpio -o > img
1 block
$ ../cpio -t -v < img
-rw-r--r-- 1 agriffin users 0 Feb 12 17:31 a
lrwxrwxrwx 1 agriffin users 1 Feb 12 17:31 xx -> a
-rw-r--r-- 1 agriffin users 0 Feb 12 17:31 b
-rw-r--r-- 1 agriffin users 0 Feb 12 17:31 img
# arch package
$ rm img
$ find -type f -o -type l|cpio -o > img
1 block
$ cpio -t -v < img
-rw-r--r-- 1 agriffin users 0 Feb 12 17:31 a
lrwxrwxrwx 1 agriffin users 1 Feb 12 17:31 xx -> a
-rw-r--r-- 1 agriffin users 0 Feb 12 17:31 b
-rw-r--r-- 1 agriffin users 0 Feb 12 17:32 img
1 block