Public bug reported:

[Impact]

Starting with linux-firmware 1.157.13, two files (a300_[pfp|pm4].fw)
that were previously part of linux-firmware-snapdragon 1.2-0ubuntu1, are
now integrated in the linux-firmware package itself, resulting in a file
clash when these two packages are installed together:

..
Selecting previously unselected package linux-firmware-snapdragon.
Preparing to unpack .../linux-firmware-snapdragon_1.2-0ubuntu1_arm64.deb ...
Unpacking linux-firmware-snapdragon (1.2-0ubuntu1) ...
dpkg: error processing archive
/var/cache/apt/archives/linux-firmware-snapdragon_1.2-0ubuntu1_arm64.deb
(--unpack):
 trying to overwrite '/lib/firmware/a300_pm4.fw', which is also in
package linux-firmware 1.157.13
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Selecting previously unselected package linux-image-snapdragon.
Preparing to unpack .../linux-image-snapdragon_4.4.0.1077.69_arm64.deb ...
Unpacking linux-image-snapdragon (4.4.0.1077.69) ...
Errors were encountered while processing:
 /var/cache/apt/archives/linux-firmware-snapdragon_1.2-0ubuntu1_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
make: *** [all] Error 100
...

This problem is particularly evident when a new snapdragon kernel snap
is assembled, since the the building process breaks (and no kernel snap
is generated):

https://launchpadlibrarian.net/343287945
/buildlog_snap_ubuntu_xenial_arm64_snapdragon-kernel-
test_BUILDING.txt.gz

To fix the problem i removed the two files from linux-firmware-
snapdragon 1.3-0ubuntu1 and pushed this new version to my ppa:

https://launchpad.net/~p-pisati/+archive/ubuntu/embedded/+packages
linux-firmware-snapdragon - 1.3-0ubuntu1

[Test case]

Try to build a snapdragon kernel snap using Xenial/updates - with linux-
firmware 1.157.13 and linux-firmware-snapdragon 1.2-0ubuntu1 it won't
complete, while with linux-firmware-snapdragon 1.3-0ubuntu1 it will
successfully complete.

[Regression risk]

The files imported in linux-firmware are the same files we
shipped in linux-firmware-snapdragon:

$ md5sum /lib/firmware/qcom/a300_pfp.fw
25aa81977303142bdc4490efad16138b  /lib/firmware/qcom/a300_pfp.fw
$ md5sum /lib/firmware/qcom/a300_pm4.fw
d657cacd951742d9bbbe74224347cffe  /lib/firmware/qcom/a300_pm4.fw

$ md5sum dragon410c-firmware.orig/lib/a300_pfp.fw
25aa81977303142bdc4490efad16138b  dragon410c-firmware.orig/lib/a300_pfp.fw
$ md5sum dragon410c-firmware.orig/lib/a300_pm4.fw
d657cacd951742d9bbbe74224347cffe  dragon410c-firmware.orig/lib/a300_pm4.fw

so the regression risk is very low.

** Affects: linux-firmware-snapdragon (Ubuntu)
     Importance: Undecided
         Status: New

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

Title:
  a300_[pfp|pm4].fw clashes when installing linux-firmware

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-firmware-snapdragon/+bug/1728908/+subscriptions

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

Reply via email to