mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-12 18:59:50 +03:00
testing/perl-net-curl: fix build with curl 8.13.0 and above
This commit is contained in:
parent
4d671631d0
commit
42c765cf59
2 changed files with 24 additions and 1 deletions
|
@ -13,9 +13,18 @@ license="MIT-open-group OR MPL-1.1"
|
||||||
depends="perl"
|
depends="perl"
|
||||||
makedepends="perl-dev curl-dev"
|
makedepends="perl-dev curl-dev"
|
||||||
subpackages="$pkgname-doc"
|
subpackages="$pkgname-doc"
|
||||||
source="https://cpan.metacpan.org/authors/id/S/SY/SYP/Net-Curl-$pkgver.tar.gz"
|
source="https://cpan.metacpan.org/authors/id/S/SY/SYP/Net-Curl-$pkgver.tar.gz
|
||||||
|
curl-8.13.patch
|
||||||
|
"
|
||||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
default_prepare
|
||||||
|
|
||||||
|
# Could be the issue mentioned in https://github.com/sparky/perl-Net-Curl/issues/83#issuecomment-2874575101
|
||||||
|
rm -v t/old-23socket-action.t
|
||||||
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
||||||
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \
|
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \
|
||||||
|
@ -43,4 +52,5 @@ doc() {
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
510aaaef037d20191dd33999f7a8946ebb68d61dcac3b4858b9a98fe774ff9a2bbc78904d5a48e677761c42c167110877ffc5f21d74aee223b36ee8b02586bf7 Net-Curl-0.57.tar.gz
|
510aaaef037d20191dd33999f7a8946ebb68d61dcac3b4858b9a98fe774ff9a2bbc78904d5a48e677761c42c167110877ffc5f21d74aee223b36ee8b02586bf7 Net-Curl-0.57.tar.gz
|
||||||
|
8443b4696e84f5b2682f768df0bfc4154a5d89018896a2547c2db2b75da34b6fc4eb0fc5be68c4b109c117643d4574d3a3506f46bf85743238278e1c3ca818e0 curl-8.13.patch
|
||||||
"
|
"
|
||||||
|
|
13
testing/perl-net-curl/curl-8.13.patch
Normal file
13
testing/perl-net-curl/curl-8.13.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
Patch-Source: https://github.com/sparky/perl-Net-Curl/issues/83#issuecomment-2874575101
|
||||||
|
|
||||||
|
--- a/Makefile.PL
|
||||||
|
+++ b/Makefile.PL
|
||||||
|
@@ -341,7 +341,7 @@ sub get_constants_headers
|
||||||
|
|
||||||
|
my @out;
|
||||||
|
foreach my $e (sort keys %syms) {
|
||||||
|
- if ( $e =~ /(OBSOLETE|^CURL_DEPRECATED\z|^CURL_EXTERN|^CURL_IGNORE_DEPRECATION\z|^CURLOPTDEPRECATED\z|_LAST\z|_LASTENTRY\z|^CURL_FORMAT_OFF_T$|^CURL_ISOCPP$|^CURLOPT$)/ ) {
|
||||||
|
+ if ( $e =~ /(OBSOLETE|^CURL_DEPRECATED\z|^CURL_EXTERN|^CURL_IGNORE_DEPRECATION\z|^CURLOPTDEPRECATED\z|_LAST\z|_LASTENTRY\z|^CURL_FORMAT_OFF_T$|^CURL_ISOCPP$|^CURLOPT$|^CURL_HAS_DECLSPEC_ATTRIBUTE\z)/ ) {
|
||||||
|
next;
|
||||||
|
}
|
||||||
|
push @out, $e;
|
Loading…
Add table
Add a link
Reference in a new issue