Skip to content

Commit fdcec00

Browse files
committed
⚙️ Regenerate Dockerfiles and patches for older Perls
1 parent fd607b3 commit fdcec00

File tree

44 files changed

+3328
-24
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+3328
-24
lines changed

5.008.009-main,threaded-jessie/DevelPatchPerl.patch

Lines changed: 71 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,25 @@
11
diff --git a/Configure b/Configure
2-
index e746fe3..335e968 100755
2+
index e746fe3..0bbd632 100755
33
--- a/Configure
44
+++ b/Configure
5+
@@ -4495,7 +4495,7 @@ else
6+
fi
7+
$rm -f try try.*
8+
case "$gccversion" in
9+
-1*) cpp=`./loc gcc-cpp $cpp $pth` ;;
10+
+1.*) cpp=`./loc gcc-cpp $cpp $pth` ;;
11+
esac
12+
case "$gccversion" in
13+
'') gccosandvers='' ;;
14+
@@ -4535,7 +4535,7 @@ esac
15+
# gcc 3.* complain about adding -Idirectories that they already know about,
16+
# so we will take those off from locincpth.
17+
case "$gccversion" in
18+
-3*)
19+
+3.*)
20+
echo "main(){}">try.c
21+
for incdir in $locincpth; do
22+
warn=`$cc $ccflags -I$incdir -c try.c 2>&1 | \
523
@@ -4547,6 +4547,22 @@ case "$gccversion" in
624
$rm -f try try.*
725
esac
@@ -25,6 +43,40 @@ index e746fe3..335e968 100755
2543
: What should the include directory be ?
2644
echo " "
2745
$echo $n "Hmm... $c"
46+
@@ -5060,13 +5076,13 @@ esac
47+
case "$hint" in
48+
default|recommended)
49+
case "$gccversion" in
50+
- 1*) dflt="$dflt -fpcc-struct-return" ;;
51+
+ 1.*) dflt="$dflt -fpcc-struct-return" ;;
52+
esac
53+
case "$optimize:$DEBUGGING" in
54+
*-g*:old) dflt="$dflt -DDEBUGGING";;
55+
esac
56+
case "$gccversion" in
57+
- 2*) if test -d /etc/conf/kconfig.d &&
58+
+ 2.*) if test -d /etc/conf/kconfig.d &&
59+
$contains _POSIX_VERSION $usrinc/sys/unistd.h >/dev/null 2>&1
60+
then
61+
# Interactive Systems (ISC) POSIX mode.
62+
@@ -5075,7 +5091,7 @@ default|recommended)
63+
;;
64+
esac
65+
case "$gccversion" in
66+
- 1*) ;;
67+
+ 1.*) ;;
68+
2.[0-8]*) ;;
69+
?*) echo " "
70+
echo "Checking if your compiler accepts -fno-strict-aliasing" 2>&1
71+
@@ -5189,7 +5205,7 @@ case "$cppflags" in
72+
*) cppflags="$cppflags $ccflags" ;;
73+
esac
74+
case "$gccversion" in
75+
-1*) cppflags="$cppflags -D__GNUC__"
76+
+1.*) cppflags="$cppflags -D__GNUC__"
77+
esac
78+
case "$mips_type" in
79+
'');;
2880
diff --git a/ext/Errno/Errno_pm.PL b/ext/Errno/Errno_pm.PL
2981
index 6f20c5e..684f369 100644
3082
--- a/ext/Errno/Errno_pm.PL
@@ -570,6 +622,24 @@ index 7c5b76a..b54b9b1 100644
570622
}
571623

572624
void
625+
diff --git a/pp.c b/pp.c
626+
index 14f6e16..6d2cb29 100644
627+
--- a/pp.c
628+
+++ b/pp.c
629+
@@ -3486,8 +3486,12 @@ PP(pp_crypt)
630+
#if defined(__GLIBC__) || defined(__EMX__)
631+
if (PL_reentrant_buffer->_crypt_struct_buffer) {
632+
PL_reentrant_buffer->_crypt_struct_buffer->initialized = 0;
633+
- /* work around glibc-2.2.5 bug */
634+
+#if (defined(__GLIBC__) && __GLIBC__ == 2) && \
635+
+ (defined(__GLIBC_MINOR__) && __GLIBC_MINOR__ >= 2 && __GLIBC_MINOR__ < 4)
636+
+ /* work around glibc-2.2.5 bug, has been fixed at some
637+
+ * time in glibc-2.3.X */
638+
PL_reentrant_buffer->_crypt_struct_buffer->current_saltbits = 0;
639+
+#endif
640+
}
641+
#endif
642+
}
573643
diff --git a/t/op/hash.t b/t/op/hash.t
574644
index 9bde518..45eb782 100755
575645
--- a/t/op/hash.t

5.008.009-main-jessie/DevelPatchPerl.patch

Lines changed: 71 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,25 @@
11
diff --git a/Configure b/Configure
2-
index e746fe3..335e968 100755
2+
index e746fe3..0bbd632 100755
33
--- a/Configure
44
+++ b/Configure
5+
@@ -4495,7 +4495,7 @@ else
6+
fi
7+
$rm -f try try.*
8+
case "$gccversion" in
9+
-1*) cpp=`./loc gcc-cpp $cpp $pth` ;;
10+
+1.*) cpp=`./loc gcc-cpp $cpp $pth` ;;
11+
esac
12+
case "$gccversion" in
13+
'') gccosandvers='' ;;
14+
@@ -4535,7 +4535,7 @@ esac
15+
# gcc 3.* complain about adding -Idirectories that they already know about,
16+
# so we will take those off from locincpth.
17+
case "$gccversion" in
18+
-3*)
19+
+3.*)
20+
echo "main(){}">try.c
21+
for incdir in $locincpth; do
22+
warn=`$cc $ccflags -I$incdir -c try.c 2>&1 | \
523
@@ -4547,6 +4547,22 @@ case "$gccversion" in
624
$rm -f try try.*
725
esac
@@ -25,6 +43,40 @@ index e746fe3..335e968 100755
2543
: What should the include directory be ?
2644
echo " "
2745
$echo $n "Hmm... $c"
46+
@@ -5060,13 +5076,13 @@ esac
47+
case "$hint" in
48+
default|recommended)
49+
case "$gccversion" in
50+
- 1*) dflt="$dflt -fpcc-struct-return" ;;
51+
+ 1.*) dflt="$dflt -fpcc-struct-return" ;;
52+
esac
53+
case "$optimize:$DEBUGGING" in
54+
*-g*:old) dflt="$dflt -DDEBUGGING";;
55+
esac
56+
case "$gccversion" in
57+
- 2*) if test -d /etc/conf/kconfig.d &&
58+
+ 2.*) if test -d /etc/conf/kconfig.d &&
59+
$contains _POSIX_VERSION $usrinc/sys/unistd.h >/dev/null 2>&1
60+
then
61+
# Interactive Systems (ISC) POSIX mode.
62+
@@ -5075,7 +5091,7 @@ default|recommended)
63+
;;
64+
esac
65+
case "$gccversion" in
66+
- 1*) ;;
67+
+ 1.*) ;;
68+
2.[0-8]*) ;;
69+
?*) echo " "
70+
echo "Checking if your compiler accepts -fno-strict-aliasing" 2>&1
71+
@@ -5189,7 +5205,7 @@ case "$cppflags" in
72+
*) cppflags="$cppflags $ccflags" ;;
73+
esac
74+
case "$gccversion" in
75+
-1*) cppflags="$cppflags -D__GNUC__"
76+
+1.*) cppflags="$cppflags -D__GNUC__"
77+
esac
78+
case "$mips_type" in
79+
'');;
2880
diff --git a/ext/Errno/Errno_pm.PL b/ext/Errno/Errno_pm.PL
2981
index 6f20c5e..684f369 100644
3082
--- a/ext/Errno/Errno_pm.PL
@@ -570,6 +622,24 @@ index 7c5b76a..b54b9b1 100644
570622
}
571623

