Skip to content

Commit 8c19f30

Browse files
Remove psw protected zip file from upstream src (if psw cannot be found) (microsoft#13898)
Co-authored-by: CBL-Mariner Servicing Account <[email protected]>
1 parent fda1de8 commit 8c19f30

File tree

12 files changed

+557
-504
lines changed

12 files changed

+557
-504
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"Signatures": {
3-
"libzip-1.10.1.tar.xz": "dc3c8d5b4c8bbd09626864f6bcf93de701540f761d76b85d7c7d710f4bd90318"
3+
"libzip-1.10.1-scrubbed.tar.xz": "22fcb0d7f7ae38bbe0baea0c2c54378881024f55a32be00a8641d3f9f71f32e4"
44
}
55
}

SPECS/libzip/libzip.spec

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
Summary: C library for reading, creating, and modifying zip archives
22
Name: libzip
33
Version: 1.10.1
4-
Release: 2%{?dist}
4+
Release: 3%{?dist}
55
License: BSD
66
Vendor: Microsoft Corporation
77
Distribution: Azure Linux
88
URL: https://libzip.org/
9-
Source0: https://libzip.org/download/libzip-%{version}.tar.xz
9+
# Note that scrubbed version of the source tarball contains upstream source minus password protected files which password is not known
10+
Source0: https://libzip.org/download/libzip-%{version}.tar.xz#/libzip-%{version}-scrubbed.tar.xz
1011
BuildRequires: bzip2-devel
1112
BuildRequires: cmake >= 3.0.2
1213
BuildRequires: gcc
@@ -115,6 +116,9 @@ make test
115116
%{_libdir}/pkgconfig/libzip.pc
116117

117118
%changelog
119+
* Tue May 27 2025 Nicolas Guibourge <[email protected]> - 1.10.1-3
120+
- Remove password protected zip files from upstream src tarball
121+
118122
* Mon Aug 19 2024 Andrew Phelps <[email protected]> - 1.10.1-2
119123
- Fix package tests
120124
- Switch to out-of-source build
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"Signatures": {
3-
"linux-firmware-20230804.tar.gz": "c09913f675bea9623798eebf8b238cda49b62dfa1729cc7c2c17193b0ab22ff7"
3+
"linux-firmware-20230804-scrubbed.tar.gz": "97c0a49b90e28284bd97de128057166c022245362af6d8a57951f5e7e547ffe5"
44
}
55
}

SPECS/linux-firmware/linux-firmware.spec

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@
55
Summary: Linux Firmware
66
Name: linux-firmware
77
Version: 20230804
8-
Release: 1%{?dist}
8+
Release: 2%{?dist}
99
License: GPL+ AND GPLv2+ AND MIT AND Redistributable, no modification permitted
1010
Vendor: Microsoft Corporation
1111
Distribution: Azure Linux
1212
Group: System Environment/Kernel
1313
URL: https://www.kernel.org/
14-
Source0: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/%{name}.git/snapshot/%{name}-%{version}.tar.gz
14+
# Note that scrubbed version of the source tarball contains upstream source minus password protected files which password is not known
15+
Source0: https://www.kernel.org/pub/linux/kernel/firmware/%{name}-%{version}.tar.gz#/%{name}-%{version}-scrubbed.tar.gz
1516
BuildArch: noarch
1617

1718
Requires: %{name}-broadcom = %{version}-%{release}
@@ -96,6 +97,9 @@ cp iwlwifi-8000C-*.ucode %{buildroot}%{_firmwarepath}
9697
%{_firmwarepath}/intel
9798

