cpio 2.13+dfsg-2ubuntu0.4 breaks zfs build (alien command fails)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cpio (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I'm not sure where the true fault is but the problem only happens after updating the cpio package from 2.13+dfsg-
```
name=zfs; \
version=2.1.15-1; \
arch=`rpm -qp ${name}
debarch=`dpkg --print-
pkg1=kmod-
fakeroot alien --bump=0 --scripts --to-deb --target=$debarch $pkg1 || exit 1; \
rm -f $pkg1
kmod-zfs-
kmod-zfs-
Unpacking of 'kmod-zfs-
```
Looking at the alien source the command that fails is:
```
or die "Unpacking of '".$this-
```
Examining the content of the .rpm:
```
# rpm -qlv kmod-zfs-
lrwxrwxrwx 1 root root 34 May 20 09:14 /usr/src/
drwxr-xr-x 2 root root 0 May 20 09:14 /usr/src/
-rw-r--r-- 1 root root 164782 May 20 09:14 /usr/src/
lrwxrwxrwx 1 root root 11 May 20 09:14 /usr/src/
lrwxrwxrwx 1 root root 12 May 20 09:14 /usr/src/
-rw-r--r-- 1 root root 9 May 20 09:14 /usr/src/
-rw-r--r-- 1 root root 28937 May 20 09:14 /usr/src/
```
Changing the command being executed for testing purposes:
```
# apt-cache policy cpio; rm -rf /tmp/x; mkdir /tmp/x ; rpm2cpio kmod-zfs-
cpio:
Installed: 2.13+dfsg-
Candidate: 2.13+dfsg-
Version table:
2.
500 https:/
500 https:/
*** 2.13+dfsg-
100 /var/lib/
2.13+dfsg-2 500
500 https:/
./usr/src/
./usr/src/
./usr/src/
./usr/src/
./usr/src/
./usr/src/
./usr/src/
381 blocks
0
```
vs
```
# apt-cache policy cpio; rm -rf /tmp/x; mkdir /tmp/x ; rpm2cpio kmod-zfs-
cpio:
Installed: 2.13+dfsg-
Candidate: 2.13+dfsg-
Version table:
*** 2.13+dfsg-
500 https:/
500 https:/
100 /var/lib/
2.13+dfsg-2 500
500 https:/
cpio: ./usr/src/
./usr/src/
./usr/src/
./usr/src/
./usr/src/
./usr/src/
./usr/src/
./usr/src/
381 blocks
2
```
CVE References
description: | updated |
description: | updated |
description: | updated |
This same issue has been observed trying to build in a jammy system with cpio=2. 13+dfsg- 7ubuntu0. 1.