Public bug reported:

Impact:

the Xenial/raspi2 kernel fails to generate a kernel snap since the wifi
fw files are now part of linux-firmware and were removed from
raspberrypi-wireless-firmware

How test it:

git clone the Xenial tree[1], checkout the raspi2 branch and try to snap
it:

$ git clone 
git://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/xenial
$ cd linux
$ git checkout raspi2
linux$ snapcraft --target-arch=arm
...
Preparing to build raspiwififw
Building raspiwififw
--2018-08-02 15:04:14--  
http://ppa.launchpad.net/snappy-dev/image/ubuntu/pool/main/r/raspberrypi-wireless-firmware/raspberrypi-wireless-firmware_2.0.1_armhf.deb
Resolving ppa.launchpad.net (ppa.launchpad.net)... 91.189.95.83
Connecting to ppa.launchpad.net (ppa.launchpad.net)|91.189.95.83|:80... 
connected.
HTTP request sent, awaiting response... 200 OK
Length: 8568 (8.4K) [application/x-debian-package]
Saving to: ‘raspberrypi-wireless-firmware_2.0.1_armhf.deb’

raspberrypi-wireless-firmware_2.0.1_a
100%[=========================================================================>]
8.37K  --.-KB/s    in 0s

2018-08-02 15:04:14 (114 MB/s) - ‘raspberrypi-wireless-
firmware_2.0.1_armhf.deb’ saved [8568/8568]

mv: cannot stat 'unpack/lib/firmware/brcm80211/brcm/*': No such file or 
directory
Failed to run 'install': Exit code was 1.

Apply the attached patch and redo the above steps: you will get a kernel
snap now.

Regression:

None, it actually fixes the kernel snap creation

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

** Description changed:

  Impact:
  
  the Xenial/raspi2 kernel fails to generate a kernel snap since the wifi
  fw files are now part of linux-firmware and were removed from
  raspberrypi-wireless-firmware
  
  How test it:
  
  git clone the Xenial tree[1], checkout the raspi2 branch and try to snap
  it:
  
  $ git clone 
git://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/xenial
  $ cd linux
  $ git checkout raspi2
  linux$ snapcraft --target-arch=arm
  ...
- Preparing to build raspiwififw 
- Building raspiwififw 
+ Preparing to build raspiwififw
+ Building raspiwififw
  --2018-08-02 15:04:14--  
http://ppa.launchpad.net/snappy-dev/image/ubuntu/pool/main/r/raspberrypi-wireless-firmware/raspberrypi-wireless-firmware_2.0.1_armhf.deb
  Resolving ppa.launchpad.net (ppa.launchpad.net)... 91.189.95.83
  Connecting to ppa.launchpad.net (ppa.launchpad.net)|91.189.95.83|:80... 
connected.
  HTTP request sent, awaiting response... 200 OK
  Length: 8568 (8.4K) [application/x-debian-package]
  Saving to: ‘raspberrypi-wireless-firmware_2.0.1_armhf.deb’
  
  raspberrypi-wireless-firmware_2.0.1_a
  
100%[=========================================================================>]
  8.37K  --.-KB/s    in 0s
  
  2018-08-02 15:04:14 (114 MB/s) - ‘raspberrypi-wireless-
  firmware_2.0.1_armhf.deb’ saved [8568/8568]
  
  mv: cannot stat 'unpack/lib/firmware/brcm80211/brcm/*': No such file or 
directory
  Failed to run 'install': Exit code was 1.
  
  Apply the attached patch and redo the above steps: you will get a kernel
  snap now.
  
  Regression:
  
- None, it actually fix the kernel snap creation
+ None, it actually fixes the kernel snap creation

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

Title:
  snapcraft.yaml:  mv: cannot stat
  'unpack/lib/firmware/brcm80211/brcm/*': No such file or directory

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to