9899
%changelog
100+
* Tue May 27 2025 Nicolas Guibourge <[email protected]> - 0230804-2
101+
- Remove password protected compressed files from upstream src tarball
102+
99103
* Fri Oct 27 2023 CBL-Mariner Servicing Account <[email protected]> - 20230804-1
100104
- Auto-upgrade to 20230804 - Azure Linux 3.0 - package upgrades
101105

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
diff -ru perl-5.38.2-orig/MANIFEST perl-5.38.2/MANIFEST
2+
--- perl-5.38.2-orig/MANIFEST 2025-05-27 11:19:46.070345254 -0400
3+
+++ perl-5.38.2/MANIFEST 2025-05-27 11:23:50.224235644 -0400
4+
@@ -1399,7 +1399,6 @@
5+
cpan/IO-Compress/t/cz-14gzopen.t IO::Compress
6+
cpan/IO-Compress/t/files/bad-efs.zip
7+
cpan/IO-Compress/t/files/encrypt-aes.zip
8+
-cpan/IO-Compress/t/files/encrypt-standard.zip
9+
cpan/IO-Compress/t/files/jar.zip
10+
cpan/IO-Compress/t/files/meta.xml
11+
cpan/IO-Compress/t/files/test.ods
12+
diff -ru perl-5.38.2-orig/cpan/IO-Compress/t/105oneshot-zip-only.t perl-5.38.2/cpan/IO-Compress/t/105oneshot-zip-only.t
13+
--- perl-5.38.2-orig/cpan/IO-Compress/t/105oneshot-zip-only.t 2025-05-27 11:19:46.300345249 -0400
14+
+++ perl-5.38.2/cpan/IO-Compress/t/105oneshot-zip-only.t 2025-05-27 11:23:45.336599173 -0400
15+
@@ -163,23 +163,6 @@
16+
}
17+
18+
{
19+
- title "Detect encrypted zip file";
20+
-
21+
- my $files = "./t/" ;
22+
- $files = "./" if $ENV{PERL_CORE} ;
23+
- $files .= "files/";
24+
-
25+
- my $zipfile = "$files/encrypt-standard.zip" ;
26+
- my $output;
27+
-
28+
- ok ! unzip "$files/encrypt-standard.zip" => \$output ;
29+
- like $UnzipError, qr/Encrypted content not supported/ ;
30+
-
31+
- ok ! unzip "$files/encrypt-aes.zip" => \$output ;
32+
- like $UnzipError, qr/Encrypted content not supported/ ;
33+
-}
34+
-
35+
-{
36+
title "jar file with deflated directory";
37+
38+
# Create Jar as follow

SPECS/perl/perl.signatures.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"Pod-Html-license-clarification": "8667642d6d3a4ca8d8281b33b5e83a264e7681eb5080256331ae34b09d63b0cc",
44
"gendep.macros": "acde93c38249583f6e24fa21cc4066ffbca617d36f8cba5d4676408ae0bbefb2",
55
"macros.perl": "0597172591cea26c81e92b580b63cb1c5e812cc354c34ac21b8ebc1854713183",
6-
"perl-5.38.2.tar.xz": "d91115e90b896520e83d4de6b52f8254ef2b70a8d545ffab33200ea9f1cf29e8"
6+
"perl-5.38.2-scrubbed.tar.xz": "6f5b72cd31d009f364b5ac8b20b0e5493203b70a8d997ced785d5a2a5d68a1a7"
77
}
88
}

SPECS/perl/perl.spec

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,13 @@ License: GPL+ or Artistic
127127
Epoch: %{perl_epoch}
128128
Version: %{perl_version}
129129
# release number must be even higher, because dual-lived modules will be broken otherwise
130-
Release: 507%{?dist}
130+
Release: 508%{?dist}
131131
Summary: Practical Extraction and Report Language
132132
Url: https://www.perl.org/
133133
Vendor: Microsoft Corporation
134134
Distribution: Azure Linux
135-
Source0: https://www.cpan.org/src/5.0/perl-%{perl_version}.tar.xz
135+
# Note that scrubbed version of the source tarball contains upstream source minus password protected files which password is not known
136+
Source0: https://www.cpan.org/src/5.0/perl-%{perl_version}.tar.xz#/perl-%{perl_version}-scrubbed.tar.xz
136137
Source3: macros.perl
137138
# Tom Christiansen confirms Pod::Html uses the same license as perl
138139
Source6: Pod-Html-license-clarification
@@ -174,6 +175,9 @@ Patch13: perl-5.28.0-Pass-CFLAGS-to-dtrace.patch
174175
# Fixed in perl 5.39.3, in locale.c was more changes
175176
Patch14: perl-5.38.0-Revert-Do-uselocale-earlier-in-init-process.patch
176177

178+
# remove password protected zip file which password is not known
179+
Patch15: perl-remove-psw-protected-zip.patch
180+
177181
# Link XS modules to libperl.so with EU::CBuilder on Linux, bug #960048
178182
Patch200: perl-5.16.3-Link-XS-modules-to-libperl.so-with-EU-CBuilder-on-Li.patch
179183

@@ -6840,6 +6844,9 @@ popd
68406844

68416845
# Old changelog entries are preserved in CVS.
68426846
%changelog
6847+
* Tue May 27 2025 Nicolas Guibourge <[email protected]> - 4:5.38.2-508
6848+
- Remove password protected zip files from upstream src tarball
6849+
68436850
* Tue Apr 08 2025 Andrew Phelps <[email protected]> - 4:5.38.2-507
68446851
- Patch CVE-2024-56406
68456852

cgmanifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12232,7 +12232,7 @@
1223212232
"other": {
1223312233
"name": "linux-firmware",
1223412234
"version": "20230804",
12235-
"downloadUrl": "https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-20230804.tar.gz"
12235+
"downloadUrl": "https://www.kernel.org/pub/linux/kernel/firmware/linux-firmware-20230804.tar.gz"
1223612236
}
1223712237
}
1223812238
},

