diff --git a/5.008.009-main,threaded/DevelPatchPerl.patch b/5.008.009-main,threaded/DevelPatchPerl.patch index 584b870..1bdc576 100644 --- a/5.008.009-main,threaded/DevelPatchPerl.patch +++ b/5.008.009-main,threaded/DevelPatchPerl.patch @@ -40,7 +40,7 @@ index 6f20c5e..684f369 100644 or die "Cannot exec $cpp"; } diff --git a/hints/linux.sh b/hints/linux.sh -index ac264c3..3f38ea0 100644 +index ac264c3..a985a8e 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -13,11 +13,14 @@ @@ -123,7 +123,7 @@ index ac264c3..3f38ea0 100644 ppc*) # on ppc, it seems that gcc (at least gcc 3.3.2) isn't happy # with -O2 ; so downgrade to -O1. -@@ -143,93 +150,78 @@ case "$optimize" in +@@ -143,93 +150,88 @@ case "$optimize" in ;; esac @@ -235,6 +235,17 @@ index ac264c3..3f38ea0 100644 - ;; - esac -fi ++# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some ++# available functions, like memem, won't be used. See the discussion in ++# [perl #133760]. musl doesn't offer an easy way to identify it, but, ++# at least on alpine linux, the ldd --version output contains the ++# string 'musl.' ++case `ldd --version 2>&1` in ++ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;; ++ *) ;; ++esac + +-rm -f try.c a.out +# libquadmath is sometimes installed as gcc internal library, +# so contrary to our usual policy of *not* looking at gcc internal +# directories we now *do* look at them, in case they contain @@ -252,7 +263,7 @@ index ac264c3..3f38ea0 100644 + ;; +esac --rm -f try.c a.out +-if /bin/sh -c exit; then +case "$libc" in +'') +# If you have glibc, then report the version for ./myconfig bug reporting. @@ -278,13 +289,12 @@ index ac264c3..3f38ea0 100644 + done + ;; +esac - --if /bin/sh -c exit; then ++ +if ${sh:-/bin/sh} -c exit; then echo '' echo 'You appear to have a working bash. Good.' else -@@ -296,7 +288,7 @@ fi +@@ -296,7 +298,7 @@ fi #'osfmach3ppc') ccdlflags='-Wl,-E' ;; #esac @@ -293,7 +303,7 @@ index ac264c3..3f38ea0 100644 sparc*) case "$cccdlflags" in *-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;; -@@ -311,24 +303,62 @@ esac +@@ -311,24 +313,62 @@ esac # version of -lgdbm which is a bad idea. So if we have 'nm' # make sure it can read the file # NI-S 2003/08/07 @@ -367,7 +377,7 @@ index ac264c3..3f38ea0 100644 if echo $libswanted | grep -v pthread >/dev/null then set `echo X "$libswanted "| sed -e 's/ c / pthread c /'` -@@ -375,16 +405,6 @@ $define|true|[yY]*) +@@ -375,16 +415,6 @@ $define|true|[yY]*) ;; esac @@ -384,7 +394,7 @@ index ac264c3..3f38ea0 100644 # If using g++, the Configure scan for dlopen() and (especially) # dlerror() might fail, easier just to forcibly hint them in. case "$cc" in -@@ -408,7 +428,7 @@ then +@@ -408,7 +438,7 @@ then DBLIB="$DBDIR/libdb.so" if [ -f $DBLIB ] then diff --git a/5.008.009-main/DevelPatchPerl.patch b/5.008.009-main/DevelPatchPerl.patch index 584b870..1bdc576 100644 --- a/5.008.009-main/DevelPatchPerl.patch +++ b/5.008.009-main/DevelPatchPerl.patch @@ -40,7 +40,7 @@ index 6f20c5e..684f369 100644 or die "Cannot exec $cpp"; } diff --git a/hints/linux.sh b/hints/linux.sh -index ac264c3..3f38ea0 100644 +index ac264c3..a985a8e 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -13,11 +13,14 @@ @@ -123,7 +123,7 @@ index ac264c3..3f38ea0 100644 ppc*) # on ppc, it seems that gcc (at least gcc 3.3.2) isn't happy # with -O2 ; so downgrade to -O1. -@@ -143,93 +150,78 @@ case "$optimize" in +@@ -143,93 +150,88 @@ case "$optimize" in ;; esac @@ -235,6 +235,17 @@ index ac264c3..3f38ea0 100644 - ;; - esac -fi ++# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some ++# available functions, like memem, won't be used. See the discussion in ++# [perl #133760]. musl doesn't offer an easy way to identify it, but, ++# at least on alpine linux, the ldd --version output contains the ++# string 'musl.' ++case `ldd --version 2>&1` in ++ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;; ++ *) ;; ++esac + +-rm -f try.c a.out +# libquadmath is sometimes installed as gcc internal library, +# so contrary to our usual policy of *not* looking at gcc internal +# directories we now *do* look at them, in case they contain @@ -252,7 +263,7 @@ index ac264c3..3f38ea0 100644 + ;; +esac --rm -f try.c a.out +-if /bin/sh -c exit; then +case "$libc" in +'') +# If you have glibc, then report the version for ./myconfig bug reporting. @@ -278,13 +289,12 @@ index ac264c3..3f38ea0 100644 + done + ;; +esac - --if /bin/sh -c exit; then ++ +if ${sh:-/bin/sh} -c exit; then echo '' echo 'You appear to have a working bash. Good.' else -@@ -296,7 +288,7 @@ fi +@@ -296,7 +298,7 @@ fi #'osfmach3ppc') ccdlflags='-Wl,-E' ;; #esac @@ -293,7 +303,7 @@ index ac264c3..3f38ea0 100644 sparc*) case "$cccdlflags" in *-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;; -@@ -311,24 +303,62 @@ esac +@@ -311,24 +313,62 @@ esac # version of -lgdbm which is a bad idea. So if we have 'nm' # make sure it can read the file # NI-S 2003/08/07 @@ -367,7 +377,7 @@ index ac264c3..3f38ea0 100644 if echo $libswanted | grep -v pthread >/dev/null then set `echo X "$libswanted "| sed -e 's/ c / pthread c /'` -@@ -375,16 +405,6 @@ $define|true|[yY]*) +@@ -375,16 +415,6 @@ $define|true|[yY]*) ;; esac @@ -384,7 +394,7 @@ index ac264c3..3f38ea0 100644 # If using g++, the Configure scan for dlopen() and (especially) # dlerror() might fail, easier just to forcibly hint them in. case "$cc" in -@@ -408,7 +428,7 @@ then +@@ -408,7 +438,7 @@ then DBLIB="$DBDIR/libdb.so" if [ -f $DBLIB ] then diff --git a/5.008.009-slim,threaded/DevelPatchPerl.patch b/5.008.009-slim,threaded/DevelPatchPerl.patch index 584b870..1bdc576 100644 --- a/5.008.009-slim,threaded/DevelPatchPerl.patch +++ b/5.008.009-slim,threaded/DevelPatchPerl.patch @@ -40,7 +40,7 @@ index 6f20c5e..684f369 100644 or die "Cannot exec $cpp"; } diff --git a/hints/linux.sh b/hints/linux.sh -index ac264c3..3f38ea0 100644 +index ac264c3..a985a8e 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -13,11 +13,14 @@ @@ -123,7 +123,7 @@ index ac264c3..3f38ea0 100644 ppc*) # on ppc, it seems that gcc (at least gcc 3.3.2) isn't happy # with -O2 ; so downgrade to -O1. -@@ -143,93 +150,78 @@ case "$optimize" in +@@ -143,93 +150,88 @@ case "$optimize" in ;; esac @@ -235,6 +235,17 @@ index ac264c3..3f38ea0 100644 - ;; - esac -fi ++# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some ++# available functions, like memem, won't be used. See the discussion in ++# [perl #133760]. musl doesn't offer an easy way to identify it, but, ++# at least on alpine linux, the ldd --version output contains the ++# string 'musl.' ++case `ldd --version 2>&1` in ++ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;; ++ *) ;; ++esac + +-rm -f try.c a.out +# libquadmath is sometimes installed as gcc internal library, +# so contrary to our usual policy of *not* looking at gcc internal +# directories we now *do* look at them, in case they contain @@ -252,7 +263,7 @@ index ac264c3..3f38ea0 100644 + ;; +esac --rm -f try.c a.out +-if /bin/sh -c exit; then +case "$libc" in +'') +# If you have glibc, then report the version for ./myconfig bug reporting. @@ -278,13 +289,12 @@ index ac264c3..3f38ea0 100644 + done + ;; +esac - --if /bin/sh -c exit; then ++ +if ${sh:-/bin/sh} -c exit; then echo '' echo 'You appear to have a working bash. Good.' else -@@ -296,7 +288,7 @@ fi +@@ -296,7 +298,7 @@ fi #'osfmach3ppc') ccdlflags='-Wl,-E' ;; #esac @@ -293,7 +303,7 @@ index ac264c3..3f38ea0 100644 sparc*) case "$cccdlflags" in *-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;; -@@ -311,24 +303,62 @@ esac +@@ -311,24 +313,62 @@ esac # version of -lgdbm which is a bad idea. So if we have 'nm' # make sure it can read the file # NI-S 2003/08/07 @@ -367,7 +377,7 @@ index ac264c3..3f38ea0 100644 if echo $libswanted | grep -v pthread >/dev/null then set `echo X "$libswanted "| sed -e 's/ c / pthread c /'` -@@ -375,16 +405,6 @@ $define|true|[yY]*) +@@ -375,16 +415,6 @@ $define|true|[yY]*) ;; esac @@ -384,7 +394,7 @@ index ac264c3..3f38ea0 100644 # If using g++, the Configure scan for dlopen() and (especially) # dlerror() might fail, easier just to forcibly hint them in. case "$cc" in -@@ -408,7 +428,7 @@ then +@@ -408,7 +438,7 @@ then DBLIB="$DBDIR/libdb.so" if [ -f $DBLIB ] then diff --git a/5.008.009-slim/DevelPatchPerl.patch b/5.008.009-slim/DevelPatchPerl.patch index 584b870..1bdc576 100644 --- a/5.008.009-slim/DevelPatchPerl.patch +++ b/5.008.009-slim/DevelPatchPerl.patch @@ -40,7 +40,7 @@ index 6f20c5e..684f369 100644 or die "Cannot exec $cpp"; } diff --git a/hints/linux.sh b/hints/linux.sh -index ac264c3..3f38ea0 100644 +index ac264c3..a985a8e 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -13,11 +13,14 @@ @@ -123,7 +123,7 @@ index ac264c3..3f38ea0 100644 ppc*) # on ppc, it seems that gcc (at least gcc 3.3.2) isn't happy # with -O2 ; so downgrade to -O1. -@@ -143,93 +150,78 @@ case "$optimize" in +@@ -143,93 +150,88 @@ case "$optimize" in ;; esac @@ -235,6 +235,17 @@ index ac264c3..3f38ea0 100644 - ;; - esac -fi ++# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some ++# available functions, like memem, won't be used. See the discussion in ++# [perl #133760]. musl doesn't offer an easy way to identify it, but, ++# at least on alpine linux, the ldd --version output contains the ++# string 'musl.' ++case `ldd --version 2>&1` in ++ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;; ++ *) ;; ++esac + +-rm -f try.c a.out +# libquadmath is sometimes installed as gcc internal library, +# so contrary to our usual policy of *not* looking at gcc internal +# directories we now *do* look at them, in case they contain @@ -252,7 +263,7 @@ index ac264c3..3f38ea0 100644 + ;; +esac --rm -f try.c a.out +-if /bin/sh -c exit; then +case "$libc" in +'') +# If you have glibc, then report the version for ./myconfig bug reporting. @@ -278,13 +289,12 @@ index ac264c3..3f38ea0 100644 + done + ;; +esac - --if /bin/sh -c exit; then ++ +if ${sh:-/bin/sh} -c exit; then echo '' echo 'You appear to have a working bash. Good.' else -@@ -296,7 +288,7 @@ fi +@@ -296,7 +298,7 @@ fi #'osfmach3ppc') ccdlflags='-Wl,-E' ;; #esac @@ -293,7 +303,7 @@ index ac264c3..3f38ea0 100644 sparc*) case "$cccdlflags" in *-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;; -@@ -311,24 +303,62 @@ esac +@@ -311,24 +313,62 @@ esac # version of -lgdbm which is a bad idea. So if we have 'nm' # make sure it can read the file # NI-S 2003/08/07 @@ -367,7 +377,7 @@ index ac264c3..3f38ea0 100644 if echo $libswanted | grep -v pthread >/dev/null then set `echo X "$libswanted "| sed -e 's/ c / pthread c /'` -@@ -375,16 +405,6 @@ $define|true|[yY]*) +@@ -375,16 +415,6 @@ $define|true|[yY]*) ;; esac @@ -384,7 +394,7 @@ index ac264c3..3f38ea0 100644 # If using g++, the Configure scan for dlopen() and (especially) # dlerror() might fail, easier just to forcibly hint them in. case "$cc" in -@@ -408,7 +428,7 @@ then +@@ -408,7 +438,7 @@ then DBLIB="$DBDIR/libdb.so" if [ -f $DBLIB ] then diff --git a/5.010.001-main,threaded/DevelPatchPerl.patch b/5.010.001-main,threaded/DevelPatchPerl.patch index f83adf0..f771124 100644 --- a/5.010.001-main,threaded/DevelPatchPerl.patch +++ b/5.010.001-main,threaded/DevelPatchPerl.patch @@ -92,7 +92,7 @@ index f8ca492..204bba0 100644 + $self->{LIBS}->[0] .= ' -lgdbm_compat' if -e $_.'/libgdbm_compat.so'; } diff --git a/hints/linux.sh b/hints/linux.sh -index c88f157..3f38ea0 100644 +index c88f157..a985a8e 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -13,11 +13,14 @@ @@ -176,7 +176,7 @@ index c88f157..3f38ea0 100644 ppc*) # on ppc, it seems that gcc (at least gcc 3.3.2) isn't happy # with -O2 ; so downgrade to -O1. -@@ -146,93 +150,78 @@ case "$optimize" in +@@ -146,93 +150,88 @@ case "$optimize" in ;; esac @@ -288,6 +288,17 @@ index c88f157..3f38ea0 100644 - ;; - esac -fi ++# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some ++# available functions, like memem, won't be used. See the discussion in ++# [perl #133760]. musl doesn't offer an easy way to identify it, but, ++# at least on alpine linux, the ldd --version output contains the ++# string 'musl.' ++case `ldd --version 2>&1` in ++ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;; ++ *) ;; ++esac + +-rm -f try.c a.out +# libquadmath is sometimes installed as gcc internal library, +# so contrary to our usual policy of *not* looking at gcc internal +# directories we now *do* look at them, in case they contain @@ -305,7 +316,7 @@ index c88f157..3f38ea0 100644 + ;; +esac --rm -f try.c a.out +-if /bin/sh -c exit; then +case "$libc" in +'') +# If you have glibc, then report the version for ./myconfig bug reporting. @@ -331,13 +342,12 @@ index c88f157..3f38ea0 100644 + done + ;; +esac - --if /bin/sh -c exit; then ++ +if ${sh:-/bin/sh} -c exit; then echo '' echo 'You appear to have a working bash. Good.' else -@@ -299,7 +288,7 @@ fi +@@ -299,7 +298,7 @@ fi #'osfmach3ppc') ccdlflags='-Wl,-E' ;; #esac @@ -346,7 +356,7 @@ index c88f157..3f38ea0 100644 sparc*) case "$cccdlflags" in *-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;; -@@ -314,30 +303,62 @@ esac +@@ -314,30 +313,62 @@ esac # version of -lgdbm which is a bad idea. So if we have 'nm' # make sure it can read the file # NI-S 2003/08/07 @@ -426,7 +436,7 @@ index c88f157..3f38ea0 100644 if echo $libswanted | grep -v pthread >/dev/null then set `echo X "$libswanted "| sed -e 's/ c / pthread c /'` -@@ -384,16 +405,6 @@ $define|true|[yY]*) +@@ -384,16 +415,6 @@ $define|true|[yY]*) ;; esac @@ -443,7 +453,7 @@ index c88f157..3f38ea0 100644 # If using g++, the Configure scan for dlopen() and (especially) # dlerror() might fail, easier just to forcibly hint them in. case "$cc" in -@@ -417,7 +428,7 @@ then +@@ -417,7 +438,7 @@ then DBLIB="$DBDIR/libdb.so" if [ -f $DBLIB ] then diff --git a/5.010.001-main/DevelPatchPerl.patch b/5.010.001-main/DevelPatchPerl.patch index f83adf0..f771124 100644 --- a/5.010.001-main/DevelPatchPerl.patch +++ b/5.010.001-main/DevelPatchPerl.patch @@ -92,7 +92,7 @@ index f8ca492..204bba0 100644 + $self->{LIBS}->[0] .= ' -lgdbm_compat' if -e $_.'/libgdbm_compat.so'; } diff --git a/hints/linux.sh b/hints/linux.sh -index c88f157..3f38ea0 100644 +index c88f157..a985a8e 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -13,11 +13,14 @@ @@ -176,7 +176,7 @@ index c88f157..3f38ea0 100644 ppc*) # on ppc, it seems that gcc (at least gcc 3.3.2) isn't happy # with -O2 ; so downgrade to -O1. -@@ -146,93 +150,78 @@ case "$optimize" in +@@ -146,93 +150,88 @@ case "$optimize" in ;; esac @@ -288,6 +288,17 @@ index c88f157..3f38ea0 100644 - ;; - esac -fi ++# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some ++# available functions, like memem, won't be used. See the discussion in ++# [perl #133760]. musl doesn't offer an easy way to identify it, but, ++# at least on alpine linux, the ldd --version output contains the ++# string 'musl.' ++case `ldd --version 2>&1` in ++ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;; ++ *) ;; ++esac + +-rm -f try.c a.out +# libquadmath is sometimes installed as gcc internal library, +# so contrary to our usual policy of *not* looking at gcc internal +# directories we now *do* look at them, in case they contain @@ -305,7 +316,7 @@ index c88f157..3f38ea0 100644 + ;; +esac --rm -f try.c a.out +-if /bin/sh -c exit; then +case "$libc" in +'') +# If you have glibc, then report the version for ./myconfig bug reporting. @@ -331,13 +342,12 @@ index c88f157..3f38ea0 100644 + done + ;; +esac - --if /bin/sh -c exit; then ++ +if ${sh:-/bin/sh} -c exit; then echo '' echo 'You appear to have a working bash. Good.' else -@@ -299,7 +288,7 @@ fi +@@ -299,7 +298,7 @@ fi #'osfmach3ppc') ccdlflags='-Wl,-E' ;; #esac @@ -346,7 +356,7 @@ index c88f157..3f38ea0 100644 sparc*) case "$cccdlflags" in *-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;; -@@ -314,30 +303,62 @@ esac +@@ -314,30 +313,62 @@ esac # version of -lgdbm which is a bad idea. So if we have 'nm' # make sure it can read the file # NI-S 2003/08/07 @@ -426,7 +436,7 @@ index c88f157..3f38ea0 100644 if echo $libswanted | grep -v pthread >/dev/null then set `echo X "$libswanted "| sed -e 's/ c / pthread c /'` -@@ -384,16 +405,6 @@ $define|true|[yY]*) +@@ -384,16 +415,6 @@ $define|true|[yY]*) ;; esac @@ -443,7 +453,7 @@ index c88f157..3f38ea0 100644 # If using g++, the Configure scan for dlopen() and (especially) # dlerror() might fail, easier just to forcibly hint them in. case "$cc" in -@@ -417,7 +428,7 @@ then +@@ -417,7 +438,7 @@ then DBLIB="$DBDIR/libdb.so" if [ -f $DBLIB ] then diff --git a/5.010.001-slim,threaded/DevelPatchPerl.patch b/5.010.001-slim,threaded/DevelPatchPerl.patch index f83adf0..f771124 100644 --- a/5.010.001-slim,threaded/DevelPatchPerl.patch +++ b/5.010.001-slim,threaded/DevelPatchPerl.patch @@ -92,7 +92,7 @@ index f8ca492..204bba0 100644 + $self->{LIBS}->[0] .= ' -lgdbm_compat' if -e $_.'/libgdbm_compat.so'; } diff --git a/hints/linux.sh b/hints/linux.sh -index c88f157..3f38ea0 100644 +index c88f157..a985a8e 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -13,11 +13,14 @@ @@ -176,7 +176,7 @@ index c88f157..3f38ea0 100644 ppc*) # on ppc, it seems that gcc (at least gcc 3.3.2) isn't happy # with -O2 ; so downgrade to -O1. -@@ -146,93 +150,78 @@ case "$optimize" in +@@ -146,93 +150,88 @@ case "$optimize" in ;; esac @@ -288,6 +288,17 @@ index c88f157..3f38ea0 100644 - ;; - esac -fi ++# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some ++# available functions, like memem, won't be used. See the discussion in ++# [perl #133760]. musl doesn't offer an easy way to identify it, but, ++# at least on alpine linux, the ldd --version output contains the ++# string 'musl.' ++case `ldd --version 2>&1` in ++ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;; ++ *) ;; ++esac + +-rm -f try.c a.out +# libquadmath is sometimes installed as gcc internal library, +# so contrary to our usual policy of *not* looking at gcc internal +# directories we now *do* look at them, in case they contain @@ -305,7 +316,7 @@ index c88f157..3f38ea0 100644 + ;; +esac --rm -f try.c a.out +-if /bin/sh -c exit; then +case "$libc" in +'') +# If you have glibc, then report the version for ./myconfig bug reporting. @@ -331,13 +342,12 @@ index c88f157..3f38ea0 100644 + done + ;; +esac - --if /bin/sh -c exit; then ++ +if ${sh:-/bin/sh} -c exit; then echo '' echo 'You appear to have a working bash. Good.' else -@@ -299,7 +288,7 @@ fi +@@ -299,7 +298,7 @@ fi #'osfmach3ppc') ccdlflags='-Wl,-E' ;; #esac @@ -346,7 +356,7 @@ index c88f157..3f38ea0 100644 sparc*) case "$cccdlflags" in *-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;; -@@ -314,30 +303,62 @@ esac +@@ -314,30 +313,62 @@ esac # version of -lgdbm which is a bad idea. So if we have 'nm' # make sure it can read the file # NI-S 2003/08/07 @@ -426,7 +436,7 @@ index c88f157..3f38ea0 100644 if echo $libswanted | grep -v pthread >/dev/null then set `echo X "$libswanted "| sed -e 's/ c / pthread c /'` -@@ -384,16 +405,6 @@ $define|true|[yY]*) +@@ -384,16 +415,6 @@ $define|true|[yY]*) ;; esac @@ -443,7 +453,7 @@ index c88f157..3f38ea0 100644 # If using g++, the Configure scan for dlopen() and (especially) # dlerror() might fail, easier just to forcibly hint them in. case "$cc" in -@@ -417,7 +428,7 @@ then +@@ -417,7 +438,7 @@ then DBLIB="$DBDIR/libdb.so" if [ -f $DBLIB ] then diff --git a/5.010.001-slim/DevelPatchPerl.patch b/5.010.001-slim/DevelPatchPerl.patch index f83adf0..f771124 100644 --- a/5.010.001-slim/DevelPatchPerl.patch +++ b/5.010.001-slim/DevelPatchPerl.patch @@ -92,7 +92,7 @@ index f8ca492..204bba0 100644 + $self->{LIBS}->[0] .= ' -lgdbm_compat' if -e $_.'/libgdbm_compat.so'; } diff --git a/hints/linux.sh b/hints/linux.sh -index c88f157..3f38ea0 100644 +index c88f157..a985a8e 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -13,11 +13,14 @@ @@ -176,7 +176,7 @@ index c88f157..3f38ea0 100644 ppc*) # on ppc, it seems that gcc (at least gcc 3.3.2) isn't happy # with -O2 ; so downgrade to -O1. -@@ -146,93 +150,78 @@ case "$optimize" in +@@ -146,93 +150,88 @@ case "$optimize" in ;; esac @@ -288,6 +288,17 @@ index c88f157..3f38ea0 100644 - ;; - esac -fi ++# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some ++# available functions, like memem, won't be used. See the discussion in ++# [perl #133760]. musl doesn't offer an easy way to identify it, but, ++# at least on alpine linux, the ldd --version output contains the ++# string 'musl.' ++case `ldd --version 2>&1` in ++ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;; ++ *) ;; ++esac + +-rm -f try.c a.out +# libquadmath is sometimes installed as gcc internal library, +# so contrary to our usual policy of *not* looking at gcc internal +# directories we now *do* look at them, in case they contain @@ -305,7 +316,7 @@ index c88f157..3f38ea0 100644 + ;; +esac --rm -f try.c a.out +-if /bin/sh -c exit; then +case "$libc" in +'') +# If you have glibc, then report the version for ./myconfig bug reporting. @@ -331,13 +342,12 @@ index c88f157..3f38ea0 100644 + done + ;; +esac - --if /bin/sh -c exit; then ++ +if ${sh:-/bin/sh} -c exit; then echo '' echo 'You appear to have a working bash. Good.' else -@@ -299,7 +288,7 @@ fi +@@ -299,7 +298,7 @@ fi #'osfmach3ppc') ccdlflags='-Wl,-E' ;; #esac @@ -346,7 +356,7 @@ index c88f157..3f38ea0 100644 sparc*) case "$cccdlflags" in *-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;; -@@ -314,30 +303,62 @@ esac +@@ -314,30 +313,62 @@ esac # version of -lgdbm which is a bad idea. So if we have 'nm' # make sure it can read the file # NI-S 2003/08/07 @@ -426,7 +436,7 @@ index c88f157..3f38ea0 100644 if echo $libswanted | grep -v pthread >/dev/null then set `echo X "$libswanted "| sed -e 's/ c / pthread c /'` -@@ -384,16 +405,6 @@ $define|true|[yY]*) +@@ -384,16 +415,6 @@ $define|true|[yY]*) ;; esac @@ -443,7 +453,7 @@ index c88f157..3f38ea0 100644 # If using g++, the Configure scan for dlopen() and (especially) # dlerror() might fail, easier just to forcibly hint them in. case "$cc" in -@@ -417,7 +428,7 @@ then +@@ -417,7 +438,7 @@ then DBLIB="$DBDIR/libdb.so" if [ -f $DBLIB ] then diff --git a/5.012.005-main,threaded/DevelPatchPerl.patch b/5.012.005-main,threaded/DevelPatchPerl.patch index d2a8373..c2bb141 100644 --- a/5.012.005-main,threaded/DevelPatchPerl.patch +++ b/5.012.005-main,threaded/DevelPatchPerl.patch @@ -117,7 +117,7 @@ index f8ca492..204bba0 100644 + $self->{LIBS}->[0] .= ' -lgdbm_compat' if -e $_.'/libgdbm_compat.so'; } diff --git a/hints/linux.sh b/hints/linux.sh -index 0519eca..3f38ea0 100644 +index 0519eca..a985a8e 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -13,11 +13,14 @@ @@ -215,7 +215,7 @@ index 0519eca..3f38ea0 100644 cut -f2- -d= | tr ':' $trnl | grep -v 'gcc' | sed -e 's:/$::'` set X $plibpth # Collapse all entries on one line shift -@@ -171,93 +178,50 @@ case "$plibpth" in +@@ -171,93 +178,60 @@ case "$plibpth" in ;; esac @@ -254,7 +254,16 @@ index 0519eca..3f38ea0 100644 -should probably upgrade. If you are forced to use 3.2.4, you should -uncomment a couple of lines in hints/linux.sh and restart Configure so -that shared libraries will be disallowed. -- ++# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some ++# available functions, like memem, won't be used. See the discussion in ++# [perl #133760]. musl doesn't offer an easy way to identify it, but, ++# at least on alpine linux, the ldd --version output contains the ++# string 'musl.' ++case `ldd --version 2>&1` in ++ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;; ++ *) ;; ++esac + -EOM - lddlflags="-r $lddlflags" - # These empty values are so that Configure doesn't put in the @@ -351,7 +360,7 @@ index 0519eca..3f38ea0 100644 echo '' echo 'You appear to have a working bash. Good.' else -@@ -324,7 +288,7 @@ fi +@@ -324,7 +298,7 @@ fi #'osfmach3ppc') ccdlflags='-Wl,-E' ;; #esac @@ -360,7 +369,7 @@ index 0519eca..3f38ea0 100644 sparc*) case "$cccdlflags" in *-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;; -@@ -339,30 +303,62 @@ esac +@@ -339,30 +313,62 @@ esac # version of -lgdbm which is a bad idea. So if we have 'nm' # make sure it can read the file # NI-S 2003/08/07 @@ -440,7 +449,7 @@ index 0519eca..3f38ea0 100644 if echo $libswanted | grep -v pthread >/dev/null then set `echo X "$libswanted "| sed -e 's/ c / pthread c /'` -@@ -409,16 +405,6 @@ $define|true|[yY]*) +@@ -409,16 +415,6 @@ $define|true|[yY]*) ;; esac @@ -457,7 +466,7 @@ index 0519eca..3f38ea0 100644 # If using g++, the Configure scan for dlopen() and (especially) # dlerror() might fail, easier just to forcibly hint them in. case "$cc" in -@@ -442,7 +428,7 @@ then +@@ -442,7 +438,7 @@ then DBLIB="$DBDIR/libdb.so" if [ -f $DBLIB ] then diff --git a/5.012.005-main/DevelPatchPerl.patch b/5.012.005-main/DevelPatchPerl.patch index d2a8373..c2bb141 100644 --- a/5.012.005-main/DevelPatchPerl.patch +++ b/5.012.005-main/DevelPatchPerl.patch @@ -117,7 +117,7 @@ index f8ca492..204bba0 100644 + $self->{LIBS}->[0] .= ' -lgdbm_compat' if -e $_.'/libgdbm_compat.so'; } diff --git a/hints/linux.sh b/hints/linux.sh -index 0519eca..3f38ea0 100644 +index 0519eca..a985a8e 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -13,11 +13,14 @@ @@ -215,7 +215,7 @@ index 0519eca..3f38ea0 100644 cut -f2- -d= | tr ':' $trnl | grep -v 'gcc' | sed -e 's:/$::'` set X $plibpth # Collapse all entries on one line shift -@@ -171,93 +178,50 @@ case "$plibpth" in +@@ -171,93 +178,60 @@ case "$plibpth" in ;; esac @@ -254,7 +254,16 @@ index 0519eca..3f38ea0 100644 -should probably upgrade. If you are forced to use 3.2.4, you should -uncomment a couple of lines in hints/linux.sh and restart Configure so -that shared libraries will be disallowed. -- ++# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some ++# available functions, like memem, won't be used. See the discussion in ++# [perl #133760]. musl doesn't offer an easy way to identify it, but, ++# at least on alpine linux, the ldd --version output contains the ++# string 'musl.' ++case `ldd --version 2>&1` in ++ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;; ++ *) ;; ++esac + -EOM - lddlflags="-r $lddlflags" - # These empty values are so that Configure doesn't put in the @@ -351,7 +360,7 @@ index 0519eca..3f38ea0 100644 echo '' echo 'You appear to have a working bash. Good.' else -@@ -324,7 +288,7 @@ fi +@@ -324,7 +298,7 @@ fi #'osfmach3ppc') ccdlflags='-Wl,-E' ;; #esac @@ -360,7 +369,7 @@ index 0519eca..3f38ea0 100644 sparc*) case "$cccdlflags" in *-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;; -@@ -339,30 +303,62 @@ esac +@@ -339,30 +313,62 @@ esac # version of -lgdbm which is a bad idea. So if we have 'nm' # make sure it can read the file # NI-S 2003/08/07 @@ -440,7 +449,7 @@ index 0519eca..3f38ea0 100644 if echo $libswanted | grep -v pthread >/dev/null then set `echo X "$libswanted "| sed -e 's/ c / pthread c /'` -@@ -409,16 +405,6 @@ $define|true|[yY]*) +@@ -409,16 +415,6 @@ $define|true|[yY]*) ;; esac @@ -457,7 +466,7 @@ index 0519eca..3f38ea0 100644 # If using g++, the Configure scan for dlopen() and (especially) # dlerror() might fail, easier just to forcibly hint them in. case "$cc" in -@@ -442,7 +428,7 @@ then +@@ -442,7 +438,7 @@ then DBLIB="$DBDIR/libdb.so" if [ -f $DBLIB ] then diff --git a/5.012.005-slim,threaded/DevelPatchPerl.patch b/5.012.005-slim,threaded/DevelPatchPerl.patch index d2a8373..c2bb141 100644 --- a/5.012.005-slim,threaded/DevelPatchPerl.patch +++ b/5.012.005-slim,threaded/DevelPatchPerl.patch @@ -117,7 +117,7 @@ index f8ca492..204bba0 100644 + $self->{LIBS}->[0] .= ' -lgdbm_compat' if -e $_.'/libgdbm_compat.so'; } diff --git a/hints/linux.sh b/hints/linux.sh -index 0519eca..3f38ea0 100644 +index 0519eca..a985a8e 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -13,11 +13,14 @@ @@ -215,7 +215,7 @@ index 0519eca..3f38ea0 100644 cut -f2- -d= | tr ':' $trnl | grep -v 'gcc' | sed -e 's:/$::'` set X $plibpth # Collapse all entries on one line shift -@@ -171,93 +178,50 @@ case "$plibpth" in +@@ -171,93 +178,60 @@ case "$plibpth" in ;; esac @@ -254,7 +254,16 @@ index 0519eca..3f38ea0 100644 -should probably upgrade. If you are forced to use 3.2.4, you should -uncomment a couple of lines in hints/linux.sh and restart Configure so -that shared libraries will be disallowed. -- ++# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some ++# available functions, like memem, won't be used. See the discussion in ++# [perl #133760]. musl doesn't offer an easy way to identify it, but, ++# at least on alpine linux, the ldd --version output contains the ++# string 'musl.' ++case `ldd --version 2>&1` in ++ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;; ++ *) ;; ++esac + -EOM - lddlflags="-r $lddlflags" - # These empty values are so that Configure doesn't put in the @@ -351,7 +360,7 @@ index 0519eca..3f38ea0 100644 echo '' echo 'You appear to have a working bash. Good.' else -@@ -324,7 +288,7 @@ fi +@@ -324,7 +298,7 @@ fi #'osfmach3ppc') ccdlflags='-Wl,-E' ;; #esac @@ -360,7 +369,7 @@ index 0519eca..3f38ea0 100644 sparc*) case "$cccdlflags" in *-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;; -@@ -339,30 +303,62 @@ esac +@@ -339,30 +313,62 @@ esac # version of -lgdbm which is a bad idea. So if we have 'nm' # make sure it can read the file # NI-S 2003/08/07 @@ -440,7 +449,7 @@ index 0519eca..3f38ea0 100644 if echo $libswanted | grep -v pthread >/dev/null then set `echo X "$libswanted "| sed -e 's/ c / pthread c /'` -@@ -409,16 +405,6 @@ $define|true|[yY]*) +@@ -409,16 +415,6 @@ $define|true|[yY]*) ;; esac @@ -457,7 +466,7 @@ index 0519eca..3f38ea0 100644 # If using g++, the Configure scan for dlopen() and (especially) # dlerror() might fail, easier just to forcibly hint them in. case "$cc" in -@@ -442,7 +428,7 @@ then +@@ -442,7 +438,7 @@ then DBLIB="$DBDIR/libdb.so" if [ -f $DBLIB ] then diff --git a/5.012.005-slim/DevelPatchPerl.patch b/5.012.005-slim/DevelPatchPerl.patch index d2a8373..c2bb141 100644 --- a/5.012.005-slim/DevelPatchPerl.patch +++ b/5.012.005-slim/DevelPatchPerl.patch @@ -117,7 +117,7 @@ index f8ca492..204bba0 100644 + $self->{LIBS}->[0] .= ' -lgdbm_compat' if -e $_.'/libgdbm_compat.so'; } diff --git a/hints/linux.sh b/hints/linux.sh -index 0519eca..3f38ea0 100644 +index 0519eca..a985a8e 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -13,11 +13,14 @@ @@ -215,7 +215,7 @@ index 0519eca..3f38ea0 100644 cut -f2- -d= | tr ':' $trnl | grep -v 'gcc' | sed -e 's:/$::'` set X $plibpth # Collapse all entries on one line shift -@@ -171,93 +178,50 @@ case "$plibpth" in +@@ -171,93 +178,60 @@ case "$plibpth" in ;; esac @@ -254,7 +254,16 @@ index 0519eca..3f38ea0 100644 -should probably upgrade. If you are forced to use 3.2.4, you should -uncomment a couple of lines in hints/linux.sh and restart Configure so -that shared libraries will be disallowed. -- ++# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some ++# available functions, like memem, won't be used. See the discussion in ++# [perl #133760]. musl doesn't offer an easy way to identify it, but, ++# at least on alpine linux, the ldd --version output contains the ++# string 'musl.' ++case `ldd --version 2>&1` in ++ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;; ++ *) ;; ++esac + -EOM - lddlflags="-r $lddlflags" - # These empty values are so that Configure doesn't put in the @@ -351,7 +360,7 @@ index 0519eca..3f38ea0 100644 echo '' echo 'You appear to have a working bash. Good.' else -@@ -324,7 +288,7 @@ fi +@@ -324,7 +298,7 @@ fi #'osfmach3ppc') ccdlflags='-Wl,-E' ;; #esac @@ -360,7 +369,7 @@ index 0519eca..3f38ea0 100644 sparc*) case "$cccdlflags" in *-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;; -@@ -339,30 +303,62 @@ esac +@@ -339,30 +313,62 @@ esac # version of -lgdbm which is a bad idea. So if we have 'nm' # make sure it can read the file # NI-S 2003/08/07 @@ -440,7 +449,7 @@ index 0519eca..3f38ea0 100644 if echo $libswanted | grep -v pthread >/dev/null then set `echo X "$libswanted "| sed -e 's/ c / pthread c /'` -@@ -409,16 +405,6 @@ $define|true|[yY]*) +@@ -409,16 +415,6 @@ $define|true|[yY]*) ;; esac @@ -457,7 +466,7 @@ index 0519eca..3f38ea0 100644 # If using g++, the Configure scan for dlopen() and (especially) # dlerror() might fail, easier just to forcibly hint them in. case "$cc" in -@@ -442,7 +428,7 @@ then +@@ -442,7 +438,7 @@ then DBLIB="$DBDIR/libdb.so" if [ -f $DBLIB ] then diff --git a/5.014.004-main,threaded/DevelPatchPerl.patch b/5.014.004-main,threaded/DevelPatchPerl.patch index 6b87690..408ee15 100644 --- a/5.014.004-main,threaded/DevelPatchPerl.patch +++ b/5.014.004-main,threaded/DevelPatchPerl.patch @@ -40,7 +40,7 @@ index 56bc815..cf688be 100644 or die "Cannot exec $cpp"; } diff --git a/hints/linux.sh b/hints/linux.sh -index d0ac9fa..3f38ea0 100644 +index d0ac9fa..a985a8e 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -39,7 +39,7 @@ i_libutil='undef' @@ -111,7 +111,7 @@ index d0ac9fa..3f38ea0 100644 cut -f2- -d= | tr ':' $trnl | grep -v 'gcc' | sed -e 's:/$::'` set X $plibpth # Collapse all entries on one line shift -@@ -182,93 +178,50 @@ case "$plibpth" in +@@ -182,93 +178,60 @@ case "$plibpth" in ;; esac @@ -150,7 +150,16 @@ index d0ac9fa..3f38ea0 100644 -should probably upgrade. If you are forced to use 3.2.4, you should -uncomment a couple of lines in hints/linux.sh and restart Configure so -that shared libraries will be disallowed. -- ++# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some ++# available functions, like memem, won't be used. See the discussion in ++# [perl #133760]. musl doesn't offer an easy way to identify it, but, ++# at least on alpine linux, the ldd --version output contains the ++# string 'musl.' ++case `ldd --version 2>&1` in ++ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;; ++ *) ;; ++esac + -EOM - lddlflags="-r $lddlflags" - # These empty values are so that Configure doesn't put in the @@ -247,7 +256,7 @@ index d0ac9fa..3f38ea0 100644 echo '' echo 'You appear to have a working bash. Good.' else -@@ -335,7 +288,7 @@ fi +@@ -335,7 +298,7 @@ fi #'osfmach3ppc') ccdlflags='-Wl,-E' ;; #esac @@ -256,7 +265,7 @@ index d0ac9fa..3f38ea0 100644 sparc*) case "$cccdlflags" in *-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;; -@@ -350,30 +303,62 @@ esac +@@ -350,30 +313,62 @@ esac # version of -lgdbm which is a bad idea. So if we have 'nm' # make sure it can read the file # NI-S 2003/08/07 @@ -336,7 +345,7 @@ index d0ac9fa..3f38ea0 100644 if echo $libswanted | grep -v pthread >/dev/null then set `echo X "$libswanted "| sed -e 's/ c / pthread c /'` -@@ -420,16 +405,6 @@ $define|true|[yY]*) +@@ -420,16 +415,6 @@ $define|true|[yY]*) ;; esac @@ -353,7 +362,7 @@ index d0ac9fa..3f38ea0 100644 # If using g++, the Configure scan for dlopen() and (especially) # dlerror() might fail, easier just to forcibly hint them in. case "$cc" in -@@ -453,7 +428,7 @@ then +@@ -453,7 +438,7 @@ then DBLIB="$DBDIR/libdb.so" if [ -f $DBLIB ] then diff --git a/5.014.004-main/DevelPatchPerl.patch b/5.014.004-main/DevelPatchPerl.patch index 6b87690..408ee15 100644 --- a/5.014.004-main/DevelPatchPerl.patch +++ b/5.014.004-main/DevelPatchPerl.patch @@ -40,7 +40,7 @@ index 56bc815..cf688be 100644 or die "Cannot exec $cpp"; } diff --git a/hints/linux.sh b/hints/linux.sh -index d0ac9fa..3f38ea0 100644 +index d0ac9fa..a985a8e 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -39,7 +39,7 @@ i_libutil='undef' @@ -111,7 +111,7 @@ index d0ac9fa..3f38ea0 100644 cut -f2- -d= | tr ':' $trnl | grep -v 'gcc' | sed -e 's:/$::'` set X $plibpth # Collapse all entries on one line shift -@@ -182,93 +178,50 @@ case "$plibpth" in +@@ -182,93 +178,60 @@ case "$plibpth" in ;; esac @@ -150,7 +150,16 @@ index d0ac9fa..3f38ea0 100644 -should probably upgrade. If you are forced to use 3.2.4, you should -uncomment a couple of lines in hints/linux.sh and restart Configure so -that shared libraries will be disallowed. -- ++# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some ++# available functions, like memem, won't be used. See the discussion in ++# [perl #133760]. musl doesn't offer an easy way to identify it, but, ++# at least on alpine linux, the ldd --version output contains the ++# string 'musl.' ++case `ldd --version 2>&1` in ++ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;; ++ *) ;; ++esac + -EOM - lddlflags="-r $lddlflags" - # These empty values are so that Configure doesn't put in the @@ -247,7 +256,7 @@ index d0ac9fa..3f38ea0 100644 echo '' echo 'You appear to have a working bash. Good.' else -@@ -335,7 +288,7 @@ fi +@@ -335,7 +298,7 @@ fi #'osfmach3ppc') ccdlflags='-Wl,-E' ;; #esac @@ -256,7 +265,7 @@ index d0ac9fa..3f38ea0 100644 sparc*) case "$cccdlflags" in *-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;; -@@ -350,30 +303,62 @@ esac +@@ -350,30 +313,62 @@ esac # version of -lgdbm which is a bad idea. So if we have 'nm' # make sure it can read the file # NI-S 2003/08/07 @@ -336,7 +345,7 @@ index d0ac9fa..3f38ea0 100644 if echo $libswanted | grep -v pthread >/dev/null then set `echo X "$libswanted "| sed -e 's/ c / pthread c /'` -@@ -420,16 +405,6 @@ $define|true|[yY]*) +@@ -420,16 +415,6 @@ $define|true|[yY]*) ;; esac @@ -353,7 +362,7 @@ index d0ac9fa..3f38ea0 100644 # If using g++, the Configure scan for dlopen() and (especially) # dlerror() might fail, easier just to forcibly hint them in. case "$cc" in -@@ -453,7 +428,7 @@ then +@@ -453,7 +438,7 @@ then DBLIB="$DBDIR/libdb.so" if [ -f $DBLIB ] then diff --git a/5.014.004-slim,threaded/DevelPatchPerl.patch b/5.014.004-slim,threaded/DevelPatchPerl.patch index 6b87690..408ee15 100644 --- a/5.014.004-slim,threaded/DevelPatchPerl.patch +++ b/5.014.004-slim,threaded/DevelPatchPerl.patch @@ -40,7 +40,7 @@ index 56bc815..cf688be 100644 or die "Cannot exec $cpp"; } diff --git a/hints/linux.sh b/hints/linux.sh -index d0ac9fa..3f38ea0 100644 +index d0ac9fa..a985a8e 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -39,7 +39,7 @@ i_libutil='undef' @@ -111,7 +111,7 @@ index d0ac9fa..3f38ea0 100644 cut -f2- -d= | tr ':' $trnl | grep -v 'gcc' | sed -e 's:/$::'` set X $plibpth # Collapse all entries on one line shift -@@ -182,93 +178,50 @@ case "$plibpth" in +@@ -182,93 +178,60 @@ case "$plibpth" in ;; esac @@ -150,7 +150,16 @@ index d0ac9fa..3f38ea0 100644 -should probably upgrade. If you are forced to use 3.2.4, you should -uncomment a couple of lines in hints/linux.sh and restart Configure so -that shared libraries will be disallowed. -- ++# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some ++# available functions, like memem, won't be used. See the discussion in ++# [perl #133760]. musl doesn't offer an easy way to identify it, but, ++# at least on alpine linux, the ldd --version output contains the ++# string 'musl.' ++case `ldd --version 2>&1` in ++ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;; ++ *) ;; ++esac + -EOM - lddlflags="-r $lddlflags" - # These empty values are so that Configure doesn't put in the @@ -247,7 +256,7 @@ index d0ac9fa..3f38ea0 100644 echo '' echo 'You appear to have a working bash. Good.' else -@@ -335,7 +288,7 @@ fi +@@ -335,7 +298,7 @@ fi #'osfmach3ppc') ccdlflags='-Wl,-E' ;; #esac @@ -256,7 +265,7 @@ index d0ac9fa..3f38ea0 100644 sparc*) case "$cccdlflags" in *-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;; -@@ -350,30 +303,62 @@ esac +@@ -350,30 +313,62 @@ esac # version of -lgdbm which is a bad idea. So if we have 'nm' # make sure it can read the file # NI-S 2003/08/07 @@ -336,7 +345,7 @@ index d0ac9fa..3f38ea0 100644 if echo $libswanted | grep -v pthread >/dev/null then set `echo X "$libswanted "| sed -e 's/ c / pthread c /'` -@@ -420,16 +405,6 @@ $define|true|[yY]*) +@@ -420,16 +415,6 @@ $define|true|[yY]*) ;; esac @@ -353,7 +362,7 @@ index d0ac9fa..3f38ea0 100644 # If using g++, the Configure scan for dlopen() and (especially) # dlerror() might fail, easier just to forcibly hint them in. case "$cc" in -@@ -453,7 +428,7 @@ then +@@ -453,7 +438,7 @@ then DBLIB="$DBDIR/libdb.so" if [ -f $DBLIB ] then diff --git a/5.014.004-slim/DevelPatchPerl.patch b/5.014.004-slim/DevelPatchPerl.patch index 6b87690..408ee15 100644 --- a/5.014.004-slim/DevelPatchPerl.patch +++ b/5.014.004-slim/DevelPatchPerl.patch @@ -40,7 +40,7 @@ index 56bc815..cf688be 100644 or die "Cannot exec $cpp"; } diff --git a/hints/linux.sh b/hints/linux.sh -index d0ac9fa..3f38ea0 100644 +index d0ac9fa..a985a8e 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -39,7 +39,7 @@ i_libutil='undef' @@ -111,7 +111,7 @@ index d0ac9fa..3f38ea0 100644 cut -f2- -d= | tr ':' $trnl | grep -v 'gcc' | sed -e 's:/$::'` set X $plibpth # Collapse all entries on one line shift -@@ -182,93 +178,50 @@ case "$plibpth" in +@@ -182,93 +178,60 @@ case "$plibpth" in ;; esac @@ -150,7 +150,16 @@ index d0ac9fa..3f38ea0 100644 -should probably upgrade. If you are forced to use 3.2.4, you should -uncomment a couple of lines in hints/linux.sh and restart Configure so -that shared libraries will be disallowed. -- ++# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some ++# available functions, like memem, won't be used. See the discussion in ++# [perl #133760]. musl doesn't offer an easy way to identify it, but, ++# at least on alpine linux, the ldd --version output contains the ++# string 'musl.' ++case `ldd --version 2>&1` in ++ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;; ++ *) ;; ++esac + -EOM - lddlflags="-r $lddlflags" - # These empty values are so that Configure doesn't put in the @@ -247,7 +256,7 @@ index d0ac9fa..3f38ea0 100644 echo '' echo 'You appear to have a working bash. Good.' else -@@ -335,7 +288,7 @@ fi +@@ -335,7 +298,7 @@ fi #'osfmach3ppc') ccdlflags='-Wl,-E' ;; #esac @@ -256,7 +265,7 @@ index d0ac9fa..3f38ea0 100644 sparc*) case "$cccdlflags" in *-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;; -@@ -350,30 +303,62 @@ esac +@@ -350,30 +313,62 @@ esac # version of -lgdbm which is a bad idea. So if we have 'nm' # make sure it can read the file # NI-S 2003/08/07 @@ -336,7 +345,7 @@ index d0ac9fa..3f38ea0 100644 if echo $libswanted | grep -v pthread >/dev/null then set `echo X "$libswanted "| sed -e 's/ c / pthread c /'` -@@ -420,16 +405,6 @@ $define|true|[yY]*) +@@ -420,16 +415,6 @@ $define|true|[yY]*) ;; esac @@ -353,7 +362,7 @@ index d0ac9fa..3f38ea0 100644 # If using g++, the Configure scan for dlopen() and (especially) # dlerror() might fail, easier just to forcibly hint them in. case "$cc" in -@@ -453,7 +428,7 @@ then +@@ -453,7 +438,7 @@ then DBLIB="$DBDIR/libdb.so" if [ -f $DBLIB ] then diff --git a/5.016.003-main,threaded/DevelPatchPerl.patch b/5.016.003-main,threaded/DevelPatchPerl.patch index 0c1c567..5292c05 100644 --- a/5.016.003-main,threaded/DevelPatchPerl.patch +++ b/5.016.003-main,threaded/DevelPatchPerl.patch @@ -40,7 +40,7 @@ index 439f254..a324604 100644 or die "Cannot exec $cpp"; } diff --git a/hints/linux.sh b/hints/linux.sh -index 688c68d..3f38ea0 100644 +index 688c68d..a985a8e 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -39,7 +39,7 @@ i_libutil='undef' @@ -111,7 +111,7 @@ index 688c68d..3f38ea0 100644 cut -f2- -d= | tr ':' $trnl | grep -v 'gcc' | sed -e 's:/$::'` set X $plibpth # Collapse all entries on one line shift -@@ -182,93 +178,50 @@ case "$plibpth" in +@@ -182,93 +178,60 @@ case "$plibpth" in ;; esac @@ -150,7 +150,16 @@ index 688c68d..3f38ea0 100644 -should probably upgrade. If you are forced to use 3.2.4, you should -uncomment a couple of lines in hints/linux.sh and restart Configure so -that shared libraries will be disallowed. -- ++# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some ++# available functions, like memem, won't be used. See the discussion in ++# [perl #133760]. musl doesn't offer an easy way to identify it, but, ++# at least on alpine linux, the ldd --version output contains the ++# string 'musl.' ++case `ldd --version 2>&1` in ++ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;; ++ *) ;; ++esac + -EOM - lddlflags="-r $lddlflags" - # These empty values are so that Configure doesn't put in the @@ -247,7 +256,7 @@ index 688c68d..3f38ea0 100644 echo '' echo 'You appear to have a working bash. Good.' else -@@ -335,7 +288,7 @@ fi +@@ -335,7 +298,7 @@ fi #'osfmach3ppc') ccdlflags='-Wl,-E' ;; #esac @@ -256,7 +265,7 @@ index 688c68d..3f38ea0 100644 sparc*) case "$cccdlflags" in *-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;; -@@ -350,17 +303,55 @@ esac +@@ -350,17 +313,55 @@ esac # version of -lgdbm which is a bad idea. So if we have 'nm' # make sure it can read the file # NI-S 2003/08/07 @@ -322,7 +331,7 @@ index 688c68d..3f38ea0 100644 # This script UU/usethreads.cbu will get 'called-back' by Configure # after it has prompted the user for whether to use threads. -@@ -414,16 +405,6 @@ $define|true|[yY]*) +@@ -414,16 +415,6 @@ $define|true|[yY]*) ;; esac @@ -339,7 +348,7 @@ index 688c68d..3f38ea0 100644 # If using g++, the Configure scan for dlopen() and (especially) # dlerror() might fail, easier just to forcibly hint them in. case "$cc" in -@@ -447,7 +428,7 @@ then +@@ -447,7 +438,7 @@ then DBLIB="$DBDIR/libdb.so" if [ -f $DBLIB ] then diff --git a/5.016.003-main/DevelPatchPerl.patch b/5.016.003-main/DevelPatchPerl.patch index 0c1c567..5292c05 100644 --- a/5.016.003-main/DevelPatchPerl.patch +++ b/5.016.003-main/DevelPatchPerl.patch @@ -40,7 +40,7 @@ index 439f254..a324604 100644 or die "Cannot exec $cpp"; } diff --git a/hints/linux.sh b/hints/linux.sh -index 688c68d..3f38ea0 100644 +index 688c68d..a985a8e 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -39,7 +39,7 @@ i_libutil='undef' @@ -111,7 +111,7 @@ index 688c68d..3f38ea0 100644 cut -f2- -d= | tr ':' $trnl | grep -v 'gcc' | sed -e 's:/$::'` set X $plibpth # Collapse all entries on one line shift -@@ -182,93 +178,50 @@ case "$plibpth" in +@@ -182,93 +178,60 @@ case "$plibpth" in ;; esac @@ -150,7 +150,16 @@ index 688c68d..3f38ea0 100644 -should probably upgrade. If you are forced to use 3.2.4, you should -uncomment a couple of lines in hints/linux.sh and restart Configure so -that shared libraries will be disallowed. -- ++# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some ++# available functions, like memem, won't be used. See the discussion in ++# [perl #133760]. musl doesn't offer an easy way to identify it, but, ++# at least on alpine linux, the ldd --version output contains the ++# string 'musl.' ++case `ldd --version 2>&1` in ++ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;; ++ *) ;; ++esac + -EOM - lddlflags="-r $lddlflags" - # These empty values are so that Configure doesn't put in the @@ -247,7 +256,7 @@ index 688c68d..3f38ea0 100644 echo '' echo 'You appear to have a working bash. Good.' else -@@ -335,7 +288,7 @@ fi +@@ -335,7 +298,7 @@ fi #'osfmach3ppc') ccdlflags='-Wl,-E' ;; #esac @@ -256,7 +265,7 @@ index 688c68d..3f38ea0 100644 sparc*) case "$cccdlflags" in *-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;; -@@ -350,17 +303,55 @@ esac +@@ -350,17 +313,55 @@ esac # version of -lgdbm which is a bad idea. So if we have 'nm' # make sure it can read the file # NI-S 2003/08/07 @@ -322,7 +331,7 @@ index 688c68d..3f38ea0 100644 # This script UU/usethreads.cbu will get 'called-back' by Configure # after it has prompted the user for whether to use threads. -@@ -414,16 +405,6 @@ $define|true|[yY]*) +@@ -414,16 +415,6 @@ $define|true|[yY]*) ;; esac @@ -339,7 +348,7 @@ index 688c68d..3f38ea0 100644 # If using g++, the Configure scan for dlopen() and (especially) # dlerror() might fail, easier just to forcibly hint them in. case "$cc" in -@@ -447,7 +428,7 @@ then +@@ -447,7 +438,7 @@ then DBLIB="$DBDIR/libdb.so" if [ -f $DBLIB ] then diff --git a/5.016.003-slim,threaded/DevelPatchPerl.patch b/5.016.003-slim,threaded/DevelPatchPerl.patch index 0c1c567..5292c05 100644 --- a/5.016.003-slim,threaded/DevelPatchPerl.patch +++ b/5.016.003-slim,threaded/DevelPatchPerl.patch @@ -40,7 +40,7 @@ index 439f254..a324604 100644 or die "Cannot exec $cpp"; } diff --git a/hints/linux.sh b/hints/linux.sh -index 688c68d..3f38ea0 100644 +index 688c68d..a985a8e 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -39,7 +39,7 @@ i_libutil='undef' @@ -111,7 +111,7 @@ index 688c68d..3f38ea0 100644 cut -f2- -d= | tr ':' $trnl | grep -v 'gcc' | sed -e 's:/$::'` set X $plibpth # Collapse all entries on one line shift -@@ -182,93 +178,50 @@ case "$plibpth" in +@@ -182,93 +178,60 @@ case "$plibpth" in ;; esac @@ -150,7 +150,16 @@ index 688c68d..3f38ea0 100644 -should probably upgrade. If you are forced to use 3.2.4, you should -uncomment a couple of lines in hints/linux.sh and restart Configure so -that shared libraries will be disallowed. -- ++# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some ++# available functions, like memem, won't be used. See the discussion in ++# [perl #133760]. musl doesn't offer an easy way to identify it, but, ++# at least on alpine linux, the ldd --version output contains the ++# string 'musl.' ++case `ldd --version 2>&1` in ++ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;; ++ *) ;; ++esac + -EOM - lddlflags="-r $lddlflags" - # These empty values are so that Configure doesn't put in the @@ -247,7 +256,7 @@ index 688c68d..3f38ea0 100644 echo '' echo 'You appear to have a working bash. Good.' else -@@ -335,7 +288,7 @@ fi +@@ -335,7 +298,7 @@ fi #'osfmach3ppc') ccdlflags='-Wl,-E' ;; #esac @@ -256,7 +265,7 @@ index 688c68d..3f38ea0 100644 sparc*) case "$cccdlflags" in *-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;; -@@ -350,17 +303,55 @@ esac +@@ -350,17 +313,55 @@ esac # version of -lgdbm which is a bad idea. So if we have 'nm' # make sure it can read the file # NI-S 2003/08/07 @@ -322,7 +331,7 @@ index 688c68d..3f38ea0 100644 # This script UU/usethreads.cbu will get 'called-back' by Configure # after it has prompted the user for whether to use threads. -@@ -414,16 +405,6 @@ $define|true|[yY]*) +@@ -414,16 +415,6 @@ $define|true|[yY]*) ;; esac @@ -339,7 +348,7 @@ index 688c68d..3f38ea0 100644 # If using g++, the Configure scan for dlopen() and (especially) # dlerror() might fail, easier just to forcibly hint them in. case "$cc" in -@@ -447,7 +428,7 @@ then +@@ -447,7 +438,7 @@ then DBLIB="$DBDIR/libdb.so" if [ -f $DBLIB ] then diff --git a/5.016.003-slim/DevelPatchPerl.patch b/5.016.003-slim/DevelPatchPerl.patch index 0c1c567..5292c05 100644 --- a/5.016.003-slim/DevelPatchPerl.patch +++ b/5.016.003-slim/DevelPatchPerl.patch @@ -40,7 +40,7 @@ index 439f254..a324604 100644 or die "Cannot exec $cpp"; } diff --git a/hints/linux.sh b/hints/linux.sh -index 688c68d..3f38ea0 100644 +index 688c68d..a985a8e 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -39,7 +39,7 @@ i_libutil='undef' @@ -111,7 +111,7 @@ index 688c68d..3f38ea0 100644 cut -f2- -d= | tr ':' $trnl | grep -v 'gcc' | sed -e 's:/$::'` set X $plibpth # Collapse all entries on one line shift -@@ -182,93 +178,50 @@ case "$plibpth" in +@@ -182,93 +178,60 @@ case "$plibpth" in ;; esac @@ -150,7 +150,16 @@ index 688c68d..3f38ea0 100644 -should probably upgrade. If you are forced to use 3.2.4, you should -uncomment a couple of lines in hints/linux.sh and restart Configure so -that shared libraries will be disallowed. -- ++# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some ++# available functions, like memem, won't be used. See the discussion in ++# [perl #133760]. musl doesn't offer an easy way to identify it, but, ++# at least on alpine linux, the ldd --version output contains the ++# string 'musl.' ++case `ldd --version 2>&1` in ++ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;; ++ *) ;; ++esac + -EOM - lddlflags="-r $lddlflags" - # These empty values are so that Configure doesn't put in the @@ -247,7 +256,7 @@ index 688c68d..3f38ea0 100644 echo '' echo 'You appear to have a working bash. Good.' else -@@ -335,7 +288,7 @@ fi +@@ -335,7 +298,7 @@ fi #'osfmach3ppc') ccdlflags='-Wl,-E' ;; #esac @@ -256,7 +265,7 @@ index 688c68d..3f38ea0 100644 sparc*) case "$cccdlflags" in *-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;; -@@ -350,17 +303,55 @@ esac +@@ -350,17 +313,55 @@ esac # version of -lgdbm which is a bad idea. So if we have 'nm' # make sure it can read the file # NI-S 2003/08/07 @@ -322,7 +331,7 @@ index 688c68d..3f38ea0 100644 # This script UU/usethreads.cbu will get 'called-back' by Configure # after it has prompted the user for whether to use threads. -@@ -414,16 +405,6 @@ $define|true|[yY]*) +@@ -414,16 +415,6 @@ $define|true|[yY]*) ;; esac @@ -339,7 +348,7 @@ index 688c68d..3f38ea0 100644 # If using g++, the Configure scan for dlopen() and (especially) # dlerror() might fail, easier just to forcibly hint them in. case "$cc" in -@@ -447,7 +428,7 @@ then +@@ -447,7 +438,7 @@ then DBLIB="$DBDIR/libdb.so" if [ -f $DBLIB ] then diff --git a/5.018.004-main,threaded/DevelPatchPerl.patch b/5.018.004-main,threaded/DevelPatchPerl.patch index 6381f99..a9fc3c4 100644 --- a/5.018.004-main,threaded/DevelPatchPerl.patch +++ b/5.018.004-main,threaded/DevelPatchPerl.patch @@ -40,7 +40,7 @@ index b707911..2588f0b 100644 or die "Cannot exec $cpp"; } diff --git a/hints/linux.sh b/hints/linux.sh -index a148248..3f38ea0 100644 +index a148248..a985a8e 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -39,7 +39,7 @@ i_libutil='undef' @@ -111,7 +111,7 @@ index a148248..3f38ea0 100644 cut -f2- -d= | tr ':' $trnl | grep -v 'gcc' | sed -e 's:/$::'` set X $plibpth # Collapse all entries on one line shift -@@ -182,93 +178,50 @@ case "$plibpth" in +@@ -182,93 +178,60 @@ case "$plibpth" in ;; esac @@ -150,7 +150,16 @@ index a148248..3f38ea0 100644 -should probably upgrade. If you are forced to use 3.2.4, you should -uncomment a couple of lines in hints/linux.sh and restart Configure so -that shared libraries will be disallowed. -- ++# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some ++# available functions, like memem, won't be used. See the discussion in ++# [perl #133760]. musl doesn't offer an easy way to identify it, but, ++# at least on alpine linux, the ldd --version output contains the ++# string 'musl.' ++case `ldd --version 2>&1` in ++ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;; ++ *) ;; ++esac + -EOM - lddlflags="-r $lddlflags" - # These empty values are so that Configure doesn't put in the @@ -247,7 +256,7 @@ index a148248..3f38ea0 100644 echo '' echo 'You appear to have a working bash. Good.' else -@@ -335,7 +288,7 @@ fi +@@ -335,7 +298,7 @@ fi #'osfmach3ppc') ccdlflags='-Wl,-E' ;; #esac @@ -256,7 +265,7 @@ index a148248..3f38ea0 100644 sparc*) case "$cccdlflags" in *-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;; -@@ -350,17 +303,55 @@ esac +@@ -350,17 +313,55 @@ esac # version of -lgdbm which is a bad idea. So if we have 'nm' # make sure it can read the file # NI-S 2003/08/07 @@ -322,7 +331,7 @@ index a148248..3f38ea0 100644 # This script UU/usethreads.cbu will get 'called-back' by Configure # after it has prompted the user for whether to use threads. -@@ -437,7 +428,7 @@ then +@@ -437,7 +438,7 @@ then DBLIB="$DBDIR/libdb.so" if [ -f $DBLIB ] then diff --git a/5.018.004-main/DevelPatchPerl.patch b/5.018.004-main/DevelPatchPerl.patch index 6381f99..a9fc3c4 100644 --- a/5.018.004-main/DevelPatchPerl.patch +++ b/5.018.004-main/DevelPatchPerl.patch @@ -40,7 +40,7 @@ index b707911..2588f0b 100644 or die "Cannot exec $cpp"; } diff --git a/hints/linux.sh b/hints/linux.sh -index a148248..3f38ea0 100644 +index a148248..a985a8e 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -39,7 +39,7 @@ i_libutil='undef' @@ -111,7 +111,7 @@ index a148248..3f38ea0 100644 cut -f2- -d= | tr ':' $trnl | grep -v 'gcc' | sed -e 's:/$::'` set X $plibpth # Collapse all entries on one line shift -@@ -182,93 +178,50 @@ case "$plibpth" in +@@ -182,93 +178,60 @@ case "$plibpth" in ;; esac @@ -150,7 +150,16 @@ index a148248..3f38ea0 100644 -should probably upgrade. If you are forced to use 3.2.4, you should -uncomment a couple of lines in hints/linux.sh and restart Configure so -that shared libraries will be disallowed. -- ++# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some ++# available functions, like memem, won't be used. See the discussion in ++# [perl #133760]. musl doesn't offer an easy way to identify it, but, ++# at least on alpine linux, the ldd --version output contains the ++# string 'musl.' ++case `ldd --version 2>&1` in ++ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;; ++ *) ;; ++esac + -EOM - lddlflags="-r $lddlflags" - # These empty values are so that Configure doesn't put in the @@ -247,7 +256,7 @@ index a148248..3f38ea0 100644 echo '' echo 'You appear to have a working bash. Good.' else -@@ -335,7 +288,7 @@ fi +@@ -335,7 +298,7 @@ fi #'osfmach3ppc') ccdlflags='-Wl,-E' ;; #esac @@ -256,7 +265,7 @@ index a148248..3f38ea0 100644 sparc*) case "$cccdlflags" in *-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;; -@@ -350,17 +303,55 @@ esac +@@ -350,17 +313,55 @@ esac # version of -lgdbm which is a bad idea. So if we have 'nm' # make sure it can read the file # NI-S 2003/08/07 @@ -322,7 +331,7 @@ index a148248..3f38ea0 100644 # This script UU/usethreads.cbu will get 'called-back' by Configure # after it has prompted the user for whether to use threads. -@@ -437,7 +428,7 @@ then +@@ -437,7 +438,7 @@ then DBLIB="$DBDIR/libdb.so" if [ -f $DBLIB ] then diff --git a/5.018.004-slim,threaded/DevelPatchPerl.patch b/5.018.004-slim,threaded/DevelPatchPerl.patch index 6381f99..a9fc3c4 100644 --- a/5.018.004-slim,threaded/DevelPatchPerl.patch +++ b/5.018.004-slim,threaded/DevelPatchPerl.patch @@ -40,7 +40,7 @@ index b707911..2588f0b 100644 or die "Cannot exec $cpp"; } diff --git a/hints/linux.sh b/hints/linux.sh -index a148248..3f38ea0 100644 +index a148248..a985a8e 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -39,7 +39,7 @@ i_libutil='undef' @@ -111,7 +111,7 @@ index a148248..3f38ea0 100644 cut -f2- -d= | tr ':' $trnl | grep -v 'gcc' | sed -e 's:/$::'` set X $plibpth # Collapse all entries on one line shift -@@ -182,93 +178,50 @@ case "$plibpth" in +@@ -182,93 +178,60 @@ case "$plibpth" in ;; esac @@ -150,7 +150,16 @@ index a148248..3f38ea0 100644 -should probably upgrade. If you are forced to use 3.2.4, you should -uncomment a couple of lines in hints/linux.sh and restart Configure so -that shared libraries will be disallowed. -- ++# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some ++# available functions, like memem, won't be used. See the discussion in ++# [perl #133760]. musl doesn't offer an easy way to identify it, but, ++# at least on alpine linux, the ldd --version output contains the ++# string 'musl.' ++case `ldd --version 2>&1` in ++ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;; ++ *) ;; ++esac + -EOM - lddlflags="-r $lddlflags" - # These empty values are so that Configure doesn't put in the @@ -247,7 +256,7 @@ index a148248..3f38ea0 100644 echo '' echo 'You appear to have a working bash. Good.' else -@@ -335,7 +288,7 @@ fi +@@ -335,7 +298,7 @@ fi #'osfmach3ppc') ccdlflags='-Wl,-E' ;; #esac @@ -256,7 +265,7 @@ index a148248..3f38ea0 100644 sparc*) case "$cccdlflags" in *-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;; -@@ -350,17 +303,55 @@ esac +@@ -350,17 +313,55 @@ esac # version of -lgdbm which is a bad idea. So if we have 'nm' # make sure it can read the file # NI-S 2003/08/07 @@ -322,7 +331,7 @@ index a148248..3f38ea0 100644 # This script UU/usethreads.cbu will get 'called-back' by Configure # after it has prompted the user for whether to use threads. -@@ -437,7 +428,7 @@ then +@@ -437,7 +438,7 @@ then DBLIB="$DBDIR/libdb.so" if [ -f $DBLIB ] then diff --git a/5.018.004-slim/DevelPatchPerl.patch b/5.018.004-slim/DevelPatchPerl.patch index 6381f99..a9fc3c4 100644 --- a/5.018.004-slim/DevelPatchPerl.patch +++ b/5.018.004-slim/DevelPatchPerl.patch @@ -40,7 +40,7 @@ index b707911..2588f0b 100644 or die "Cannot exec $cpp"; } diff --git a/hints/linux.sh b/hints/linux.sh -index a148248..3f38ea0 100644 +index a148248..a985a8e 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -39,7 +39,7 @@ i_libutil='undef' @@ -111,7 +111,7 @@ index a148248..3f38ea0 100644 cut -f2- -d= | tr ':' $trnl | grep -v 'gcc' | sed -e 's:/$::'` set X $plibpth # Collapse all entries on one line shift -@@ -182,93 +178,50 @@ case "$plibpth" in +@@ -182,93 +178,60 @@ case "$plibpth" in ;; esac @@ -150,7 +150,16 @@ index a148248..3f38ea0 100644 -should probably upgrade. If you are forced to use 3.2.4, you should -uncomment a couple of lines in hints/linux.sh and restart Configure so -that shared libraries will be disallowed. -- ++# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some ++# available functions, like memem, won't be used. See the discussion in ++# [perl #133760]. musl doesn't offer an easy way to identify it, but, ++# at least on alpine linux, the ldd --version output contains the ++# string 'musl.' ++case `ldd --version 2>&1` in ++ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;; ++ *) ;; ++esac + -EOM - lddlflags="-r $lddlflags" - # These empty values are so that Configure doesn't put in the @@ -247,7 +256,7 @@ index a148248..3f38ea0 100644 echo '' echo 'You appear to have a working bash. Good.' else -@@ -335,7 +288,7 @@ fi +@@ -335,7 +298,7 @@ fi #'osfmach3ppc') ccdlflags='-Wl,-E' ;; #esac @@ -256,7 +265,7 @@ index a148248..3f38ea0 100644 sparc*) case "$cccdlflags" in *-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;; -@@ -350,17 +303,55 @@ esac +@@ -350,17 +313,55 @@ esac # version of -lgdbm which is a bad idea. So if we have 'nm' # make sure it can read the file # NI-S 2003/08/07 @@ -322,7 +331,7 @@ index a148248..3f38ea0 100644 # This script UU/usethreads.cbu will get 'called-back' by Configure # after it has prompted the user for whether to use threads. -@@ -437,7 +428,7 @@ then +@@ -437,7 +438,7 @@ then DBLIB="$DBDIR/libdb.so" if [ -f $DBLIB ] then diff --git a/5.020.003-main,threaded/DevelPatchPerl.patch b/5.020.003-main,threaded/DevelPatchPerl.patch index 363cf79..1601391 100644 --- a/5.020.003-main,threaded/DevelPatchPerl.patch +++ b/5.020.003-main,threaded/DevelPatchPerl.patch @@ -1,11 +1,21 @@ diff --git a/hints/linux.sh b/hints/linux.sh -index 956adfc..3f38ea0 100644 +index 956adfc..a985a8e 100644 --- a/hints/linux.sh +++ b/hints/linux.sh -@@ -178,6 +178,23 @@ case "$plibpth" in +@@ -178,6 +178,33 @@ case "$plibpth" in ;; esac ++# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some ++# available functions, like memem, won't be used. See the discussion in ++# [perl #133760]. musl doesn't offer an easy way to identify it, but, ++# at least on alpine linux, the ldd --version output contains the ++# string 'musl.' ++case `ldd --version 2>&1` in ++ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;; ++ *) ;; ++esac ++ +# libquadmath is sometimes installed as gcc internal library, +# so contrary to our usual policy of *not* looking at gcc internal +# directories we now *do* look at them, in case they contain @@ -26,7 +36,7 @@ index 956adfc..3f38ea0 100644 case "$libc" in '') # If you have glibc, then report the version for ./myconfig bug reporting. -@@ -204,92 +221,6 @@ case "$libc" in +@@ -204,92 +231,6 @@ case "$libc" in ;; esac @@ -119,7 +129,7 @@ index 956adfc..3f38ea0 100644 if ${sh:-/bin/sh} -c exit; then echo '' echo 'You appear to have a working bash. Good.' -@@ -497,7 +428,7 @@ then +@@ -497,7 +438,7 @@ then DBLIB="$DBDIR/libdb.so" if [ -f $DBLIB ] then diff --git a/5.020.003-main/DevelPatchPerl.patch b/5.020.003-main/DevelPatchPerl.patch index 363cf79..1601391 100644 --- a/5.020.003-main/DevelPatchPerl.patch +++ b/5.020.003-main/DevelPatchPerl.patch @@ -1,11 +1,21 @@ diff --git a/hints/linux.sh b/hints/linux.sh -index 956adfc..3f38ea0 100644 +index 956adfc..a985a8e 100644 --- a/hints/linux.sh +++ b/hints/linux.sh -@@ -178,6 +178,23 @@ case "$plibpth" in +@@ -178,6 +178,33 @@ case "$plibpth" in ;; esac ++# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some ++# available functions, like memem, won't be used. See the discussion in ++# [perl #133760]. musl doesn't offer an easy way to identify it, but, ++# at least on alpine linux, the ldd --version output contains the ++# string 'musl.' ++case `ldd --version 2>&1` in ++ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;; ++ *) ;; ++esac ++ +# libquadmath is sometimes installed as gcc internal library, +# so contrary to our usual policy of *not* looking at gcc internal +# directories we now *do* look at them, in case they contain @@ -26,7 +36,7 @@ index 956adfc..3f38ea0 100644 case "$libc" in '') # If you have glibc, then report the version for ./myconfig bug reporting. -@@ -204,92 +221,6 @@ case "$libc" in +@@ -204,92 +231,6 @@ case "$libc" in ;; esac @@ -119,7 +129,7 @@ index 956adfc..3f38ea0 100644 if ${sh:-/bin/sh} -c exit; then echo '' echo 'You appear to have a working bash. Good.' -@@ -497,7 +428,7 @@ then +@@ -497,7 +438,7 @@ then DBLIB="$DBDIR/libdb.so" if [ -f $DBLIB ] then diff --git a/5.020.003-slim,threaded/DevelPatchPerl.patch b/5.020.003-slim,threaded/DevelPatchPerl.patch index 363cf79..1601391 100644 --- a/5.020.003-slim,threaded/DevelPatchPerl.patch +++ b/5.020.003-slim,threaded/DevelPatchPerl.patch @@ -1,11 +1,21 @@ diff --git a/hints/linux.sh b/hints/linux.sh -index 956adfc..3f38ea0 100644 +index 956adfc..a985a8e 100644 --- a/hints/linux.sh +++ b/hints/linux.sh -@@ -178,6 +178,23 @@ case "$plibpth" in +@@ -178,6 +178,33 @@ case "$plibpth" in ;; esac ++# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some ++# available functions, like memem, won't be used. See the discussion in ++# [perl #133760]. musl doesn't offer an easy way to identify it, but, ++# at least on alpine linux, the ldd --version output contains the ++# string 'musl.' ++case `ldd --version 2>&1` in ++ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;; ++ *) ;; ++esac ++ +# libquadmath is sometimes installed as gcc internal library, +# so contrary to our usual policy of *not* looking at gcc internal +# directories we now *do* look at them, in case they contain @@ -26,7 +36,7 @@ index 956adfc..3f38ea0 100644 case "$libc" in '') # If you have glibc, then report the version for ./myconfig bug reporting. -@@ -204,92 +221,6 @@ case "$libc" in +@@ -204,92 +231,6 @@ case "$libc" in ;; esac @@ -119,7 +129,7 @@ index 956adfc..3f38ea0 100644 if ${sh:-/bin/sh} -c exit; then echo '' echo 'You appear to have a working bash. Good.' -@@ -497,7 +428,7 @@ then +@@ -497,7 +438,7 @@ then DBLIB="$DBDIR/libdb.so" if [ -f $DBLIB ] then diff --git a/5.020.003-slim/DevelPatchPerl.patch b/5.020.003-slim/DevelPatchPerl.patch index 363cf79..1601391 100644 --- a/5.020.003-slim/DevelPatchPerl.patch +++ b/5.020.003-slim/DevelPatchPerl.patch @@ -1,11 +1,21 @@ diff --git a/hints/linux.sh b/hints/linux.sh -index 956adfc..3f38ea0 100644 +index 956adfc..a985a8e 100644 --- a/hints/linux.sh +++ b/hints/linux.sh -@@ -178,6 +178,23 @@ case "$plibpth" in +@@ -178,6 +178,33 @@ case "$plibpth" in ;; esac ++# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some ++# available functions, like memem, won't be used. See the discussion in ++# [perl #133760]. musl doesn't offer an easy way to identify it, but, ++# at least on alpine linux, the ldd --version output contains the ++# string 'musl.' ++case `ldd --version 2>&1` in ++ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;; ++ *) ;; ++esac ++ +# libquadmath is sometimes installed as gcc internal library, +# so contrary to our usual policy of *not* looking at gcc internal +# directories we now *do* look at them, in case they contain @@ -26,7 +36,7 @@ index 956adfc..3f38ea0 100644 case "$libc" in '') # If you have glibc, then report the version for ./myconfig bug reporting. -@@ -204,92 +221,6 @@ case "$libc" in +@@ -204,92 +231,6 @@ case "$libc" in ;; esac @@ -119,7 +129,7 @@ index 956adfc..3f38ea0 100644 if ${sh:-/bin/sh} -c exit; then echo '' echo 'You appear to have a working bash. Good.' -@@ -497,7 +428,7 @@ then +@@ -497,7 +438,7 @@ then DBLIB="$DBDIR/libdb.so" if [ -f $DBLIB ] then diff --git a/5.022.004-main,threaded/DevelPatchPerl.patch b/5.022.004-main,threaded/DevelPatchPerl.patch index 4c69d78..0c3d65d 100644 --- a/5.022.004-main,threaded/DevelPatchPerl.patch +++ b/5.022.004-main,threaded/DevelPatchPerl.patch @@ -1,8 +1,25 @@ diff --git a/hints/linux.sh b/hints/linux.sh -index fb5a46e..3f38ea0 100644 +index fb5a46e..a985a8e 100644 --- a/hints/linux.sh +++ b/hints/linux.sh -@@ -221,92 +221,6 @@ case "$libc" in +@@ -178,6 +178,16 @@ case "$plibpth" in + ;; + esac + ++# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some ++# available functions, like memem, won't be used. See the discussion in ++# [perl #133760]. musl doesn't offer an easy way to identify it, but, ++# at least on alpine linux, the ldd --version output contains the ++# string 'musl.' ++case `ldd --version 2>&1` in ++ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;; ++ *) ;; ++esac ++ + # libquadmath is sometimes installed as gcc internal library, + # so contrary to our usual policy of *not* looking at gcc internal + # directories we now *do* look at them, in case they contain +@@ -221,92 +231,6 @@ case "$libc" in ;; esac diff --git a/5.022.004-main/DevelPatchPerl.patch b/5.022.004-main/DevelPatchPerl.patch index 4c69d78..0c3d65d 100644 --- a/5.022.004-main/DevelPatchPerl.patch +++ b/5.022.004-main/DevelPatchPerl.patch @@ -1,8 +1,25 @@ diff --git a/hints/linux.sh b/hints/linux.sh -index fb5a46e..3f38ea0 100644 +index fb5a46e..a985a8e 100644 --- a/hints/linux.sh +++ b/hints/linux.sh -@@ -221,92 +221,6 @@ case "$libc" in +@@ -178,6 +178,16 @@ case "$plibpth" in + ;; + esac + ++# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some ++# available functions, like memem, won't be used. See the discussion in ++# [perl #133760]. musl doesn't offer an easy way to identify it, but, ++# at least on alpine linux, the ldd --version output contains the ++# string 'musl.' ++case `ldd --version 2>&1` in ++ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;; ++ *) ;; ++esac ++ + # libquadmath is sometimes installed as gcc internal library, + # so contrary to our usual policy of *not* looking at gcc internal + # directories we now *do* look at them, in case they contain +@@ -221,92 +231,6 @@ case "$libc" in ;; esac diff --git a/5.022.004-slim,threaded/DevelPatchPerl.patch b/5.022.004-slim,threaded/DevelPatchPerl.patch index 4c69d78..0c3d65d 100644 --- a/5.022.004-slim,threaded/DevelPatchPerl.patch +++ b/5.022.004-slim,threaded/DevelPatchPerl.patch @@ -1,8 +1,25 @@ diff --git a/hints/linux.sh b/hints/linux.sh -index fb5a46e..3f38ea0 100644 +index fb5a46e..a985a8e 100644 --- a/hints/linux.sh +++ b/hints/linux.sh -@@ -221,92 +221,6 @@ case "$libc" in +@@ -178,6 +178,16 @@ case "$plibpth" in + ;; + esac + ++# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some ++# available functions, like memem, won't be used. See the discussion in ++# [perl #133760]. musl doesn't offer an easy way to identify it, but, ++# at least on alpine linux, the ldd --version output contains the ++# string 'musl.' ++case `ldd --version 2>&1` in ++ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;; ++ *) ;; ++esac ++ + # libquadmath is sometimes installed as gcc internal library, + # so contrary to our usual policy of *not* looking at gcc internal + # directories we now *do* look at them, in case they contain +@@ -221,92 +231,6 @@ case "$libc" in ;; esac diff --git a/5.022.004-slim/DevelPatchPerl.patch b/5.022.004-slim/DevelPatchPerl.patch index 4c69d78..0c3d65d 100644 --- a/5.022.004-slim/DevelPatchPerl.patch +++ b/5.022.004-slim/DevelPatchPerl.patch @@ -1,8 +1,25 @@ diff --git a/hints/linux.sh b/hints/linux.sh -index fb5a46e..3f38ea0 100644 +index fb5a46e..a985a8e 100644 --- a/hints/linux.sh +++ b/hints/linux.sh -@@ -221,92 +221,6 @@ case "$libc" in +@@ -178,6 +178,16 @@ case "$plibpth" in + ;; + esac + ++# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some ++# available functions, like memem, won't be used. See the discussion in ++# [perl #133760]. musl doesn't offer an easy way to identify it, but, ++# at least on alpine linux, the ldd --version output contains the ++# string 'musl.' ++case `ldd --version 2>&1` in ++ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;; ++ *) ;; ++esac ++ + # libquadmath is sometimes installed as gcc internal library, + # so contrary to our usual policy of *not* looking at gcc internal + # directories we now *do* look at them, in case they contain +@@ -221,92 +231,6 @@ case "$libc" in ;; esac diff --git a/5.024.004-main,threaded/DevelPatchPerl.patch b/5.024.004-main,threaded/DevelPatchPerl.patch index 4c69d78..0c3d65d 100644 --- a/5.024.004-main,threaded/DevelPatchPerl.patch +++ b/5.024.004-main,threaded/DevelPatchPerl.patch @@ -1,8 +1,25 @@ diff --git a/hints/linux.sh b/hints/linux.sh -index fb5a46e..3f38ea0 100644 +index fb5a46e..a985a8e 100644 --- a/hints/linux.sh +++ b/hints/linux.sh -@@ -221,92 +221,6 @@ case "$libc" in +@@ -178,6 +178,16 @@ case "$plibpth" in + ;; + esac + ++# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some ++# available functions, like memem, won't be used. See the discussion in ++# [perl #133760]. musl doesn't offer an easy way to identify it, but, ++# at least on alpine linux, the ldd --version output contains the ++# string 'musl.' ++case `ldd --version 2>&1` in ++ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;; ++ *) ;; ++esac ++ + # libquadmath is sometimes installed as gcc internal library, + # so contrary to our usual policy of *not* looking at gcc internal + # directories we now *do* look at them, in case they contain +@@ -221,92 +231,6 @@ case "$libc" in ;; esac diff --git a/5.024.004-main/DevelPatchPerl.patch b/5.024.004-main/DevelPatchPerl.patch index 4c69d78..0c3d65d 100644 --- a/5.024.004-main/DevelPatchPerl.patch +++ b/5.024.004-main/DevelPatchPerl.patch @@ -1,8 +1,25 @@ diff --git a/hints/linux.sh b/hints/linux.sh -index fb5a46e..3f38ea0 100644 +index fb5a46e..a985a8e 100644 --- a/hints/linux.sh +++ b/hints/linux.sh -@@ -221,92 +221,6 @@ case "$libc" in +@@ -178,6 +178,16 @@ case "$plibpth" in + ;; + esac + ++# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some ++# available functions, like memem, won't be used. See the discussion in ++# [perl #133760]. musl doesn't offer an easy way to identify it, but, ++# at least on alpine linux, the ldd --version output contains the ++# string 'musl.' ++case `ldd --version 2>&1` in ++ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;; ++ *) ;; ++esac ++ + # libquadmath is sometimes installed as gcc internal library, + # so contrary to our usual policy of *not* looking at gcc internal + # directories we now *do* look at them, in case they contain +@@ -221,92 +231,6 @@ case "$libc" in ;; esac diff --git a/5.024.004-slim,threaded/DevelPatchPerl.patch b/5.024.004-slim,threaded/DevelPatchPerl.patch index 4c69d78..0c3d65d 100644 --- a/5.024.004-slim,threaded/DevelPatchPerl.patch +++ b/5.024.004-slim,threaded/DevelPatchPerl.patch @@ -1,8 +1,25 @@ diff --git a/hints/linux.sh b/hints/linux.sh -index fb5a46e..3f38ea0 100644 +index fb5a46e..a985a8e 100644 --- a/hints/linux.sh +++ b/hints/linux.sh -@@ -221,92 +221,6 @@ case "$libc" in +@@ -178,6 +178,16 @@ case "$plibpth" in + ;; + esac + ++# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some ++# available functions, like memem, won't be used. See the discussion in ++# [perl #133760]. musl doesn't offer an easy way to identify it, but, ++# at least on alpine linux, the ldd --version output contains the ++# string 'musl.' ++case `ldd --version 2>&1` in ++ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;; ++ *) ;; ++esac ++ + # libquadmath is sometimes installed as gcc internal library, + # so contrary to our usual policy of *not* looking at gcc internal + # directories we now *do* look at them, in case they contain +@@ -221,92 +231,6 @@ case "$libc" in ;; esac diff --git a/5.024.004-slim/DevelPatchPerl.patch b/5.024.004-slim/DevelPatchPerl.patch index 4c69d78..0c3d65d 100644 --- a/5.024.004-slim/DevelPatchPerl.patch +++ b/5.024.004-slim/DevelPatchPerl.patch @@ -1,8 +1,25 @@ diff --git a/hints/linux.sh b/hints/linux.sh -index fb5a46e..3f38ea0 100644 +index fb5a46e..a985a8e 100644 --- a/hints/linux.sh +++ b/hints/linux.sh -@@ -221,92 +221,6 @@ case "$libc" in +@@ -178,6 +178,16 @@ case "$plibpth" in + ;; + esac + ++# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some ++# available functions, like memem, won't be used. See the discussion in ++# [perl #133760]. musl doesn't offer an easy way to identify it, but, ++# at least on alpine linux, the ldd --version output contains the ++# string 'musl.' ++case `ldd --version 2>&1` in ++ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;; ++ *) ;; ++esac ++ + # libquadmath is sometimes installed as gcc internal library, + # so contrary to our usual policy of *not* looking at gcc internal + # directories we now *do* look at them, in case they contain +@@ -221,92 +231,6 @@ case "$libc" in ;; esac diff --git a/5.026.003-main,threaded/DevelPatchPerl.patch b/5.026.003-main,threaded/DevelPatchPerl.patch index e69de29..1701c2a 100644 --- a/5.026.003-main,threaded/DevelPatchPerl.patch +++ b/5.026.003-main,threaded/DevelPatchPerl.patch @@ -0,0 +1,21 @@ +diff --git a/hints/linux.sh b/hints/linux.sh +index 3f38ea0..a985a8e 100644 +--- a/hints/linux.sh ++++ b/hints/linux.sh +@@ -178,6 +178,16 @@ case "$plibpth" in + ;; + esac + ++# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some ++# available functions, like memem, won't be used. See the discussion in ++# [perl #133760]. musl doesn't offer an easy way to identify it, but, ++# at least on alpine linux, the ldd --version output contains the ++# string 'musl.' ++case `ldd --version 2>&1` in ++ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;; ++ *) ;; ++esac ++ + # libquadmath is sometimes installed as gcc internal library, + # so contrary to our usual policy of *not* looking at gcc internal + # directories we now *do* look at them, in case they contain diff --git a/5.026.003-main/DevelPatchPerl.patch b/5.026.003-main/DevelPatchPerl.patch index e69de29..1701c2a 100644 --- a/5.026.003-main/DevelPatchPerl.patch +++ b/5.026.003-main/DevelPatchPerl.patch @@ -0,0 +1,21 @@ +diff --git a/hints/linux.sh b/hints/linux.sh +index 3f38ea0..a985a8e 100644 +--- a/hints/linux.sh ++++ b/hints/linux.sh +@@ -178,6 +178,16 @@ case "$plibpth" in + ;; + esac + ++# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some ++# available functions, like memem, won't be used. See the discussion in ++# [perl #133760]. musl doesn't offer an easy way to identify it, but, ++# at least on alpine linux, the ldd --version output contains the ++# string 'musl.' ++case `ldd --version 2>&1` in ++ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;; ++ *) ;; ++esac ++ + # libquadmath is sometimes installed as gcc internal library, + # so contrary to our usual policy of *not* looking at gcc internal + # directories we now *do* look at them, in case they contain diff --git a/5.026.003-slim,threaded/DevelPatchPerl.patch b/5.026.003-slim,threaded/DevelPatchPerl.patch index e69de29..1701c2a 100644 --- a/5.026.003-slim,threaded/DevelPatchPerl.patch +++ b/5.026.003-slim,threaded/DevelPatchPerl.patch @@ -0,0 +1,21 @@ +diff --git a/hints/linux.sh b/hints/linux.sh +index 3f38ea0..a985a8e 100644 +--- a/hints/linux.sh ++++ b/hints/linux.sh +@@ -178,6 +178,16 @@ case "$plibpth" in + ;; + esac + ++# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some ++# available functions, like memem, won't be used. See the discussion in ++# [perl #133760]. musl doesn't offer an easy way to identify it, but, ++# at least on alpine linux, the ldd --version output contains the ++# string 'musl.' ++case `ldd --version 2>&1` in ++ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;; ++ *) ;; ++esac ++ + # libquadmath is sometimes installed as gcc internal library, + # so contrary to our usual policy of *not* looking at gcc internal + # directories we now *do* look at them, in case they contain diff --git a/5.026.003-slim/DevelPatchPerl.patch b/5.026.003-slim/DevelPatchPerl.patch index e69de29..1701c2a 100644 --- a/5.026.003-slim/DevelPatchPerl.patch +++ b/5.026.003-slim/DevelPatchPerl.patch @@ -0,0 +1,21 @@ +diff --git a/hints/linux.sh b/hints/linux.sh +index 3f38ea0..a985a8e 100644 +--- a/hints/linux.sh ++++ b/hints/linux.sh +@@ -178,6 +178,16 @@ case "$plibpth" in + ;; + esac + ++# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some ++# available functions, like memem, won't be used. See the discussion in ++# [perl #133760]. musl doesn't offer an easy way to identify it, but, ++# at least on alpine linux, the ldd --version output contains the ++# string 'musl.' ++case `ldd --version 2>&1` in ++ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;; ++ *) ;; ++esac ++ + # libquadmath is sometimes installed as gcc internal library, + # so contrary to our usual policy of *not* looking at gcc internal + # directories we now *do* look at them, in case they contain