Diff perl-5.36.1-r3 with a perl-5.38.0-r1

/usr/portage/dev-lang/perl/perl-5.38.0-r1.ebuild 2023-10-09 14:52:29.468368350 +0300
6 6
inherit alternatives flag-o-matic toolchain-funcs multilib multiprocessing
7 7

  
8 8
PATCH_VER=1
9
CROSS_VER=1.4.1
10
PATCH_BASE="perl-5.36.0-patches-${PATCH_VER}"
9
CROSS_VER=1.5
10
PATCH_BASE="perl-5.38.0-patches-${PATCH_VER}"
11 11
PATCH_DEV=dilfridge
12 12

  
13 13
DIST_AUTHOR=RJBS
......
42 42
SRC_URI="
43 43
	mirror://cpan/src/5.0/${MY_P}.tar.xz
44 44
	mirror://cpan/authors/id/${DIST_AUTHOR:0:1}/${DIST_AUTHOR:0:2}/${DIST_AUTHOR}/${MY_P}.tar.xz
45
	https://github.com/gentoo-perl/perl-patchset/releases/download/${PATCH_BASE}/${PATCH_BASE}.tar.xz
46
	https://dev.gentoo.org/~${PATCH_DEV}/distfiles/${PATCH_BASE}.tar.xz
45
	https://github.com/gentoo-perl/perl-patchset/archive/refs/tags/${PATCH_BASE}.tar.gz
46
	https://dev.gentoo.org/~${PATCH_DEV}/distfiles/${PATCH_BASE}.tar.gz
47 47
	https://github.com/arsv/perl-cross/releases/download/${CROSS_VER}/perl-cross-${CROSS_VER}.tar.gz
48 48
"
49 49

  
......
53 53
SLOT="0/${SUBSLOT}"
54 54

  
55 55
if [[ "${PV##*.}" != "9999" ]] && [[ "${PV/rc//}" == "${PV}" ]] ; then
56
	KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ~ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
56
	KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
57 57
fi
58 58

  
59 59
IUSE="berkdb debug doc gdbm ithreads minimal quadmath"
......
85 85

  
86 86
dual_scripts() {
87 87
	src_remove_dual      perl-core/Archive-Tar        2.400.0       ptar ptardiff ptargrep
88
	src_remove_dual      perl-core/CPAN               2.330.0       cpan
89
	src_remove_dual      perl-core/Digest-SHA         6.20.0        shasum
90
	src_remove_dual      perl-core/Encode             3.170.0       enc2xs piconv
91
	src_remove_dual      perl-core/ExtUtils-MakeMaker 7.640.0       instmodsh
92
	src_remove_dual      perl-core/ExtUtils-ParseXS   3.450.0       xsubpp
93
	src_remove_dual      perl-core/IO-Compress        2.106.0       zipdetails
94
	src_remove_dual      perl-core/JSON-PP            4.70.0        json_pp
95
	src_remove_dual      perl-core/Module-CoreList    5.202.304.230 corelist
96
	src_remove_dual      perl-core/Pod-Checker        1.740.0       podchecker
88
	src_remove_dual      perl-core/CPAN               2.360.0       cpan
89
	src_remove_dual      perl-core/Digest-SHA         6.40.0        shasum
90
	src_remove_dual      perl-core/Encode             3.190.0       enc2xs piconv
91
	src_remove_dual      perl-core/ExtUtils-MakeMaker 7.700.0       instmodsh
92
	src_remove_dual      perl-core/ExtUtils-ParseXS   3.510.0       xsubpp
93
	src_remove_dual      perl-core/IO-Compress        2.204.0       zipdetails
94
	src_remove_dual      perl-core/JSON-PP            4.160.0        json_pp
95
	src_remove_dual      perl-core/Module-CoreList    5.202.306.230 corelist
96
	src_remove_dual      perl-core/Pod-Checker        1.750.0       podchecker
97 97
	src_remove_dual      perl-core/Pod-Perldoc        3.280.100     perldoc
98
	src_remove_dual      perl-core/Pod-Usage          2.10.0       pod2usage
98
	src_remove_dual      perl-core/Pod-Usage          2.30.0       pod2usage
99 99
	src_remove_dual      perl-core/Test-Harness       3.440.0       prove
100
	src_remove_dual      perl-core/podlators          4.140.0       pod2man pod2text
101
	src_remove_dual_man  perl-core/podlators          4.140.0       /usr/share/man/man1/perlpodstyle.1
100
	src_remove_dual      perl-core/podlators          5.10.0       pod2man pod2text
101
	src_remove_dual_man  perl-core/podlators          5.10.0       /usr/share/man/man1/perlpodstyle.1
102 102
}
103 103

  
104 104
check_rebuild() {
......
383 383
}
384 384

  
385 385
src_prepare() {
386

  
386 387
	local patchdir="${WORKDIR}/patches"
387 388

  
389
	mv -v "${WORKDIR}/perl-patchset-${PATCH_BASE}/patches" "${WORKDIR}/patches" || die
390
	mv -v "${WORKDIR}/perl-patchset-${PATCH_BASE}/patch-info" "${WORKDIR}/patch-info" || die
391

  
388 392
	# Prepare Patch dir with additional patches / remove unwanted patches
389 393
	# Inject bug/desc entries for perl -V
390 394
	# Old example:
......
392 396
	#		"Fix broken miniperl on hppa"\
393 397
	#		"https://bugs.debian.org/869122" "https://bugs.gentoo.org/634162"
394 398

  
395
	add_patch "${FILESDIR}/${PN}-5.36.1-http-tiny.patch" "0111-5.36.1-http-tiny.patch"\
396
			"Enable certificate checking in HTTP::Tiny by default"\
397
			"https://bugs.gentoo.org/905296" "https://bugs.debian.org/954089"
398

  
399 399
	if [[ ${CHOST} == *-solaris* ]] ; then
400 400
		# do NOT mess with nsl, on Solaris this is always necessary,
401 401
		# when -lsocket is used e.g. to get h_errno
......
674 674
		-Dnm="$(tc-getNM)" \
675 675
		-Dcpp="$(tc-getCPP)" \
676 676
		-Dranlib="$(tc-getRANLIB)" \
677
		-Accflags="${CFLAGS}" \
677
		-Accflags="${CFLAGS} -DNO_PERL_RAND_SEED" \
678 678
		-Doptimize="${CFLAGS}" \
679 679
		-Dldflags="${LDFLAGS}" \
680 680
		-Dprefix="${EPREFIX}"'/usr' \
Thank you!