toolkit/resources/manifests/package/pkggen_core_aarch64.txt

Lines changed: 58 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -107,64 +107,64 @@ libpipeline-devel-1.5.7-1.azl3.aarch64.rpm
107107
gdbm-1.23-1.azl3.aarch64.rpm
108108
gdbm-devel-1.23-1.azl3.aarch64.rpm
109109
gdbm-lang-1.23-1.azl3.aarch64.rpm
110-
perl-B-1.88-507.azl3.aarch64.rpm
111-
perl-Carp-1.54-507.azl3.noarch.rpm
112-
perl-Class-Struct-0.68-507.azl3.noarch.rpm
113-
perl-Data-Dumper-2.188-507.azl3.aarch64.rpm
114-
perl-DynaLoader-1.54-507.azl3.aarch64.rpm
115-
perl-Encode-3.19-507.azl3.aarch64.rpm
116-
perl-Errno-1.37-507.azl3.aarch64.rpm
117-
perl-Exporter-5.77-507.azl3.noarch.rpm
118-
perl-Fcntl-1.15-507.azl3.aarch64.rpm
119-
perl-File-Basename-2.86-507.azl3.noarch.rpm
120-
perl-File-Compare-1.100.700-507.azl3.noarch.rpm
121-
perl-File-Copy-2.41-507.azl3.noarch.rpm
122-
perl-File-Path-2.18-507.azl3.noarch.rpm
123-
perl-File-Temp-0.231.100-507.azl3.noarch.rpm
124-
perl-File-stat-1.13-507.azl3.noarch.rpm
125-
perl-FileHandle-2.05-507.azl3.noarch.rpm
126-
perl-Getopt-Long-2.54-507.azl3.noarch.rpm
127-
perl-Getopt-Std-1.13-507.azl3.noarch.rpm
128-
perl-HTTP-Tiny-0.086-507.azl3.noarch.rpm
129-
perl-I18N-Langinfo-0.22-507.azl3.aarch64.rpm
130-
perl-IO-1.52-507.azl3.aarch64.rpm
131-
perl-IPC-Open3-1.22-507.azl3.noarch.rpm
132-
perl-MIME-Base64-3.16-507.azl3.aarch64.rpm
133-
perl-POSIX-2.13-507.azl3.aarch64.rpm
134-
perl-PathTools-3.89-507.azl3.aarch64.rpm
135-
perl-Pod-Escapes-1.07-507.azl3.noarch.rpm
136-
perl-Pod-Perldoc-3.28.01-507.azl3.noarch.rpm
137-
perl-Pod-Simple-3.43-507.azl3.noarch.rpm
138-
perl-Pod-Usage-2.03-507.azl3.noarch.rpm
139-
perl-Scalar-List-Utils-1.63-507.azl3.aarch64.rpm
140-
perl-SelectSaver-1.02-507.azl3.noarch.rpm
141-
perl-Socket-2.036-507.azl3.aarch64.rpm
142-
perl-Storable-3.32-507.azl3.aarch64.rpm
143-
perl-Symbol-1.09-507.azl3.noarch.rpm
144-
perl-Term-ANSIColor-5.01-507.azl3.noarch.rpm
145-
perl-Term-Cap-1.18-507.azl3.noarch.rpm
146-
perl-Text-ParseWords-3.31-507.azl3.noarch.rpm
147-
perl-Text-Tabs+Wrap-2021.0814-507.azl3.noarch.rpm
148-
perl-Thread-Queue-3.14-507.azl3.noarch.rpm
149-
perl-Time-Local-1.300-507.azl3.noarch.rpm
150-
perl-Unicode-Normalize-1.32-507.azl3.aarch64.rpm
151-
perl-base-2.27-507.azl3.noarch.rpm
152-
perl-constant-1.33-507.azl3.noarch.rpm
153-
perl-if-0.61.000-507.azl3.noarch.rpm
154-
perl-interpreter-5.38.2-507.azl3.aarch64.rpm
155-
perl-libs-5.38.2-507.azl3.aarch64.rpm
156-
perl-locale-1.10-507.azl3.noarch.rpm
157-
perl-macros-5.38.2-507.azl3.noarch.rpm
158-
perl-mro-1.28-507.azl3.aarch64.rpm
159-
perl-overload-1.37-507.azl3.noarch.rpm
160-
perl-overloading-0.02-507.azl3.noarch.rpm
161-
perl-parent-0.241-507.azl3.noarch.rpm
162-
perl-podlators-5.01-507.azl3.noarch.rpm
163-
perl-subs-1.04-507.azl3.noarch.rpm
164-
perl-threads-2.36-507.azl3.aarch64.rpm
165-
perl-threads-shared-1.68-507.azl3.aarch64.rpm
166-
perl-vars-1.05-507.azl3.noarch.rpm
167-
perl-5.38.2-507.azl3.aarch64.rpm
110+
perl-B-1.88-508.azl3.aarch64.rpm
111+
perl-Carp-1.54-508.azl3.noarch.rpm
112+
perl-Class-Struct-0.68-508.azl3.noarch.rpm
113+
perl-Data-Dumper-2.188-508.azl3.aarch64.rpm
114+
perl-DynaLoader-1.54-508.azl3.aarch64.rpm
115+
perl-Encode-3.19-508.azl3.aarch64.rpm
116+
perl-Errno-1.37-508.azl3.aarch64.rpm
117+
perl-Exporter-5.77-508.azl3.noarch.rpm
118+
perl-Fcntl-1.15-508.azl3.aarch64.rpm
119+
perl-File-Basename-2.86-508.azl3.noarch.rpm
120+
perl-File-Compare-1.100.700-508.azl3.noarch.rpm
121+
perl-File-Copy-2.41-508.azl3.noarch.rpm
122+
perl-File-Path-2.18-508.azl3.noarch.rpm
123+
perl-File-Temp-0.231.100-508.azl3.noarch.rpm
124+
perl-File-stat-1.13-508.azl3.noarch.rpm
125+
perl-FileHandle-2.05-508.azl3.noarch.rpm
126+
perl-Getopt-Long-2.54-508.azl3.noarch.rpm
127+
perl-Getopt-Std-1.13-508.azl3.noarch.rpm
128+
perl-HTTP-Tiny-0.086-508.azl3.noarch.rpm
129+
perl-I18N-Langinfo-0.22-508.azl3.aarch64.rpm
130+
perl-IO-1.52-508.azl3.aarch64.rpm
131+
perl-IPC-Open3-1.22-508.azl3.noarch.rpm
132+
perl-MIME-Base64-3.16-508.azl3.aarch64.rpm
133+
perl-POSIX-2.13-508.azl3.aarch64.rpm
134+
perl-PathTools-3.89-508.azl3.aarch64.rpm
135+
perl-Pod-Escapes-1.07-508.azl3.noarch.rpm
136+
perl-Pod-Perldoc-3.28.01-508.azl3.noarch.rpm
137+
perl-Pod-Simple-3.43-508.azl3.noarch.rpm
138+
perl-Pod-Usage-2.03-508.azl3.noarch.rpm
139+
perl-Scalar-List-Utils-1.63-508.azl3.aarch64.rpm
140+
perl-SelectSaver-1.02-508.azl3.noarch.rpm
141+
perl-Socket-2.036-508.azl3.aarch64.rpm
142+
perl-Storable-3.32-508.azl3.aarch64.rpm
143+
perl-Symbol-1.09-508.azl3.noarch.rpm
144+
perl-Term-ANSIColor-5.01-508.azl3.noarch.rpm
145+
perl-Term-Cap-1.18-508.azl3.noarch.rpm
146+
perl-Text-ParseWords-3.31-508.azl3.noarch.rpm
147+
perl-Text-Tabs+Wrap-2021.0814-508.azl3.noarch.rpm
148+
perl-Thread-Queue-3.14-508.azl3.noarch.rpm
149+
perl-Time-Local-1.300-508.azl3.noarch.rpm
150+
perl-Unicode-Normalize-1.32-508.azl3.aarch64.rpm
151+
perl-base-2.27-508.azl3.noarch.rpm
152+
perl-constant-1.33-508.azl3.noarch.rpm
153+
perl-if-0.61.000-508.azl3.noarch.rpm
154+
perl-interpreter-5.38.2-508.azl3.aarch64.rpm
155+
perl-libs-5.38.2-508.azl3.aarch64.rpm
156+
perl-locale-1.10-508.azl3.noarch.rpm
157+
perl-macros-5.38.2-508.azl3.noarch.rpm
158+
perl-mro-1.28-508.azl3.aarch64.rpm
159+
perl-overload-1.37-508.azl3.noarch.rpm
160+
perl-overloading-0.02-508.azl3.noarch.rpm
161+
perl-parent-0.241-508.azl3.noarch.rpm
162+
perl-podlators-5.01-508.azl3.noarch.rpm
163+
perl-subs-1.04-508.azl3.noarch.rpm
164+
perl-threads-2.36-508.azl3.aarch64.rpm
165+
perl-threads-shared-1.68-508.azl3.aarch64.rpm
166+
perl-vars-1.05-508.azl3.noarch.rpm
167+
perl-5.38.2-508.azl3.aarch64.rpm
168168
texinfo-7.0.3-1.azl3.aarch64.rpm
169169
gtk-doc-1.33.2-1.azl3.noarch.rpm
170170
autoconf-2.72-2.azl3.noarch.rpm

0 commit comments

Comments
 (0)