Browse code

nasm: Version upgrade to v2.16.01 to fix CVE-2021-45257

Change-Id: I074470759eb449bb6e9b925e96ede35e123d286b
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/20553
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Harinadh Dommaraju <hdommaraju@vmware.com>

Nitesh authored on 2023/04/17 19:48:36
Showing 4 changed files
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        fork of the original IJG libjpeg which uses SIMD.
2 2
 Name:           libjpeg-turbo
3 3
 Version:        2.1.4
4
-Release:        1%{?dist}
4
+Release:        2%{?dist}
5 5
 License:        IJG
6 6
 URL:            http://sourceforge.net/projects/libjpeg-turbo
7 7
 Group:          System Environment/Libraries
... ...
@@ -64,6 +64,8 @@ find %{buildroot} -name "*.la" -delete
64 64
 %{_libdir}/pkgconfig/*.pc
65 65
 
66 66
 %changelog
67
+* Mon Apr 17 2023 Nitesh Kumar <kunitesh@vmware.com> 2.1.4-2
68
+- Bump version as a part of nasm v2.16.01 upgrade
67 69
 * Wed Aug 17 2022 Gerrit Photon <photon-checkins@vmware.com> 2.1.4-1
68 70
 - Automatic Version Bump
69 71
 * Fri Jun 17 2022 Shreenidhi Shedi <sshedi@vmware.com> 2.1.3-2
70 72
deleted file mode 100644
... ...
@@ -1,26 +0,0 @@
1
-From aa9324ae33870cd3b9d90251e380a6d704651a60 Mon Sep 17 00:00:00 2001
2
-From: Damjan Marion <damarion@cisco.com>
3
-Date: Mon, 17 Sep 2018 09:25:35 +0200
4
-Subject: [PATCH] Fix gcc-8 compilation
5
-
6
-Signed-off-by: Damjan Marion <damarion@cisco.com>
7
- include/nasmlib.h | 2 +-
8
- 1 file changed, 1 insertion(+), 1 deletion(-)
9
-
10
-diff --git a/include/nasmlib.h b/include/nasmlib.h
11
-index 79e866b..5f07d77 100644
12
-+++ b/include/nasmlib.h
13
-@@ -191,7 +191,7 @@ int64_t readstrnum(char *str, int length, bool *warn);
14
-  * seg_init: Initialise the segment-number allocator.
15
-  * seg_alloc: allocate a hitherto unused segment number.
16
-  */
17
--void pure_func seg_init(void);
18
-+int32_t pure_func seg_init(void);
19
- int32_t pure_func seg_alloc(void);
20
- 
21
- /*
22
-2.17.1
23
-
... ...
@@ -1,6 +1,6 @@
1 1
 Summary:        Netwide Assembler.
2 2
 Name:           nasm
3
-Version:        2.15.05
3
+Version:        2.16.01
4 4
 Release:        1%{?dist}
5 5
 License:        BSD
6 6
 URL:            http://www.nasm.us
... ...
@@ -8,10 +8,11 @@ Group:          System Environment/Libraries
8 8
 Vendor:         VMware, Inc.
9 9
 Distribution:   Photon
10 10
 BuildArch:      x86_64
11
-Source0:        http://www.nasm.us/pub/nasm/releasebuilds/%{version}/nasm-%{version}.tar.xz
12
-%define sha1    nasm=d338409a03fc6d1508102881a675a00275fcb879
13
-Source1:        http://www.nasm.us/pub/nasm/releasebuilds/2.15.05/nasm-2.15.05-xdoc.tar.xz
14
-%define sha1    nasm-%{version}-xdoc=3ea5c4fd84c9611a9c0378bebdbd1463413a3191
11
+
12
+Source0: http://www.nasm.us/pub/nasm/releasebuilds/%{version}/nasm-%{version}.tar.xz
13
+%define sha512  %{name}=51fccb5639ce019d9c423c0f279750ffbd74c64cd41dd3b185d1aa1a1aaed79c5d3cd8d4bebbc13ee249a375ed27457ea2abde1a4dbb24d354598fffd1254833
14
+Source1: http://www.nasm.us/pub/nasm/releasebuilds/%{version}/nasm-%{version}-xdoc.tar.xz
15
+%define sha512  %{name}-%{version}-xdoc=ec260c0a537b0172e6f2ac17118c744db8743886388a112e99bab1b8c8fee91547dade69dcfe9a15289b2b1a428e8c009048a468f7982b03dd4506abcafc0787
15 16
 
16 17
 %description
17 18
 NASM (Netwide Assembler) is an 80x86 assembler designed for portability and modularity.
... ...
@@ -23,16 +24,8 @@ Summary:        Detailed manual for the Netwide Assembler
23 23
 %description    doc
24 24
 Extensive documentation for the Netwide Assembler (NASM) in HTML and PDF formats.
25 25
 
26
-%package        rdoff
27
-Summary:        Tools for the RDOFF binary format, sometimes used with NASM.
28
-
29
-%description    rdoff
30
-Tools for the operating-system independent RDOFF binary format, which
31
-is sometimes used with the Netwide Assembler (NASM).  These tools
32
-include linker, library manager, loader, and information dump.
33
-
34 26
 %prep
35
-%setup -qn nasm-%{version}
27
+%autosetup -n %{name}-%{version}
36 28
 cd ../
37 29
 tar xf %{SOURCE1} --no-same-owner
38 30
 
... ...
@@ -46,7 +39,7 @@ rm -rf %{buildroot}
46 46
 mkdir -p %{buildroot}/%{_bindir}
47 47
 mkdir -p %{buildroot}/%{_mandir}/man1
48 48
 mkdir -p %{buildroot}/%{_docdir}
49
-make INSTALLROOT=%{buildroot} install install_rdf
49
+make INSTALLROOT=%{buildroot} install %{?_smp_mflags}
50 50
 
51 51
 # copy binaries for nasm
52 52
 cp nasm %{buildroot}/%{_bindir}/
... ...
@@ -54,16 +47,6 @@ cp ndisasm %{buildroot}/%{_bindir}/
54 54
 cp nasm.1* %{buildroot}/%{_mandir}/man1/
55 55
 cp ndisasm.1* %{buildroot}/%{_mandir}/man1/
56 56
 
57
-# copy binaries for nasm-rdoff
58
-cp rdoff/ldrdf %{buildroot}/%{_bindir}/
59
-cp rdoff/rdf2* %{buildroot}/%{_bindir}/
60
-rm %{buildroot}/%{_bindir}/rdf2*.*
61
-cp rdoff/rdfdump %{buildroot}/%{_bindir}/
62
-cp rdoff/rdflib %{buildroot}/%{_bindir}/
63
-cp rdoff/rdx %{buildroot}/%{_bindir}/
64
-cp rdoff/ldrdf.1* %{buildroot}/%{_mandir}/man1/
65
-cp rdoff/rd*.1* %{buildroot}/%{_mandir}/man1/
66
-
67 57
 # copy doc files
68 58
 mkdir -p %{buildroot}/%{_docdir}/html
69 59
 cp -r doc/html/*.html %{buildroot}/%{_docdir}/html/
... ...
@@ -87,27 +70,16 @@ make %{?_smp_mflags} -k test
87 87
 %{_docdir}/*.txt
88 88
 %{_docdir}/*.ps
89 89
 
90
-%files rdoff
91
-%{_bindir}/ldrdf
92
-%{_bindir}/rdf2bin
93
-%{_bindir}/rdf2com
94
-%{_bindir}/rdf2ihx
95
-%{_bindir}/rdf2ith
96
-%{_bindir}/rdf2srec
97
-%{_bindir}/rdfdump
98
-%{_bindir}/rdflib
99
-%{_bindir}/rdx
100
-%{_mandir}/man1/ldrdf.1*
101
-%{_mandir}/man1/rd*.1*
102
-
103 90
 %changelog
104
-*   Thu Jul 16 2020 Gerrit Photon <photon-checkins@vmware.com> 2.15.05-1
105
--   Automatic Version Bump
106
-*   Wed Apr 01 2020 Alexey Makhalov <amakhalov@vmware.com> 2.13.03-3
107
--   Fix compilation issue with gcc-8.4.0
108
-*   Thu Feb 28 2019 Keerthana K <keerthanak@vmware.com> 2.13.03-2
109
--   Adding BuildArch.
110
-*   Wed Sep 12 2018 Him Kalyan Bordoloi <bordoloih@vmware.com> 2.13.03-1
111
--   Upgrade version to 2.13.03
112
-*   Wed Jul 27 2016 Divya Thaluru <dthaluru@vmware.com> 2.12.02-1
113
--   Initial version
91
+* Mon Apr 17 2023 Nitesh Kumar <kunitesh@vmware.com> 2.16.01-1
92
+- Upgrade to v2.16.01 to fix CVE-2021-45257
93
+* Thu Jul 16 2020 Gerrit Photon <photon-checkins@vmware.com> 2.15.05-1
94
+- Automatic Version Bump
95
+* Wed Apr 01 2020 Alexey Makhalov <amakhalov@vmware.com> 2.13.03-3
96
+- Fix compilation issue with gcc-8.4.0
97
+* Thu Feb 28 2019 Keerthana K <keerthanak@vmware.com> 2.13.03-2
98
+- Adding BuildArch.
99
+* Wed Sep 12 2018 Him Kalyan Bordoloi <bordoloih@vmware.com> 2.13.03-1
100
+- Upgrade version to 2.13.03
101
+* Wed Jul 27 2016 Divya Thaluru <dthaluru@vmware.com> 2.12.02-1
102
+- Initial version
... ...
@@ -1,14 +1,14 @@
1 1
 %global security_hardening none
2 2
 
3
-Summary:    Simple kernel loader which boots from a FAT filesystem
4
-Name:       syslinux
5
-Version:    6.04
6
-Release:    8%{?dist}
7
-License:    GPLv2+
8
-URL:        http://www.syslinux.org
9
-Group:      Applications/System
10
-Vendor:     VMware, Inc.
11
-Distribution:   Photon
3
+Summary:      Simple kernel loader which boots from a FAT filesystem
4
+Name:         syslinux
5
+Version:      6.04
6
+Release:      9%{?dist}
7
+License:      GPLv2+
8
+URL:          http://www.syslinux.org
9
+Group:        Applications/System
10
+Vendor:       VMware, Inc.
11
+Distribution: Photon
12 12
 
13 13
 Source0:    https://www.kernel.org/pub/linux/utils/boot/%{name}/Testing/%{version}/%{name}-%{version}-pre1.tar.xz
14 14
 %define sha512  %{name}=7927dd39be8e2dcf4138a6fea33def67d19d938379d694f15b48fdd2f5924c028b7a9e7bd71d0c7c6630c203e9e2a54296628e530632ad5e6f55b1ebefe8fc98
... ...
@@ -87,6 +87,8 @@ rm %{buildroot}%{_bindir}/sha1pass
87 87
 %{_datadir}/%{name}/com32/*
88 88
 
89 89
 %changelog
90
+* Mon Apr 17 2023 Nitesh Kumar <kunitesh@vmware.com> 6.04-9
91
+- Bump version as a part of nasm v2.16.01 upgrade
90 92
 * Mon Jul 11 2022 Shreenidhi Shedi <sshedi@vmware.com> 6.04-8
91 93
 - Fix devel requires
92 94
 * Mon Feb 28 2022 Shreenidhi Shedi <sshedi@vmware.com> 6.04-7