<short summary of the patch>
authorCamm Maguire <camm@debian.org>
Tue, 25 Mar 2025 16:52:33 +0000 (12:52 -0400)
committerCamm Maguire <camm@debian.org>
Tue, 25 Mar 2025 16:52:33 +0000 (12:52 -0400)
TODO: Put a short summary on the line above and replace this paragraph
with a longer explanation of this change. Complete the meta-information
with other relevant fields (see below for details). To make it easier, the
information below has been extracted from the changelog. Adjust it or drop
it.

gcl (2.6.14-11) unstable; urgency=medium

  * Version_2_6_15pre10

Gbp-Pq: Name Version_2_6_15pre10

configure
configure.in
git.tag

index 1adef5b6f0f208a426376769a57838f997931516..3366719fa1d93350d460801f700a6320233c3436 100755 (executable)
--- a/configure
+++ b/configure
@@ -7498,11 +7498,17 @@ printf "%s\n" "$as_me: trying to adjust text start" >&6;}
             cat gcl.script.def | $AWK '/SIZEOF_HEADERS/ {gsub("0x[0-9]*","0x" j,$0);} {print}' j=$j >gcl.script
            #        diff -u gcl.script.def gcl.script
             echo "int main() {return 0;}" >foo.c
-            if ( $CC $LDFLAGS -Wl,-T gcl.script foo.c -o foo && ./foo ) >/dev/null 2>&1 ; then
+            if ( $CC $LDFLAGS -Wl,-T gcl.script foo.c -o foo && ./foo >/dev/null 2<&1 ) >/dev/null 2>&1 ; then
                if test $n -lt $min ; then min=$n; fi;
                if test $n -gt $max; then max=$n; fi;
            elif test $max -gt 0 ; then
-               break;
+               # Workaround for false island of acceptability on riscv64, 20240716
+               if test `$AWK 'END {print n-m}' m=$min n=$max </dev/null` -gt 2 ; then
+                  break;
+               else
+                  min=$lim
+                  max=0;
+               fi
             fi;
             n=`$AWK 'END {print n+1}' n=$n </dev/null`
        done
@@ -7526,12 +7532,12 @@ printf "%s\n" "$as_me: max log text start reduced to $max considering c stack ad
             if test $max -ge $enable_fastimmfix && test "$enable_immfix" != "no" ; then
                j=`$AWK 'END {for (i=j=0;j<=n;j++) i=i ? i*2 : 1;printf("%x\n",3*i)}' n=$max </dev/null`
                low_shft=`$AWK 'END {print n+1}' n=$max </dev/null`;
-               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: raising log text to $j for a $max bit wide low immfix table" >&5
-printf "%s\n" "$as_me: raising log text to $j for a $max bit wide low immfix table" >&6;}
+               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: raising log text to 0x$j for a $max bit wide low immfix table" >&5
+printf "%s\n" "$as_me: raising log text to 0x$j for a $max bit wide low immfix table" >&6;}
             else
                j=`$AWK 'END {for (i=j=0;j<=n;j++) i=i ? i*2 : 1;printf("%x\n",3*i)}' n=$min </dev/null`
-               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: lowering log text to $j to maximize data area" >&5
-printf "%s\n" "$as_me: lowering log text to $j to maximize data area" >&6;}
+               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: lowering log text to 0x$j to maximize data area" >&5
+printf "%s\n" "$as_me: lowering log text to 0x$j to maximize data area" >&6;}
            fi
        fi
 
@@ -7551,7 +7557,7 @@ printf "%s\n" "#define OBJNULL NULL" >>confdefs.h
        #      echo $j;
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking our linker script" >&5
 printf %s "checking our linker script... " >&6; }
-       if test "$j" -ne "-1" ; then
+       if test "$j" != "-1" ; then
             cat gcl.script.def | $AWK '/SIZEOF_HEADERS/ {gsub("0x[0-9]*","0x" j,$0);} {print}' j=$j >gcl.script
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
 printf "%s\n" "done" >&6; }
index 0f88f2aaa6121b6fd6cb16177c1852f575ef98bf..b6343351b42880fd07276872bda1fd96f3e5d56c 100644 (file)
@@ -1409,11 +1409,17 @@ if test "$use" != "386-gnu" ; then #hurd can push .data below C stack, but sbrk(
             cat gcl.script.def | $AWK '/SIZEOF_HEADERS/ {gsub("0x[[0-9]]*","0x" j,$0);} {print}' j=$j >gcl.script
            #        diff -u gcl.script.def gcl.script
             echo "int main() {return 0;}" >foo.c
-            if ( $CC $LDFLAGS -Wl,-T gcl.script foo.c -o foo && ./foo ) >/dev/null 2>&1 ; then
+            if ( $CC $LDFLAGS -Wl,-T gcl.script foo.c -o foo && ./foo >/dev/null 2<&1 ) >/dev/null 2>&1 ; then
                if test $n -lt $min ; then min=$n; fi; 
                if test $n -gt $max; then max=$n; fi; 
            elif test $max -gt 0 ; then
-               break;
+               # Workaround for false island of acceptability on riscv64, 20240716
+               if test `$AWK 'END {print n-m}' m=$min n=$max </dev/null` -gt 2 ; then
+                  break;
+               else
+                  min=$lim
+                  max=0;
+               fi
             fi;
             n=`$AWK 'END {print n+1}' n=$n </dev/null`
        done      
@@ -1434,10 +1440,10 @@ if test "$use" != "386-gnu" ; then #hurd can push .data below C stack, but sbrk(
             if test $max -ge $enable_fastimmfix && test "$enable_immfix" != "no" ; then
                j=`$AWK 'END {for (i=j=0;j<=n;j++) i=i ? i*2 : 1;printf("%x\n",3*i)}' n=$max </dev/null`
                low_shft=`$AWK 'END {print n+1}' n=$max </dev/null`;
-               AC_MSG_NOTICE([raising log text to $j for a $max bit wide low immfix table])
+               AC_MSG_NOTICE([raising log text to 0x$j for a $max bit wide low immfix table])
             else                                       
                j=`$AWK 'END {for (i=j=0;j<=n;j++) i=i ? i*2 : 1;printf("%x\n",3*i)}' n=$min </dev/null`
-               AC_MSG_NOTICE([lowering log text to $j to maximize data area])
+               AC_MSG_NOTICE([lowering log text to 0x$j to maximize data area])
            fi
        fi
        
@@ -1450,7 +1456,7 @@ if test "$use" != "386-gnu" ; then #hurd can push .data below C stack, but sbrk(
        
        #      echo $j;
        AC_MSG_CHECKING([our linker script])
-       if test "$j" -ne "-1" ; then
+       if test "$j" != "-1" ; then
             cat gcl.script.def | $AWK '/SIZEOF_HEADERS/ {gsub("0x[[0-9]]*","0x" j,$0);} {print}' j=$j >gcl.script
            AC_MSG_RESULT([done])
            rm -f gcl.script.def
diff --git a/git.tag b/git.tag
index 1d2b458cce3d827fab52503d0a01e0d18a01a533..c6520047c7dbd8f4cfa3405e9cc464dc4328f8ed 100644 (file)
--- a/git.tag
+++ b/git.tag
@@ -1 +1 @@
-"Version_2_6_15pre9"
+"Version_2_6_15pre10"