snapcraft.yaml: Parts cannot contain both 'install' and 'override-*' keywords.

Bug #1785647 reported by Paolo Pisati
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-raspi2 (Ubuntu)
New
Undecided
Unassigned
Xenial
Fix Released
Undecided
Unassigned

Bug Description

Impact:

Xenial/raspi2 kernel snap fails to build with latest snapcraft release (2.42.1):

https://launchpadlibrarian.net/382070508/buildlog_snap_ubuntu_xenial_arm64_piso-xenial-snapdragon-dummy_BUILDING.txt.gz

...
Selecting previously unselected package snapcraft.
Preparing to unpack .../snapcraft_2.42.1_all.deb ...
Unpacking snapcraft (2.42.1) ...
...
Running pull phase...
Issues while validating None: The 'parts/kernel' property does not match the required schema: Parts cannot contain both 'install' and 'override-*' keywords. Use 'override-build' instead of 'install'.
Build failed
...

that is due to the deprecation of the 'prepare, build and install' targets and their inability to coexist with the newer 'override-build' target.

Fix:

Apply the attached patch and snap again:

https://launchpadlibrarian.net/382085652/buildlog_snap_ubuntu_xenial_armhf_piso-xenial-raspi2-dummy_BUILDING.txt.gz

this time it'll snap fine.

Regression:

It fixes the build, so none.

Tags: patch
Revision history for this message
Paolo Pisati (p-pisati) wrote :
tags: added: patch
Changed in linux-raspi2 (Ubuntu Xenial):
status: New → In Progress
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (3.6 KiB)

This bug was fixed in the package linux-raspi2 - 4.4.0-1096.104

---------------
linux-raspi2 (4.4.0-1096.104) xenial; urgency=medium

  * linux-raspi2: 4.4.0-1096.104 -proposed tracker (LP: #1788772)

  * snapcraft.yaml: Parts cannot contain both 'install' and 'override-*'
    keywords. (LP: #1785647)
    - snapcraft.yaml: convert prepare, build and install to override-build

  * Support for the RaspberryPi 3 B Plus board (LP: #1784025)
    - BCM270X_DT: Add Pi 3+ dts files
    - SAUCE: dts: remove i2c_dsi reference (4.9+ only)
    - SAUCE: dts: use 0 instead of GPIO_ACTIVE_LOW
    - SAUCE: dts: remove the hdmi node since it's part of the vc4 overlay
    - SAUCE: dts: use the virtgpio driver
    - SAUCE: fix address & size of reg cell for usb1
    - modules: remove lan78xx and microchip phy check
    - SAUCE: Revert "lan78xx: Correctly indicate invalid OTP"
    - lan78xx: Read MAC address from DT if present
    - lan78xx: Enable LEDs if no valid EEPROM or OTP
    - lan78xx: Read initial EEE status from DT
    - lan78xx: Change LEDs to include 10Mb activity
    - lan78xx: Read LED states from Device Tree
    - lan78xx: Ignore DT MAC address if already valid
    - net: lan78xx: Allow for VLAN headers in timeout.
    - lan78xx: Connect phy early
    - lan78xx: Don't reset the interface on open
    - lan78xx: Move enabling of EEE into PHY init code
    - brcmfmac: Disable runtime pm for USB.
    - brcmfmac: Fix double free on exception at module load.
    - brcmfmac: only lock and unlock fws if fws is not null
    - brcmfmac: Fix warn trace on module unload while in ibss mode
    - brcmfmac: fix p2p scan abort null pointer exception
    - brcmf: Fix null pointer exception in bcdc_hdrpull
    - brcmfmac: Return actual error by fwil.
    - brcmfmac: sdio: Increase the default timeouts a bit

  * snapcraft.yaml: mv: cannot stat 'unpack/lib/firmware/brcm80211/brcm/*': No
    such file or directory (LP: #1785075)
    - snapcraft.yaml: wifi fw files are now part of linux-firmware

  [ Ubuntu: 4.4.0-135.161 ]

  * linux: 4.4.0-135.161 -proposed tracker (LP: #1788766)
  * [Regression] APM Merlin boards fail to recover link after interface down/up
    (LP: #1785739)
    - net: phylib: fix interrupts re-enablement in phy_start
    - net: phy: fix phy_start to consider PHY_IGNORE_INTERRUPT
  * qeth: don't clobber buffer on async TX completion (LP: #1786057)
    - s390/qeth: don't clobber buffer on async TX completion
  * nvme: avoid cqe corruption (LP: #1788035)
    - nvme: avoid cqe corruption when update at the same time as read
  * CacheFiles: Error: Overlong wait for old active object to go away.
    (LP: #1776254)
    - cachefiles: Fix missing clear of the CACHEFILES_OBJECT_ACTIVE flag
    - cachefiles: Wait rather than BUG'ing on "Unexpected object collision"
  * fscache cookie refcount updated incorrectly during fscache object allocation
    (LP: #1776277) // fscache cookie refcount updated incorrectly during fscache
    object allocation (LP: #1776277)
    - fscache: Fix reference overput in fscache_attach_object() error handling
  * FS-Cache: Assertion failed: FS-Cache: 6 == 5 is false (LP: #1774336)
    - Revert "UBUNTU: SAUCE: CacheFiles: fix a...

Read more...

Changed in linux-raspi2 (Ubuntu Xenial):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.