572624
void
625+
diff --git a/pp.c b/pp.c
626+
index 14f6e16..6d2cb29 100644
627+
--- a/pp.c
628+
+++ b/pp.c
629+
@@ -3486,8 +3486,12 @@ PP(pp_crypt)
630+
#if defined(__GLIBC__) || defined(__EMX__)
631+
if (PL_reentrant_buffer->_crypt_struct_buffer) {
632+
PL_reentrant_buffer->_crypt_struct_buffer->initialized = 0;
633+
- /* work around glibc-2.2.5 bug */
634+
+#if (defined(__GLIBC__) && __GLIBC__ == 2) && \
635+
+ (defined(__GLIBC_MINOR__) && __GLIBC_MINOR__ >= 2 && __GLIBC_MINOR__ < 4)
636+
+ /* work around glibc-2.2.5 bug, has been fixed at some
637+
+ * time in glibc-2.3.X */
638+
PL_reentrant_buffer->_crypt_struct_buffer->current_saltbits = 0;
639+
+#endif
640+
}
641+
#endif
642+
}
573643
diff --git a/t/op/hash.t b/t/op/hash.t
574644
index 9bde518..45eb782 100755
575645
--- a/t/op/hash.t

5.008.009-slim,threaded-jessie/DevelPatchPerl.patch

