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/fedora, tests: Fix build for snapd and enable a test for Fedora #3577
Conversation
Conan-Kudo
referenced this pull request
Jul 11, 2017
Closed
tests: make main/help run on opensuse and fedora again #3544
codecov-io
commented
Jul 11, 2017
•
Codecov Report
@@ Coverage Diff @@
## master #3577 +/- ##
==========================================
- Coverage 76.82% 76.81% -0.02%
==========================================
Files 379 379
Lines 26314 26314
==========================================
- Hits 20216 20213 -3
- Misses 4304 4306 +2
- Partials 1794 1795 +1
Continue to review full report at Codecov.
|
| @@ -345,6 +348,10 @@ GOFLAGS="$GOFLAGS -tags withtestkeys" | ||
| %gobuild -o bin/snapctl $GOFLAGS %{import_path}/cmd/snapctl | ||
| %gobuild -o bin/snap-update-ns $GOFLAGS %{import_path}/cmd/snap-update-ns | ||
| +# We don't need mvo5 fork for seccomp, as we have seccomp 2.3.x |
| popd | ||
| +# Rename snapd.core-fixup.sh |
mvo5
Jul 11, 2017
Collaborator
Why is this renamed? The unit file referes to it with the .sh suffix. Having said this, this unit is only relevant on core systems so its fine to just not package it at all on a fedora/opensuse system.
|
@mvo5 I just purge the file now. |
|
Could you also include, in this pr, the change to |
Conan-Kudo
changed the title from
packaging/fedora: Fix build for snapd
to
packaging/fedora, tests: Fix build for snapd and enable a test on Fedora
Jul 11, 2017
|
@chipaca Done. |
Conan-Kudo
changed the title from
packaging/fedora, tests: Fix build for snapd and enable a test on Fedora
to
packaging/fedora, tests: Fix build for snapd and enable a test for Fedora
Jul 11, 2017
| popd | ||
| +# Remove snappy core specific scripts | ||
| +rm %{buildroot}%{_libexecdir}/snapd/snapd.core-fixup.sh |
| @@ -279,13 +279,13 @@ distro_install_build_snapd(){ | ||
| packages= | ||
| case "$SPREAD_SYSTEM" in | ||
| ubuntu-*|debian-*) | ||
| - packages="${GOHOME}"/snapd_*.deb | ||
| + packages="${GOHOME}/snapd_*.deb" |
zyga
Jul 11, 2017
Contributor
Hmm, does it really do the right thing? Compare ls "$HOME/*" and ls "$HOME"/*?
sergiocazzolato
and others
added some commits
Jul 10, 2017
|
@zyga Fixed. |
| ;; | ||
| fedora-*) | ||
| - packages="${GOHOME}"/snap-confine*.rpm "${GOPATH}"/snapd*.rpm | ||
| + packages="${GOHOME}/snap-confine*.rpm ${GOPATH}/snapd*.rpm" |
| ;; | ||
| opensuse-*) | ||
| - packages="${GOHOME}"/snapd*.rpm | ||
| + packages="${GOHOME}/snapd*.rpm" |
| @@ -76,7 +76,7 @@ build_rpm() { | ||
| mkdir -p "/tmp/pkg/snapd-$version" | ||
| cp -rav -- * "/tmp/pkg/snapd-$version/" | ||
| mkdir -p "$rpm_dir/SOURCES" | ||
| - (cd /tmp/pkg || tar c${archive_compression}f "$rpm_dir/SOURCES/$archive_name" "snapd-$version" "$extra_tar_args") | ||
| + (cd /tmp/pkg && tar c${archive_compression}f "$rpm_dir/SOURCES/$archive_name" "snapd-$version" $extra_tar_args) |
| @@ -1,4 +1,5 @@ | ||
| summary: Check commands help | ||
| +systems: [+fedora-*] |
Conan-Kudo commentedJul 11, 2017
•
Edited 1 time
-
Conan-Kudo
Jul 11, 2017
These changes come from pending changes for Fedora packaging for snapd 2.27.
Signed-off-by: Neal Gompa ngompa13@gmail.com