net-libs/libgadu: Fix building with -fno-common
authorMaciej Mrozowski <reavertm@gentoo.org>
Sun, 9 Feb 2020 02:25:58 +0000 (03:25 +0100)
committerMaciej Mrozowski <reavertm@gentoo.org>
Sun, 9 Feb 2020 02:28:23 +0000 (03:28 +0100)
Closes: https://bugs.gentoo.org/708686
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Maciej Mrozowski <reavertm@gentoo.org>
net-libs/libgadu/files/libgadu-1.12.2-fno-common.patch [new file with mode: 0644]
net-libs/libgadu/libgadu-1.12.2-r1.ebuild

diff --git a/net-libs/libgadu/files/libgadu-1.12.2-fno-common.patch b/net-libs/libgadu/files/libgadu-1.12.2-fno-common.patch
new file mode 100644 (file)
index 0000000..2eafd37
--- /dev/null
@@ -0,0 +1,30 @@
+diff -ruN libgadu-1.12.2/test/manual/userconfig.h my-libgadu/test/manual/userconfig.h
+--- libgadu-1.12.2/test/manual/userconfig.h    2017-01-21 18:57:03.000000000 +0100
++++ my-libgadu/test/manual/userconfig.h        2020-02-09 03:18:29.040560145 +0100
+@@ -19,16 +19,16 @@
+ #ifndef USERCONFIG_H
+ #define USERCONFIG_H
+-unsigned int config_uin;
+-char *config_password;
+-unsigned int config_peer;
+-char *config_file;
+-char *config_dir;
+-unsigned int config_size;
+-unsigned long config_ip;
+-unsigned int config_port;
+-char *config_server;
+-char *config_proxy;
++extern unsigned int config_uin;
++extern char *config_password;
++extern unsigned int config_peer;
++extern char *config_file;
++extern char *config_dir;
++extern unsigned int config_size;
++extern unsigned long config_ip;
++extern unsigned int config_port;
++extern char *config_server;
++extern char *config_proxy;
+ int config_read(void);
+ void config_free(void);
index f48750979fe1ced9f4b6d1d8d0e6d2f94d77d6f8..87d39897c0d9de85e92b3c6a9a07dc55fc02bae9 100644 (file)
@@ -33,6 +33,10 @@ RDEPEND="${DEPEND}"
 
 BUILD_DIR="${S}"
 
+PATCHES=(
+       "${FILESDIR}/${P}-fno-common.patch"
+)
+
 DOCS=( AUTHORS ChangeLog NEWS README )
 
 src_prepare() {