Lines changed: 71 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,25 @@
11
diff --git a/Configure b/Configure
2-
index e746fe3..335e968 100755
2+
index e746fe3..0bbd632 100755
33
--- a/Configure
44
+++ b/Configure
5+
@@ -4495,7 +4495,7 @@ else
6+
fi
7+
$rm -f try try.*
8+
case "$gccversion" in
9+
-1*) cpp=`./loc gcc-cpp $cpp $pth` ;;
10+
+1.*) cpp=`./loc gcc-cpp $cpp $pth` ;;
11+
esac
12+
case "$gccversion" in
13+
'') gccosandvers='' ;;
14+
@@ -4535,7 +4535,7 @@ esac
15+
# gcc 3.* complain about adding -Idirectories that they already know about,
16+
# so we will take those off from locincpth.
17+
case "$gccversion" in
18+
-3*)
19+
+3.*)
20+
echo "main(){}">try.c
21+
for incdir in $locincpth; do
22+
warn=`$cc $ccflags -I$incdir -c try.c 2>&1 | \
523
@@ -4547,6 +4547,22 @@ case "$gccversion" in
624
$rm -f try try.*
725
esac
@@ -25,6 +43,40 @@ index e746fe3..335e968 100755
2543
: What should the include directory be ?
2644
echo " "
2745
$echo $n "Hmm... $c"
46+
@@ -5060,13 +5076,13 @@ esac
47+
case "$hint" in
48+
default|recommended)
49+
case "$gccversion" in
50+
- 1*) dflt="$dflt -fpcc-struct-return" ;;
51+
+ 1.*) dflt="$dflt -fpcc-struct-return" ;;
52+
esac
53+
case "$optimize:$DEBUGGING" in
54+
*-g*:old) dflt="$dflt -DDEBUGGING";;
55+
esac
56+
case "$gccversion" in
57+
- 2*) if test -d /etc/conf/kconfig.d &&
58+
+ 2.*) if test -d /etc/conf/kconfig.d &&
59+
$contains _POSIX_VERSION $usrinc/sys/unistd.h >/dev/null 2>&1
60+
then
61+
# Interactive Systems (ISC) POSIX mode.
62+
@@ -5075,7 +5091,7 @@ default|recommended)
63+
;;
64+
esac
65+
case "$gccversion" in
66+
- 1*) ;;
67+
+ 1.*) ;;
68+
2.[0-8]*) ;;
69+
?*) echo " "
70+
echo "Checking if your compiler accepts -fno-strict-aliasing" 2>&1
71+
@@ -5189,7 +5205,7 @@ case "$cppflags" in
72+
*) cppflags="$cppflags $ccflags" ;;
73+
esac
74+
case "$gccversion" in
75+
-1*) cppflags="$cppflags -D__GNUC__"
76+
+1.*) cppflags="$cppflags -D__GNUC__"
77+
esac
78+
case "$mips_type" in
79+
'');;
2880
diff --git a/ext/Errno/Errno_pm.PL b/ext/Errno/Errno_pm.PL
2981
index 6f20c5e..684f369 100644
3082
--- a/ext/Errno/Errno_pm.PL
@@ -570,6 +622,24 @@ index 7c5b76a..b54b9b1 100644
570622
}
571623

572624
void
625+
diff --git a/pp.c b/pp.c
626+
index 14f6e16..6d2cb29 100644
627+
--- a/pp.c
628+
+++ b/pp.c
629+
@@ -3486,8 +3486,12 @@ PP(pp_crypt)
630+
#if defined(__GLIBC__) || defined(__EMX__)
631+
if (PL_reentrant_buffer->_crypt_struct_buffer) {
632+
PL_reentrant_buffer->_crypt_struct_buffer->initialized = 0;
633+
- /* work around glibc-2.2.5 bug */
634+
+#if (defined(__GLIBC__) && __GLIBC__ == 2) && \
635+
+ (defined(__GLIBC_MINOR__) && __GLIBC_MINOR__ >= 2 && __GLIBC_MINOR__ < 4)
636+
+ /* work around glibc-2.2.5 bug, has been fixed at some
637+
+ * time in glibc-2.3.X */
638+
PL_reentrant_buffer->_crypt_struct_buffer->current_saltbits = 0;
639+
+#endif
640+
}
641+
#endif
642+
}
573643
diff --git a/t/op/hash.t b/t/op/hash.t
574644
index 9bde518..45eb782 100755
575645
--- a/t/op/hash.t

5.008.009-slim-jessie/DevelPatchPerl.patch

Lines changed: 71 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,25 @@
11
diff --git a/Configure b/Configure
2-
index e746fe3..335e968 100755
2+
index e746fe3..0bbd632 100755
33
--- a/Configure
44
+++ b/Configure
5+
@@ -4495,7 +4495,7 @@ else
6+
fi
7+
$rm -f try try.*
8+
case "$gccversion" in
9+
-1*) cpp=`./loc gcc-cpp $cpp $pth` ;;
10+
+1.*) cpp=`./loc gcc-cpp $cpp $pth` ;;
11+
esac
12+
case "$gccversion" in
13+
'') gccosandvers='' ;;
14+
@@ -4535,7 +4535,7 @@ esac
15+
# gcc 3.* complain about adding -Idirectories that they already know about,
16+
# so we will take those off from locincpth.
17+
case "$gccversion" in
18+
-3*)
19+
+3.*)
20+
echo "main(){}">try.c
21+
for incdir in $locincpth; do
22+
warn=`$cc $ccflags -I$incdir -c try.c 2>&1 | \
523
@@ -4547,6 +4547,22 @@ case "$gccversion" in
624
$rm -f try try.*
725
esac
@@ -25,6 +43,40 @@ index e746fe3..335e968 100755
2543
: What should the include directory be ?
2644
echo " "
2745
$echo $n "Hmm... $c"
46+
@@ -5060,13 +5076,13 @@ esac
47+
case "$hint" in
48+
default|recommended)
49+
case "$gccversion" in
50+
- 1*) dflt="$dflt -fpcc-struct-return" ;;
51+
+ 1.*) dflt="$dflt -fpcc-struct-return" ;;
52+
esac
53+
case "$optimize:$DEBUGGING" in
54+
*-g*:old) dflt="$dflt -DDEBUGGING";;
55+
esac
56+
case "$gccversion" in
57+
- 2*) if test -d /etc/conf/kconfig.d &&
58+
+ 2.*) if test -d /etc/conf/kconfig.d &&
59+
$contains _POSIX_VERSION $usrinc/sys/unistd.h >/dev/null 2>&1
60+
then
61+
# Interactive Systems (ISC) POSIX mode.
62+
@@ -5075,7 +5091,7 @@ default|recommended)
63+
;;
64+
esac
65+
case "$gccversion" in
66+
- 1*) ;;
67+
+ 1.*) ;;
68+
2.[0-8]*) ;;
69+
?*) echo " "
70+
echo "Checking if your compiler accepts -fno-strict-aliasing" 2>&1
71+
@@ -5189,7 +5205,7 @@ case "$cppflags" in
72+
*) cppflags="$cppflags $ccflags" ;;
73+
esac
74+
case "$gccversion" in
75+
-1*) cppflags="$cppflags -D__GNUC__"
76+
+1.*) cppflags="$cppflags -D__GNUC__"
77+
esac
78+
case "$mips_type" in
79+
'');;
2880
diff --git a/ext/Errno/Errno_pm.PL b/ext/Errno/Errno_pm.PL
2981
index 6f20c5e..684f369 100644
3082
--- a/ext/Errno/Errno_pm.PL
@@ -570,6 +622,24 @@ index 7c5b76a..b54b9b1 100644
570622
}
571623

572624
void
625+
diff --git a/pp.c b/pp.c
626+
index 14f6e16..6d2cb29 100644
627+
--- a/pp.c
628+
+++ b/pp.c
629+
@@ -3486,8 +3486,12 @@ PP(pp_crypt)
630+
#if defined(__GLIBC__) || defined(__EMX__)
631+
if (PL_reentrant_buffer->_crypt_struct_buffer) {
632+
PL_reentrant_buffer->_crypt_struct_buffer->initialized = 0;
633+
- /* work around glibc-2.2.5 bug */
634+
+#if (defined(__GLIBC__) && __GLIBC__ == 2) && \
635+
+ (defined(__GLIBC_MINOR__) && __GLIBC_MINOR__ >= 2 && __GLIBC_MINOR__ < 4)
636+
+ /* work around glibc-2.2.5 bug, has been fixed at some
637+
+ * time in glibc-2.3.X */
638+
PL_reentrant_buffer->_crypt_struct_buffer->current_saltbits = 0;
639+
+#endif
640+
}
641+
#endif
642+
}
573643
diff --git a/t/op/hash.t b/t/op/hash.t
574644
index 9bde518..45eb782 100755
575645
--- a/t/op/hash.t

0 commit comments

Comments
 (0)