Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
packaging: update arch packaging for 2.27 snapshot #3649
Conversation
janisozaur
commented
Aug 2, 2017
|
As Arch user, I can confirm this now builds and installs* properly. * installation requires passing
|
|
Note that after installing it you want to do:
Otherwise you're still running the old code. |
codecov-io
commented
Aug 2, 2017
•
Codecov Report
@@ Coverage Diff @@
## master #3649 +/- ##
==========================================
- Coverage 75.2% 75.19% -0.01%
==========================================
Files 387 387
Lines 33452 33452
==========================================
- Hits 25157 25154 -3
- Misses 6482 6485 +3
Partials 1813 1813
Continue to review full report at Codecov.
|
|
This will need slight adjustments as patches are landing in master (but that's the spirit) so that packaging becomes simpler and simpler. |
| -pkgname=(snapd snap-confine) | ||
| -pkgver=2.26.1 | ||
| +pkgname=snapd | ||
| +pkgver=2.26.14.r1445.g3df03f98b |
morphis
Aug 4, 2017
Contributor
Why do we hadd the git revision here? Should this be just plain 2.26.14 or better 2.27 as that is the upcoming next version?
zyga
Aug 4, 2017
Contributor
Because this is a pre-release snapshot. Note that this version is automatically updated by makepkg due to pkgver function below.
| +source=("git+https://github.com/snapcore/$pkgname.git" | ||
| + 'snapd.sh' | ||
| + '0001-release-remove-default-from-VERSION_ID.patch' | ||
| + '0001-cmd-snap-confine-don-t-share-etc-nsswitch-from-host.patch') | ||
| md5sums=('SKIP' |
zyga
Aug 4, 2017
Contributor
It means that makepkg won't try to checksum the tarball coming out of git master (since it keeps moving)
| @@ -36,23 +42,35 @@ prepare() { | ||
| # above describes. | ||
| mkdir -p "$(dirname "$GOPATH/src/${_gourl}")" | ||
| ln --no-target-directory -fs "$srcdir/$pkgname" "$GOPATH/src/${_gourl}" | ||
| + # Patch snap-seccomp build flags not to link libseccomp statically. | ||
| + sed -i -e 's/-Wl,-Bstatic -lseccomp -Wl,-Bdynamic/-lseccomp/' "$srcdir/$pkgname/cmd/snap-seccomp/main.go" |
zyga
Aug 4, 2017
Contributor
I need to explore this because ideally there'd be no patch necessary. If we can use some conditional hacks just fur Ubuntu 16.04 and not touch anything else I would have much less gray hair about this. For now it's easier to use sed rather than (potentially) redo the patch each time.
Once @mvo5 is back I'd like to simplify this and move the special casing to ubuntu packging.
| @@ -36,23 +42,35 @@ prepare() { | ||
| # above describes. | ||
| mkdir -p "$(dirname "$GOPATH/src/${_gourl}")" | ||
| ln --no-target-directory -fs "$srcdir/$pkgname" "$GOPATH/src/${_gourl}" | ||
| + # Patch snap-seccomp build flags not to link libseccomp statically. | ||
| + sed -i -e 's/-Wl,-Bstatic -lseccomp -Wl,-Bdynamic/-lseccomp/' "$srcdir/$pkgname/cmd/snap-seccomp/main.go" | ||
| + # Apply some upstream fixes not present in the release. |
morphis
Aug 4, 2017
Contributor
Can you add links to the proposed PRs? Makes it easier to track these.
zyga
Aug 4, 2017
Contributor
There's just one left, I was really hoping to just merge them all and get rid of this. The only kind of patches that we want to carry here (in snapd master, not in the actual packaging in arch git repos) is the one that doesn't need to carry patches since we can just apply those.
| @@ -93,17 +120,20 @@ package_snapd() { | ||
| # Install the snapd socket and service for the main daemon | ||
| install -m 644 "$GOPATH/src/${_gourl}/data/systemd/snapd.service" "$pkgdir/usr/lib/systemd/system" | ||
| install -m 644 "$GOPATH/src/${_gourl}/data/systemd/snapd.socket" "$pkgdir/usr/lib/systemd/system" | ||
| - # Install snap and snapd executables | ||
| + # Install snap, snapctl, snap-update-ns, snap-seccomp and snapd executables |
morphis
Aug 4, 2017
Contributor
I would prefer not to list all binaries again in the comment as then we need to update it with every new added one and the comments gets bigger. Why not just "Install necessary exeutables for snapd"
zyga commentedAug 2, 2017
•
Edited 1 time
-
zyga
Aug 2, 2017
This patch updates arch packaging a little bit:
Signed-off-by: Zygmunt Krynicki me@zygoon.pl