Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package perl-Crypt-OpenSSL-Guess for openSUSE:Factory checked in at 2021-03-12 13:30:09 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Crypt-OpenSSL-Guess (Old) and /work/SRC/openSUSE:Factory/.perl-Crypt-OpenSSL-Guess.new.2401 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Crypt-OpenSSL-Guess" Fri Mar 12 13:30:09 2021 rev:2 rq:878052 version:0.12 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Crypt-OpenSSL-Guess/perl-Crypt-OpenSSL-Guess.changes 2018-10-15 10:06:30.597854353 +0200 +++ /work/SRC/openSUSE:Factory/.perl-Crypt-OpenSSL-Guess.new.2401/perl-Crypt-OpenSSL-Guess.changes 2021-03-12 13:30:10.790061594 +0100 @@ -1,0 +2,11 @@ +Sat Mar 6 03:06:13 UTC 2021 - Tina M??ller <timueller+p...@suse.de> + +- updated to 0.12 + see /usr/share/doc/packages/perl-Crypt-OpenSSL-Guess/Changes + + 0.12 2021-03-05T08:54:55Z + + - backport from Net::SSLeay 1.90 (PR#7) + - use `brew --prefix` for OPENSSL_PREFIX if available (PR#8) + +------------------------------------------------------------------- Old: ---- Crypt-OpenSSL-Guess-0.11.tar.gz New: ---- Crypt-OpenSSL-Guess-0.12.tar.gz cpanspec.yml ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Crypt-OpenSSL-Guess.spec ++++++ --- /var/tmp/diff_new_pack.RbbH2L/_old 2021-03-12 13:30:11.254062245 +0100 +++ /var/tmp/diff_new_pack.RbbH2L/_new 2021-03-12 13:30:11.254062245 +0100 @@ -1,7 +1,7 @@ # # spec file for package perl-Crypt-OpenSSL-Guess # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,21 +12,20 @@ # 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/ # +%define cpan_name Crypt-OpenSSL-Guess Name: perl-Crypt-OpenSSL-Guess -Version: 0.11 +Version: 0.12 Release: 0 -%define cpan_name Crypt-OpenSSL-Guess Summary: Guess OpenSSL include path License: Artistic-1.0 OR GPL-1.0-or-later -Group: Development/Libraries/Perl -Url: https://metacpan.org/release/%{cpan_name} +URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/A/AK/AKIYM/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Test::More) >= 0.98 @@ -47,14 +46,14 @@ Net::SSLeay. %prep -%setup -q -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{version} %build -%{__perl} Makefile.PL INSTALLDIRS=vendor -%{__make} %{?_smp_mflags} +perl Makefile.PL INSTALLDIRS=vendor +%make_build %check -%{__make} test +make test %install %perl_make_install @@ -62,7 +61,6 @@ %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root,755) %doc Changes minil.toml README.md %license LICENSE ++++++ Crypt-OpenSSL-Guess-0.11.tar.gz -> Crypt-OpenSSL-Guess-0.12.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Crypt-OpenSSL-Guess-0.11/Changes new/Crypt-OpenSSL-Guess-0.12/Changes --- old/Crypt-OpenSSL-Guess-0.11/Changes 2018-04-16 05:16:13.000000000 +0200 +++ new/Crypt-OpenSSL-Guess-0.12/Changes 2021-03-05 09:55:00.000000000 +0100 @@ -1,5 +1,10 @@ Revision history for Perl extension Crypt-OpenSSL-Guess +0.12 2021-03-05T08:54:55Z + + - backport from Net::SSLeay 1.90 (PR#7) + - use `brew --prefix` for OPENSSL_PREFIX if available (PR#8) + 0.11 2018-04-16T03:16:06Z - add dependencies with version requirement diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Crypt-OpenSSL-Guess-0.11/META.json new/Crypt-OpenSSL-Guess-0.12/META.json --- old/Crypt-OpenSSL-Guess-0.11/META.json 2018-04-16 05:16:13.000000000 +0200 +++ new/Crypt-OpenSSL-Guess-0.12/META.json 2021-03-05 09:55:00.000000000 +0100 @@ -4,7 +4,7 @@ "Takumi Akiyama <t.ak...@gmail.com>" ], "dynamic_config" : 0, - "generated_by" : "Minilla/v3.0.17", + "generated_by" : "Minilla/v3.1.11", "license" : [ "perl_5" ], @@ -35,7 +35,7 @@ "requires" : { "Test::CPAN::Meta" : "0", "Test::MinimumVersion::Fast" : "0.04", - "Test::PAUSE::Permissions" : "0.04", + "Test::PAUSE::Permissions" : "0.07", "Test::Pod" : "1.41", "Test::Spellunker" : "v0.2.7" } @@ -58,7 +58,7 @@ "provides" : { "Crypt::OpenSSL::Guess" : { "file" : "lib/Crypt/OpenSSL/Guess.pm", - "version" : "0.11" + "version" : "0.12" } }, "release_status" : "stable", @@ -72,7 +72,8 @@ "web" : "https://github.com/akiym/Crypt-OpenSSL-Guess" } }, - "version" : "0.11", + "version" : "0.12", "x_authority" : "cpan:AKIYM", - "x_serialization_backend" : "JSON::PP version 2.27400_02" + "x_serialization_backend" : "JSON::PP version 4.04", + "x_static_install" : 1 } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Crypt-OpenSSL-Guess-0.11/META.yml new/Crypt-OpenSSL-Guess-0.12/META.yml --- old/Crypt-OpenSSL-Guess-0.11/META.yml 2018-04-16 05:16:13.000000000 +0200 +++ new/Crypt-OpenSSL-Guess-0.12/META.yml 2021-03-05 09:55:00.000000000 +0100 @@ -7,7 +7,7 @@ configure_requires: ExtUtils::MakeMaker: '6.64' dynamic_config: 0 -generated_by: 'Minilla/v3.0.17, CPAN::Meta::Converter version 2.150010' +generated_by: 'Minilla/v3.1.11, CPAN::Meta::Converter version 2.150010' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -26,7 +26,7 @@ provides: Crypt::OpenSSL::Guess: file: lib/Crypt/OpenSSL/Guess.pm - version: '0.11' + version: '0.12' requires: Config: '0' Exporter: '5.57' @@ -37,6 +37,7 @@ bugtracker: https://github.com/akiym/Crypt-OpenSSL-Guess/issues homepage: https://github.com/akiym/Crypt-OpenSSL-Guess repository: git://github.com/akiym/Crypt-OpenSSL-Guess.git -version: '0.11' +version: '0.12' x_authority: cpan:AKIYM x_serialization_backend: 'CPAN::Meta::YAML version 0.018' +x_static_install: 1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Crypt-OpenSSL-Guess-0.11/Makefile.PL new/Crypt-OpenSSL-Guess-0.12/Makefile.PL --- old/Crypt-OpenSSL-Guess-0.11/Makefile.PL 2018-04-16 05:16:13.000000000 +0200 +++ new/Crypt-OpenSSL-Guess-0.12/Makefile.PL 2021-03-05 09:55:00.000000000 +0100 @@ -11,7 +11,7 @@ my %WriteMakefileArgs = ( NAME => 'Crypt::OpenSSL::Guess', DISTNAME => 'Crypt-OpenSSL-Guess', - VERSION => '0.11', + VERSION => '0.12', EXE_FILES => [glob('script/*'), glob('bin/*')], CONFIGURE_REQUIRES => { "ExtUtils::MakeMaker" => "6.64" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Crypt-OpenSSL-Guess-0.11/README.md new/Crypt-OpenSSL-Guess-0.12/README.md --- old/Crypt-OpenSSL-Guess-0.11/README.md 2018-04-16 05:16:13.000000000 +0200 +++ new/Crypt-OpenSSL-Guess-0.12/README.md 2021-03-05 09:55:00.000000000 +0100 @@ -19,11 +19,11 @@ Crypt::OpenSSL::Guess provides helpers to guess OpenSSL include path on any platforms. Often MacOS's homebrew OpenSSL cause a problem on installation due to include path is not added. -Some CPAN module provides to modify include path with configure-args, but [Carton](https://metacpan.org/pod/Carton) or [Module::CPANfile](https://metacpan.org/pod/Module::CPANfile) +Some CPAN module provides to modify include path with configure-args, but [Carton](https://metacpan.org/pod/Carton) or [Module::CPANfile](https://metacpan.org/pod/Module%3A%3ACPANfile) is not supported to pass configure-args to each modules. Crypt::OpenSSL::\* modules should use it on your [Makefile.PL](https://metacpan.org/pod/Makefile.PL). -This module resolves the include path by [Net::SSLeay](https://metacpan.org/pod/Net::SSLeay)'s workaround. -Original code is taken from `inc/Module/Install/PRIVATE/Net/SSLeay.pm` by [Net::SSLeay](https://metacpan.org/pod/Net::SSLeay). +This module resolves the include path by [Net::SSLeay](https://metacpan.org/pod/Net%3A%3ASSLeay)'s workaround. +Original code is taken from `inc/Module/Install/PRIVATE/Net/SSLeay.pm` by [Net::SSLeay](https://metacpan.org/pod/Net%3A%3ASSLeay). # FUNCTIONS @@ -59,7 +59,7 @@ # SEE ALSO -[Net::SSLeay](https://metacpan.org/pod/Net::SSLeay) +[Net::SSLeay](https://metacpan.org/pod/Net%3A%3ASSLeay) # LICENSE diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Crypt-OpenSSL-Guess-0.11/lib/Crypt/OpenSSL/Guess.pm new/Crypt-OpenSSL-Guess-0.12/lib/Crypt/OpenSSL/Guess.pm --- old/Crypt-OpenSSL-Guess-0.11/lib/Crypt/OpenSSL/Guess.pm 2018-04-16 05:16:13.000000000 +0200 +++ new/Crypt-OpenSSL-Guess-0.12/lib/Crypt/OpenSSL/Guess.pm 2021-03-05 09:55:00.000000000 +0100 @@ -3,10 +3,11 @@ use strict; use warnings; -our $VERSION = "0.11"; +our $VERSION = "0.12"; -use File::Spec; use Config; +use English qw( $OSNAME -no_match_vars ); +use File::Spec; use Symbol qw(gensym); use Exporter 'import'; @@ -20,8 +21,20 @@ return '' unless -x $exec; my @inc_paths; - for ("$prefix/include", "$prefix/inc32", '/usr/kerberos/include') { - push @inc_paths, $_ if -f "$_/openssl/ssl.h"; + + my @try_includes = ( + 'include' => sub { 1 }, + 'inc32' => sub { $OSNAME eq 'MSWin32' }, + ); + + while ( + !@inc_paths + && defined( my $dir = shift @try_includes ) + && defined( my $cond = shift @try_includes ) + ) { + if ( $cond->() && -f "$prefix/$dir/openssl/ssl.h" ) { + @inc_paths = "$prefix/$dir"; + } } return join ' ', map { "-I$_" } @inc_paths; @@ -45,11 +58,11 @@ my @pairs = (); # Library names depend on the compiler @pairs = (['eay32','ssl32'],['crypto.dll','ssl.dll'],['crypto','ssl']) if $Config{cc} =~ /gcc/; - @pairs = (['libeay32','ssleay32'],['libeay32MD','ssleay32MD'],['libeay32MT','ssleay32MT']) if $Config{cc} =~ /cl/; + @pairs = (['libeay32','ssleay32'],['libeay32MD','ssleay32MD'],['libeay32MT','ssleay32MT'],['libcrypto','libssl'],['crypto','ssl']) if $Config{cc} =~ /cl/; for my $dir (@lib_paths) { for my $p (@pairs) { $found = 1 if ($Config{cc} =~ /gcc/ && -f "$dir/lib$p->[0].a" && -f "$dir/lib$p->[1].a"); - $found = 1 if ($Config{cc} =~ /cl/ && -f "$dir/$p->[0].lib" && -f "$dir/p->[1].lib"); + $found = 1 if ($Config{cc} =~ /cl/ && -f "$dir/$p->[0].lib" && -f "$dir/$p->[1].lib"); if ($found) { @lib_paths = ($dir); last; @@ -61,6 +74,9 @@ if (-r 'sslroot:[000000]openssl.cnf') { # openssl.org source install @lib_paths = ('SSLLIB'); } + elsif (-r 'ssl1$root:[000000]openssl.cnf') { # VSI or HPE SSL1 install + @lib_paths = ('SYS$SHARE'); + } elsif (-r 'ssl$root:[000000]openssl.cnf') { # HP install @lib_paths = ('SYS$SHARE'); } @@ -94,6 +110,12 @@ return $ENV{OPENSSL_PREFIX}; } + # Homebrew (macOS) or LinuxBrew + if ($^O ne 'MSWin32' and my $prefix = `brew --prefix openssl 2>@{[File::Spec->devnull]}`) { + chomp $prefix; + return $prefix; + } + my @guesses = ( '/home/linuxbrew/.linuxbrew/opt/openssl/bin/openssl' => '/home/linuxbrew/.linuxbrew/opt/openssl', # LinuxBrew openssl '/usr/local/opt/openssl/bin/openssl' => '/usr/local/opt/openssl', # OSX homebrew openssl @@ -112,6 +134,7 @@ $Config{prefix} . '\bin\openssl.exe' => $Config{prefix}, # strawberry perl $Config{prefix} . '\..\c\bin\openssl.exe' => $Config{prefix} . '\..\c', # strawberry perl '/sslexe/openssl.exe' => '/sslroot', # VMS, openssl.org + '/ssl1$exe/openssl.exe' => '/ssl1$root',# VMS, VSI or HPE install '/ssl$exe/openssl.exe' => '/ssl$root', # VMS, HP install ); @@ -159,7 +182,12 @@ close $pipe; if ( ($major, $minor, $letter) = $output =~ /^OpenSSL\s+(\d+\.\d+)\.(\d+)([a-z]?)/ ) { - } elsif ( ($major, $minor) = $output =~ /^LibreSSL\s+(\d+\.\d+)\.(\d+)/ ) { + } elsif ( ($major, $minor) = $output =~ /^LibreSSL\s+(\d+\.\d+)(?:\.(\d+))?/ ) { + # LibreSSL 2.0.x releases only identify themselves as "LibreSSL 2.0", + # with no patch release number + if ( !defined $minor ) { + $minor = "x"; + } } else { die <<EOM *** OpenSSL version test failed ++++++ cpanspec.yml ++++++ --- #description_paragraphs: 3 #description: |- # override description from CPAN #summary: override summary from CPAN #no_testing: broken upstream #sources: # - source1 # - source2 #patches: # foo.patch: -p1 # bar.patch: # baz.patch: PATCH-FIX-OPENSUSE #preamble: |- # BuildRequires: gcc-c++ #post_prep: |- # hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'` # sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL #post_build: |- # rm unused.files #post_install: |- # sed on %{name}.files #license: SUSE-NonFree #skip_noarch: 1 #custom_build: |- #./Build build flags=%{?_smp_mflags} --myflag #custom_test: |- #startserver && make test #ignore_requires: Bizarre::Module #skip_doc: regexp_to_skip_for_doc.* #add_doc: files to add to docs #misc: |- #anything else to be added to spec file #follows directly after %files section, so it can contain new blocks or also #changes to %files section