Skip to content

Commit ac6f63c

Browse files
vpodzimeAleksei Shpakovskii
authored andcommitted
Adapt to the changes done in acl-2.2.53
Upstream switched to autotools so we can drop our workarounds required before. Also they do things that require newer GCC than the one available on RHEL/Debian 6.
1 parent 998a664 commit ac6f63c

File tree

4 files changed

+40
-11
lines changed

4 files changed

+40
-11
lines changed
-509 Bytes
Binary file not shown.

deps-packaging/libacl/cfbuild-libacl.spec

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Name: cfbuild-libacl
55
Version: %{version}
66
Release: 1
77
Source: acl-%{acl_version}.tar.gz
8+
Patch0: no_fancy_gcc.patch
89
License: MIT
910
Group: Other
1011
Url: http://example.com
@@ -16,10 +17,9 @@ AutoReqProv: no
1617

1718
%prep
1819
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}
2221

22+
%patch0 -p1
2323
./configure --prefix=%{prefix} --enable-gettext=no
2424

2525
%build
@@ -29,15 +29,15 @@ make
2929
%install
3030
rm -rf ${RPM_BUILD_ROOT}
3131

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}
3433

3534
cp ${RPM_BUILD_ROOT}%{prefix}/include/sys/acl.h ${RPM_BUILD_ROOT}%{prefix}/include/
3635

36+
rm -rf ${RPM_BUILD_ROOT}%{prefix}/share
3737
rm -rf ${RPM_BUILD_ROOT}%{prefix}/lib/*.a
3838
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
4141

4242
%clean
4343
rm -rf $RPM_BUILD_ROOT

deps-packaging/libacl/debian/rules

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ build: build-stamp
1111
build-stamp:
1212
dh_testdir
1313

14-
zcat acl.destdir.diff.gz | $(PATCH) -p1 || true
14+
patch -p1 -i no_fancy_gcc.patch
1515

1616
./configure --prefix=$(PREFIX) --enable-gettext=no
1717

@@ -25,17 +25,18 @@ install: build
2525
dh_clean -k
2626
dh_installdirs
2727

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
3029

3130
# configure fails because acl.h does't exist in include dir
3231
# it's placed by default in include/sys
3332

3433
cp $(CURDIR)/debian/tmp$(PREFIX)/include/sys/acl.h $(CURDIR)/debian/tmp$(PREFIX)/include/
3534

35+
rm -rf $(CURDIR)/debian/tmp$(PREFIX)/share
3636
rm -rf $(CURDIR)/debian/tmp$(PREFIX)/lib/*.a
3737
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
3940

4041
binary-indep: build install
4142

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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

0 commit comments

Comments
 (0)