mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-30 05:05:10 +00:00
Ports: Update perl5 to 5.40.0
Released on 2024-06-09. This commit also removes two patches that have been upstreamed and are no longer needed.
This commit is contained in:
parent
5133c9d4cb
commit
d26e708bcf
|
@ -255,7 +255,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n
|
|||
| [`patch`](patch/) | patch (GNU) | 2.7.6 | https://savannah.gnu.org/projects/patch/ |
|
||||
| [`pcre`](pcre/) | Perl-compatible Regular Expressions (PCRE) | 8.45 | https://www.pcre.org/ |
|
||||
| [`pcre2`](pcre2/) | Perl-compatible Regular Expressions (PCRE2) | 10.42 | https://www.pcre.org/ |
|
||||
| [`perl5`](perl5/) | Perl | 5.38.2 | https://www.perl.org/ |
|
||||
| [`perl5`](perl5/) | Perl | 5.40.0 | https://www.perl.org/ |
|
||||
| [`pfetch`](pfetch/) | pfetch | a906ff8 | https://github.com/dylanaraps/pfetch/ |
|
||||
| [`php`](php/) | PHP | 8.2.10 | https://www.php.net/ |
|
||||
| [`pixman`](pixman/) | pixman | 0.42.2 | http://pixman.org |
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
#!/usr/bin/env -S bash ../.port_include.sh
|
||||
port='perl5'
|
||||
version='5.38.2'
|
||||
cross_version='1.5.2'
|
||||
version='5.40.0'
|
||||
cross_version='1.5.3'
|
||||
useconfigure='true'
|
||||
files=(
|
||||
"https://www.cpan.org/src/5.0/perl-${version}.tar.xz#d91115e90b896520e83d4de6b52f8254ef2b70a8d545ffab33200ea9f1cf29e8"
|
||||
"https://github.com/arsv/perl-cross/releases/download/${cross_version}/perl-cross-${cross_version}.tar.gz#584dc54c48dca25e032b676a15bef377c1fed9de318b4fc140292a5dbf326e90"
|
||||
"https://www.cpan.org/src/5.0/perl-${version}.tar.xz#d5325300ad267624cb0b7d512cfdfcd74fa7fe00c455c5b51a6bd53e5e199ef9"
|
||||
"https://github.com/arsv/perl-cross/releases/download/${cross_version}/perl-cross-${cross_version}.tar.gz#ecc37b41a60cc3c030413a960cc386455f70c43781c6333d1fcaad02ece32ea8"
|
||||
)
|
||||
configopts=(
|
||||
'-Dosname=serenity'
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Beckett Normington <beckett@b0ba.dev>
|
||||
Date: Tue, 25 Jul 2023 17:00:13 -0400
|
||||
Subject: [PATCH] pp_sys: Avoid redefining `h_errno`
|
||||
|
||||
---
|
||||
pp_sys.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/pp_sys.c b/pp_sys.c
|
||||
index b18911b3f4b047fa9b8422f66530cbee094af824..0bef81722379e4f28e18f622f9e1c977a9debd63 100644
|
||||
--- a/pp_sys.c
|
||||
+++ b/pp_sys.c
|
||||
@@ -69,7 +69,7 @@
|
||||
compiling multithreaded and singlethreaded ($ccflags et al).
|
||||
HOST_NOT_FOUND is typically defined in <netdb.h>.
|
||||
*/
|
||||
-#if defined(HOST_NOT_FOUND) && !defined(h_errno) && !defined(__CYGWIN__)
|
||||
+#if defined(HOST_NOT_FOUND) && !defined(h_errno) && !defined(__CYGWIN__) && !defined(__serenity__)
|
||||
extern int h_errno;
|
||||
#endif
|
||||
|
|
@ -1,40 +0,0 @@
|
|||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Beckett Normington <beckett@b0ba.dev>
|
||||
Date: Thu, 27 Jul 2023 13:58:01 -0400
|
||||
Subject: [PATCH] configure: Add hint for `serenity`
|
||||
|
||||
---
|
||||
cnf/hints/serenity | 24 ++++++++++++++++++++++++
|
||||
1 file changed, 24 insertions(+)
|
||||
create mode 100644 cnf/hints/serenity
|
||||
|
||||
diff --git a/cnf/hints/serenity b/cnf/hints/serenity
|
||||
new file mode 100644
|
||||
index 0000000000000000000000000000000000000000..3e038d0ac1660d7ee485bc32ddaec5a1c953cabd
|
||||
--- /dev/null
|
||||
+++ b/cnf/hints/serenity
|
||||
@@ -0,0 +1,24 @@
|
||||
+libs='-ldl -lm -lcrypt -lcore -lcoreminimal'
|
||||
+
|
||||
+# Use OS's malloc() by default.
|
||||
+case "$usemymalloc" in
|
||||
+'') usemymalloc='n' ;;
|
||||
+esac
|
||||
+
|
||||
+# uses gcc.
|
||||
+cc='gcc'
|
||||
+ld='gcc'
|
||||
+
|
||||
+# as of the latest some symbols are confusing the nm lookup
|
||||
+case "$usenm" in
|
||||
+'') usenm='undef' ;;
|
||||
+esac
|
||||
+
|
||||
+# disable nanosleep
|
||||
+d_nanosleep='undef'
|
||||
+
|
||||
+# don't try to test min/max of gmtime/localtime
|
||||
+sGMTIME_max=2147483647
|
||||
+sGMTIME_min=-2147481748
|
||||
+sLOCALTIME_max=2147483647
|
||||
+sLOCALTIME_min=-2147481748
|
|
@ -1,15 +1,7 @@
|
|||
# Patches for perl5 on SerenityOS
|
||||
|
||||
## `0001-pp_sys-Avoid-redefining-h_errno.patch`
|
||||
|
||||
pp_sys: Avoid redefining `h_errno`
|
||||
|
||||
## `0002-Disable-nanosleep.patch`
|
||||
## `0001-Disable-nanosleep.patch`
|
||||
|
||||
Disable nanosleep
|
||||
|
||||
## `0003-configure-Add-hint-for-serenity.patch`
|
||||
|
||||
configure: Add hint for `serenity`
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue