[Bug 2066157] Re: cpio 2.13+dfsg-2ubuntu0.4 breaks zfs build (alien command fails)

2024-05-22 Thread paulcd2000
I can confirm this issue, I have a cpio archive generated by extracting
the rpm from the ZFS build that errors on a system with
2.13+dfsg-2ubuntu0.4, and work on a system with 2.13+dfsg-2ubuntu0.3.

Given that the difference beteeen both 2ubuntu0.3 and 2ubuntu0.4 AND
7ubuntu and 7ubuntu0.1 is the fix for CVE-2023-7207, my guess is that
that fix is broken in some way.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2066157

Title:
  cpio 2.13+dfsg-2ubuntu0.4 breaks zfs build (alien command fails)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cpio/+bug/2066157/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2066157] Re: cpio 2.13+dfsg-2ubuntu0.4 breaks zfs build (alien command fails)

2024-05-22 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: cpio (Ubuntu)
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2066157

Title:
  cpio 2.13+dfsg-2ubuntu0.4 breaks zfs build (alien command fails)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cpio/+bug/2066157/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2066157] Re: cpio 2.13+dfsg-2ubuntu0.4 breaks zfs build (alien command fails)

2024-05-21 Thread James Dingwall
I have confirmed that downgrading cpio to 2.13+dfsg-7 also resolves the
build error in that environment.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2066157

Title:
  cpio 2.13+dfsg-2ubuntu0.4 breaks zfs build (alien command fails)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cpio/+bug/2066157/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2066157] Re: cpio 2.13+dfsg-2ubuntu0.4 breaks zfs build (alien command fails)

