Merge ~pfsmorigo/review-tools:pfsmorigo/move_to_newer_core into review-tools:master

Proposed by Paulo Flabiano Smorigo
Status: Merged
Merged at revision: f00f8f20b662983d9058833d19c2a09211fbbc1e
Proposed branch: ~pfsmorigo/review-tools:pfsmorigo/move_to_newer_core
Merge into: review-tools:master
Diff against target: 97 lines (+15/-14)
2 files modified
override-build.sh (+0/-2)
snapcraft.yaml (+15/-12)
Reviewer Review Type Date Requested Status
Alex Murray Approve
Review via email: mp+443013@code.launchpad.net

Description of the change

Changed the base to core20. The following modifications were necessary:

 - Snacraft complained about the missing "grade" field so I added it;
 - PYTHONPATH moved from override-build.sh to snapcraft.yaml under a new path;
 - The apps needs to be pointed to the specific directory, /bin in this case;
 - usr/bin/python3-swift executable was renamed to usr/bin/swift.
 - configflags now is called autotools-configure-parameters;

To post a comment you must log in.
Revision history for this message
Alex Murray (alexmurray) wrote :

LGTM - thanks @pfsmorigo - I am a bit surprised about the need for setting PYTHONPATH during the build - I would have hoped snapcraft would do that for us.. but that is fine.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/override-build.sh b/override-build.sh
index 0bcd038..d86fc64 100755
--- a/override-build.sh
+++ b/override-build.sh
@@ -5,8 +5,6 @@ set -e
5# Run tests5# Run tests
6#6#
77
8# needed when run from snapcraft
9export PYTHONPATH=./
10SNAPDIR="$(pwd)"8SNAPDIR="$(pwd)"
11export MAGIC="$SNAPDIR/../install/usr/share/misc/magic"9export MAGIC="$SNAPDIR/../install/usr/share/misc/magic"
1210
diff --git a/snapcraft.yaml b/snapcraft.yaml
index c2ec55a..b8e1c20 100644
--- a/snapcraft.yaml
+++ b/snapcraft.yaml
@@ -6,7 +6,8 @@ description: |
6 related to snap review processes. These tools are used by the Ubuntu store6 related to snap review processes. These tools are used by the Ubuntu store
7 and can be used to verify your snap before upload.7 and can be used to verify your snap before upload.
8confinement: strict8confinement: strict
9base: core189base: core20
10grade: stable
1011
11environment:12environment:
12 LANG: C.UTF-813 LANG: C.UTF-8
@@ -15,33 +16,33 @@ environment:
1516
16apps:17apps:
17 snap-review:18 snap-review:
18 command: snap-review19 command: bin/snap-review
19 plugs: [ home, mount-observe ]20 plugs: [ home, mount-observe ]
20 environment:21 environment:
21 FAKEROOTDONTTRYCHOWN: "1"22 FAKEROOTDONTTRYCHOWN: "1"
22 unpack-package:23 unpack-package:
23 command: unpack-package24 command: bin/unpack-package
24 plugs: [ home ]25 plugs: [ home ]
25 snap-declaration:26 snap-declaration:
26 command: create-snap-declaration27 command: bin/create-snap-declaration
27 plugs: [ mount-observe ]28 plugs: [ mount-observe ]
28 base-declaration:29 base-declaration:
29 command: get-base-declaration30 command: bin/get-base-declaration
30 plugs: [ mount-observe ]31 plugs: [ mount-observe ]
31 store-query:32 store-query:
32 command: store-query33 command: bin/store-query
33 plugs: [ mount-observe, network ]34 plugs: [ mount-observe, network ]
34 updates-available:35 updates-available:
35 command: snap-updates-available36 command: bin/snap-updates-available
36 plugs: [ home, mount-observe, network ]37 plugs: [ home, mount-observe, network ]
37 rock-updates-available:38 rock-updates-available:
38 command: rock-updates-available39 command: bin/rock-updates-available
39 plugs: [ home, mount-observe, network ]40 plugs: [ home, mount-observe, network ]
40 check-notices:41 check-notices:
41 command: snap-check-notices42 command: bin/snap-check-notices
42 plugs: [ home, mount-observe, network ]43 plugs: [ home, mount-observe, network ]
43 rock-check-notices:44 rock-check-notices:
44 command: rock-check-notices45 command: bin/rock-check-notices
45 plugs: [ home, mount-observe, network ]46 plugs: [ home, mount-observe, network ]
46 fetch-usn-db:47 fetch-usn-db:
47 command: bin/fetch-db48 command: bin/fetch-db
@@ -49,7 +50,7 @@ apps:
49 environment:50 environment:
50 SYSTEM_WGETRC: $SNAP/etc/wgetrc51 SYSTEM_WGETRC: $SNAP/etc/wgetrc
51 swift:52 swift:
52 command: usr/bin/python3-swift53 command: usr/bin/swift
53 plugs: [ mount-observe, network ]54 plugs: [ mount-observe, network ]
54 diffsquash:55 diffsquash:
55 command: bin/diffsquash56 command: bin/diffsquash
@@ -64,6 +65,8 @@ parts:
64 snapcraftctl set-version "0.48+$(git describe --tags | cut -c1-25)"65 snapcraftctl set-version "0.48+$(git describe --tags | cut -c1-25)"
65 cd $SNAPCRAFT_PART_BUILD66 cd $SNAPCRAFT_PART_BUILD
66 ./override-build.sh67 ./override-build.sh
68 build-environment:
69 - PYTHONPATH: $SNAPCRAFT_PART_INSTALL/usr/lib/python3/dist-packages
67 build-packages:70 build-packages:
68 - build-essential71 - build-essential
69 - execstack72 - execstack
@@ -137,7 +140,7 @@ parts:
137 - libelf-dev140 - libelf-dev
138 - libpopt-dev141 - libpopt-dev
139 - libselinux1-dev142 - libselinux1-dev
140 configflags:143 autotools-configure-parameters:
141 - --disable-shared144 - --disable-shared
142 - --disable-libtool-lock145 - --disable-libtool-lock
143 - --disable-dependency-tracking146 - --disable-dependency-tracking

Subscribers

People subscribed via source and target branches