diff --git a/perl-Crypt-DES-gcc14.patch b/perl-Crypt-DES-gcc14.patch new file mode 100644 index 0000000..62959a1 --- /dev/null +++ b/perl-Crypt-DES-gcc14.patch @@ -0,0 +1,13 @@ +Index: Crypt-DES-2.07/_des.h +=================================================================== +--- Crypt-DES-2.07.orig/_des.h ++++ Crypt-DES-2.07/_des.h +@@ -2,6 +2,6 @@ typedef unsigned char des_user_key[8]; + typedef unsigned char des_cblock[8]; + typedef unsigned long des_ks[32]; + +-void _des_crypt( des_cblock in, des_cblock out, des_ks key, int encrypt ); +-void _des_expand_key( des_user_key userKey, des_ks key ); ++void perl_des_crypt( des_cblock in, des_cblock out, des_ks key, int encrypt ); ++void perl_des_expand_key( des_user_key userKey, des_ks key ); + diff --git a/perl-Crypt-DES.changes b/perl-Crypt-DES.changes index f443d11..68a7b13 100644 --- a/perl-Crypt-DES.changes +++ b/perl-Crypt-DES.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue May 7 14:08:26 UTC 2024 - pgajdos@suse.com + +- added patches + fix build with gcc14 + + perl-Crypt-DES-gcc14.patch + ------------------------------------------------------------------- Mon Jul 29 12:11:49 UTC 2013 - cfarrell@suse.com diff --git a/perl-Crypt-DES.spec b/perl-Crypt-DES.spec index b9fe03d..d97f7df 100644 --- a/perl-Crypt-DES.spec +++ b/perl-Crypt-DES.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Crypt-DES # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -23,8 +23,10 @@ Release: 0 Summary: Perl DES encryption module License: BSD-3-Clause Group: Development/Libraries/Perl -Url: http://search.cpan.org/dist/Crypt-DES/ +URL: http://search.cpan.org/dist/Crypt-DES/ Source: http://www.cpan.org/authors/id/D/DP/DPARIS/%{cpan_name}-%{version}.tar.gz +# fix build with gcc14 +Patch0: perl-Crypt-DES-gcc14.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros @@ -40,7 +42,7 @@ methods =item decrypt %prep -%setup -q -n %{cpan_name}-%{version} +%autosetup -p1 -n %{cpan_name}-%{version} find . -type f -print0 | xargs -0 chmod 644 %build