Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package perl-lib-relative for openSUSE:Factory checked in at 2023-07-27 16:51:54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-lib-relative (Old) and /work/SRC/openSUSE:Factory/.perl-lib-relative.new.32662 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-lib-relative" Thu Jul 27 16:51:54 2023 rev:3 rq:1100902 version:1.2.0 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-lib-relative/perl-lib-relative.changes 2022-06-21 16:32:03.667780297 +0200 +++ /work/SRC/openSUSE:Factory/.perl-lib-relative.new.32662/perl-lib-relative.changes 2023-07-27 16:52:19.894330592 +0200 @@ -1,0 +2,9 @@ +Mon Jul 24 03:09:04 UTC 2023 - Tina Müller <timueller+p...@suse.de> + +- updated to 1.002 + see /usr/share/doc/packages/perl-lib-relative/Changes + + 1.002 2023-07-23 21:17:44 EDT + - Fix checking whether symlinks are available for testing on Win32 and msys (#4, genio) + +------------------------------------------------------------------- Old: ---- lib-relative-1.001.tar.gz New: ---- lib-relative-1.002.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-lib-relative.spec ++++++ --- /var/tmp/diff_new_pack.fmqoyA/_old 2023-07-27 16:52:20.538334231 +0200 +++ /var/tmp/diff_new_pack.fmqoyA/_new 2023-07-27 16:52:20.542334253 +0200 @@ -1,7 +1,7 @@ # # spec file for package perl-lib-relative # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,18 +18,21 @@ %define cpan_name lib-relative Name: perl-lib-relative -Version: 1.001 +Version: 1.2.0 Release: 0 +%define cpan_version 1.002 +Provides: perl(lib::relative) = 1.2.0 License: Artistic-2.0 Summary: Add paths relative to the current file to @INC URL: https://metacpan.org/release/%{cpan_name} -Source0: https://cpan.metacpan.org/authors/id/D/DB/DBOOK/%{cpan_name}-%{version}.tar.gz +Source0: https://cpan.metacpan.org/authors/id/D/DB/DBOOK/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(File::Temp) >= 0.19 BuildRequires: perl(Test::More) >= 0.88 +%define __perllib_provides /bin/true %{perl_requires} %description @@ -55,7 +58,7 @@ of the "SYNOPSIS" can be copy-pasted into a file to perform the same task. %prep -%autosetup -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{cpan_version} %build perl Makefile.PL INSTALLDIRS=vendor @@ -70,7 +73,7 @@ %perl_gen_filelist %files -f %{name}.files -%doc Changes CONTRIBUTING.md prereqs.yml README +%doc Changes CONTRIBUTING.md README %license LICENSE %changelog ++++++ lib-relative-1.001.tar.gz -> lib-relative-1.002.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib-relative-1.001/Changes new/lib-relative-1.002/Changes --- old/lib-relative-1.001/Changes 2022-06-15 20:13:19.000000000 +0200 +++ new/lib-relative-1.002/Changes 2023-07-24 03:17:46.000000000 +0200 @@ -1,3 +1,6 @@ +1.002 2023-07-23 21:17:44 EDT + - Fix checking whether symlinks are available for testing on Win32 and msys (#4, genio) + 1.001 2022-06-15 14:13:17 EDT - Skip symlink tests on msys as symlinks are broken on this platform (#2, pauloscustodio) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib-relative-1.001/MANIFEST new/lib-relative-1.002/MANIFEST --- old/lib-relative-1.001/MANIFEST 2022-06-15 20:13:19.000000000 +0200 +++ new/lib-relative-1.002/MANIFEST 2023-07-24 03:17:46.000000000 +0200 @@ -1,4 +1,4 @@ -# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.025. +# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.029. CONTRIBUTING.md Changes INSTALL diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib-relative-1.001/META.json new/lib-relative-1.002/META.json --- old/lib-relative-1.001/META.json 2022-06-15 20:13:19.000000000 +0200 +++ new/lib-relative-1.002/META.json 2023-07-24 03:17:46.000000000 +0200 @@ -4,7 +4,7 @@ "Dan Book <db...@cpan.org>" ], "dynamic_config" : 0, - "generated_by" : "Dist::Zilla version 6.025, CPAN::Meta::Converter version 2.150010", + "generated_by" : "Dist::Zilla version 6.029, CPAN::Meta::Converter version 2.150010", "license" : [ "artistic_2" ], @@ -58,7 +58,7 @@ "provides" : { "lib::relative" : { "file" : "lib/lib/relative.pm", - "version" : "1.001" + "version" : "1.002" } }, "release_status" : "stable", @@ -73,8 +73,9 @@ "web" : "https://github.com/Grinnz/lib-relative" } }, - "version" : "1.001", + "version" : "1.002", "x_contributors" : [ + "Chase Whitener <cwhite...@gmail.com>", "Dan Book <gri...@grinnz.com>", "Paulo Custodio <pauloscusto...@gmail.com>" ], diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib-relative-1.001/META.yml new/lib-relative-1.002/META.yml --- old/lib-relative-1.001/META.yml 2022-06-15 20:13:19.000000000 +0200 +++ new/lib-relative-1.002/META.yml 2023-07-24 03:17:46.000000000 +0200 @@ -10,7 +10,7 @@ configure_requires: ExtUtils::MakeMaker: '0' dynamic_config: 0 -generated_by: 'Dist::Zilla version 6.025, CPAN::Meta::Converter version 2.150010' +generated_by: 'Dist::Zilla version 6.029, CPAN::Meta::Converter version 2.150010' license: artistic_2 meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -27,7 +27,7 @@ provides: lib::relative: file: lib/lib/relative.pm - version: '1.001' + version: '1.002' requires: Cwd: '0' File::Basename: '0' @@ -38,8 +38,9 @@ bugtracker: https://github.com/Grinnz/lib-relative/issues homepage: https://github.com/Grinnz/lib-relative repository: https://github.com/Grinnz/lib-relative.git -version: '1.001' +version: '1.002' x_contributors: + - 'Chase Whitener <cwhite...@gmail.com>' - 'Dan Book <gri...@grinnz.com>' - 'Paulo Custodio <pauloscusto...@gmail.com>' x_generated_by_perl: v5.36.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib-relative-1.001/Makefile.PL new/lib-relative-1.002/Makefile.PL --- old/lib-relative-1.001/Makefile.PL 2022-06-15 20:13:19.000000000 +0200 +++ new/lib-relative-1.002/Makefile.PL 2023-07-24 03:17:46.000000000 +0200 @@ -1,4 +1,4 @@ -# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.025. +# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.029. use strict; use warnings; @@ -28,7 +28,7 @@ "File::Temp" => "0.19", "Test::More" => "0.88" }, - "VERSION" => "1.001", + "VERSION" => "1.002", "test" => { "TESTS" => "t/*.t" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib-relative-1.001/lib/lib/relative.pm new/lib-relative-1.002/lib/lib/relative.pm --- old/lib-relative-1.001/lib/lib/relative.pm 2022-06-15 20:13:19.000000000 +0200 +++ new/lib-relative-1.002/lib/lib/relative.pm 2023-07-24 03:17:46.000000000 +0200 @@ -7,7 +7,7 @@ use File::Spec (); use lib (); -our $VERSION = '1.001'; +our $VERSION = '1.002'; sub import { my ($class, @paths) = @_; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib-relative-1.001/t/00-report-prereqs.t new/lib-relative-1.002/t/00-report-prereqs.t --- old/lib-relative-1.001/t/00-report-prereqs.t 2022-06-15 20:13:19.000000000 +0200 +++ new/lib-relative-1.002/t/00-report-prereqs.t 2023-07-24 03:17:46.000000000 +0200 @@ -3,7 +3,7 @@ use strict; use warnings; -# This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.028 +# This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.029 use Test::More tests => 1; @@ -109,20 +109,24 @@ my @reports = [qw/Module Want Have/]; for my $mod ( sort keys %{ $req_hash->{$phase}{$type} } ) { - next if $mod eq 'perl'; next if grep { $_ eq $mod } @exclude; - my $file = $mod; - $file =~ s{::}{/}g; - $file .= ".pm"; - my ($prefix) = grep { -e File::Spec->catfile($_, $file) } @INC; - my $want = $req_hash->{$phase}{$type}{$mod}; $want = "undef" unless defined $want; $want = "any" if !$want && $want == 0; + if ($mod eq 'perl') { + push @reports, ['perl', $want, $]]; + next; + } + my $req_string = $want eq 'any' ? 'any version required' : "version '$want' required"; + my $file = $mod; + $file =~ s{::}{/}g; + $file .= ".pm"; + my ($prefix) = grep { -e File::Spec->catfile($_, $file) } @INC; + if ($prefix) { my $have = MM->parse_version( File::Spec->catfile($prefix, $file) ); $have = "undef" unless defined $have; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib-relative-1.001/t/lib_relative.t new/lib-relative-1.002/t/lib_relative.t --- old/lib-relative-1.001/t/lib_relative.t 2022-06-15 20:13:19.000000000 +0200 +++ new/lib-relative-1.002/t/lib_relative.t 2023-07-24 03:17:46.000000000 +0200 @@ -6,6 +6,37 @@ use File::Spec (); use File::Temp (); use lib::relative (); +use Config; + +sub has_symlinks { + return $Config{d_symlink} + unless $^O eq 'msys' || $^O eq 'MSWin32'; + + if ($^O eq 'msys') { + # msys needs both `d_symlink` and a special environment variable + return unless $Config{d_symlink}; + return $ENV{MSYS} =~ /winsymlinks:nativestrict/; + } elsif ($^O eq 'MSWin32') { + # Perl 5.33.5 adds symlink support for MSWin32 but needs elevated + # privileges so verify if we can use it for testing. + my $error; + my $can_symlink; + { # catch block + local $@; + $error = $@ || 'Error' unless eval { # try block + # temp dirs with newdir() get cleaned up when they go out of scope + my $wd = File::Temp->newdir(); + my $foo = File::Spec->catfile($wd, 'foo'); + my $bar = File::Spec->catfile($wd, 'bar'); + open my $fh, '>', $foo; + $can_symlink = symlink $foo, $bar; + 1; + }; + } + return 1 if $can_symlink && !$error; + return; + } +} # Relative path absolutized { @@ -37,14 +68,14 @@ # Symlinked __FILE__ SKIP: { - skip 4, 'symlinks broken in msys' if $^O eq 'msys'; + skip 'symlinks not supported in this build', 4 unless has_symlinks(); local @INC = @INC; my $dir = File::Temp->newdir; skip 4, 'tempdir in @INC' if grep { m!^\Q$dir\E! } @INC; my $path = File::Spec->catfile(File::Basename::dirname(Cwd::abs_path __FILE__), 'testlib', 'load_relative.pl'); my $link = File::Spec->catfile($dir, 'load_relative.pl'); my $rc; - eval { $rc = symlink $path, $link; 1 } or skip 4, 'symlinks not supported'; + eval { $rc = symlink $path, $link; 1 } or skip 'symlinks not supported', 4; die "symlink failed: $!" unless $rc; do $link or die "failed to run $path: $!";