aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-12-20 14:07:16 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-12-20 14:07:16 -0300
commitc4014880bdce75bbd9f66a9ed5dc6d8ca7ab02b3 (patch)
tree74a0c35e6119ac5445c6e2d12f35be286f9f9dc7
parent321ebe9702f56abfbd11d3dbf413c79a5db58fce (diff)
downloadaports-c4014880bdce75bbd9f66a9ed5dc6d8ca7ab02b3.tar.gz
aports-c4014880bdce75bbd9f66a9ed5dc6d8ca7ab02b3.tar.bz2
aports-c4014880bdce75bbd9f66a9ed5dc6d8ca7ab02b3.tar.xz
community/vinagre: fix build with -fno-common
-rw-r--r--community/vinagre/APKBUILD7
-rw-r--r--community/vinagre/gcc-10.patch24
2 files changed, 29 insertions, 2 deletions
diff --git a/community/vinagre/APKBUILD b/community/vinagre/APKBUILD
index 4191eb2ac2..bfb6a356ce 100644
--- a/community/vinagre/APKBUILD
+++ b/community/vinagre/APKBUILD
@@ -11,7 +11,9 @@ depends="openssh dbus:org.freedesktop.Secrets"
makedepends="libxml2-dev intltool itstool glib-dev libsecret-dev spice-gtk-dev
telepathy-glib-dev vte3-dev gtk-vnc-dev avahi-dev avahi-ui-dev vala"
subpackages="$pkgname-doc $pkgname-lang"
-source="https://download.gnome.org/sources/vinagre/${pkgver%.*}/vinagre-$pkgver.tar.xz"
+source="https://download.gnome.org/sources/vinagre/${pkgver%.*}/vinagre-$pkgver.tar.xz
+ gcc-10.patch
+ "
build() {
./configure \
@@ -36,4 +38,5 @@ package() {
make DESTDIR="$pkgdir" install
}
-sha512sums="6a84b353d75b48649af507cb747688115b35268bc0303554afc9684bbfec4f9c3b2d93d89fa64480ede07bb4fb1eabe360b6eccd11e58691ce9f955f329c615f vinagre-3.22.0.tar.xz"
+sha512sums="6a84b353d75b48649af507cb747688115b35268bc0303554afc9684bbfec4f9c3b2d93d89fa64480ede07bb4fb1eabe360b6eccd11e58691ce9f955f329c615f vinagre-3.22.0.tar.xz
+4c6ff2bcea74e331b92014ebbe14cd9d81951b4f1228df1969b34556eff4bb40727886bfc0d400405645c6757ad07abf358a18bee85cfbf96915d5bb2ab09559 gcc-10.patch"
diff --git a/community/vinagre/gcc-10.patch b/community/vinagre/gcc-10.patch
new file mode 100644
index 0000000000..41937aca00
--- /dev/null
+++ b/community/vinagre/gcc-10.patch
@@ -0,0 +1,24 @@
+Taken from Gentoo
+
+--- a/plugins/vnc/vinagre-vnc-connection.c
++++ b/plugins/vnc/vinagre-vnc-connection.c
+@@ -27,6 +27,8 @@
+ #include "vinagre-vnc-connection.h"
+ #include "vinagre-vala.h"
+
++gboolean scaling_command_line;
++
+ struct _VinagreVncConnectionPrivate
+ {
+ gchar *desktop_name;
+--- a/plugins/vnc/vinagre-vnc-connection.h
++++ b/plugins/vnc/vinagre-vnc-connection.h
+@@ -26,7 +26,7 @@
+
+ G_BEGIN_DECLS
+
+-gboolean scaling_command_line;
++extern gboolean scaling_command_line;
+
+ #define VINAGRE_TYPE_VNC_CONNECTION (vinagre_vnc_connection_get_type ())
+ #define VINAGRE_VNC_CONNECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VINAGRE_TYPE_VNC_CONNECTION, VinagreVncConnection))