From fdece4eeacc1225849f485bb2c8dc4506df024a5 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Sun, 30 Jun 2024 23:48:16 +0200 Subject: [PATCH] apl: update to 1.9. --- srcpkgs/apl/patches/ppc.patch | 43 ----------------------------------- srcpkgs/apl/template | 6 ++--- 2 files changed, 3 insertions(+), 46 deletions(-) delete mode 100644 srcpkgs/apl/patches/ppc.patch diff --git a/srcpkgs/apl/patches/ppc.patch b/srcpkgs/apl/patches/ppc.patch deleted file mode 100644 index 9db0e0d13a1..00000000000 --- a/srcpkgs/apl/patches/ppc.patch +++ /dev/null @@ -1,43 +0,0 @@ -This backports the relevant bit of svn revision 1177 to fix build on platforms -where long double does not have extended range (larger than regular double), -particularly PowerPC (32 and 64 bit). - -On those platforms, the build previously failed with: - -Tokenizer.cc:769:4: error: floating constant exceeds range of 'long double' [-Werror=overflow] - exp_0_9(1E30) - ^~~~~~~ - ---- a/src/Tokenizer.cc -+++ b/src/Tokenizer.cc -@@ -755,10 +755,10 @@ - MAX_TOKENIZE_DIGITS = MAX_TOKENIZE_DIGITS_1 - 1 // excl. rounding digit - }; - --#define exp_0_9(x) x ## 0L, x ## 1L, x ## 2L, x ## 3L, x ## 4L, \ -- x ## 5L, x ## 6L, x ## 7L, x ## 8L, x ## 9L, -+#define exp_0_9(x) x ## 0, x ## 1, x ## 2, x ## 3, x ## 4, \ -+ x ## 5, x ## 6, x ## 7, x ## 8, x ## 9, - --static const long double expo_tab[310] = -+static const long double expo_tab[309] = - { - exp_0_9(1E) exp_0_9(1E1) exp_0_9(1E2) exp_0_9(1E3) exp_0_9(1E4) - exp_0_9(1E5) exp_0_9(1E6) exp_0_9(1E7) exp_0_9(1E8) exp_0_9(1E9) -@@ -766,7 +766,7 @@ - exp_0_9(1E15) exp_0_9(1E16) exp_0_9(1E17) exp_0_9(1E18) exp_0_9(1E19) - exp_0_9(1E20) exp_0_9(1E21) exp_0_9(1E22) exp_0_9(1E23) exp_0_9(1E24) - exp_0_9(1E25) exp_0_9(1E26) exp_0_9(1E27) exp_0_9(1E28) exp_0_9(1E29) -- exp_0_9(1E30) -+ 1E300, 1E301, 1E302, 1E303, 1E304, 1E305, 1E306, 1E307, 1E308 - }; - - static const long double nexpo_tab[310] = -@@ -960,6 +960,7 @@ - - if (expo > 0) - { -+ if (expo > 308) return false; - if (negative) flt_val = - v * expo_tab[expo]; - else flt_val = v * expo_tab[expo]; - return true; // OK diff --git a/srcpkgs/apl/template b/srcpkgs/apl/template index 6fb1afb356b..4cbab3b604c 100644 --- a/srcpkgs/apl/template +++ b/srcpkgs/apl/template @@ -1,7 +1,7 @@ # Template file for 'apl' pkgname=apl -version=1.8 -revision=2 +version=1.9 +revision=1 build_style=gnu-configure configure_args="CXX_WERROR=no" hostmakedepends="pkg-config" @@ -12,7 +12,7 @@ maintainer="Leah Neukirchen " license="GPL-3.0-or-later" homepage="http://www.gnu.org/software/apl" distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz" -checksum=144f4c858a0d430ce8f28be90a35920dd8e0951e56976cb80b55053fa0d8bbcb +checksum=291867f1b1937693abb57be7d9a37618b0376e3e2709574854a7bbe52bb28eb8 nocross="execs target binary: ./Gtk_server --ev1 > Gtk_events1.asciidoc" post_install() {