Ubuntu Pastebin

Paste from morphis at Fri, 24 Mar 2017 16:04:21 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
diff --git a/snapd.spec b/snapd.spec
index c2a11a6..ab0d500 100644
--- a/snapd.spec
+++ b/snapd.spec
@@ -310,29 +310,6 @@ providing packages with %{import_path} prefix.
 
 
 %build
-# Build SELinux module
-pushd ./data/selinux
-make SHARE="%{_datadir}" TARGETS="snappy"
-popd
-
-# Generate version files
-./mkversion.sh "%{version}-%{release}"
-
-# Build snap-confine
-pushd ./cmd
-autoreconf --force --install --verbose
-# selinux support is not yet available, for now just disable apparmor
-# FIXME: add --enable-caps-over-setuid as soon as possible (setuid discouraged!)
-# XXX: Seccomp disabled until LP#1674193 is fixed
-%configure \
-    --disable-apparmor --disable-seccomp \
-    --libexecdir=%{_libexecdir}/snapd/ \
-    --with-snap-mount-dir=%{_sharedstatedir}/snapd/snap \
-    --with-merged-usr
-
-%make_build
-popd
-
 # Build snapd
 mkdir -p src/github.com/snapcore
 ln -s ../../../ src/github.com/snapcore/snapd
@@ -356,6 +333,29 @@ go build -o bin/snapctl %{import_path}/cmd/snapctl
 go build -o bin/snapd %{import_path}/cmd/snapd
 %endif
 
+# Build SELinux module
+pushd ./data/selinux
+make SHARE="%{_datadir}" TARGETS="snappy"
+popd
+
+# Generate version files
+./mkversion.sh "%{version}-%{release}"
+
+# Build snap-confine
+pushd ./cmd
+autoreconf --force --install --verbose
+# selinux support is not yet available, for now just disable apparmor
+# FIXME: add --enable-caps-over-setuid as soon as possible (setuid discouraged!)
+# XXX: Seccomp disabled until LP#1674193 is fixed
+%configure \
+    --disable-apparmor --disable-seccomp \
+    --libexecdir=%{_libexecdir}/snapd/ \
+    --with-snap-mount-dir=%{_sharedstatedir}/snapd/snap \
+    --with-merged-usr
+
+%make_build
+popd
+
 %install
 install -d -p %{buildroot}%{_bindir}
 install -d -p %{buildroot}%{_libexecdir}/snapd
@@ -396,10 +396,10 @@ rm -rfv %{buildroot}%{_sysconfdir}/apparmor.d
 popd
 
 # Install all systemd units
-install -p -m 0644 packaging/fedora/systemd/snapd.socket %{buildroot}%{_unitdir}
-install -p -m 0644 packaging/fedora/systemd/snapd.service %{buildroot}%{_unitdir}
-install -p -m 0644 packaging/fedora/systemd/snapd.refresh.service %{buildroot}%{_unitdir}
-install -p -m 0644 packaging/fedora/systemd/snapd.refresh.timer %{buildroot}%{_unitdir}
+install -p -m 0644 data/systemd/snapd.socket %{buildroot}%{_unitdir}
+install -p -m 0644 data/systemd/snapd.service %{buildroot}%{_unitdir}
+install -p -m 0644 data/systemd/snapd.refresh.service %{buildroot}%{_unitdir}
+install -p -m 0644 data/systemd/snapd.refresh.timer %{buildroot}%{_unitdir}
 
 # Put /var/lib/snapd/snap/bin on PATH
 # Put /var/lib/snapd/desktop on XDG_DATA_DIRS
Download as text