File tree Expand file tree Collapse file tree 4 files changed +40
-11
lines changed Expand file tree Collapse file tree 4 files changed +40
-11
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ Name: cfbuild-libacl
5
5
Version: %{version }
6
6
Release: 1
7
7
Source: acl-%{acl_version }.tar.gz
8
+ Patch0: no_fancy_gcc.patch
8
9
License: MIT
9
10
Group: Other
10
11
Url: http://example.com
@@ -16,10 +17,9 @@ AutoReqProv: no
16
17
17
18
%prep
18
19
mkdir -p %{_builddir }
19
- %setup -q -n %{acl_version }
20
-
21
- zcat ../../SOURCES/acl.destdir.diff.gz | $PATCH -p1 || true
20
+ %setup -q -n acl-%{acl_version }
22
21
22
+ %patch0 -p1
23
23
./configure --prefix= %{prefix } --enable-gettext= no
24
24
25
25
%build
29
29
%install
30
30
rm -rf ${RPM_BUILD_ROOT}
31
31
32
- make install -C getfacl DESTDIR= ${RPM_BUILD_ROOT} DIST_ROOT= /
33
- make install-dev install-lib DESTDIR= ${RPM_BUILD_ROOT} DIST_ROOT= /
32
+ make install DESTDIR= ${RPM_BUILD_ROOT}
34
33
35
34
cp ${RPM_BUILD_ROOT}%{prefix }/include/sys/acl.h ${RPM_BUILD_ROOT}%{prefix }/include/
36
35
36
+ rm -rf ${RPM_BUILD_ROOT}%{prefix }/share
37
37
rm -rf ${RPM_BUILD_ROOT}%{prefix }/lib/*.a
38
38
rm -rf ${RPM_BUILD_ROOT}%{prefix }/lib/*.la
39
- rm -rf ${RPM_BUILD_ROOT}%{prefix }/libexec
40
- rm -rf ${RPM_BUILD_ROOT}%{prefix }/share
39
+ rm -rf ${RPM_BUILD_ROOT}%{prefix }/lib/pkgconfig
40
+ find ${RPM_BUILD_ROOT}%{prefix }/bin/ -mindepth 1 -name 'getfacl' -o -print0 | xargs -0 rm -rf
41
41
42
42
%clean
43
43
rm -rf $RPM_BUILD_ROOT
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ build: build-stamp
11
11
build-stamp :
12
12
dh_testdir
13
13
14
- zcat acl.destdir.diff.gz | $(PATCH) -p1 || true
14
+ patch -p1 -i no_fancy_gcc.patch
15
15
16
16
./configure --prefix=$(PREFIX) --enable-gettext=no
17
17
@@ -25,17 +25,18 @@ install: build
25
25
dh_clean -k
26
26
dh_installdirs
27
27
28
- make install -C getfacl DESTDIR=$(CURDIR)/debian/tmp DIST_ROOT=/
29
- make install-dev install-lib DESTDIR=$(CURDIR)/debian/tmp DIST_ROOT=/
28
+ make install DESTDIR=$(CURDIR)/debian/tmp
30
29
31
30
# configure fails because acl.h does't exist in include dir
32
31
# it's placed by default in include/sys
33
32
34
33
cp $(CURDIR)/debian/tmp$(PREFIX)/include/sys/acl.h $(CURDIR)/debian/tmp$(PREFIX)/include/
35
34
35
+ rm -rf $(CURDIR)/debian/tmp$(PREFIX)/share
36
36
rm -rf $(CURDIR)/debian/tmp$(PREFIX)/lib/*.a
37
37
rm -rf $(CURDIR)/debian/tmp$(PREFIX)/lib/*.la
38
- rm -rf $(CURDIR)/debian/tmp$(PREFIX)/libexec
38
+ rm -rf $(CURDIR)/debian/tmp$(PREFIX)/lib/pkgconfig
39
+ find $(CURDIR)/debian/tmp$(PREFIX)/bin/ -mindepth 1 -name 'getfacl' -o -print0 | xargs -0 rm -rf
39
40
40
41
binary-indep : build install
41
42
Original file line number Diff line number Diff line change
1
+ --- ./libacl/acl_from_text.c.orig 2018-01-21 06:18:26.000000000 +0100
2
+ +++ ./libacl/acl_from_text.c 2018-10-20 12:15:33.667925049 +0200
3
+ @@ -191,6 +191,8 @@
4
+ -1 on error, 0 on success.
5
+ */
6
+
7
+ + #pragma GCC diagnostic push
8
+ + #pragma GCC diagnostic ignored "-Waddress"
9
+ static int
10
+ parse_acl_entry(const char **text_p, acl_t *acl_p)
11
+ {
12
+ @@ -304,15 +306,12 @@
13
+ create_entry:
14
+ if (acl_create_entry(acl_p, &entry_d) != 0)
15
+ return -1;
16
+ - #pragma GCC diagnostic push
17
+ - #pragma GCC diagnostic ignored "-Waddress"
18
+ if (acl_copy_entry(entry_d, int2ext(&entry_obj)) != 0)
19
+ return -1;
20
+ - #pragma GCC diagnostic pop
21
+ return 0;
22
+
23
+ fail:
24
+ errno = EINVAL;
25
+ return -1;
26
+ }
27
+ -
28
+ + #pragma GCC diagnostic pop
You can’t perform that action at this time.
0 commit comments