summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2020-06-11 15:49:03 +0200
committerDavid Seifert <soap@gentoo.org>2020-06-11 15:49:03 +0200
commit233aa32334f7ed86ac66897f9edd47f221bc299f (patch)
tree5f3ce6b3b58246cf38cc1dd8609a419aad0ad32b /net-fs/netatalk
parentsys-apps/ack: Version bump for 3.3.1 (diff)
downloadgentoo-233aa32334f7ed86ac66897f9edd47f221bc299f.tar.gz
gentoo-233aa32334f7ed86ac66897f9edd47f221bc299f.tar.bz2
gentoo-233aa32334f7ed86ac66897f9edd47f221bc299f.zip
net-fs/netatalk: Fix building with -fno-common
Closes: https://bugs.gentoo.org/706852 Package-Manager: Portage-2.3.100, Repoman-2.3.22 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'net-fs/netatalk')
-rw-r--r--net-fs/netatalk/files/netatalk-3.1.12-fno-common.patch11
-rw-r--r--net-fs/netatalk/netatalk-3.1.12.ebuild1
2 files changed, 12 insertions, 0 deletions
diff --git a/net-fs/netatalk/files/netatalk-3.1.12-fno-common.patch b/net-fs/netatalk/files/netatalk-3.1.12-fno-common.patch
new file mode 100644
index 000000000000..52a8cf3dce9a
--- /dev/null
+++ b/net-fs/netatalk/files/netatalk-3.1.12-fno-common.patch
@@ -0,0 +1,11 @@
+--- a/etc/afpd/directory.h
++++ b/etc/afpd/directory.h
+@@ -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 *);
+
diff --git a/net-fs/netatalk/netatalk-3.1.12.ebuild b/net-fs/netatalk/netatalk-3.1.12.ebuild
index 369ce4e2ac3b..89d0bf177603 100644
--- a/net-fs/netatalk/netatalk-3.1.12.ebuild
+++ b/net-fs/netatalk/netatalk-3.1.12.ebuild
@@ -60,6 +60,7 @@ PATCHES=(
"${FILESDIR}"/${PN}-3.1.7-gentoo.patch
"${FILESDIR}"/${PN}-3.1.8-disable-ld-library-path.patch #564350
"${FILESDIR}"/${PN}-3.1.12-my_bool.patch #692560
+ "${FILESDIR}"/${PN}-3.1.12-fno-common.patch #706852
)
src_prepare() {