diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-20 14:54:46 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-20 14:54:46 -0500 |
| commit | 1a4479b4e0368c8d5ff241ebad17b2541a7e3ba0 (patch) | |
| tree | 18e2e784f9fb0dbc3546537acc42ad51b366d90e /dev-perl | |
| parent | 9f6a581d94412ab1cf4b35c33101f6be0ddc7777 (diff) | |
| download | baldeagleos-repo-1a4479b4e0368c8d5ff241ebad17b2541a7e3ba0.tar.gz baldeagleos-repo-1a4479b4e0368c8d5ff241ebad17b2541a7e3ba0.tar.xz baldeagleos-repo-1a4479b4e0368c8d5ff241ebad17b2541a7e3ba0.zip | |
Adding metadata
Diffstat (limited to 'dev-perl')
32 files changed, 869 insertions, 500 deletions
diff --git a/dev-perl/Crypt-SSLeay/Crypt-SSLeay-0.720.0-r4.ebuild b/dev-perl/Crypt-SSLeay/Crypt-SSLeay-0.720.0-r4.ebuild index 509cbf6ef911..9db420f9cf37 100644 --- a/dev-perl/Crypt-SSLeay/Crypt-SSLeay-0.720.0-r4.ebuild +++ b/dev-perl/Crypt-SSLeay/Crypt-SSLeay-0.720.0-r4.ebuild @@ -1,5 +1,6 @@ -# Copyright 2021 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 + EAPI=7 DIST_AUTHOR=NANIS @@ -10,18 +11,16 @@ DESCRIPTION="OpenSSL support for LWP" LICENSE="Artistic-2" SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" -IUSE=" test" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~mips ppc ppc64 ~riscv ~s390 ~sparc x86" +IUSE="test" RESTRICT="!test? ( test )" RDEPEND=" >=dev-libs/openssl-0.9.7c:0= - virtual/perl-MIME-Base64 " DEPEND=" >=dev-libs/openssl-0.9.7c:0= - " BDEPEND="${RDEPEND} virtual/perl-ExtUtils-MakeMaker diff --git a/dev-perl/Crypt-SSLeay/Crypt-SSLeay-0.730.6-r1.ebuild b/dev-perl/Crypt-SSLeay/Crypt-SSLeay-0.730.6-r1.ebuild deleted file mode 100644 index d3567953375d..000000000000 --- a/dev-perl/Crypt-SSLeay/Crypt-SSLeay-0.730.6-r1.ebuild +++ /dev/null @@ -1,50 +0,0 @@ -# Copyright 2021-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 -EAPI=8 - -DIST_AUTHOR=NANIS -DIST_VERSION=0.73_06 -inherit perl-module - -DESCRIPTION="OpenSSL support for LWP" - -LICENSE="Artistic-2" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" -IUSE=" test" -RESTRICT="!test? ( test )" - -RDEPEND=" - >=dev-libs/openssl-0.9.7c:0= - - virtual/perl-MIME-Base64 -" -DEPEND=" - >=dev-libs/openssl-0.9.7c:0= - -" -BDEPEND="${RDEPEND} - virtual/perl-ExtUtils-MakeMaker - >=virtual/perl-ExtUtils-CBuilder-0.280.205 - virtual/perl-Getopt-Long - >=dev-perl/Path-Class-0.260.0 - >=dev-perl/Try-Tiny-0.190.0 - test? ( - >=virtual/perl-Test-Simple-0.190.0 - ) -" -PDEPEND=" - dev-perl/libwww-perl - >=dev-perl/LWP-Protocol-https-6.20.0 -" - -PATCHES=( - ${FILESDIR}/default_dot.patch -) - -src_compile() { - mymake=( - "OPTIMIZE=${CFLAGS}" - ) - perl-module_src_compile -} diff --git a/dev-perl/Crypt-SSLeay/Manifest b/dev-perl/Crypt-SSLeay/Manifest index e5dbae45a099..a790697e5e20 100644 --- a/dev-perl/Crypt-SSLeay/Manifest +++ b/dev-perl/Crypt-SSLeay/Manifest @@ -1,2 +1 @@ DIST Crypt-SSLeay-0.72.tar.gz 129575 BLAKE2B 103e708075d24ac56d47e6ad8795be036cae29dac659c3727ca63950bc3a18e2b6119c32d2040e2bd544fcb3281bf2c5d303a2bb228733588f3450a5e05e916d SHA512 af7a2878df94e116e9aad9a0f028f2e4f89074aaf31672915162f86e55211632d65c1cb00f3ebd25644d77adf8eecdd244dba6a004d93ab90289ab34fe4caaf4 -DIST Crypt-SSLeay-0.73_06.tar.gz 129534 BLAKE2B 92ca7767d36aff4c70ffe51bcd49d1de5fc008a84d3a5844896ddce3bfeee145a11ece3853eae0b3dabb792869b71e74c4725709b39c7da9b6a64b4e9a9060f2 SHA512 8e1ae0466f009a1f1c4acd7d85e9aece27c2b65f1fc704ffe9355ede5e6bfd8838d5c82cb5906f6109a1a437b615e9a94b7e3a0fdbae91b1ed074d17fb5471aa diff --git a/dev-perl/Crypt-SSLeay/files/default_dot.patch b/dev-perl/Crypt-SSLeay/files/default_dot.patch deleted file mode 100644 index 1e801ad96086..000000000000 --- a/dev-perl/Crypt-SSLeay/files/default_dot.patch +++ /dev/null @@ -1,51 +0,0 @@ -From 70acf12dcd580caadc29802d565438757ed36200 Mon Sep 17 00:00:00 2001 -From: James E Keenan <jkeenan@cpan.org> -Date: Sun, 16 Apr 2017 08:21:01 -0400 -Subject: [PATCH 1/2] perl-5.26.0-readiness. Account for absence of '.' in - default @INC. - -For: https://rt.cpan.org/Ticket/Display.html?id=120862 ---- - Makefile.PL | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/Makefile.PL b/Makefile.PL -index 3485578..d98139b 100644 ---- a/Makefile.PL -+++ b/Makefile.PL -@@ -8,6 +8,7 @@ use ExtUtils::MakeMaker; - use File::Spec::Functions qw( catfile rel2abs ); - use Getopt::Long qw( GetOptionsFromArray ); - -+push @INC, '.'; - unless( require( catfile qw(inc IO Interactive Tiny.pm) ) ) { - die 'Your distribution is incomplete: Failed to load bundled IO::Interactive::Tiny'; - } - -From 6d1d8c4edf1e3fe52d389f2004982921d12d5cec Mon Sep 17 00:00:00 2001 -From: James E Keenan <jkeenan@cpan.org> -Date: Sun, 16 Apr 2017 08:24:10 -0400 -Subject: [PATCH 2/2] Provide a .gitignore. - ---- - .gitignore | 11 +++++++++++ - 1 file changed, 11 insertions(+) - create mode 100644 .gitignore - -diff --git a/.gitignore b/.gitignore -new file mode 100644 -index 0000000..ecf4142 ---- /dev/null -+++ b/.gitignore -@@ -0,0 +1,11 @@ -+/MYMETA.json -+/MYMETA.yml -+/Makefile -+/SSLeay.bs -+/SSLeay.c -+/SSLeay.o -+/blib/ -+/openssl-version -+/openssl-version.o -+/pm_to_blib -+/test.config diff --git a/dev-perl/Crypt-SSLeay/metadata.xml b/dev-perl/Crypt-SSLeay/metadata.xml index d88749626d07..89c67f49bdb9 100644 --- a/dev-perl/Crypt-SSLeay/metadata.xml +++ b/dev-perl/Crypt-SSLeay/metadata.xml @@ -2,10 +2,6 @@ <!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> <pkgmetadata> <maintainer type="project"> - <email>dev@liguros.net</email> - <name>Development</name> - </maintainer> - <maintainer type="project"> <email>perl@gentoo.org</email> <name>Gentoo Perl Project</name> </maintainer> diff --git a/dev-perl/DBD-MariaDB/DBD-MariaDB-1.230.0-r1.ebuild b/dev-perl/DBD-MariaDB/DBD-MariaDB-1.230.0-r1.ebuild new file mode 100644 index 000000000000..2594ea5a53b5 --- /dev/null +++ b/dev-perl/DBD-MariaDB/DBD-MariaDB-1.230.0-r1.ebuild @@ -0,0 +1,124 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DIST_AUTHOR=PALI +DIST_VERSION=1.23 +DIST_WIKI=tests +inherit perl-module + +DESCRIPTION="MariaDB and MySQL driver for the Perl5 Database Interface (DBI)" + +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~s390 x86" +IUSE="+mariadb mysql minimal" +REQUIRED_USE="^^ ( mysql mariadb )" + +RDEPEND=" + >=dev-perl/DBI-1.608.0 + mysql? ( dev-db/mysql-connector-c:= ) + mariadb? ( dev-db/mariadb-connector-c:= ) +" +DEPEND=" + mysql? ( dev-db/mysql-connector-c:= ) + mariadb? ( dev-db/mariadb-connector-c:= ) +" +# New test-harness needed for parallel testing to work +BDEPEND=" + ${RDEPEND} + >=dev-perl/Devel-CheckLib-1.120.0 + test? ( + !minimal? ( + >=dev-perl/Net-SSLeay-1.430.0 + dev-perl/Proc-ProcessTable + ) + mariadb? ( dev-db/mariadb:* ) + mysql? ( dev-db/mysql:* ) + dev-perl/Test-Deep + >=virtual/perl-Test-Harness-3.310.0 + >=virtual/perl-Test-Simple-0.900.0 + ) +" + +PERL_RM_FILES=( + "t/pod.t" + "t/manifest.t" +) + +src_configure() { + local impl=$(usex mariadb mariadb mysql) + + # These must be set at configure time + export DBD_MARIADB_TESTDB=test + export DBD_MARIADB_TESTSOCKET="${T}"/mysqld.sock + export DBD_MARIADB_TESTAUTHPLUGIN=mysql_native_password + export DBD_MARIADB_TESTUSER=root + + myconf=( --${impl}_config="${BROOT}"/usr/bin/${impl}_config ) + + perl-module_src_configure +} + +src_test() { + local -x USER=$(whoami) + + einfo "Creating mysql test instance ..." + mkdir -p "${T}"/mysql || die + if use mariadb ; then + local -x PATH="${BROOT}/usr/share/mariadb/scripts:${PATH}" + + mysql_install_db \ + --no-defaults \ + --auth-root-authentication-method=normal \ + --basedir="${EPREFIX}/usr" \ + --datadir="${T}"/mysql 1>"${T}"/mysqld_install.log || die + else + mysqld \ + --no-defaults \ + --initialize-insecure \ + --user ${USER} \ + --basedir="${EPREFIX}/usr" \ + --datadir="${T}"/mysql 1>"${T}"/mysqld_install.log || die + fi + + einfo "Starting mysql test instance ..." + mysqld \ + --no-defaults \ + --character-set-server=utf8 \ + --bind-address=127.0.0.1 \ + --pid-file="${T}"/mysqld.pid \ + --socket="${T}"/mysqld.sock \ + --datadir="${T}"/mysql 1>"${T}"/mysqld.log 2>&1 & + + # Wait for it to start + local i + for (( i = 0; i < 10; i++ )); do + [[ -S ${T}/mysqld.sock ]] && break + sleep 1 + done + [[ ! -S ${T}/mysqld.sock ]] && die "mysqld failed to start" + + einfo "Configuring test mysql instance ..." + mysql -u root \ + -e 'CREATE DATABASE /*M!50701 IF NOT EXISTS */ test' \ + -S "${T}"/mysqld.sock || die "Failed to create test database" + + # Don't be a hero and try to do EXTENDED_TESTING=1 unless you can figure + # out why 60leaks.t fails + nonfatal perl-module_src_test + ret=$? + + einfo "Stopping mysql test instance ..." + pkill -F "${T}"/mysqld.pid || die + # wait for it to stop + local i + for (( i = 0; i < 10; i++ )); do + [[ -S ${T}/mysqld.sock ]] || break + sleep 1 + done + + rm -rf "${T}"/mysql || die + + [[ ${ret} -ne 0 ]] && die +} diff --git a/dev-perl/DBD-MariaDB/DBD-MariaDB-1.240.0.ebuild b/dev-perl/DBD-MariaDB/DBD-MariaDB-1.240.0.ebuild index 3e6684871a05..7e55f5cf18f9 100644 --- a/dev-perl/DBD-MariaDB/DBD-MariaDB-1.240.0.ebuild +++ b/dev-perl/DBD-MariaDB/DBD-MariaDB-1.240.0.ebuild @@ -1,5 +1,6 @@ -# Copyright 2025 Liguros Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 + EAPI=8 DIST_AUTHOR=PALI @@ -7,19 +8,21 @@ DIST_VERSION=1.24 DIST_WIKI=tests inherit perl-module -DESCRIPTION="MariaDB driver for the Perl5 Database Interface (DBI)" +DESCRIPTION="MariaDB and MySQL driver for the Perl5 Database Interface (DBI)" SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ~ppc64 ~riscv ~s390 x86" -IUSE="minimal" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~s390 x86" +IUSE="+mariadb mysql minimal" +REQUIRED_USE="^^ ( mysql mariadb )" RDEPEND=" >=dev-perl/DBI-1.608.0 - dev-db/mariadb-connector-c:= - dev-db/mariadb + mysql? ( dev-db/mysql-connector-c:= ) + mariadb? ( dev-db/mariadb-connector-c:= ) " DEPEND=" - dev-db/mariadb-connector-c:= + mysql? ( dev-db/mysql-connector-c:= ) + mariadb? ( dev-db/mariadb-connector-c:= ) " # New test-harness needed for parallel testing to work BDEPEND=" @@ -30,6 +33,8 @@ BDEPEND=" >=dev-perl/Net-SSLeay-1.430.0 dev-perl/Proc-ProcessTable ) + mariadb? ( dev-db/mariadb:* ) + mysql? ( dev-db/mysql:* ) dev-perl/Test-Deep >=virtual/perl-Test-Harness-3.310.0 >=virtual/perl-Test-Simple-0.900.0 @@ -42,16 +47,78 @@ PERL_RM_FILES=( ) src_configure() { - local impl=mariadb + local impl=$(usex mariadb mariadb mysql) # These must be set at configure time -# export DBD_MARIADB_TESTDB=test -# export DBD_MARIADB_TESTSOCKET="${T}"/mysqld.sock -# export DBD_MARIADB_TESTAUTHPLUGIN=mysql_native_password -# export DBD_MARIADB_TESTUSER=root + export DBD_MARIADB_TESTDB=test + export DBD_MARIADB_TESTSOCKET="${T}"/mysqld.sock + export DBD_MARIADB_TESTAUTHPLUGIN=mysql_native_password + export DBD_MARIADB_TESTUSER=root myconf=( --${impl}_config="${BROOT}"/usr/bin/${impl}_config ) perl-module_src_configure } +src_test() { + local -x USER=$(whoami) + + einfo "Creating mysql test instance ..." + mkdir -p "${T}"/mysql || die + if use mariadb ; then + local -x PATH="${BROOT}/usr/share/mariadb/scripts:${PATH}" + + mysql_install_db \ + --no-defaults \ + --auth-root-authentication-method=normal \ + --basedir="${EPREFIX}/usr" \ + --datadir="${T}"/mysql 1>"${T}"/mysqld_install.log || die + else + mysqld \ + --no-defaults \ + --initialize-insecure \ + --user ${USER} \ + --basedir="${EPREFIX}/usr" \ + --datadir="${T}"/mysql 1>"${T}"/mysqld_install.log || die + fi + + einfo "Starting mysql test instance ..." + mysqld \ + --no-defaults \ + --character-set-server=utf8 \ + --bind-address=127.0.0.1 \ + --pid-file="${T}"/mysqld.pid \ + --socket="${T}"/mysqld.sock \ + --datadir="${T}"/mysql 1>"${T}"/mysqld.log 2>&1 & + + # Wait for it to start + local i + for (( i = 0; i < 10; i++ )); do + [[ -S ${T}/mysqld.sock ]] && break + sleep 1 + done + [[ ! -S ${T}/mysqld.sock ]] && die "mysqld failed to start" + + einfo "Configuring test mysql instance ..." + mysql -u root \ + -e 'CREATE DATABASE /*M!50701 IF NOT EXISTS */ test' \ + -S "${T}"/mysqld.sock || die "Failed to create test database" + + # Don't be a hero and try to do EXTENDED_TESTING=1 unless you can figure + # out why 60leaks.t fails + nonfatal perl-module_src_test + ret=$? + + einfo "Stopping mysql test instance ..." + pkill -F "${T}"/mysqld.pid || die + # wait for it to stop + local i + for (( i = 0; i < 10; i++ )); do + [[ -S ${T}/mysqld.sock ]] || break + sleep 1 + done + + rm -rf "${T}"/mysql || die + + [[ ${ret} -ne 0 ]] && die +} diff --git a/dev-perl/DBD-MariaDB/metadata.xml b/dev-perl/DBD-MariaDB/metadata.xml index 9457c995249c..e033667bc92a 100644 --- a/dev-perl/DBD-MariaDB/metadata.xml +++ b/dev-perl/DBD-MariaDB/metadata.xml @@ -2,10 +2,6 @@ <!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> <pkgmetadata> <maintainer type="project"> - <email>dev@liguros.net</email> - <name>Development</name> - </maintainer> - <maintainer type="project"> <email>perl@gentoo.org</email> <name>Gentoo Perl Project</name> </maintainer> diff --git a/dev-perl/DBD-mysql/DBD-mysql-4.50.0-r1.ebuild b/dev-perl/DBD-mysql/DBD-mysql-4.50.0-r2.ebuild index 8b14b51f6b98..0496e7b6dae2 100644 --- a/dev-perl/DBD-mysql/DBD-mysql-4.50.0-r1.ebuild +++ b/dev-perl/DBD-mysql/DBD-mysql-4.50.0-r2.ebuild @@ -1,7 +1,7 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 DIST_AUTHOR=DVEEDEN DIST_VERSION=4.050 @@ -10,10 +10,9 @@ inherit perl-module DESCRIPTION="MySQL driver for the Perl5 Database Interface (DBI)" SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~x64-macos" -IUSE="mariadb +mysql test +ssl" -RESTRICT="!test? ( test )" +IUSE="mariadb +mysql +ssl" REQUIRED_USE="^^ ( mysql mariadb )" DB_DEPENDS=" @@ -29,12 +28,9 @@ DEPEND=" ${DB_DEPENDS} " BDEPEND="${RDEPEND} - virtual/perl-ExtUtils-MakeMaker - virtual/perl-Data-Dumper test? ( dev-perl/Test-Deep >=virtual/perl-Test-Simple-0.900.0 - virtual/perl-Time-HiRes ) " @@ -48,6 +44,7 @@ PERL_RM_FILES=( t/pod.t t/manifest.t ) + src_configure() { local impl impl=$(usex mariadb mariadb mysql) diff --git a/dev-perl/DBD-mysql/DBD-mysql-5.13.0.ebuild b/dev-perl/DBD-mysql/DBD-mysql-5.13.0.ebuild index 6d26e81fa770..b8c21eafaad5 100644 --- a/dev-perl/DBD-mysql/DBD-mysql-5.13.0.ebuild +++ b/dev-perl/DBD-mysql/DBD-mysql-5.13.0.ebuild @@ -1,5 +1,6 @@ -# Copyright 2024-2025 Liguros Authors +# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 + EAPI=8 DIST_AUTHOR=DVEEDEN @@ -8,18 +9,21 @@ DIST_AUTHOR=DVEEDEN # to a transaction... DIST_TEST="do" DIST_WIKI=tests -DIST_VERSION=5.011 +DIST_VERSION=5.013 inherit perl-module DESCRIPTION="MySQL driver for the Perl5 Database Interface (DBI)" SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" -IUSE="test" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ~ppc ppc64 ~riscv ~s390 ~sparc x86 ~x64-macos" +IUSE="mariadb +mysql test" RESTRICT="!test? ( test )" +# tests do not pass on MariaDB at this time; assumptions about version numbers and binary names +REQUIRED_USE="^^ ( mysql mariadb ) test? ( mysql )" DB_DEPENDS=" - dev-db/mysql-connector-c++:= + mysql? ( >=dev-db/mysql-connector-c-8:= ) + mariadb? ( >=dev-db/mariadb-connector-c-3.1:=[ssl(+)] ) " RDEPEND=" >=dev-perl/DBI-1.609.0 @@ -31,13 +35,10 @@ DEPEND=" " BDEPEND=" ${RDEPEND} - virtual/perl-ExtUtils-MakeMaker - virtual/perl-Data-Dumper test? ( dev-perl/Test-Deep - >=virtual/perl-Test-Simple-0.900.0 - virtual/perl-Time-HiRes - >=dev-db/mysql-8:* + mariadb? ( dev-db/mariadb:* ) + mysql? ( >=dev-db/mysql-8:* ) ) " @@ -55,6 +56,7 @@ PERL_RM_FILES=( ) src_configure() { + local impl=$(usex mariadb mariadb mysql) local myconf=() if use test; then @@ -66,7 +68,7 @@ src_configure() { ) fi - myconf+=( --mysql_config="${EPREFIX}"/usr/bin/mysql_config ) + myconf+=( --mysql_config="${EPREFIX}"/usr/bin/${impl}_config ) perl-module_src_configure } @@ -76,12 +78,22 @@ src_test() { einfo "Creating mysql test instance ..." mkdir -p "${T}"/mysql || die - mysqld \ - --no-defaults \ - --initialize-insecure \ - --user ${USER} \ - --basedir="${EPREFIX}/usr" \ - --datadir="${T}"/mysql 1>"${T}"/mysqld_install.log || die + if use mariadb ; then + local -x PATH="${BROOT}/usr/share/mariadb/scripts:${PATH}" + + mysql_install_db \ + --no-defaults \ + --auth-root-authentication-method=normal \ + --basedir="${EPREFIX}/usr" \ + --datadir="${T}"/mysql 1>"${T}"/mysqld_install.log || die + else + mysqld \ + --no-defaults \ + --initialize-insecure \ + --user ${USER} \ + --basedir="${EPREFIX}/usr" \ + --datadir="${T}"/mysql 1>"${T}"/mysqld_install.log || die + fi einfo "Starting mysql test instance ..." mysqld \ diff --git a/dev-perl/DBD-mysql/DBD-mysql-5.12.0.ebuild b/dev-perl/DBD-mysql/DBD-mysql-5.7.0.ebuild index 6d26e81fa770..2bcec0c482ee 100644 --- a/dev-perl/DBD-mysql/DBD-mysql-5.12.0.ebuild +++ b/dev-perl/DBD-mysql/DBD-mysql-5.7.0.ebuild @@ -1,5 +1,6 @@ -# Copyright 2024-2025 Liguros Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 + EAPI=8 DIST_AUTHOR=DVEEDEN @@ -8,18 +9,21 @@ DIST_AUTHOR=DVEEDEN # to a transaction... DIST_TEST="do" DIST_WIKI=tests -DIST_VERSION=5.011 +DIST_VERSION=5.007 inherit perl-module DESCRIPTION="MySQL driver for the Perl5 Database Interface (DBI)" SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" -IUSE="test" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc x86 ~x64-macos" +IUSE="mariadb +mysql test" RESTRICT="!test? ( test )" +# tests do not pass on MariaDB at this time; assumptions about version numbers and binary names +REQUIRED_USE="^^ ( mysql mariadb ) test? ( mysql )" DB_DEPENDS=" - dev-db/mysql-connector-c++:= + mysql? ( >=dev-db/mysql-connector-c-8:= ) + mariadb? ( >=dev-db/mariadb-connector-c-3.1:=[ssl(+)] ) " RDEPEND=" >=dev-perl/DBI-1.609.0 @@ -37,7 +41,8 @@ BDEPEND=" dev-perl/Test-Deep >=virtual/perl-Test-Simple-0.900.0 virtual/perl-Time-HiRes - >=dev-db/mysql-8:* + mariadb? ( dev-db/mariadb:* ) + mysql? ( >=dev-db/mysql-8:* ) ) " @@ -55,6 +60,7 @@ PERL_RM_FILES=( ) src_configure() { + local impl=$(usex mariadb mariadb mysql) local myconf=() if use test; then @@ -66,7 +72,7 @@ src_configure() { ) fi - myconf+=( --mysql_config="${EPREFIX}"/usr/bin/mysql_config ) + myconf+=( --mysql_config="${EPREFIX}"/usr/bin/${impl}_config ) perl-module_src_configure } @@ -76,12 +82,22 @@ src_test() { einfo "Creating mysql test instance ..." mkdir -p "${T}"/mysql || die - mysqld \ - --no-defaults \ - --initialize-insecure \ - --user ${USER} \ - --basedir="${EPREFIX}/usr" \ - --datadir="${T}"/mysql 1>"${T}"/mysqld_install.log || die + if use mariadb ; then + local -x PATH="${BROOT}/usr/share/mariadb/scripts:${PATH}" + + mysql_install_db \ + --no-defaults \ + --auth-root-authentication-method=normal \ + --basedir="${EPREFIX}/usr" \ + --datadir="${T}"/mysql 1>"${T}"/mysqld_install.log || die + else + mysqld \ + --no-defaults \ + --initialize-insecure \ + --user ${USER} \ + --basedir="${EPREFIX}/usr" \ + --datadir="${T}"/mysql 1>"${T}"/mysqld_install.log || die + fi einfo "Starting mysql test instance ..." mysqld \ diff --git a/dev-perl/DBD-mysql/Manifest b/dev-perl/DBD-mysql/Manifest index f4fa2c00bb1c..bdc9129a9b85 100644 --- a/dev-perl/DBD-mysql/Manifest +++ b/dev-perl/DBD-mysql/Manifest @@ -1,2 +1,3 @@ DIST DBD-mysql-4.050.tar.gz 161579 BLAKE2B fb17e151db730fd6955d3e4424dd495a9fcf5f3f4e2b6b79d9fdc86bc42c3314b68771f1d3c393fd80ea14aeda626a5c5d21f5b921d487350ffd79802edab1f6 SHA512 910f5b4ba7a7890d50a79f37d04ec8971a4f62acd0fe30bf3ab634f66e3128f0cd6513e5c9da8c807a0f4477d0cc766682ea8dd0d8072d02821b78df51f37879 -DIST DBD-mysql-5.011.tar.gz 157076 BLAKE2B 8d8b46df1682ccb3ab37348d4629c491d6d83e3ecc3827e9669c7e5e6f8a17cb1f6cc7546a87ef48c70756b557230883a661d00d15072d48b0fe044cd531d0bb SHA512 eac8b966c703004136c4c29987a19a0b3abba0dead937e97ce82df0642c8c1a4a5ecb38130d76126a3984018d3fafa566ddbdea6a4fc8e50303ab9733ea50a8f +DIST DBD-mysql-5.007.tar.gz 155102 BLAKE2B 70cf6d588b9a43a05f98f37f38a7f25ed198cb27aae9b73e3c4051a496d6c7028c21d7daa656a3e7b84571e00ff7994e2779be7b64fa65b49a9eb126112db8b5 SHA512 8fed785478953477b3d8c87614ef2c5c3407ee2164cefa56cd19ad00afe3ccdae7cdc2b59b555f1984a41789b140c6f00397ad56c86a985182f7157e2ac34b75 +DIST DBD-mysql-5.013.tar.gz 160611 BLAKE2B 723e2cfc0622e259ac22b08a33c18fd97d3abd3242feddebb7e2e3aaaeb6cffe5a7da8a4bbef5d133d3593c78bc3f13a3cfc25ff0f3cfe12249d5830e0a4180c SHA512 ce5c7c353f2d326bc8c16d0578db94ccab27e738d6c4186f30b3bf8acc414390d28b9e845affb0fdfd82451f70fbb0074ea55915a569ce2ba8348f267910de5b diff --git a/dev-perl/DBD-mysql/metadata.xml b/dev-perl/DBD-mysql/metadata.xml index 20ddb1dc94dc..9be195bbd4b9 100644 --- a/dev-perl/DBD-mysql/metadata.xml +++ b/dev-perl/DBD-mysql/metadata.xml @@ -2,18 +2,12 @@ <!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> <pkgmetadata> <maintainer type="project"> - <email>dev@liguros.net</email> - <name>Development</name> - </maintainer> - <maintainer type="project"> <email>perl@gentoo.org</email> <name>Gentoo Perl Project</name> </maintainer> - <upstream> - <remote-id type="cpe">cpe:/a:dbd-mysql_project:dbd-mysql</remote-id> - </upstream> <use> <flag name="ssl">Compile in support for SSL connections via libmysqlclient</flag> + <flag name="mariadb">Use <pkg>dev-db/mariadb-connector-c</pkg> as the client library</flag> <flag name="mysql">Use <pkg>dev-db/mysql-connector-c</pkg> as the client library</flag> </use> <origin>baldeagleos-repo</origin> diff --git a/dev-perl/Net-DNS-SEC/Manifest b/dev-perl/Net-DNS-SEC/Manifest index a8b42679cbe8..152fb9a7afc2 100644 --- a/dev-perl/Net-DNS-SEC/Manifest +++ b/dev-perl/Net-DNS-SEC/Manifest @@ -1,2 +1 @@ DIST Net-DNS-SEC-1.26.tar.gz 42367 BLAKE2B edc6faa73249c0a1e0204f851e6e461978fb046ffd982cfe1ed2bffbba9a1ff6f853c45d6e93198b03e51686822d711ebe99f9e31930355579b1e193fc427eda SHA512 f53416c28488edfff248c79570d87599e3785d8ae0cd30746dfbc6468bce68421bf95be405685d8d9dd8e3a69a6634da17617fb48d8c3bd755944dd2e038aaf9 -DIST Net-DNS-SEC-1.27.tar.gz 43251 BLAKE2B 065a0f9bd2772973a3323a66bc704cfa70a328dd2bae0c7745f8554473d3b1c28aebc1666b0f758674071b57f9d45e5438447de15a6a8b0d58d29e97ba5402a6 SHA512 f2c1bfeabada94e4829fba24885c260421505be79b8680fa07cdfadabf33f427783428db159a22e3228baad85ecb0a67a72aba06093da6833657c99ded79688d diff --git a/dev-perl/Net-DNS-SEC/Net-DNS-SEC-1.260.0.ebuild b/dev-perl/Net-DNS-SEC/Net-DNS-SEC-1.260.0.ebuild index ae40c96caddb..5304ccbd8b5f 100644 --- a/dev-perl/Net-DNS-SEC/Net-DNS-SEC-1.260.0.ebuild +++ b/dev-perl/Net-DNS-SEC/Net-DNS-SEC-1.260.0.ebuild @@ -1,5 +1,6 @@ -# Copyright 2022-2024 Liguros Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 + EAPI=8 DIST_AUTHOR=NLNETLABS @@ -7,22 +8,25 @@ DIST_VERSION=1.26 inherit perl-module DESCRIPTION="DNSSEC extensions to Net::DNS" + LICENSE="MIT" SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" -IUSE="" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~x64-macos ~x64-solaris" RDEPEND=" dev-libs/openssl:= - >=virtual/perl-Carp-1.100.0 - >=virtual/perl-Exporter-5.560.0 - >=virtual/perl-File-Spec-0.860.0 - >=virtual/perl-MIME-Base64-2.130.0 + >=virtual/perl-Exporter-5.630.0 + >=virtual/perl-File-Spec-3.290.0 + >=virtual/perl-MIME-Base64-3.70.0 >=dev-perl/Net-DNS-1.80.0 " -BDEPEND="${RDEPEND} - virtual/perl-ExtUtils-MakeMaker +DEPEND="dev-libs/openssl:=" +# pkgconfig is used to find openssl +BDEPEND=" + ${RDEPEND} + >=virtual/perl-ExtUtils-MakeMaker-6.480.0 + virtual/pkgconfig test? ( >=virtual/perl-Test-Simple-0.470.0 ) diff --git a/dev-perl/Net-DNS-SEC/Net-DNS-SEC-1.270.0.ebuild b/dev-perl/Net-DNS-SEC/Net-DNS-SEC-1.270.0.ebuild deleted file mode 100644 index 07da9b47b69d..000000000000 --- a/dev-perl/Net-DNS-SEC/Net-DNS-SEC-1.270.0.ebuild +++ /dev/null @@ -1,29 +0,0 @@ -# Copyright 2022-2026 Liguros Authors -# Distributed under the terms of the GNU General Public License v2 -EAPI=8 - -DIST_AUTHOR=NLNETLABS -DIST_VERSION=1.27 -inherit perl-module - -DESCRIPTION="DNSSEC extensions to Net::DNS" -LICENSE="MIT" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" -IUSE="" - -RDEPEND=" - dev-libs/openssl:= - - >=virtual/perl-Carp-1.100.0 - >=virtual/perl-Exporter-5.560.0 - >=virtual/perl-File-Spec-0.860.0 - >=virtual/perl-MIME-Base64-2.130.0 - >=dev-perl/Net-DNS-1.80.0 -" -BDEPEND="${RDEPEND} - virtual/perl-ExtUtils-MakeMaker - test? ( - >=virtual/perl-Test-Simple-0.470.0 - ) -" diff --git a/dev-perl/Net-DNS-SEC/metadata.xml b/dev-perl/Net-DNS-SEC/metadata.xml index d88749626d07..89c67f49bdb9 100644 --- a/dev-perl/Net-DNS-SEC/metadata.xml +++ b/dev-perl/Net-DNS-SEC/metadata.xml @@ -2,10 +2,6 @@ <!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> <pkgmetadata> <maintainer type="project"> - <email>dev@liguros.net</email> - <name>Development</name> - </maintainer> - <maintainer type="project"> <email>perl@gentoo.org</email> <name>Gentoo Perl Project</name> </maintainer> diff --git a/dev-perl/Net-SSLeay/Manifest b/dev-perl/Net-SSLeay/Manifest index b2179441f6c6..d7ca22370ddc 100644 --- a/dev-perl/Net-SSLeay/Manifest +++ b/dev-perl/Net-SSLeay/Manifest @@ -1,2 +1,2 @@ -DIST Net-SSLeay-1.93_02.tar.gz 641798 BLAKE2B 6aa108205330887883ae7c6442dafaf8b9d6f322296bb56e3e6cd2c399c0ba36435f5014e5f7c21b4a8823a4799d6b29761d56d1bfe56cb3ddc999dd7ad00b7d SHA512 9139ea51db992442efbd7386b55eb3283721d6546e5bbeb640e9ef4b6600b34b8f324482883c621a1b0e3fdcce7079b05baba7ecf6f35df407f2852968b75039 DIST Net-SSLeay-1.94.tar.gz 663948 BLAKE2B 97cef98bf3794ec992817e5ad91f8403ded95e29184512d9f23b5cbbd765912d2e7f8e835366b40aae9682dd13947cd79e2d9dcca2d10cd78e3c7869b1e197db SHA512 f1461667269f3da56ff7e1724b5511b95c34582250f8336e9f93d30f3b30d4a5360eb27622b9730bba11df75e00d717c7f0cea2120d20206723db136a8509375 +DIST Net-SSLeay-1.96.tar.gz 668471 BLAKE2B 9562ac046d7e713ba7eef17593a5246de8a051ea26bd01c42c47c5bb97b7e1ac994e3efeeed3eee5b471e6b9f4ec1e0cf6422fd966a1e985ab6d0f0f7f4302f3 SHA512 c8218159b9392aaebc996e4db51e0d3799d395289cb84d7ce4de807698ebed178b9b129b1e6e6a379c1f8247ee85f770e3266ea1f865378e559b37d75748665c diff --git a/dev-perl/Net-SSLeay/Net-SSLeay-1.940.0-r1.ebuild b/dev-perl/Net-SSLeay/Net-SSLeay-1.940.0-r1.ebuild index 002c59decf2c..b7b1dc2cab64 100644 --- a/dev-perl/Net-SSLeay/Net-SSLeay-1.940.0-r1.ebuild +++ b/dev-perl/Net-SSLeay/Net-SSLeay-1.940.0-r1.ebuild @@ -1,5 +1,6 @@ -# Copyright 2021-2024 Liguros Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 + EAPI=8 DIST_AUTHOR=CHRISN @@ -11,44 +12,39 @@ DESCRIPTION="Perl extension for using OpenSSL" LICENSE="Artistic-2" SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" -IUSE=" minimal examples" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~arm64-macos ~x64-macos ~x64-solaris" +IUSE="minimal examples" RDEPEND=" dev-libs/openssl:= - - virtual/perl-MIME-Base64 " DEPEND="${RDEPEND}" -BDEPEND="${RDEPEND} - virtual/perl-ExtUtils-MakeMaker - virtual/perl-File-Spec +BDEPEND=" + ${RDEPEND} test? ( !minimal? ( dev-perl/Test-Exception dev-perl/Test-Warn dev-perl/Test-NoWarnings ) - virtual/perl-Test-Simple ) " PATCHES=( - ${FILESDIR}/${PN}-1.88-fix-network-tests.patch + "${FILESDIR}/${PN}-1.88-fix-network-tests.patch" + "${FILESDIR}/${PN}-1.940.0-avoid-runtime-check.patch" + "${FILESDIR}/${PN}-1.940.0-openssl-3.4-tests.patch" + "${FILESDIR}/${PN}-1.940.0-openssl-3.4-tests-more.patch" ) PERL_RM_FILES=( - # Hateful author tests + # Author tests + # https://github.com/radiator-software/p5-net-ssleay/pull/393 't/local/01_pod.t' 't/local/02_pod_coverage.t' 't/local/kwalitee.t' ) -src_prepare() { - eapply -p0 ${FILESDIR}/patch-SSLeay_xs - default -} - src_configure() { if use test && has network ${DIST_TEST_OVERRIDE:-${DIST_TEST:-do parallel}}; then export NETWORK_TESTS=yes @@ -57,14 +53,14 @@ src_configure() { export NETWORK_TESTS=no fi export LIBDIR=$(get_libdir) - use prefix && export OPENSSL_PREFIX="${EPREFIX}/usr" + export OPENSSL_PREFIX="${ESYSROOT}/usr" perl-module_src_configure } src_compile() { mymake=( OPTIMIZE="${CFLAGS}" - OPENSSL_PREFIX="${EPREFIX}"/usr + OPENSSL_PREFIX="${ESYSROOT}"/usr ) perl-module_src_compile } diff --git a/dev-perl/Net-SSLeay/Net-SSLeay-1.940.0.ebuild b/dev-perl/Net-SSLeay/Net-SSLeay-1.960.0-r1.ebuild index 5d9dcb70d3b5..c1f5ec7157ac 100644 --- a/dev-perl/Net-SSLeay/Net-SSLeay-1.940.0.ebuild +++ b/dev-perl/Net-SSLeay/Net-SSLeay-1.960.0-r1.ebuild @@ -1,9 +1,10 @@ -# Copyright 2021-2024 Liguros Authors +# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 + EAPI=8 DIST_AUTHOR=CHRISN -DIST_VERSION=1.94 +DIST_VERSION=1.96 DIST_EXAMPLES=("examples/*") inherit perl-module @@ -11,43 +12,38 @@ DESCRIPTION="Perl extension for using OpenSSL" LICENSE="Artistic-2" SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" -IUSE=" minimal examples" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~arm64-macos ~x64-macos ~x64-solaris" +IUSE="minimal examples" RDEPEND=" dev-libs/openssl:= - - virtual/perl-MIME-Base64 " DEPEND="${RDEPEND}" -BDEPEND="${RDEPEND} - virtual/perl-ExtUtils-MakeMaker - virtual/perl-File-Spec +BDEPEND=" + ${RDEPEND} test? ( !minimal? ( dev-perl/Test-Exception dev-perl/Test-Warn dev-perl/Test-NoWarnings ) - virtual/perl-Test-Simple ) " PATCHES=( - ${FILESDIR}/${PN}-1.88-fix-network-tests.patch + "${FILESDIR}/${PN}-1.88-fix-network-tests.patch" + "${FILESDIR}/${PN}-1.940.0-avoid-runtime-check.patch" + "${FILESDIR}/${PN}-1.960.0-openssl-4.patch" ) PERL_RM_FILES=( - # Hateful author tests + # Author tests + # https://github.com/radiator-software/p5-net-ssleay/pull/393 't/local/01_pod.t' 't/local/02_pod_coverage.t' 't/local/kwalitee.t' ) -src_prepare() { - default -} - src_configure() { if use test && has network ${DIST_TEST_OVERRIDE:-${DIST_TEST:-do parallel}}; then export NETWORK_TESTS=yes @@ -56,14 +52,14 @@ src_configure() { export NETWORK_TESTS=no fi export LIBDIR=$(get_libdir) - use prefix && export OPENSSL_PREFIX="${EPREFIX}/usr" + export OPENSSL_PREFIX="${ESYSROOT}/usr" perl-module_src_configure } src_compile() { mymake=( OPTIMIZE="${CFLAGS}" - OPENSSL_PREFIX="${EPREFIX}"/usr + OPENSSL_PREFIX="${ESYSROOT}"/usr ) perl-module_src_compile } diff --git a/dev-perl/Net-SSLeay/Net-SSLeay-1.930.2.ebuild b/dev-perl/Net-SSLeay/Net-SSLeay-1.960.0.ebuild index 952c492e62d2..7ee15f06b2a8 100644 --- a/dev-perl/Net-SSLeay/Net-SSLeay-1.930.2.ebuild +++ b/dev-perl/Net-SSLeay/Net-SSLeay-1.960.0.ebuild @@ -1,9 +1,10 @@ -# Copyright 2021-2023 Liguros Authors +# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 + EAPI=8 DIST_AUTHOR=CHRISN -DIST_VERSION=1.93_02 +DIST_VERSION=1.96 DIST_EXAMPLES=("examples/*") inherit perl-module @@ -11,43 +12,37 @@ DESCRIPTION="Perl extension for using OpenSSL" LICENSE="Artistic-2" SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" -IUSE=" minimal examples" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris" +IUSE="minimal examples" RDEPEND=" dev-libs/openssl:= - - virtual/perl-MIME-Base64 " DEPEND="${RDEPEND}" -BDEPEND="${RDEPEND} - virtual/perl-ExtUtils-MakeMaker - virtual/perl-File-Spec +BDEPEND=" + ${RDEPEND} test? ( !minimal? ( dev-perl/Test-Exception dev-perl/Test-Warn dev-perl/Test-NoWarnings ) - virtual/perl-Test-Simple ) " PATCHES=( - ${FILESDIR}/${PN}-1.88-fix-network-tests.patch + "${FILESDIR}/${PN}-1.88-fix-network-tests.patch" + "${FILESDIR}/${PN}-1.940.0-avoid-runtime-check.patch" ) PERL_RM_FILES=( - # Hateful author tests + # Author tests + # https://github.com/radiator-software/p5-net-ssleay/pull/393 't/local/01_pod.t' 't/local/02_pod_coverage.t' 't/local/kwalitee.t' ) -src_prepare() { - default -} - src_configure() { if use test && has network ${DIST_TEST_OVERRIDE:-${DIST_TEST:-do parallel}}; then export NETWORK_TESTS=yes @@ -56,14 +51,14 @@ src_configure() { export NETWORK_TESTS=no fi export LIBDIR=$(get_libdir) - use prefix && export OPENSSL_PREFIX="${EPREFIX}/usr" + export OPENSSL_PREFIX="${ESYSROOT}/usr" perl-module_src_configure } src_compile() { mymake=( OPTIMIZE="${CFLAGS}" - OPENSSL_PREFIX="${EPREFIX}"/usr + OPENSSL_PREFIX="${ESYSROOT}"/usr ) perl-module_src_compile } diff --git a/dev-perl/Net-SSLeay/files/Net-SSLeay-1.940.0-avoid-runtime-check.patch b/dev-perl/Net-SSLeay/files/Net-SSLeay-1.940.0-avoid-runtime-check.patch new file mode 100644 index 000000000000..ed6019060926 --- /dev/null +++ b/dev-perl/Net-SSLeay/files/Net-SSLeay-1.940.0-avoid-runtime-check.patch @@ -0,0 +1,26 @@ +From 5219e8c5181b3a819b89032766340d5c1b11c3c5 Mon Sep 17 00:00:00 2001 +From: Luca Barbato <lu_zero@gentoo.org> +Date: Sat, 29 Jun 2024 21:10:06 +0200 +Subject: [PATCH] Remove the runtime check + +Makes simpler to cross-build. At least for Gentoo it is fine since we +control the versions on our own. +--- + Makefile.PL | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/Makefile.PL b/Makefile.PL +index 94c72f2..d4b1aea 100644 +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -196,7 +196,6 @@ EOM + exit MISSING_PREREQ; + } + +- check_openssl_version($prefix, $exec); + my %args = ( + CCCDLFLAGS => $opts->{cccdlflags}, + OPTIMIZE => $opts->{optimize}, +-- +2.45.2 + diff --git a/dev-perl/Net-SSLeay/files/Net-SSLeay-1.940.0-openssl-3.4-tests-more.patch b/dev-perl/Net-SSLeay/files/Net-SSLeay-1.940.0-openssl-3.4-tests-more.patch new file mode 100644 index 000000000000..f36ba6f073ca --- /dev/null +++ b/dev-perl/Net-SSLeay/files/Net-SSLeay-1.940.0-openssl-3.4-tests-more.patch @@ -0,0 +1,36 @@ +https://bugs.gentoo.org/949707 +https://github.com/radiator-software/p5-net-ssleay/issues/513 +https://github.com/sebastianas/p5-net-ssleay/commit/800a8c1ea63ef9edd145e7b334c64a7d8f1ef1a7 +(https://github.com/radiator-software/p5-net-ssleay/pull/514) + +From 800a8c1ea63ef9edd145e7b334c64a7d8f1ef1a7 Mon Sep 17 00:00:00 2001 +From: Sebastian Andrzej Siewior <sebastian@breakpoint.cc> +Date: Tue, 18 Feb 2025 18:57:15 +0100 +Subject: [PATCH] tests: Address another formatting difference in OpenSSL 3.4.1 + +Since OpenSSL 3.4.1, commit 8a28bca8ee08 ("x509: add a newline after +printing Full Name") to be exact, there is another new line change. + +Adapt the testsuite. + +Fixes: #513 + +Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc> +--- + t/local/32_x509_get_cert_info.t | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/t/local/32_x509_get_cert_info.t b/t/local/32_x509_get_cert_info.t +index 0fd1b68..08316bf 100644 +--- a/t/local/32_x509_get_cert_info.t ++++ b/t/local/32_x509_get_cert_info.t +@@ -218,6 +218,9 @@ for my $f (keys (%$dump)) { + # OpenSSL 1.0.0 to 1.1.1: + $ext_data =~ s{(Full Name:\n )}{\n$1}g; + $ext_data .= "\n"; ++ } elsif ( Net::SSLeay::SSLeay > 0x3040000f ) { ++ $ext_data =~ s{(\nFull Name:)}{\n$1}g; ++ $ext_data .= "\n"; + } + } + elsif ( $nid == 126 ) { diff --git a/dev-perl/Net-SSLeay/files/Net-SSLeay-1.940.0-openssl-3.4-tests.patch b/dev-perl/Net-SSLeay/files/Net-SSLeay-1.940.0-openssl-3.4-tests.patch new file mode 100644 index 000000000000..ca20b5e3b3af --- /dev/null +++ b/dev-perl/Net-SSLeay/files/Net-SSLeay-1.940.0-openssl-3.4-tests.patch @@ -0,0 +1,29 @@ +https://bugs.gentoo.org/949707 +https://github.com/radiator-software/p5-net-ssleay/issues/493 +https://github.com/radiator-software/p5-net-ssleay/issues/494 +https://github.com/radiator-software/p5-net-ssleay/issues/511 +https://github.com/radiator-software/p5-net-ssleay/pull/487 + +From e73cf1139a6651a968828d1634be8fec5beb50ba Mon Sep 17 00:00:00 2001 +From: Sebastian Andrzej Siewior <sebastian@breakpoint.cc> +Date: Wed, 16 Oct 2024 21:48:51 +0200 +Subject: [PATCH] test: 32_x509_get_cert_info allow single colon. + +Starting with 3.4.0 the double colon in emailAddress has been removed. +Adapt the test to allow a single colon in 3.4.0 and later. + +Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc> +--- a/t/local/32_x509_get_cert_info.t ++++ b/t/local/32_x509_get_cert_info.t +@@ -188,6 +188,10 @@ for my $f (keys (%$dump)) { + ) { + $ext_data =~ s{(othername:) [^, ]+}{$1<unsupported>}g; + } ++ # Starting with 3.4.0 the double colon in emailAddress has been removed. ++ if (Net::SSLeay::SSLeay >= 0x30400000) { ++ $ext_data =~ s{emailAddress::}{emailAddress:}; ++ } + } + elsif ( $nid == 89 ) { + # The output formatting for certificate policies has a + diff --git a/dev-perl/Net-SSLeay/files/Net-SSLeay-1.960.0-openssl-4.patch b/dev-perl/Net-SSLeay/files/Net-SSLeay-1.960.0-openssl-4.patch new file mode 100644 index 000000000000..4e134ec383e8 --- /dev/null +++ b/dev-perl/Net-SSLeay/files/Net-SSLeay-1.960.0-openssl-4.patch @@ -0,0 +1,450 @@ +https://bugs.gentoo.org/972928 +https://github.com/radiator-software/p5-net-ssleay/pull/553 + +From 361b3adc1dd09f70be7bd8972992626a3240b58d Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Michal=20Josef=20=C5=A0pa=C4=8Dek?= <mspacek@redhat.com> +Date: Tue, 14 Apr 2026 12:37:39 +0200 +Subject: [PATCH 1/5] Fix SSLv3 in OpenSSL 4.0.0 + +Support for SSLv3 was removed. +--- + SSLeay.xs | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/SSLeay.xs b/SSLeay.xs +index 0ed7d96..5407fa1 100644 +--- a/SSLeay.xs ++++ b/SSLeay.xs +@@ -2454,7 +2454,7 @@ SSL_CTX_v2_new() + + #endif + #endif +-#ifndef OPENSSL_NO_SSL3 ++#if !defined(OPENSSL_NO_SSL3) && OPENSSL_VERSION_NUMBER < 0x40000000L + + SSL_CTX * + SSL_CTX_v3_new() +@@ -5600,7 +5600,7 @@ SSLv2_method() + #endif + #endif + +-#ifndef OPENSSL_NO_SSL3 ++#if !defined(OPENSSL_NO_SSL3) && OPENSSL_VERSION_NUMBER < 0x40000000L + + const SSL_METHOD * + SSLv3_method() + +From 65048de66f6f8221d014d7593d8efd37ec9f0d55 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Michal=20Josef=20=C5=A0pa=C4=8Dek?= <mspacek@redhat.com> +Date: Tue, 14 Apr 2026 14:08:00 +0200 +Subject: [PATCH 2/5] OpenSSL 4.0.0 remove support for some TLS functions + +Removes fixed version TLS methods +(https://github.com/openssl/openssl/pull/30128) +--- + SSLeay.xs | 12 ++++++------ + lib/Net/SSLeay.pod | 17 ++++++++++------- + 2 files changed, 16 insertions(+), 13 deletions(-) + +diff --git a/SSLeay.xs b/SSLeay.xs +index 5407fa1..11601e6 100644 +--- a/SSLeay.xs ++++ b/SSLeay.xs +@@ -2472,7 +2472,7 @@ SSL_CTX_v23_new() + OUTPUT: + RETVAL + +-#if !defined(OPENSSL_NO_TLS1_METHOD) ++#if !defined(OPENSSL_NO_TLS1_METHOD) && OPENSSL_VERSION_NUMBER < 0x40000000L + + SSL_CTX * + SSL_CTX_tlsv1_new() +@@ -2483,7 +2483,7 @@ SSL_CTX_tlsv1_new() + + #endif + +-#if (OPENSSL_VERSION_NUMBER >= 0x10001001L && !defined(OPENSSL_NO_TLS1_1_METHOD)) /* OpenSSL 1.0.1-beta1 */ ++#if (OPENSSL_VERSION_NUMBER >= 0x10001001L && OPENSSL_VERSION_NUMBER < 0x40000000L && !defined(OPENSSL_NO_TLS1_1_METHOD)) /* OpenSSL 1.0.1-beta1 */ + + SSL_CTX * + SSL_CTX_tlsv1_1_new() +@@ -2494,7 +2494,7 @@ SSL_CTX_tlsv1_1_new() + + #endif + +-#if (OPENSSL_VERSION_NUMBER >= 0x10001001L && !defined(OPENSSL_NO_TLS1_2_METHOD)) /* OpenSSL 1.0.1-beta1 */ ++#if (OPENSSL_VERSION_NUMBER >= 0x10001001L && OPENSSL_VERSION_NUMBER < 0x40000000L && !defined(OPENSSL_NO_TLS1_2_METHOD)) /* OpenSSL 1.0.1-beta1 */ + + SSL_CTX * + SSL_CTX_tlsv1_2_new() +@@ -5616,7 +5616,7 @@ SSLv23_server_method() + const SSL_METHOD * + SSLv23_client_method() + +-#if !defined(OPENSSL_NO_TLS1_METHOD) ++#if !defined(OPENSSL_NO_TLS1_METHOD) && OPENSSL_VERSION_NUMBER < 0x40000000L + + const SSL_METHOD * + TLSv1_method() +@@ -5629,7 +5629,7 @@ TLSv1_client_method() + + #endif + +-#if (OPENSSL_VERSION_NUMBER >= 0x10001001L && !defined(OPENSSL_NO_TLS1_1_METHOD)) /* OpenSSL 1.0.1-beta1 */ ++#if (OPENSSL_VERSION_NUMBER >= 0x10001001L && OPENSSL_VERSION_NUMBER < 0x40000000L && !defined(OPENSSL_NO_TLS1_1_METHOD)) /* OpenSSL 1.0.1-beta1 */ + + const SSL_METHOD * + TLSv1_1_method() +@@ -5642,7 +5642,7 @@ TLSv1_1_client_method() + + #endif + +-#if (OPENSSL_VERSION_NUMBER >= 0x10001001L && !defined(OPENSSL_NO_TLS1_2_METHOD)) /* OpenSSL 1.0.1-beta1 */ ++#if (OPENSSL_VERSION_NUMBER >= 0x10001001L && OPENSSL_VERSION_NUMBER < 0x40000000L && !defined(OPENSSL_NO_TLS1_2_METHOD)) /* OpenSSL 1.0.1-beta1 */ + + const SSL_METHOD * + TLSv1_2_method() +diff --git a/lib/Net/SSLeay.pod b/lib/Net/SSLeay.pod +index 554fd11..63afa1c 100644 +--- a/lib/Net/SSLeay.pod ++++ b/lib/Net/SSLeay.pod +@@ -1575,7 +1575,7 @@ Check openssl doc L<https://www.openssl.org/docs/manmaster/man3/SSL_CTX_new.html + + =item * TLSv1_method, TLSv1_server_method and TLSv1_client_method + +-B<COMPATIBILITY:> Requires OpenSSL or LibreSSL built with support for TLSv1. Server and client methods not available in Net-SSLeay-1.82 and before. ++B<COMPATIBILITY:> Requires OpenSSL or LibreSSL built with support for TLSv1. Server and client methods not available in Net-SSLeay-1.82 and before. Not available in OpenSSL 4.0.0 and later. Use L</TLS_method> with L</CTX_set_min_proto_version> and L</CTX_set_max_proto_version> instead. + + Returns SSL_METHOD structure corresponding to TLSv1 method, the return value can be later used as a param of L</CTX_new_with_method>. + +@@ -1587,7 +1587,7 @@ Check openssl doc L<https://www.openssl.org/docs/manmaster/man3/SSL_CTX_new.html + + =item * TLSv1_1_method, TLSv1_1_server_method and TLSv1_1_client_method + +-B<COMPATIBILITY:> Requires OpenSSL >= 1.0.1 or LibreSSL built with support for TLSv1.1. Server and client methods not available in Net-SSLeay-1.82 and before. ++B<COMPATIBILITY:> Requires OpenSSL >= 1.0.1 or LibreSSL built with support for TLSv1.1. Server and client methods not available in Net-SSLeay-1.82 and before. Not available in OpenSSL 4.0.0 and later. Use L</TLS_method> with L</CTX_set_min_proto_version> and L</CTX_set_max_proto_version> instead. + + Returns SSL_METHOD structure corresponding to TLSv1_1 method, the return value can be later used as a param of L</CTX_new_with_method>. + +@@ -1599,7 +1599,7 @@ Check openssl doc L<https://www.openssl.org/docs/manmaster/man3/SSL_CTX_new.html + + =item * TLSv1_2_method, TLSv1_2_server_method and TLSv1_2_client_method + +-B<COMPATIBILITY:> Requires OpenSSL >= 1.0.1 or LibreSSL built with support for TLSv1.2. Server and client methods not available in Net-SSLeay-1.82 and before. ++B<COMPATIBILITY:> Requires OpenSSL >= 1.0.1 or LibreSSL built with support for TLSv1.2. Server and client methods not available in Net-SSLeay-1.82 and before. Not available in OpenSSL 4.0.0 and later. Use L</TLS_method> with L</CTX_set_min_proto_version> and L</CTX_set_max_proto_version> instead. + + Returns SSL_METHOD structure corresponding to TLSv1_2 method, the return value can be later used as a param of L</CTX_new_with_method>. + +@@ -2998,7 +2998,7 @@ Creates a new SSL_CTX object - based on SSLv3_method() - as framework to establi + + =item * CTX_tlsv1_new + +-B<COMPATIBILITY:> Requires OpenSSL or LibreSSL built with support for TLSv1. ++B<COMPATIBILITY:> Requires OpenSSL or LibreSSL built with support for TLSv1. Not available in OpenSSL 4.0.0 and later. Use L</CTX_new> with L</CTX_set_min_proto_version> and L</CTX_set_max_proto_version> instead. + + Creates a new SSL_CTX object - based on C<TLSv1_method()> - as a framework for establishing connections using TLSv1. + +@@ -3008,7 +3008,7 @@ Creates a new SSL_CTX object - based on C<TLSv1_method()> - as a framework for e + + =item * CTX_tlsv1_1_new + +-B<COMPATIBILITY:> Requires OpenSSL >= 1.0.1 or LibreSSL built with support for TLSv1.1. ++B<COMPATIBILITY:> Requires OpenSSL >= 1.0.1 or LibreSSL built with support for TLSv1.1. Not available in OpenSSL 4.0.0 and later. Use L</CTX_new> with L</CTX_set_min_proto_version> and L</CTX_set_max_proto_version> instead. + + Creates a new SSL_CTX object - based on C<TLSv1_1_method()> - as a framework for establishing connections using TLSv1.1. + +@@ -3018,7 +3018,7 @@ Creates a new SSL_CTX object - based on C<TLSv1_1_method()> - as a framework for + + =item * CTX_tlsv1_2_new + +-B<COMPATIBILITY:> Requires OpenSSL >= 1.0.1 or LibreSSL built with support for TLSv1.2. ++B<COMPATIBILITY:> Requires OpenSSL >= 1.0.1 or LibreSSL built with support for TLSv1.2. Not available in OpenSSL 4.0.0 and later. Use L</CTX_new> with L</CTX_set_min_proto_version> and L</CTX_set_max_proto_version> instead. + + Creates a new SSL_CTX object - based on C<TLSv1_2_method()> - as a framework for establishing connections using TLSv1.2. + +@@ -3035,7 +3035,10 @@ Creates a new SSL_CTX object based on $meth method + # + # returns: value corresponding to openssl's SSL_CTX structure (0 on failure) + +- # example ++ # example (recommended, available since OpenSSL 1.1.0) ++ my $ctx = Net::SSLeay::CTX_new_with_method(&Net::SSLeay::TLS_method); ++ ++ # example (TLSv1_method not available in OpenSSL 4.0.0+) + my $ctx = Net::SSLeay::CTX_new_with_method(&Net::SSLeay::TLSv1_method); + + Check openssl doc L<https://www.openssl.org/docs/manmaster/man3/SSL_CTX_new.html> + +From 8f06c634084f3e7117dec055632bbdb5c225347a Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Michal=20Josef=20=C5=A0pa=C4=8Dek?= <mspacek@redhat.com> +Date: Tue, 14 Apr 2026 14:32:27 +0200 +Subject: [PATCH 3/5] Fix Net::SSLeay to support opaque ASN1_STRING + +--- + SSLeay.xs | 95 +++++++++++++++++++++++++++++++++---------------------- + 1 file changed, 57 insertions(+), 38 deletions(-) + +diff --git a/SSLeay.xs b/SSLeay.xs +index 11601e6..21d5c1e 100644 +--- a/SSLeay.xs ++++ b/SSLeay.xs +@@ -2194,35 +2194,41 @@ int ssl_ctx_set_cert_cb_invoke(SSL *ssl, void *arg) + + time_t ASN1_TIME_timet(ASN1_TIME *asn1t, time_t *gmtoff) { + struct tm t; +- const char *p = (const char*) asn1t->data; ++#if (OPENSSL_VERSION_NUMBER >= 0x1010000f && !defined(LIBRESSL_VERSION_NUMBER)) || (LIBRESSL_VERSION_NUMBER >= 0x2070000fL) ++ const char *p = (const char*) ASN1_STRING_get0_data(asn1t); ++#else ++ const char *p = (const char*) ASN1_STRING_data(asn1t); ++#endif ++ int asn1t_length = ASN1_STRING_length(asn1t); ++ int asn1t_type = ASN1_STRING_type(asn1t); + size_t msec = 0, tz = 0, i, l; + time_t result; + int adj = 0; + +- if (asn1t->type == V_ASN1_UTCTIME) { +- if (asn1t->length<12 || asn1t->length>17) return 0; +- if (asn1t->length>12) tz = 12; ++ if (asn1t_type == V_ASN1_UTCTIME) { ++ if (asn1t_length<12 || asn1t_length>17) return 0; ++ if (asn1t_length>12) tz = 12; + } else { +- if (asn1t->length<14) return 0; +- if (asn1t->length>14) { ++ if (asn1t_length<14) return 0; ++ if (asn1t_length>14) { + if (p[14] == '.') { + msec = 14; +- for(i=msec+1;i<asn1t->length && p[i]>='0' && p[i]<='9';i++) ; +- if (i<asn1t->length) tz = i; ++ for(i=msec+1;i<(size_t)asn1t_length && p[i]>='0' && p[i]<='9';i++) ; ++ if (i<(size_t)asn1t_length) tz = i; + } else { + tz = 14; + } + } + } + +- l = msec ? msec : tz ? tz : asn1t->length; ++ l = msec ? msec : tz ? tz : (size_t)asn1t_length; + for(i=0;i<l;i++) { + if (p[i]<'0' || p[i]>'9') return 0; + } + + /* extract data and time */ + OPENSSL_cleanse(&t, sizeof(t)); +- if (asn1t->type == V_ASN1_UTCTIME) { /* YY - two digit year */ ++ if (asn1t_type == V_ASN1_UTCTIME) { /* YY - two digit year */ + t.tm_year = (p[0]-'0')*10 + (p[1]-'0'); + if (t.tm_year < 70) t.tm_year += 100; + i=2; +@@ -2242,11 +2248,11 @@ time_t ASN1_TIME_timet(ASN1_TIME *asn1t, time_t *gmtoff) { + if (tz) { + /* TZ is 'Z' or [+-]DDDD and after TZ the string must stop*/ + if (p[tz] == 'Z') { +- if (asn1t->length>tz+1 ) return 0; +- } else if (asn1t->length<tz+5 || (p[tz]!='-' && p[tz]!='+')) { ++ if ((size_t)asn1t_length>tz+1 ) return 0; ++ } else if ((size_t)asn1t_length<tz+5 || (p[tz]!='-' && p[tz]!='+')) { + return 0; + } else { +- if (asn1t->length>tz+5 ) return 0; ++ if ((size_t)asn1t_length>tz+5 ) return 0; + for(i=tz+1;i<tz+5;i++) { + if (p[i]<'0' || p[i]>'9') return 0; + } +@@ -4651,7 +4657,11 @@ X509_get_subjectAltNames(cert) + EXTEND(SP, 2); + count++; + PUSHs(sv_2mortal(newSViv(subjAltNameDN->type))); +- PUSHs(sv_2mortal(newSVpv((const char*)subjAltNameDN->d.ip->data, subjAltNameDN->d.ip->length))); ++#if (OPENSSL_VERSION_NUMBER >= 0x1010000f && !defined(LIBRESSL_VERSION_NUMBER)) || (LIBRESSL_VERSION_NUMBER >= 0x2070000fL) ++ PUSHs(sv_2mortal(newSVpv((const char*)ASN1_STRING_get0_data(subjAltNameDN->d.ip), ASN1_STRING_length(subjAltNameDN->d.ip)))); ++#else ++ PUSHs(sv_2mortal(newSVpv((const char*)ASN1_STRING_data(subjAltNameDN->d.ip), ASN1_STRING_length(subjAltNameDN->d.ip)))); ++#endif + break; + + } +@@ -5190,15 +5200,20 @@ P_ASN1_TIME_get_isotime(tm) + ASN1_TIME_to_generalizedtime(tm,&tmp); + if (tmp) { + if (ASN1_GENERALIZEDTIME_check(tmp)) { +- if (strlen((char*)tmp->data)>=14 && strlen((char*)tmp->data)<200) { ++#if (OPENSSL_VERSION_NUMBER >= 0x1010000f && !defined(LIBRESSL_VERSION_NUMBER)) || (LIBRESSL_VERSION_NUMBER >= 0x2070000fL) ++ const char *tmp_data = (const char*)ASN1_STRING_get0_data(tmp); ++#else ++ const char *tmp_data = (const char*)ASN1_STRING_data(tmp); ++#endif ++ if (strlen(tmp_data)>=14 && strlen(tmp_data)<200) { + strcpy (buf,"yyyy-mm-ddThh:mm:ss"); +- strncpy(buf, (char*)tmp->data, 4); +- strncpy(buf+5, (char*)tmp->data+4, 2); +- strncpy(buf+8, (char*)tmp->data+6, 2); +- strncpy(buf+11,(char*)tmp->data+8, 2); +- strncpy(buf+14,(char*)tmp->data+10,2); +- strncpy(buf+17,(char*)tmp->data+12,2); +- if (strlen((char*)tmp->data)>14) strcat(buf+19,(char*)tmp->data+14); ++ strncpy(buf, tmp_data, 4); ++ strncpy(buf+5, tmp_data+4, 2); ++ strncpy(buf+8, tmp_data+6, 2); ++ strncpy(buf+11,tmp_data+8, 2); ++ strncpy(buf+14,tmp_data+10,2); ++ strncpy(buf+17,tmp_data+12,2); ++ if (strlen(tmp_data)>14) strcat(buf+19,tmp_data+14); + } + } + ASN1_GENERALIZEDTIME_free(tmp); +@@ -5211,7 +5226,6 @@ P_ASN1_TIME_set_isotime(tm,str) + ASN1_TIME *tm + const char *str + PREINIT: +- ASN1_TIME t; + char buf[256]; + int i,rv; + CODE: +@@ -5233,22 +5247,27 @@ P_ASN1_TIME_set_isotime(tm,str) + buf[14] = '\0'; + if (strlen(str)>19 && strlen(str)<200) strcat(buf,str+19); + +- /* WORKAROUND: ASN1_TIME_set_string() not available in 0.9.8 !!!*/ +- /* in 1.0.0 we would simply: rv = ASN1_TIME_set_string(tm,buf); */ +- t.length = strlen(buf); +- t.data = (unsigned char *)buf; +- t.flags = 0; +- t.type = V_ASN1_UTCTIME; +- if (!ASN1_TIME_check(&t)) { +- t.type = V_ASN1_GENERALIZEDTIME; +- if (!ASN1_TIME_check(&t)) XSRETURN_UNDEF; ++ /* ASN1_TIME_set_string() not available in 0.9.8 */ ++#if OPENSSL_VERSION_NUMBER >= 0x10000000L ++ rv = ASN1_TIME_set_string(tm, buf); ++ if (!rv) XSRETURN_UNDEF; ++#else ++ { ++ ASN1_TIME t; ++ t.length = strlen(buf); ++ t.data = (unsigned char *)buf; ++ t.flags = 0; ++ t.type = V_ASN1_UTCTIME; ++ if (!ASN1_TIME_check(&t)) { ++ t.type = V_ASN1_GENERALIZEDTIME; ++ if (!ASN1_TIME_check(&t)) XSRETURN_UNDEF; ++ } ++ tm->type = t.type; ++ tm->flags = t.flags; ++ if (!ASN1_STRING_set(tm,t.data,t.length)) XSRETURN_UNDEF; ++ rv = 1; + } +- tm->type = t.type; +- tm->flags = t.flags; +- if (!ASN1_STRING_set(tm,t.data,t.length)) XSRETURN_UNDEF; +- rv = 1; +- +- /* end of ASN1_TIME_set_string() reimplementation */ ++#endif + + ST(0) = sv_newmortal(); + sv_setiv(ST(0), rv); /* 1 = success, undef = failure */ + +From 46c154477c11a66ec69b9ea6a420a281066a9af1 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Michal=20Josef=20=C5=A0pa=C4=8Dek?= <mspacek@redhat.com> +Date: Tue, 14 Apr 2026 14:48:51 +0200 +Subject: [PATCH 4/5] Update tests for removal of SSLv2 Client Hello support in + OpenSSL 4.0.0 + +--- + t/local/48_client_hello_callback.t | 12 +++++++----- + 1 file changed, 7 insertions(+), 5 deletions(-) + +diff --git a/t/local/48_client_hello_callback.t b/t/local/48_client_hello_callback.t +index d99122c..110d769 100644 +--- a/t/local/48_client_hello_callback.t ++++ b/t/local/48_client_hello_callback.t +@@ -5,13 +5,15 @@ use Test::Net::SSLeay qw( + can_fork data_file_path initialise_libssl new_ctx tcp_socket + ); + ++my $has_sslv2_hello; + BEGIN { + if (not defined &Net::SSLeay::CTX_set_client_hello_cb) { + plan skip_all => "No SSL_CTX_set_client_hello_cb()"; + } elsif (not can_fork()) { + plan skip_all => "fork() not supported on this system"; + } else { +- plan tests => 41; ++ $has_sslv2_hello = Net::SSLeay::SSLeay() < 0x40000000; ++ plan tests => $has_sslv2_hello ? 41 : 30; + } + } + +@@ -172,7 +174,7 @@ my @cb_tests = ( + # argument passed to the callback + # true if the callback function triggers croak() + # true if the client needs to test that ALPN alert (120) is received +- [ \&client_hello_cb_v2hello_detection, undef, 0 ], ++ ($has_sslv2_hello ? [ \&client_hello_cb_v2hello_detection, undef, 0 ] : ()), + [ \&client_hello_cb_getters, undef, 0 ], + [ \&client_hello_cb_value_passing, \$cb_test_arg, 0 ], + [ \&client_hello_cb_alert_alpn, undef, 0, 'alerts'], +@@ -248,8 +250,8 @@ my @results; + }; + + # Start with SSLv2 ClientHello detection test. Send a canned SSLv2 +- # ClientHello. +- { ++ # ClientHello. Removed in OpenSSL 4.0.0. ++ if ($has_sslv2_hello) { + my $s_clientv2 = $server->connect(); + my $clientv2_hello = get_sslv2_hello(); + syswrite($s_clientv2, $clientv2_hello, length $clientv2_hello); +@@ -306,7 +308,7 @@ my @results; + waitpid $pid, 0; + push @results, [$? == 0, 'Client: server exited with 0']; + END { +- Test::More->builder->current_test(37); ++ Test::More->builder->current_test($has_sslv2_hello ? 37 : 27); + ok( $_->[0], $_->[1] ) for (@results); + } + + +From 406f41ab39fe2acdea51589bf190628f1001338e Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Michal=20Josef=20=C5=A0pa=C4=8Dek?= <mspacek@redhat.com> +Date: Tue, 14 Apr 2026 14:55:42 +0200 +Subject: [PATCH 5/5] Add default '' for Net::SSLeay::OPENSSL_info() return + value in tests + +The root cause was the removal of engines in OpenSSL 4.0.0, which +triggered a warning. +--- + t/local/03_use.t | 17 +++++++++-------- + 1 file changed, 9 insertions(+), 8 deletions(-) + +diff --git a/t/local/03_use.t b/t/local/03_use.t +index 36364b4..f8fd1ae 100644 +--- a/t/local/03_use.t ++++ b/t/local/03_use.t +@@ -63,12 +63,13 @@ if (defined &Net::SSLeay::OPENSSL_version_major) { + diag(" OPENSSL_version_build_metadata(): '" . Net::SSLeay::OPENSSL_version_build_metadata() . "'"); + diag(""); + diag("Library information with OPENSSL_info():"); +- diag(" OPENSSL_INFO_CONFIG_DIR: '" . Net::SSLeay::OPENSSL_info(Net::SSLeay::OPENSSL_INFO_CONFIG_DIR()) . "'"); +- diag(" OPENSSL_INFO_ENGINES_DIR: '" . Net::SSLeay::OPENSSL_info(Net::SSLeay::OPENSSL_INFO_ENGINES_DIR()) . "'"); +- diag(" OPENSSL_INFO_MODULES_DIR: '" . Net::SSLeay::OPENSSL_info(Net::SSLeay::OPENSSL_INFO_MODULES_DIR()) . "'"); +- diag(" OPENSSL_INFO_DSO_EXTENSION: '" . Net::SSLeay::OPENSSL_info(Net::SSLeay::OPENSSL_INFO_DSO_EXTENSION()) . "'"); +- diag(" OPENSSL_INFO_DIR_FILENAME_SEPARATOR: '" . Net::SSLeay::OPENSSL_info(Net::SSLeay::OPENSSL_INFO_DIR_FILENAME_SEPARATOR()) . "'"); +- diag(" OPENSSL_INFO_LIST_SEPARATOR: '" . Net::SSLeay::OPENSSL_info(Net::SSLeay::OPENSSL_INFO_LIST_SEPARATOR()) . "'"); +- diag(" OPENSSL_INFO_SEED_SOURCE: '" . Net::SSLeay::OPENSSL_info(Net::SSLeay::OPENSSL_INFO_SEED_SOURCE()) . "'"); +- diag(" OPENSSL_INFO_CPU_SETTINGS: '" . Net::SSLeay::OPENSSL_info(Net::SSLeay::OPENSSL_INFO_CPU_SETTINGS()) . "'"); ++ my $ossl_info = sub { my $v = Net::SSLeay::OPENSSL_info($_[0]); defined $v ? $v : '' }; ++ diag(" OPENSSL_INFO_CONFIG_DIR: '" . $ossl_info->(Net::SSLeay::OPENSSL_INFO_CONFIG_DIR()) . "'"); ++ diag(" OPENSSL_INFO_ENGINES_DIR: '" . $ossl_info->(Net::SSLeay::OPENSSL_INFO_ENGINES_DIR()) . "'"); ++ diag(" OPENSSL_INFO_MODULES_DIR: '" . $ossl_info->(Net::SSLeay::OPENSSL_INFO_MODULES_DIR()) . "'"); ++ diag(" OPENSSL_INFO_DSO_EXTENSION: '" . $ossl_info->(Net::SSLeay::OPENSSL_INFO_DSO_EXTENSION()) . "'"); ++ diag(" OPENSSL_INFO_DIR_FILENAME_SEPARATOR: '" . $ossl_info->(Net::SSLeay::OPENSSL_INFO_DIR_FILENAME_SEPARATOR()) . "'"); ++ diag(" OPENSSL_INFO_LIST_SEPARATOR: '" . $ossl_info->(Net::SSLeay::OPENSSL_INFO_LIST_SEPARATOR()) . "'"); ++ diag(" OPENSSL_INFO_SEED_SOURCE: '" . $ossl_info->(Net::SSLeay::OPENSSL_INFO_SEED_SOURCE()) . "'"); ++ diag(" OPENSSL_INFO_CPU_SETTINGS: '" . $ossl_info->(Net::SSLeay::OPENSSL_INFO_CPU_SETTINGS()) . "'"); + } diff --git a/dev-perl/Net-SSLeay/files/patch-SSLeay_xs b/dev-perl/Net-SSLeay/files/patch-SSLeay_xs deleted file mode 100644 index 8fba1658870b..000000000000 --- a/dev-perl/Net-SSLeay/files/patch-SSLeay_xs +++ /dev/null @@ -1,42 +0,0 @@ -#1 EVP_add_digest() was removed. -#2, #3 X509_ALGOR has an accessor, don't reach into it, so it can be made opaque. - -Index: SSLeay.xs ---- SSLeay.xs.orig -+++ SSLeay.xs -@@ -7493,8 +7493,12 @@ SSL_CTX_set_tlsext_ticket_getkey_cb(ctx,callback=&PL_s - - #endif - -+#if !defined(LIBRESSL_VERSION_NUMBER) || (LIBRESSL_VERSION_NUMBER < 0x3090000fL) -+ - int EVP_add_digest(const EVP_MD *digest) - -+#endif -+ - #ifndef OPENSSL_NO_SHA - - const EVP_MD *EVP_sha1() -@@ -7973,7 +7977,9 @@ P_X509_get_signature_alg(x) - X509 * x - CODE: - #if (OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)) || (LIBRESSL_VERSION_NUMBER >= 0x3050000fL) -- RETVAL = (X509_get0_tbs_sigalg(x)->algorithm); -+ const ASN1_OBJECT * obj; -+ X509_ALGOR_get0(&obj, NULL, NULL, X509_get0_tbs_sigalg(x)); -+ RETVAL = (ASN1_OBJECT *)obj; - #else - RETVAL = (x->cert_info->signature->algorithm); - #endif -@@ -7988,8 +7994,10 @@ P_X509_get_pubkey_alg(x) - #if OPENSSL_VERSION_NUMBER >= 0x10100000L - { - X509_ALGOR * algor; -+ const ASN1_OBJECT * obj; - X509_PUBKEY_get0_param(0, 0, 0, &algor, X509_get_X509_PUBKEY(x)); -- RETVAL = (algor->algorithm); -+ X509_ALGOR_get0(&obj, NULL, NULL, algor); -+ RETVAL = ((ASN1_OBJECT *)obj); - } - #else - RETVAL = (x->cert_info->key->algor->algorithm); diff --git a/dev-perl/Net-SSLeay/metadata.xml b/dev-perl/Net-SSLeay/metadata.xml index d88749626d07..89c67f49bdb9 100644 --- a/dev-perl/Net-SSLeay/metadata.xml +++ b/dev-perl/Net-SSLeay/metadata.xml @@ -2,10 +2,6 @@ <!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> <pkgmetadata> <maintainer type="project"> - <email>dev@liguros.net</email> - <name>Development</name> - </maintainer> - <maintainer type="project"> <email>perl@gentoo.org</email> <name>Gentoo Perl Project</name> </maintainer> diff --git a/dev-perl/liguros-report/Manifest b/dev-perl/liguros-report/Manifest deleted file mode 100644 index a36eccd1f666..000000000000 --- a/dev-perl/liguros-report/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST liguros-report-3.2.2.tar.gz 19574 BLAKE2B d7042022c4f0c14bba9d2e59de9fb63bb31f390421c801813e3f6e8ea009a6ef931cdad5d3c01bbba8bd2850063e478140135fe1841d5138e061ed4e5d0cc17f SHA512 83806b819fcbe4ec08fc1ff7bc5328fd325b6b0fe91c47bff5e243639dc2ca03c2a5d5faff988458b4083cd682ed2bcef2013b241ca3e7486638631e6194fab8 diff --git a/dev-perl/liguros-report/files/liguros-report.conf b/dev-perl/liguros-report/files/liguros-report.conf deleted file mode 100644 index 574d3094dda8..000000000000 --- a/dev-perl/liguros-report/files/liguros-report.conf +++ /dev/null @@ -1,21 +0,0 @@ -# To report kernel info including O.S. type, release and version -kernel-info:y - -# Allows the reporter to search your /boot directory and list -# any kernels it finds -# (limited to kernel names that start with "kernel" or "vmlinuz") -boot-dir-info:y - -# To report profiles information -# the same as epro show-json -profile-info:y - -# To report kit versions as reported by ego -# extracted from ego kit show -kit-info:y - -# To report all installed packages (takes a few secs) -installed-pkgs:y - -# To report hardware info as is typical from lspci -hardware-info:y diff --git a/dev-perl/liguros-report/liguros-report-3.2.2-r1.ebuild b/dev-perl/liguros-report/liguros-report-3.2.2-r1.ebuild deleted file mode 100644 index cf452d77b96d..000000000000 --- a/dev-perl/liguros-report/liguros-report-3.2.2-r1.ebuild +++ /dev/null @@ -1,67 +0,0 @@ -# Copyright 2021-2023 Liguros Authors -# Distributed under the terms of the GNU General Public License v2 -EAPI=8 - -inherit perl-module bash-completion-r1 - -DESCRIPTION="Anonymous reporting tool for LiGurOS Linux" -HOMEPAGE="https://github.com/haxmeister/liguros-reporter" -GIT_COMMIT="b6caba46a8f0b1169ed2e375becfcf9cf1234163" -SRC_URI="https://github.com/haxmeister/liguros-reporter/archive/${GIT_COMMIT}.tar.gz -> ${P}.tar.gz" -KEYWORDS="*" -S="${WORKDIR}/liguros-reporter-${GIT_COMMIT}" - -LICENSE="MIT" -SLOT="0" -IUSE="${IUSE} bash-completion zsh-completion" - -RDEPEND=" - dev-perl/JSON - sys-apps/pciutils -" - -DIST_TEST="do parallel" - -src_compile() { - pod2man liguros-report > liguros-report.1 || die "pod2man failed" - pod2man lib/Liguros/Report.pm > liguros-report.3 || die "pod2man failed" -} - -src_install() { - insinto /etc - doins "${FILESDIR}/liguros-report.conf" - dodoc README.md - doman liguros-report.1 liguros-report.3 - - # Install bash completion files - if use bash-completion; then - newbashcomp share/bash-completion/liguros-report.bash liguros-report - fi - - # Install zsh completion files - if use zsh-completion; then - insinto /usr/share/zsh/site-functions - doins share/zsh-completion/_liguros-report - fi - - perl-module_src_install -} - -pkg_postinst() { - elog LiGurOS Reporter - Stable release - elog "The LiGurOS Reporter comes with a default config file that can be found in /etc/liguros-report.conf" - elog "You can review what information gets submitted and generate/update your config file" - elog "using the tool directly by issuing:" - echo - elog "liguros-report -u" - echo - elog "It is recommended to run --update-config|-u after any major release." - elog "You can setup a cron job to submit your information on regular basis." - elog "The data collected are submitted with a timestamp, so changes can be followed in time (like kits used, profile usage ...)." - elog "Here is a sample cron job definition to put into your crontab:" - echo - elog "0 * * * * /usr/bin/liguros-report -s" - echo - elog "This would send data every hour to the database." - echo -} diff --git a/dev-perl/liguros-report/liguros-report-9999.ebuild b/dev-perl/liguros-report/liguros-report-9999.ebuild deleted file mode 100644 index 83a4f3a38854..000000000000 --- a/dev-perl/liguros-report/liguros-report-9999.ebuild +++ /dev/null @@ -1,85 +0,0 @@ -# Copyright 2021-2022 Liguros Authors -# Distributed under the terms of the GNU General Public License v2 -EAPI=8 - -inherit perl-module bash-completion-r1 - -DESCRIPTION="Anonymous reporting tool for LiGurOS Linux" -HOMEPAGE="https://github.com/haxmeister/liguros-reporter" - -if [[ ${PV} == 9999* ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/haxmeister/liguros-reporter.git" - EGIT_BRANCH="develop" - SRC_URI="" - KEYWORDS="" - IUSE="test" -else - SRC_URI="https://github.com/haxmeister/liguros-reporter/archive/v${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="*" - S="${WORKDIR}/liguros-reporter-${PV}" -fi - -LICENSE="MIT" -SLOT="0" -IUSE="${IUSE} bash-completion zsh-completion" - -RDEPEND=" - dev-perl/JSON - sys-apps/pciutils -" - -DIST_TEST="do parallel" - -src_compile() { - pod2man liguros-report > funtoo-report.1 || die "pod2man failed" - pod2man lib/Liguros/Report.pm > liguros-report.3 || die "pod2man failed" - if [[ ${PV} == 9999* ]]; then - ./bump_version.sh describe # change the version to show latest commit hash - fi -} - -src_install() { - insinto /etc - doins "${FILESDIR}/liguros-report.conf" - dodoc README.md - doman liguros-report.1 - doman liguros-report.3 - # Install bash completion files - if use bash-completion; then - newbashcomp share/bash-completion/liguros-report.bash liguros-report - fi - # Install zsh completion files - if use zsh-completion; then - insinto /usr/share/zsh/site-functions - doins share/zsh-completion/_liguros-report - fi - perl-module_src_install -} - -pkg_postinst() { -if [[ ${PV} == 9999* ]]; then - elog LiGurOS Reporter - Development release - elog ==================================================================== - elog WARNING: You are using a version that is tracking the $EGIT_BRANCH - elog Things can be broken. If you want a stable release use version <9999 - elog ==================================================================== -else - elog LiGurOS Reporter - Stable release -fi - elog "The LiGurOS Reporter comes with a default config file that can be found in /etc/liguros-report.conf" - elog "You can review what information gets submitted and generate/update your config file" - elog "using the tool directly by issuing:" - echo - elog "liguros-report -u" - echo - elog "It is recommended to run --update-config|-u after any major release." - elog "You can setup a cron job to submit your information on regular basis." - elog "The data collected are submitted with a timestamp, so changes can be followed in time (like kits used, profile usage ...)." - elog "Here is a sample cron job definition to put into your crontab:" - echo - elog "0 * * * * /usr/bin/liguros-report -s" - echo - elog "This would send data every hour to the database." - echo -} diff --git a/dev-perl/liguros-report/metadata.xml b/dev-perl/liguros-report/metadata.xml deleted file mode 100644 index 75e2e665e6b4..000000000000 --- a/dev-perl/liguros-report/metadata.xml +++ /dev/null @@ -1,9 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="project"> - <email>dev@liguros.net</email> - <name>Development</name> - </maintainer> - <origin>baldeagleos-repo</origin> -</pkgmetadata> |
