Arch Linux

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!
Tasklist

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
Task Type Bug Report
Category Packages: Current
Status Closed
Assigned To Aaron Griffin (phrakture)
Architecture not specified
Severity Medium
Priority Normal
Reported Version 0.7.2 Gimmick
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

cpio 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
Comment by Martin Devera (devik) - Monday, 04 September 2006, 10:20 GMT
Sergey Poznyakoff told me that the bug is already fixed and new release is in preparation.
In meantime one can use CVS version.
It can be seen at http://cvs.savannah.gnu.org/viewcvs/cpio/?root=cpio.
Comment by Aaron Griffin (phrakture) - Tuesday, 10 October 2006, 14:45 GMT
Ah, I was going to suggest sending this patch upstream - I will either apply this patch or wait for the new version, depending on timing.
Comment by Aaron Griffin (phrakture) - Wednesday, 22 November 2006, 04:27 GMT
Is this fixed? If not can you provide the version number of the original problem, for future reference?
Comment by Aaron Griffin (phrakture) - Monday, 12 February 2007, 08:51 GMT
Status?
Comment by Martin Devera (devik) - Monday, 12 February 2007, 15:09 GMT
sorry for the delay. There is something weird, test below is ok with my copy
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]$
Comment by Aaron Griffin (phrakture) - Monday, 12 February 2007, 17:31 GMT
It seems to work fine here with both a hand built binary, and the repo package. Either way, I'm pretty sure what you're experiencing is an upstream bug and not really an archlinux bug. I'd suggest you report the bug here:
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

Loading...