From 6d061cce62f205c82457b58216459f247e551bc8 Mon Sep 17 00:00:00 2001 From: Sdk Build System Date: Sat, 6 Jan 2024 08:35:10 +0100 Subject: [PATCH] rebuilt with perl 5.36.0 [release 0.16-5mamba;Mon Apr 17 2023] --- perl-Authen-PAM-0.16-perl-5.36.0.patch | 32 ++++++++++++++++++++++++++ perl-Authen-PAM.spec | 18 +++++++++++---- 2 files changed, 45 insertions(+), 5 deletions(-) create mode 100644 perl-Authen-PAM-0.16-perl-5.36.0.patch diff --git a/perl-Authen-PAM-0.16-perl-5.36.0.patch b/perl-Authen-PAM-0.16-perl-5.36.0.patch new file mode 100644 index 0000000..fa1d549 --- /dev/null +++ b/perl-Authen-PAM-0.16-perl-5.36.0.patch @@ -0,0 +1,32 @@ +From cad0178cc0bdacd33f7faf2f86afa6d2a118f730 Mon Sep 17 00:00:00 2001 +From: Kent Fredric +Date: Wed, 14 Jun 2017 20:39:17 +1200 +Subject: [PATCH] Fix for '.' removal from @INC in Perl 5.26 + + require "foo.ext" + +Never really implied it would load files from ./ , it only did so +as a side effect of '.' being in @INC. + +The only way which works after 5.26 is to use an explicit ./ prefix, +which is special-cased for this purpose. +--- + Makefile.PL | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile.PL b/Makefile.PL +index f6e2d49..c7ffd45 100644 +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -10,7 +10,7 @@ sub configure { + + # returns a reference to anonymous hash which is then interpreted as + # additional options to the WriteMakeFile +- $options = require "pam.cfg"; ++ $options = require "./pam.cfg"; + + if ( $Config{'osname'} eq 'solaris' && $Config{'osvers'} eq '2.6') { + print "Adding a workaround for a bug in the Solaris 2.6 pam library\n"; +-- +2.13.1 + diff --git a/perl-Authen-PAM.spec b/perl-Authen-PAM.spec index 5b10d8b..c958a42 100644 --- a/perl-Authen-PAM.spec +++ b/perl-Authen-PAM.spec @@ -2,30 +2,33 @@ Name: perl-Authen-PAM Version: 0.16 -Release: 4mamba +Release: 5mamba Summary: Authen::PAM - Perl interface to PAM library Group: System/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco -URL: http://www.cpan.org +URL: https://www.cpan.org/ Source: http://search.cpan.org/CPAN/authors/id/N/NI/NIKIP/Authen-PAM-%{version}.tar.gz Patch0: %{name}-0.16-disable_login_test.patch +Patch1: perl-Authen-PAM-0.16-perl-5.36.0.patch License: Artistic, GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel -BuildRequires: pam-devel +BuildRequires: libpam-devel +BuildRequires: libperl BuildRequires: perl-devel ## AUTOBUILDREQ-END +BuildRequires: perl >= 2:5.36.0 Requires: perl >= %perl_major_ver -BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Authen::PAM - Perl interface to PAM library. %prep %setup -q -n Authen-PAM-%{version} -%patch0 -p1 +%patch 0 -p1 +%patch 1 -p1 -b .perl-5.36.0 %build perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor @@ -46,6 +49,8 @@ for dir in `find %{buildroot} -type d | grep $strid`; do echo "%dir ${dir#%buildroot}" >> .packlist done +find %{buildroot} -name *.so -exec chmod u+w {} \; + %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" rm -f .packlist @@ -54,6 +59,9 @@ rm -f .packlist %defattr(-,root,root) %changelog +* Mon Apr 17 2023 Sdk Build System 0.16-5mamba +- rebuilt with perl 5.36.0 + * Thu Dec 10 2020 Silvan Calarco 0.16-4mamba - rebuilt