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
1diff --git a/override-build.sh b/override-build.sh
2index 0bcd038..d86fc64 100755
3--- a/override-build.sh
4+++ b/override-build.sh
5@@ -5,8 +5,6 @@ set -e
6 # Run tests
7 #
8
9-# needed when run from snapcraft
10-export PYTHONPATH=./
11 SNAPDIR="$(pwd)"
12 export MAGIC="$SNAPDIR/../install/usr/share/misc/magic"
13
14diff --git a/snapcraft.yaml b/snapcraft.yaml
15index c2ec55a..b8e1c20 100644
16--- a/snapcraft.yaml
17+++ b/snapcraft.yaml
18@@ -6,7 +6,8 @@ description: |
19 related to snap review processes. These tools are used by the Ubuntu store
20 and can be used to verify your snap before upload.
21 confinement: strict
22-base: core18
23+base: core20
24+grade: stable
25
26 environment:
27 LANG: C.UTF-8
28@@ -15,33 +16,33 @@ environment:
29
30 apps:
31 snap-review:
32- command: snap-review
33+ command: bin/snap-review
34 plugs: [ home, mount-observe ]
35 environment:
36 FAKEROOTDONTTRYCHOWN: "1"
37 unpack-package:
38- command: unpack-package
39+ command: bin/unpack-package
40 plugs: [ home ]
41 snap-declaration:
42- command: create-snap-declaration
43+ command: bin/create-snap-declaration
44 plugs: [ mount-observe ]
45 base-declaration:
46- command: get-base-declaration
47+ command: bin/get-base-declaration
48 plugs: [ mount-observe ]
49 store-query:
50- command: store-query
51+ command: bin/store-query
52 plugs: [ mount-observe, network ]
53 updates-available:
54- command: snap-updates-available
55+ command: bin/snap-updates-available
56 plugs: [ home, mount-observe, network ]
57 rock-updates-available:
58- command: rock-updates-available
59+ command: bin/rock-updates-available
60 plugs: [ home, mount-observe, network ]
61 check-notices:
62- command: snap-check-notices
63+ command: bin/snap-check-notices
64 plugs: [ home, mount-observe, network ]
65 rock-check-notices:
66- command: rock-check-notices
67+ command: bin/rock-check-notices
68 plugs: [ home, mount-observe, network ]
69 fetch-usn-db:
70 command: bin/fetch-db
71@@ -49,7 +50,7 @@ apps:
72 environment:
73 SYSTEM_WGETRC: $SNAP/etc/wgetrc
74 swift:
75- command: usr/bin/python3-swift
76+ command: usr/bin/swift
77 plugs: [ mount-observe, network ]
78 diffsquash:
79 command: bin/diffsquash
80@@ -64,6 +65,8 @@ parts:
81 snapcraftctl set-version "0.48+$(git describe --tags | cut -c1-25)"
82 cd $SNAPCRAFT_PART_BUILD
83 ./override-build.sh
84+ build-environment:
85+ - PYTHONPATH: $SNAPCRAFT_PART_INSTALL/usr/lib/python3/dist-packages
86 build-packages:
87 - build-essential
88 - execstack
89@@ -137,7 +140,7 @@ parts:
90 - libelf-dev
91 - libpopt-dev
92 - libselinux1-dev
93- configflags:
94+ autotools-configure-parameters:
95 - --disable-shared
96 - --disable-libtool-lock
97 - --disable-dependency-tracking

Subscribers

People subscribed via source and target branches