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

James Dingwall 2066157 at bugs.launchpad.net
Mon May 20 09:59:50 UTC 2024


Public bug reported:

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, <GETPERMS> 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";
```

Examining the content of the .rpm:

```
# rpm -qlv kmod-zfs-devel-5.4.0-174-lowlatency-2.1.15-1.x86_64.rpm
lrwxrwxrwx    1 root    root                       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-x    2 root    root                        0 May 20 09:14 /usr/src/zfs-2.1.15/5.4.0-174-lowlatency
-rw-r--r--    1 root    root                   164782 May 20 09:14 /usr/src/zfs-2.1.15/5.4.0-174-lowlatency/Module.symvers
lrwxrwxrwx    1 root    root                       11 May 20 09:14 /usr/src/zfs-2.1.15/5.4.0-174-lowlatency/spl.release -> zfs.release
lrwxrwxrwx    1 root    root                       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 root    root                        9 May 20 09:14 /usr/src/zfs-2.1.15/5.4.0-174-lowlatency/zfs.release
-rw-r--r--    1 root    root                    28937 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
./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 /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
cpio: ./usr/src/spl-2.1.15/5.4.0-174-lowlatency: Cannot open: No such file or directory
./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
2
```

** Affects: cpio (Ubuntu)
     Importance: Undecided
         Status: New

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

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

Status in cpio package in Ubuntu:
  New

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-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, <GETPERMS> 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";
  ```

  Examining the content of the .rpm:

  ```
  # rpm -qlv kmod-zfs-devel-5.4.0-174-lowlatency-2.1.15-1.x86_64.rpm
  lrwxrwxrwx    1 root    root                       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-x    2 root    root                        0 May 20 09:14 /usr/src/zfs-2.1.15/5.4.0-174-lowlatency
  -rw-r--r--    1 root    root                   164782 May 20 09:14 /usr/src/zfs-2.1.15/5.4.0-174-lowlatency/Module.symvers
  lrwxrwxrwx    1 root    root                       11 May 20 09:14 /usr/src/zfs-2.1.15/5.4.0-174-lowlatency/spl.release -> zfs.release
  lrwxrwxrwx    1 root    root                       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 root    root                        9 May 20 09:14 /usr/src/zfs-2.1.15/5.4.0-174-lowlatency/zfs.release
  -rw-r--r--    1 root    root                    28937 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
  ./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 /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
  cpio: ./usr/src/spl-2.1.15/5.4.0-174-lowlatency: Cannot open: No such file or directory
  ./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
  2
  ```

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




More information about the foundations-bugs mailing list