aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-12-12 03:57:08 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-12-12 03:57:08 -0300
commit13341e206b7428e2685b069a1aad7a5c9c57c74a (patch)
tree17b3aee52976dc8b0b787084f54bda53f42b42ec
parentdf44a96137c1be372de9a4bf71095386ab2b7c77 (diff)
downloadaports-13341e206b7428e2685b069a1aad7a5c9c57c74a.tar.gz
aports-13341e206b7428e2685b069a1aad7a5c9c57c74a.tar.bz2
aports-13341e206b7428e2685b069a1aad7a5c9c57c74a.tar.xz
community/galculator: fix build under -fno-common
-rw-r--r--community/galculator/APKBUILD7
-rw-r--r--community/galculator/gcc-10.patch13
2 files changed, 18 insertions, 2 deletions
diff --git a/community/galculator/APKBUILD b/community/galculator/APKBUILD
index f92967c15a..1958c5029c 100644
--- a/community/galculator/APKBUILD
+++ b/community/galculator/APKBUILD
@@ -8,7 +8,9 @@ arch="all"
license="GPL-2.0-or-later"
makedepends="gtk+2.0-dev flex bison"
subpackages="$pkgname-doc $pkgname-lang"
-source="http://galculator.mnim.org/downloads/galculator-$pkgver.tar.bz2"
+source="http://galculator.mnim.org/downloads/galculator-$pkgver.tar.bz2
+ gcc-10.patch
+ "
prepare() {
default_prepare
@@ -28,4 +30,5 @@ package() {
cd "$srcdir/galculator-$pkgver"
make DESTDIR="$pkgdir" install
}
-sha512sums="ca5f373649d9bf26184e94ba6a501610efbb13e92a8723cda78b83aa495519e82e5b4fcd17f00f615eb702ed186598aecc70ae63a8238c32384b7f608cba4cfa galculator-2.1.4.tar.bz2"
+sha512sums="ca5f373649d9bf26184e94ba6a501610efbb13e92a8723cda78b83aa495519e82e5b4fcd17f00f615eb702ed186598aecc70ae63a8238c32384b7f608cba4cfa galculator-2.1.4.tar.bz2
+89436f3308c5a81a014105886b4823ef108c95b61c6cde14391128ff9e3f0acab54173a103d9f8afce74e026755566cd32daaf718e052ae840d92a3186c0dc66 gcc-10.patch"
diff --git a/community/galculator/gcc-10.patch b/community/galculator/gcc-10.patch
new file mode 100644
index 0000000000..b7fa14d38d
--- /dev/null
+++ b/community/galculator/gcc-10.patch
@@ -0,0 +1,13 @@
+diff --git a/src/config_file.c b/src/config_file.c
+index 5372708..fd57d8a 100644
+--- a/src/config_file.c
++++ b/src/config_file.c
+@@ -39,7 +39,7 @@
+ #include "config_file.h"
+ #include "general_functions.h"
+
+-s_preferences prefs;
++extern s_preferences prefs;
+ static s_prefs_entry prefs_list[53] = {
+ {"display_bkg_color", &(prefs.bkg_color), STRING, "prefs_bkg_color_button", set_button_color},
+ {"display_result_font", &(prefs.result_font), STRING, "prefs_result_font", set_button_font},