I applied these patches, built them in a ppa and then did a clean install of zfsutils-linux from -proposed and then upgraded to the packages in the ppa. However, your patches break the upgrade:
king@ubuntu:~$ dpkg -l | grep zfsutils-linux
ii zfsutils-linux 0.6.5.6-0ubuntu11 amd64 Native OpenZFS management utilities for Linux
king@ubuntu:~$ sudo add-apt-repository ppa:colin-king/zfs-0.6.5.7-lp1574342
[sudo] password for king:
Hi Eric,
I applied these patches, built them in a ppa and then did a clean install of zfsutils-linux from -proposed and then upgraded to the packages in the ppa. However, your patches break the upgrade:
king@ubuntu:~$ dpkg -l | grep zfsutils-linux king/zfs- 0.6.5.7- lp1574342
ii zfsutils-linux 0.6.5.6-0ubuntu11 amd64 Native OpenZFS management utilities for Linux
king@ubuntu:~$ sudo add-apt-repository ppa:colin-
[sudo] password for king:
More info: https:/ /launchpad. net/~colin- king/+archive/ ubuntu/ zfs-0.6. 5.7-lp1574342
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keyring `/tmp/tmp3bjyv0 sl/secring. gpg' created sl/pubring. gpg' created ubuntu. com l/trustdb. gpg: trustdb created security. ubuntu. com/ubuntu xenial-security InRelease gb.archive. ubuntu. com/ubuntu xenial InRelease ppa.launchpad. net/colin- king/zfs- 0.6.5.7- lp1574342/ ubuntu xenial InRelease [17.6 kB] gb.archive. ubuntu. com/ubuntu xenial-updates InRelease gb.archive. ubuntu. com/ubuntu xenial-proposed InRelease gb.archive. ubuntu. com/ubuntu xenial-backports InRelease ppa.launchpad. net/colin- king/zfs- 0.6.5.7- lp1574342/ ubuntu xenial/main amd64 Packages [3,024 B] ppa.launchpad. net/colin- king/zfs- 0.6.5.7- lp1574342/ ubuntu xenial/main i386 Packages [3,032 B] ppa.launchpad. net/colin- king/zfs- 0.6.5.7- lp1574342/ ubuntu xenial/main Translation-en [1,584 B] image-extra- 4.3.0-7- generic gb.archive. ubuntu. com/ubuntu xenial-updates/main amd64 python2.7-minimal amd64 2.7.12-1~16.04 [1,294 kB] ppa.launchpad. net/colin- king/zfs- 0.6.5.7- lp1574342/ ubuntu xenial/main amd64 libuutil1linux amd64 0.6.5.6-0ubuntu12 [27.5 kB] ppa.launchpad. net/colin- king/zfs- 0.6.5.7- lp1574342/ ubuntu xenial/main amd64 libzpool2linux amd64 0.6.5.6-0ubuntu12 [384 kB] ppa.launchpad. net/colin- king/zfs- 0.6.5.7- lp1574342/ ubuntu xenial/main amd64 libzfs2linux amd64 0.6.5.6-0ubuntu12 [106 kB] ppa.launchpad. net/colin- king/zfs- 0.6.5.7- lp1574342/ ubuntu xenial/main amd64 zfs-zed amd64 0.6.5.6-0ubuntu12 [29.8 kB] ppa.launchpad. net/colin- king/zfs- 0.6.5.7- lp1574342/ ubuntu xenial/main amd64 zfsutils-linux amd64 0.6.5.6-0ubuntu12 [290 kB] ppa.launchpad. net/colin- king/zfs- 0.6.5.7- lp1574342/ ubuntu xenial/main amd64 libnvpair1linux amd64 0.6.5.6-0ubuntu12 [23.4 kB] ppa.launchpad. net/colin- king/zfs- 0.6.5.7- lp1574342/ ubuntu xenial/main amd64 zfs-doc all 0.6.5.6-0ubuntu12 [58.2 kB] gb.archive. ubuntu. com/ubuntu xenial/main amd64 python-minimal amd64 2.7.11-1 [28.2 kB] gb.archive. ubuntu. com/ubuntu xenial-updates/main amd64 python2.7 amd64 2.7.12-1~16.04 [224 kB] gb.archive. ubuntu. com/ubuntu xenial/main amd64 libpython-stdlib amd64 2.7.11-1 [7,656 B] gb.archive. ubuntu. com/ubuntu xenial/main amd64 python amd64 2.7.11-1 [137 kB] 7-minimal_ 2.7.12- 1~16.04_ amd64.deb ... minimal_ 2.7.11- 1_amd64. deb ... 7_2.7.12- 1~16.04_ amd64.deb ... stdlib: amd64. stdlib_ 2.7.11- 1_amd64. deb ... stdlib: amd64 (2.7.11-1) ... 2.7.11- 1_amd64. deb ... nux_0.6. 5.6-0ubuntu12_ amd64.deb ... nux_0.6. 5.6-0ubuntu12_ amd64.deb ... x_0.6.5. 6-0ubuntu12_ amd64.deb ... zed_0.6. 5.6-0ubuntu12_ amd64.deb ... linux_0. 6.5.6-0ubuntu12 _amd64. deb ... apt/archives/ zfsutils- linux_0. 6.5.6-0ubuntu12 _amd64. deb (--unpack): cache.service is a disabled or a static unit, not starting it. scan.service is a disabled or a static unit, not starting it. inux_0. 6.5.6-0ubuntu12 _amd64. deb ... doc_0.6. 5.6-0ubuntu12_ all.deb ... img-4.4. 0-34-generic apt/archives/ zfsutils- linux_0. 6.5.6-0ubuntu12 _amd64. deb
gpg: keyring `/tmp/tmp3bjyv0
gpg: requesting key B0F01786 from hkp server keyserver.
gpg: /tmp/tmp3bjyv0s
gpg: key XXXXXXXXX: public key "Launchpad PPA for Colin King" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
king@ubuntu:~$ sudo apt-get update
Hit:1 http://
Hit:2 http://
Get:3 http://
Hit:4 http://
Hit:5 http://
Hit:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Fetched 25.2 kB in 1s (21.5 kB/s)
Reading package lists... Done
king@ubuntu:~$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
linux-
Use 'sudo apt autoremove' to remove it.
The following NEW packages will be installed
libpython-stdlib python python-minimal python2.7 python2.7-minimal
The following packages will be upgraded:
libnvpair1linux libuutil1linux libzfs2linux libzpool2linux zfs-doc zfs-zed
zfsutils-linux
7 to upgrade, 5 to newly install, 0 to remove and 0 not to upgrade.
Need to get 2,610 kB of archives.
After this operation, 4,986 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Fetched 2,610 kB in 1s (2,399 kB/s)
Selecting previously unselected package python2.7-minimal.
(Reading database ... 128781 files and directories currently installed.)
Preparing to unpack .../python2.
Unpacking python2.7-minimal (2.7.12-1~16.04) ...
Selecting previously unselected package python-minimal.
Preparing to unpack .../python-
Unpacking python-minimal (2.7.11-1) ...
Selecting previously unselected package python2.7.
Preparing to unpack .../python2.
Unpacking python2.7 (2.7.12-1~16.04) ...
Selecting previously unselected package libpython-
Preparing to unpack .../libpython-
Unpacking libpython-
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Setting up python2.7-minimal (2.7.12-1~16.04) ...
Linking and byte-compiling packages for runtime python2.7...
Setting up python-minimal (2.7.11-1) ...
Selecting previously unselected package python.
(Reading database ... 128837 files and directories currently installed.)
Preparing to unpack .../python_
Unpacking python (2.7.11-1) ...
Preparing to unpack .../libuutil1li
Unpacking libuutil1linux (0.6.5.6-0ubuntu12) over (0.6.5.6-0ubuntu11) ...
Preparing to unpack .../libzpool2li
Unpacking libzpool2linux (0.6.5.6-0ubuntu12) over (0.6.5.6-0ubuntu11) ...
Preparing to unpack .../libzfs2linu
Unpacking libzfs2linux (0.6.5.6-0ubuntu12) over (0.6.5.6-0ubuntu11) ...
Preparing to unpack .../zfs-
Unpacking zfs-zed (0.6.5.6-0ubuntu12) over (0.6.5.6-0ubuntu11) ...
Preparing to unpack .../zfsutils-
Unpacking zfsutils-linux (0.6.5.6-0ubuntu12) over (0.6.5.6-0ubuntu11) ...
dpkg: error processing archive /var/cache/
trying to overwrite '/usr/sbin/zed', which is also in package zfs-zed 0.6.5.6-0ubuntu12
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
zfs-import-
zfs-import-
zfs-mount.service is a disabled or a static unit, not starting it.
Preparing to unpack .../libnvpair1l
Unpacking libnvpair1linux (0.6.5.6-0ubuntu12) over (0.6.5.6-0ubuntu11) ...
Preparing to unpack .../zfs-
Unpacking zfs-doc (0.6.5.6-0ubuntu12) over (0.6.5.6-0ubuntu11) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Processing triggers for initramfs-tools (0.122ubuntu8.1) ...
update-initramfs: Generating /boot/initrd.
Processing triggers for systemd (229-4ubuntu7) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
king@ubuntu:~$
I think the problem is the change to the path:
override_ dh_auto_ configure:
@# Build the userland, but don't build the kernel modules.
dh_auto_configure -- \
- --bindir=/bin \
+ --bindir=/usr/sbin \
--sbindir=/sbin \
--libdir=/lib \
..which is causing the zed issues.
It's heading to 9pm UK time, so I'm running out of time to rebuild and test this hypothesis.