From 7bb95fd8b78f25bd4c856d41a50f0c1d75018f2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98rjan=20Malde?= Date: Mon, 7 Feb 2022 11:20:04 +0100 Subject: groups/221.native_packages_dev.group: adds gnucobol v3.1.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ørjan Malde --- patches/gnucobol-3.1.2_pre.local.patch | 173 +++++++++++++++++++++++++++++++++ 1 file changed, 173 insertions(+) create mode 100644 patches/gnucobol-3.1.2_pre.local.patch (limited to 'patches') diff --git a/patches/gnucobol-3.1.2_pre.local.patch b/patches/gnucobol-3.1.2_pre.local.patch new file mode 100644 index 00000000..8c20fd60 --- /dev/null +++ b/patches/gnucobol-3.1.2_pre.local.patch @@ -0,0 +1,173 @@ +diff -ru gnucobol-3.1.2.orig/configure gnucobol-3.1.2/configure +--- gnucobol-3.1.2.orig/configure 2020-12-23 13:04:58.000000000 +0100 ++++ gnucobol-3.1.2/configure 2022-02-07 11:04:34.765517654 +0100 +@@ -18217,165 +18217,10 @@ + fi + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +-# Checks for size of long +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if size of long int = size of long long" >&5 +-$as_echo_n "checking if size of long int = size of long long... " >&6; } +-if test "$cross_compiling" = yes; then : +- if test "$COB_LI_IS_LL" = "0"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: specified \"no\" on configure line" >&5 +-$as_echo "specified \"no\" on configure line" >&6; } +- else +- if test "$COB_LI_IS_LL" = "1"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: specified \"yes\" on configure line" >&5 +-$as_echo "specified \"yes\" on configure line" >&6; } +- else +- COB_LI_IS_LL=1 +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: assumed - cross-compilation" >&5 +-$as_echo "assumed - cross-compilation" >&6; } +- fi +- fi +- $as_echo "#define COB_LI_IS_LL \$COB_LI_IS_LL" >>confdefs.h +- +- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot run test program while cross-compiling" >&5 +-$as_echo "$as_me: WARNING: cannot run test program while cross-compiling" >&2;} +-else +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-int +-main () +-{ +- +- if (sizeof(long int) == sizeof(long long)) +- return 0; +- return 1; +- +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_run "$LINENO"; then : +- $as_echo "#define COB_LI_IS_LL 1" >>confdefs.h +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +-$as_echo "yes" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ +- conftest.$ac_objext conftest.beam conftest.$ac_ext +-fi +- +- +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if long is 32 bits" >&5 +-$as_echo_n "checking if long is 32 bits... " >&6; } +-if test "$cross_compiling" = yes; then : +- if test "$COB_32_BIT_LONG" = "0"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: specified \"no\" on configure line" >&5 +-$as_echo "specified \"no\" on configure line" >&6; } +- else +- if test "$COB_32_BIT_LONG" = "1"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: specified \"yes\" on configure line" >&5 +-$as_echo "specified \"yes\" on configure line" >&6; } +- else +- COB_32_BIT_LONG=1 +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: assumed - cross-compilation" >&5 +-$as_echo "assumed - cross-compilation" >&6; } +- fi +- fi +- $as_echo "#define COB_32_BIT_LONG \$COB_32_BIT_LONG" >>confdefs.h +- +- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot run test program while cross-compiling" >&5 +-$as_echo "$as_me: WARNING: cannot run test program while cross-compiling" >&2;} +-else +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-int +-main () +-{ +- +- if (sizeof (long) == 4) +- return 0; +- return 1; +- +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_run "$LINENO"; then : +- $as_echo "#define COB_32_BIT_LONG 1" >>confdefs.h +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +-$as_echo "yes" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ +- conftest.$ac_objext conftest.beam conftest.$ac_ext +-fi +- +- +- +-if test "cross_compiling" != "yes"; then +- COB_HAS_64_BIT_POINTER="no" +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pointer is longer than 32 bits" >&5 +-$as_echo_n "checking if pointer is longer than 32 bits... " >&6; } +-if test "$cross_compiling" = yes; then : +- if test "$COB_HAS_64_BIT_POINTER" = "0"; then +- COB_HAS_64_BIT_POINTER="no" +- $as_echo "#define COB_64_BIT_POINTER 0" >>confdefs.h +- +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: specified \"no\" on configure line" >&5 +-$as_echo "specified \"no\" on configure line" >&6; } +- else +- if test "$COB_HAS_64_BIT_POINTER" = "1"; then +- COB_HAS_64_BIT_POINTER="yes" +- $as_echo "#define COB_64_BIT_POINTER 1" >>confdefs.h +- +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: specified \"yes\" on configure line" >&5 +-$as_echo "specified \"yes\" on configure line" >&6; } +- else +- COB_HAS_64_BIT_POINTER="no" +- $as_echo "#define COB_64_BIT_POINTER 0" >>confdefs.h +- +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: assumed \"no\" - cross-compilation" >&5 +-$as_echo "assumed \"no\" - cross-compilation" >&6; } +- fi +- fi +- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot run test program while cross-compiling" >&5 +-$as_echo "$as_me: WARNING: cannot run test program while cross-compiling" >&2;} +-else +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-int +-main () +-{ +- +- if (sizeof (void *) > 4U) +- return 0; +- return 1; +- +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_run "$LINENO"; then : +- COB_HAS_64_BIT_POINTER="yes" +- $as_echo "#define COB_64_BIT_POINTER 1" >>confdefs.h +- +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +-$as_echo "yes" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ +- conftest.$ac_objext conftest.beam conftest.$ac_ext +-fi +- ++# 64-bit midipix ++$as_echo "#define COB_LI_IS_LL 1" >>confdefs.h ++$as_echo "#define COB_32_BIT_LONG 0" >>confdefs.h ++$as_echo "#define COB_64_BIT_POINTER 1" >>confdefs.h + + # Check gcc wrapv option + # We likely don't need this and remove it before 3.0 final release -- cgit v1.2.3