[packages/netatalk] - fix building with gcc 10+, rebuild with openssl 3.0.0, rel 4
baggins
baggins at pld-linux.org
Tue Oct 5 21:53:56 CEST 2021
commit 32c0d6c76732c65628839581fb77147b5c9149ca
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Tue Oct 5 21:53:33 2021 +0200
- fix building with gcc 10+, rebuild with openssl 3.0.0, rel 4
gcc10.patch | 11 +++++++++++
netatalk.spec | 4 +++-
2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/netatalk.spec b/netatalk.spec
index f891a4c..d2d06e4 100644
--- a/netatalk.spec
+++ b/netatalk.spec
@@ -10,7 +10,7 @@ Summary: Netatalk AFP fileserver for Apple clients
Summary(pl.UTF-8): Netatalk - serwer plików AFP dla klientów Apple
Name: netatalk
Version: 3.1.11
-Release: 3
+Release: 4
Epoch: 2
License: GPL v2+ (with BSD parts)
Group: Daemons
@@ -20,6 +20,7 @@ Source1: %{name}.init
Source2: %{name}.pamd
Source3: %{name}.sysconfig
Source4: ICDumpSuffixMap
+Patch0: gcc10.patch
URL: http://www.umich.edu/~rsug/netatalk/
BuildRequires: acl-devel
BuildRequires: attr-devel
@@ -129,6 +130,7 @@ Statyczna biblioteka Netatalk.
%prep
%setup -q
+%patch0 -p1
%{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+python(\s|$),#!%{__python}\1,' \
contrib/shell_utils/afpstats \
diff --git a/gcc10.patch b/gcc10.patch
new file mode 100644
index 0000000..368cb10
--- /dev/null
+++ b/gcc10.patch
@@ -0,0 +1,11 @@
+--- netatalk-3.1.11/etc/afpd/directory.h~ 2014-03-12 08:06:49.000000000 +0100
++++ netatalk-3.1.11/etc/afpd/directory.h 2021-10-05 21:50:01.213813217 +0200
+@@ -91,7 +91,7 @@
+ #define AR_UWRITE (1<<2)
+ #define AR_UOWN (1<<7)
+
+-q_t *invalid_dircache_entries;
++extern q_t *invalid_dircache_entries;
+
+ typedef int (*dir_loop)(struct dirent *, char *, void *);
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/netatalk.git/commitdiff/32c0d6c76732c65628839581fb77147b5c9149ca
More information about the pld-cvs-commit
mailing list