2024-05-20 Thread James Dingwall
** Description changed:

  I'm not sure where the true fault is but the problem only happens after
  updating the cpio package from 2.13+dfsg-2ubuntu0.3 to
  2.13+dfsg-2ubuntu0.3.  The zfs build creates .rpms which are then
  converted to .debs.  The failure message is:
  
  ```
  name=zfs; \
  version=2.1.15-1; \
  arch=`rpm -qp ${name}-kmod-${version}.src.rpm --qf %{arch} | tail -1`; \
  debarch=`dpkg --print-architecture`; \
  pkg1=kmod-${name}*${version}.${arch}.rpm; \
  fakeroot alien --bump=0 --scripts --to-deb --target=$debarch $pkg1 || exit 1; 
\
  rm -f $pkg1
  kmod-zfs-5.15.0-107-generic_2.1.15-1_amd64.deb generated
  kmod-zfs-devel_2.1.15-1_amd64.deb generated
  Unpacking of 'kmod-zfs-devel-5.15.0-107-generic-2.1.15-1.x86_64.rpm' failed 
at /usr/share/perl5/Alien/Package/Rpm.pm line 168,  line 315.
  ```
  
  Looking at the alien source the command that fails is:
  
  ```
- $this->do("rpm2cpio '".$this->filename."' | (cd $workdir; $decomp 
cpio --extract --make-directories --no-absolute-filenames 
--preserve-modification-time) 2>&1")
- or die "Unpacking of '".$this->filename."' failed";
+ $this->do("rpm2cpio '".$this->filename."' | (cd $workdir; $decomp 
cpio --extract --make-directories --no-absolute-filenames 
--preserve-modification-time) 2>&1")
+ or die "Unpacking of '".$this->filename."' failed";
  ```
  
  Examining the content of the .rpm:
  
  ```
  # rpm -qlv kmod-zfs-devel-5.4.0-174-lowlatency-2.1.15-1.x86_64.rpm
  lrwxrwxrwx1 rootroot   34 May 20 09:14 
/usr/src/spl-2.1.15/5.4.0-174-lowlatency -> ../zfs-2.1.15/5.4.0-174-lowlatency
  drwxr-xr-x2 rootroot0 May 20 09:14 
/usr/src/zfs-2.1.15/5.4.0-174-lowlatency
  -rw-r--r--1 rootroot   164782 May 20 09:14 
/usr/src/zfs-2.1.15/5.4.0-174-lowlatency/Module.symvers
  lrwxrwxrwx1 rootroot   11 May 20 09:14 
/usr/src/zfs-2.1.15/5.4.0-174-lowlatency/spl.release -> zfs.release
  lrwxrwxrwx1 rootroot   12 May 20 09:14 
/usr/src/zfs-2.1.15/5.4.0-174-lowlatency/spl_config.h -> zfs_config.h
  -rw-r--r--1 rootroot9 May 20 09:14 
/usr/src/zfs-2.1.15/5.4.0-174-lowlatency/zfs.release
  -rw-r--r--1 rootroot28937 May 20 09:14 
/usr/src/zfs-2.1.15/5.4.0-174-lowlatency/zfs_config.h
  ```
  
  Changing the command being executed for testing purposes:
  
  ```
  # apt-cache policy cpio; rm -rf /tmp/x; mkdir /tmp/x ; rpm2cpio 
kmod-zfs-devel-5.4.0-174-lowlatency-2.1.15-1.x86_64.rpm | (cd /tmp/x; cpio -v 
--extract --make-directories --no-absolute-filenames 
--preserve-modification-time) ; echo $?
  cpio:
-   Installed: 2.13+dfsg-2ubuntu0.3
-   Candidate: 2.13+dfsg-2ubuntu0.4
-   Version table:
-  2.13+dfsg-2ubuntu0.4 500
- 500 
https://bth-mirror-00.ci.zynstra.com/apt/2024-05-19/archive.ubuntu.com/ubuntu 
focal-updates/main amd64 Packages
- 500 
https://bth-mirror-00.ci.zynstra.com/apt/2024-05-19/security.ubuntu.com/ubuntu 
focal-security/main amd64 Packages
-  *** 2.13+dfsg-2ubuntu0.3 100
- 100 /var/lib/dpkg/status
-  2.13+dfsg-2 500
- 500 
https://bth-mirror-00.ci.zynstra.com/apt/2024-05-19/archive.ubuntu.com/ubuntu 
focal/main amd64 Packages
+   Installed: 2.13+dfsg-2ubuntu0.3
+   Candidate: 2.13+dfsg-2ubuntu0.4
+   Version table:
+  2.13+dfsg-2ubuntu0.4 500
+ 500 
https://apt-mirror-00.ci.zynstra.com/apt/2024-05-19/archive.ubuntu.com/ubuntu 
focal-updates/main amd64 Packages
+ 500 
https://apt-mirror-00.ci.zynstra.com/apt/2024-05-19/security.ubuntu.com/ubuntu 
focal-security/main amd64 Packages
+  *** 2.13+dfsg-2ubuntu0.3 100
+ 100 /var/lib/dpkg/status
+  2.13+dfsg-2 500
+ 500 
https://apt-mirror-00.ci.zynstra.com/apt/2024-05-19/archive.ubuntu.com/ubuntu 
focal/main amd64 Packages
  ./usr/src/spl-2.1.15/5.4.0-174-lowlatency
  ./usr/src/zfs-2.1.15/5.4.0-174-lowlatency
  ./usr/src/zfs-2.1.15/5.4.0-174-lowlatency/Module.symvers
  ./usr/src/zfs-2.1.15/5.4.0-174-lowlatency/spl.release
  ./usr/src/zfs-2.1.15/5.4.0-174-lowlatency/spl_config.h
  ./usr/src/zfs-2.1.15/5.4.0-174-lowlatency/zfs.release
  ./usr/src/zfs-2.1.15/5.4.0-174-lowlatency/zfs_config.h
  381 blocks
  0
  ```
  
  vs
  
  ```
  # apt-cache policy cpio; rm -rf /tmp/x; mkdir /tmp/x ; rpm2cpio 
kmod-zfs-devel-5.4.0-174-lowlatency-2.1.15-1.x86_64.rpm | (cd /tmp/x; cpio -v 
--extract --make-directories --no-absolute-filenames 
--preserve-modification-time) ; echo $?
  cpio:
-   Installed: 2.13+dfsg-2ubuntu0.4
-   Candidate: 2.13+dfsg-2ubuntu0.4
-   Version table:
-  *** 2.13+dfsg-2ubuntu0.4 500
- 500 
https://bth-mirror-00.ci.zynstra.com/apt/2024-05-19/archive.ubuntu.com/ubuntu 
focal-updates/main amd64 Packages
- 500 
https://bth-mirror-00.ci.zynstra.com/apt/2024-05-19/security.ubuntu.com/ubuntu 
focal-security/main amd64 Packages
- 100 

[Bug 2066157] Re: cpio 2.13+dfsg-2ubuntu0.4 breaks zfs build (alien command fails)

2024-05-20 Thread James Dingwall
This same issue has been observed trying to build in a jammy system with
cpio=2.13+dfsg-7ubuntu0.1.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2066157

Title:
  cpio 2.13+dfsg-2ubuntu0.4 breaks zfs build (alien command fails)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cpio/+bug/2066157/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs