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

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

Bug Description

Impact:

Xenial/snapdragon 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/382090616/buildlog_snap_ubuntu_xenial_arm64_piso-xenial-snapdragon-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-snapdragon (Ubuntu Xenial):
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux-snapdragon - 4.4.0-1100.105

---------------
linux-snapdragon (4.4.0-1100.105) xenial; urgency=medium

  * linux-snapdragon: 4.4.0-1100.105 -proposed tracker (LP: #1788773)

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

  [ 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_waiter/read_copier race"
    - fscache: Allow cancelled operations to be enqueued
    - cachefiles: Fix refcounting bug in backing-file read monitoring
  * linux-cloud-tools-common: Ensure hv-kvp-daemon.service starts before
    walinuxagent.service (LP: #1739107)
    - [Debian] hyper-v -- Ensure that hv-kvp-daemon.service starts before
      walinuxagent.service

 -- Khalid Elmously <email address hidden> Mon, 27 Aug 2018 00:33:00 -0400

Changed in linux-snapdragon (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.