Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package perl-File-Unpack2 for openSUSE:Factory checked in at 2026-11-24 12:38:54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-File-Unpack2 (Old) and /work/SRC/openSUSE:Factory/.perl-File-Unpack2.new.1340718 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-File-Unpack2" Tue Nov 24 12:38:54 2026 rev:3 rq:1399975 version:2.40.0 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-File-Unpack2/perl-File-Unpack2.changes 2026-11-21 12:33:33.733336587 +0100 +++ /work/SRC/openSUSE:Factory/.perl-File-Unpack2.new.1340718/perl-File-Unpack2.changes 2026-11-24 12:45:10.312093190 +0100 @@ -1,0 +2,11 @@ +Thu Nov 19 14:27:48 UTC 2026 - Tina Müller <[email protected]> + +- updated to 2.40.0 (2.04) + see /usr/share/doc/packages/perl-File-Unpack2/Changes + + 2.04 kraih Thu Nov 19 11:40:00 CET 2026 + - Fixed tarballs with directories lacking write or search permission (such as + npm's pngjs-5.0.0.tgz) failing to unpack when their members are not in + tree order. + +------------------------------------------------------------------- Old: ---- File-Unpack2-2.03.tar.gz New: ---- File-Unpack2-2.04.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-File-Unpack2.spec ++++++ --- /var/tmp/diff_new_pack.elPWof/_old 2026-11-24 12:45:11.233132225 +0100 +++ /var/tmp/diff_new_pack.elPWof/_new 2026-11-24 12:45:11.237132394 +0100 @@ -18,10 +18,10 @@ %define cpan_name File-Unpack2 Name: perl-File-Unpack2 -Version: 2.30.0 +Version: 2.40.0 Release: 0 -# 2.03 -> normalize -> 2.30.0 -%define cpan_version 2.03 +# 2.04 -> normalize -> 2.40.0 +%define cpan_version 2.04 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Aggressively unpack any archive, recursively, by mime type URL: https://metacpan.org/release/%{cpan_name} ++++++ File-Unpack2-2.03.tar.gz -> File-Unpack2-2.04.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/File-Unpack2-2.03/Changes new/File-Unpack2-2.04/Changes --- old/File-Unpack2-2.03/Changes 2026-10-22 17:34:04.852934896 +0200 +++ new/File-Unpack2-2.04/Changes 2026-11-19 11:40:13.502691605 +0100 @@ -1,3 +1,8 @@ +2.04 kraih Thu Nov 19 11:40:00 CET 2026 + - Fixed tarballs with directories lacking write or search permission (such as + npm's pngjs-5.0.0.tgz) failing to unpack when their members are not in + tree order. + 2.03 kraih Thu Oct 22 17:30:00 CEST 2026 - Fixed the cached cpio command being returned as an array reference on every lookup after the first, which broke unpacking cpio archives when an diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/File-Unpack2-2.03/META.json new/File-Unpack2-2.04/META.json --- old/File-Unpack2-2.03/META.json 2026-10-22 18:10:51.985612065 +0200 +++ new/File-Unpack2-2.04/META.json 2026-11-19 11:47:10.634445656 +0100 @@ -78,6 +78,6 @@ "web" : "https://github.com/openSUSE/perl-File-Unpack2" } }, - "version" : "2.03", + "version" : "2.04", "x_serialization_backend" : "JSON::PP version 4.16" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/File-Unpack2-2.03/META.yml new/File-Unpack2-2.04/META.yml --- old/File-Unpack2-2.03/META.yml 2026-10-22 18:10:51.945682859 +0200 +++ new/File-Unpack2-2.04/META.yml 2026-11-19 11:47:10.593029407 +0100 @@ -46,5 +46,5 @@ homepage: https://github.com/openSUSE/cavil license: https://dev.perl.org/licenses/ repository: https://github.com/openSUSE/perl-File-Unpack2.git -version: '2.03' +version: '2.04' x_serialization_backend: 'CPAN::Meta::YAML version 0.020' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/File-Unpack2-2.03/lib/File/Unpack2.pm new/File-Unpack2-2.04/lib/File/Unpack2.pm --- old/File-Unpack2-2.03/lib/File/Unpack2.pm 2026-10-22 17:34:09.398040921 +0200 +++ new/File-Unpack2-2.04/lib/File/Unpack2.pm 2026-11-19 11:40:13.499995516 +0100 @@ -42,12 +42,12 @@ =head1 VERSION -Version 2.03 +Version 2.04 =cut # Please run perl Makefile.PL after changing the version here. -our $VERSION = '2.03'; +our $VERSION = '2.04'; POSIX::setlocale(&POSIX::LC_ALL, 'C'); $ENV{PATH} = '/usr/bin:/bin'; @@ -160,6 +160,10 @@ unless $self->run([@tar, "--force-local", "--help"], { out_err => '/dev/null' }); push @tar, "--no-unquote" unless $self->run([@tar, "--no-unquote", "--help"], { out_err => '/dev/null'}); + ## Archives not in tree order (npm's pngjs-5.0.0.tgz) would get a u-x directory mode applied before its last member + ## is written. unpack() makes each directory readable before descending, so the late modes are harmless. + push @tar, "--delay-directory-restore" + unless $self->run([@tar, "--delay-directory-restore", "--help"], { out_err => '/dev/null'}); $self->{_locate_tar} = \@tar; return @tar; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/File-Unpack2-2.03/t/11-adversarial.t new/File-Unpack2-2.04/t/11-adversarial.t --- old/File-Unpack2-2.03/t/11-adversarial.t 2026-07-17 13:22:10.141739500 +0200 +++ new/File-Unpack2-2.04/t/11-adversarial.t 2026-11-19 11:37:58.848495982 +0100 @@ -124,6 +124,28 @@ ok((grep {m{sibling\.txt$}} keys %{$j->{unpacked}}), 'sibling file still unpacked'); }; +subtest 'a tarball with directories lacking u+wx is fully unpacked' => sub { + my $tmp = tempdir("FU_11p_XXXXXX", TMPDIR => 1, CLEANUP => 1); + my $src = tempdir("FU_11q_XXXXXX", TMPDIR => 1, CLEANUP => 1); + mkdir "$tmp/package"; + mkdir "$tmp/package/lib"; + write_file("$tmp/package/lib/png.js", "module.exports = 1;\n"); + write_file("$tmp/package/README", "readme\n"); + + # Leaving package/lib before its file is what makes tar apply the mode too early (pngjs-5.0.0.tgz) + my $members = 'package package/lib package/README package/lib/png.js'; + system('/bin/sh', '-c', "cd '$tmp' && tar --mode=0666 --no-recursion -cf '$src/pngjs.tar' $members") == 0 + or plan skip_all => 'tar --mode failed'; + + my $log; + my $dest = tempdir(CLEANUP => 1); + my $u = File::Unpack2->new(destdir => $dest, verbose => 0, logfile => \$log, world_readable => 1); + ok(guarded(30, sub { $u->unpack("$src") }), 'unpack() returned'); + my $j = eval { JSON::from_json($log) }; + ok(!(grep { $_->{failed} } values %{$j->{unpacked}}), 'tar did not fail'); + ok((grep {m{package/lib/png\.js$}} keys %{$j->{unpacked}}), 'file below the u-x directory was unpacked'); +}; + subtest 'lzma-family helpers carry --memlimit-decompress' => sub { my $u = File::Unpack2->new(destdir => tempdir(CLEANUP => 1), verbose => 0, logfile => '/dev/null'); my $h = $u->find_mime_helper('application/xz'); ++++++ _scmsync.obsinfo ++++++ --- /var/tmp/diff_new_pack.elPWof/_old 2026-11-24 12:45:11.471142312 +0100 +++ /var/tmp/diff_new_pack.elPWof/_new 2026-11-24 12:45:11.479142651 +0100 @@ -1,6 +1,6 @@ -mtime: 1792749920 -commit: e9cb79ddc5084842d32c2190d59567ca3ec959e89242b6b8038e6034ecaca4f3 +mtime: 1795098468 +commit: 564cf99d39caa7851b4d737e4b27f205dc4f22a9494e0b0273a39de6fc0f38e7 url: https://src.opensuse.org/perl/perl-File-Unpack2 -revision: e9cb79ddc5084842d32c2190d59567ca3ec959e89242b6b8038e6034ecaca4f3 +revision: 564cf99d39caa7851b4d737e4b27f205dc4f22a9494e0b0273a39de6fc0f38e7 projectscmsync: https://src.opensuse.org/perl/_ObsPrj ++++++ build.specials.obscpio ++++++ ++++++ build.specials.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.gitignore new/.gitignore --- old/.gitignore 1970-01-01 01:00:00.000000000 +0100 +++ new/.gitignore 2026-11-19 15:27:48.000000000 +0100 @@ -0,0 +1 @@ +.osc
