|
|
|
@ -1,34 +1,34 @@
|
|
|
|
|
%global major_version 5.4
|
|
|
|
|
# Normally, this is the same as version, but... not always.
|
|
|
|
|
%global test_version 5.4.4
|
|
|
|
|
%global test_version 5.4.6
|
|
|
|
|
# If you are incrementing major_version, enable bootstrapping and adjust accordingly.
|
|
|
|
|
# Version should be the latest prior build. If you don't do this, RPM will break and
|
|
|
|
|
# everything will grind to a halt.
|
|
|
|
|
%global bootstrap 0
|
|
|
|
|
%global bootstrap_major_version 5.3
|
|
|
|
|
%global bootstrap_version %{bootstrap_major_version}.5
|
|
|
|
|
%global bootstrap_version %{bootstrap_major_version}.6
|
|
|
|
|
|
|
|
|
|
# Place rpm-macros into proper location.
|
|
|
|
|
%global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: lua
|
|
|
|
|
Version: %{major_version}.4
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Version: %{major_version}.6
|
|
|
|
|
Release: 6%{?dist}
|
|
|
|
|
Summary: Powerful light-weight programming language
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: http://www.lua.org/
|
|
|
|
|
Source0: http://www.lua.org/ftp/lua-%{version}.tar.gz
|
|
|
|
|
URL: https://www.lua.org/
|
|
|
|
|
Source0: https://www.lua.org/ftp/lua-%{version}.tar.gz
|
|
|
|
|
# copied from doc/readme.html on 2014-07-18
|
|
|
|
|
Source1: mit.txt
|
|
|
|
|
%if 0%{?bootstrap}
|
|
|
|
|
Source2: http://www.lua.org/ftp/lua-%{bootstrap_version}.tar.gz
|
|
|
|
|
Source2: https://www.lua.org/ftp/lua-%{bootstrap_version}.tar.gz
|
|
|
|
|
%endif
|
|
|
|
|
Source3: http://www.lua.org/tests/lua-%{test_version}-tests.tar.gz
|
|
|
|
|
Source3: https://www.lua.org/tests/lua-%{test_version}-tests.tar.gz
|
|
|
|
|
# multilib
|
|
|
|
|
Source4: luaconf.h
|
|
|
|
|
Patch0: %{name}-5.4.0-beta-autotoolize.patch
|
|
|
|
|
Patch1: %{name}-5.3.0-idsize.patch
|
|
|
|
|
Patch1: %{name}-5.4.6-idsize.patch
|
|
|
|
|
#Patch2: %%{name}-5.3.0-luac-shared-link-fix.patch
|
|
|
|
|
Patch3: %{name}-5.2.2-configure-linux.patch
|
|
|
|
|
Patch4: %{name}-5.3.0-configure-compat-module.patch
|
|
|
|
@ -36,13 +36,12 @@ Patch4: %{name}-5.3.0-configure-compat-module.patch
|
|
|
|
|
Patch5: %{name}-5.3.0-autotoolize.patch
|
|
|
|
|
Patch6: %{name}-5.3.5-luac-shared-link-fix.patch
|
|
|
|
|
%endif
|
|
|
|
|
Patch7: lua-5.4.6-big-endian-fix.patch
|
|
|
|
|
# https://www.lua.org/bugs.html
|
|
|
|
|
Patch18: %{name}-5.3.5-CVE-2020-24370.patch
|
|
|
|
|
Patch19: %{name}-5.4.2-CVE-2022-33099.patch
|
|
|
|
|
Patch20: %{name}-5.4-CVE-2022-28805.patch
|
|
|
|
|
Patch8: lua-5.4.6-bug1.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: automake autoconf libtool readline-devel ncurses-devel
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
Requires: lua-libs = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
@ -89,26 +88,25 @@ This package contains the static version of liblua for %{name}.
|
|
|
|
|
%endif
|
|
|
|
|
cp %{SOURCE1} .
|
|
|
|
|
mv src/luaconf.h src/luaconf.h.template.in
|
|
|
|
|
%patch0 -p1 -E -z .autoxxx
|
|
|
|
|
%patch1 -p1 -z .idsize
|
|
|
|
|
#%% patch2 -p1 -z .luac-shared
|
|
|
|
|
%patch3 -p1 -z .configure-linux
|
|
|
|
|
%patch4 -p1 -z .configure-compat-all
|
|
|
|
|
%patch19 -p1 -b .CVE-2022-33099
|
|
|
|
|
%patch20 -p1 -b .CVE-2022-28805
|
|
|
|
|
%patch -P0 -p1 -E -z .autoxxx
|
|
|
|
|
%patch -P1 -p1 -z .idsize
|
|
|
|
|
#%% patch -P2 -p1 -z .luac-shared
|
|
|
|
|
%patch -P3 -p1 -z .configure-linux
|
|
|
|
|
# Put proper version in configure.ac, patch0 hardcodes 5.3.0
|
|
|
|
|
sed -i 's|5.3.0|%{version}|g' configure.ac
|
|
|
|
|
autoreconf -ifv
|
|
|
|
|
%patch -P7 -p1 -b .big-endian-fix
|
|
|
|
|
%patch -P8 -p1 -b .bug1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?bootstrap}
|
|
|
|
|
cd lua-%{bootstrap_version}/
|
|
|
|
|
mv src/luaconf.h src/luaconf.h.template.in
|
|
|
|
|
%patch5 -p1 -b .autoxxx
|
|
|
|
|
%patch1 -p1 -b .idsize
|
|
|
|
|
%patch3 -p1 -z .configure-linux
|
|
|
|
|
%patch4 -p1 -z .configure-compat-all
|
|
|
|
|
%patch6 -p1 -b .luac-shared-link-fix
|
|
|
|
|
%patch18 -p1 -b .CVE-2020-24370
|
|
|
|
|
%patch -P5 -p1 -b .autoxxx
|
|
|
|
|
%patch -P1 -p1 -b .idsize
|
|
|
|
|
%patch -P3 -p1 -z .configure-linux
|
|
|
|
|
%patch -P4 -p1 -z .configure-compat-all
|
|
|
|
|
%patch -P6 -p1 -b .luac-shared-link-fix
|
|
|
|
|
autoreconf -i
|
|
|
|
|
cd ..
|
|
|
|
|
%endif
|
|
|
|
@ -123,7 +121,7 @@ sed -i 's|@pkgdatadir@|%{_datadir}|g' src/luaconf.h.template
|
|
|
|
|
|
|
|
|
|
# hack so that only /usr/bin/lua gets linked with readline as it is the
|
|
|
|
|
# only one which needs this and otherwise we get License troubles
|
|
|
|
|
make %{?_smp_mflags} LIBS="-lm -ldl"
|
|
|
|
|
%make_build LIBS="-lm -ldl"
|
|
|
|
|
# only /usr/bin/lua links with readline now #luac_LDADD="liblua.la -lm -ldl"
|
|
|
|
|
|
|
|
|
|
%if 0%{?bootstrap}
|
|
|
|
@ -136,7 +134,7 @@ sed -i 's|@pkgdatadir@|%{_datadir}|g' src/luaconf.h.template
|
|
|
|
|
|
|
|
|
|
# hack so that only /usr/bin/lua gets linked with readline as it is the
|
|
|
|
|
# only one which needs this and otherwise we get License troubles
|
|
|
|
|
make %{?_smp_mflags} LIBS="-lm -ldl" luac_LDADD="liblua.la -lm -ldl"
|
|
|
|
|
%make_build LIBS="-lm -ldl" luac_LDADD="liblua.la -lm -ldl"
|
|
|
|
|
popd
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
@ -160,7 +158,7 @@ sed -i.orig -e '
|
|
|
|
|
LD_LIBRARY_PATH=$RPM_BUILD_ROOT/%{_libdir} $RPM_BUILD_ROOT/%{_bindir}/lua -e"_U=true" all.lua
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
%make_install
|
|
|
|
|
rm $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_libdir}/lua/%{major_version}
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/lua/%{major_version}
|
|
|
|
@ -213,34 +211,70 @@ popd
|
|
|
|
|
%{_libdir}/*.a
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Apr 17 2023 Florian Festi <ffesti@redhat.com> - 5.4.4-4
|
|
|
|
|
- Disable bootstrap mode forgotten on 5.4 rebase (#2135419)
|
|
|
|
|
* Tue Nov 26 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 5.4.6-6
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 5.4.6-6
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.4.6-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.4.6-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Aug 1 2023 Tom Callaway <spot@fedoraproject.org> - 5.4.6-3
|
|
|
|
|
- disable "corrupted binary dump" test that has issues on big-endian architectures
|
|
|
|
|
- apply upstream fix for 5.4.6 bug 1
|
|
|
|
|
|
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.4.6-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon May 22 2023 Tom Callaway <spot@fedoraproject.org> - 5.4.6-1
|
|
|
|
|
- update to 5.4.6
|
|
|
|
|
|
|
|
|
|
* Tue Feb 14 2023 Tom Callaway <spot@fedoraproject.org> - 5.4.4-9
|
|
|
|
|
- add upstream fixes for Bugs 8 and 9
|
|
|
|
|
|
|
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.4.4-8
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Dec 8 2022 Charles R. Anderson <cra@alum.wpi.edu> - 5.4.4-7
|
|
|
|
|
- Add patch for http://lua-users.org/lists/lua-l/2022-02/msg00112.html (#2111138)
|
|
|
|
|
|
|
|
|
|
* Mon Oct 17 2022 Tom Callaway <spot@fedoraproject.org> - 5.4.4-6
|
|
|
|
|
- add upstream fix for Bug 7
|
|
|
|
|
|
|
|
|
|
* Mon Oct 17 2022 Panu Matilainen <pmatilai@redhat.com> - 5.4.4-5
|
|
|
|
|
- Disable bootstrap mode forgotten on 5.4 rebase
|
|
|
|
|
|
|
|
|
|
* Fri Feb 03 2023 Florian Festi <ffesti@redhat.com> - 5.4.4-3
|
|
|
|
|
- Apply upstream patch for CVE-2022-28805
|
|
|
|
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.4.4-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Feb 03 2023 Florian Festi <ffesti@redhat.com> - 5.4.4-2
|
|
|
|
|
- Resolves CVE-2021-43519
|
|
|
|
|
* Tue Jul 19 2022 Tom Callaway <spot@fedoraproject.org> - 5.4.4-3
|
|
|
|
|
- upstream bug fixes (3,4,5) including fix for CVE-2022-33099
|
|
|
|
|
|
|
|
|
|
* Tue Jan 24 2023 Florian Festi <ffesti@redhat.com> - 5.4.4-1
|
|
|
|
|
- Rebase to lua 5.4.4
|
|
|
|
|
- Resolves CVE-2021-44964
|
|
|
|
|
* Tue Apr 5 2022 Tom Callaway <spot@fedoraproject.org> - 5.4.4-2
|
|
|
|
|
- upstream bug fixes
|
|
|
|
|
|
|
|
|
|
* Tue Oct 25 2022 Michal Domonkos <mdomonko@redhat.com> - 5.4.2-7
|
|
|
|
|
- Fix up CVE-2022-33099 patch
|
|
|
|
|
* Tue Feb 1 2022 Tom Callaway <spot@fedoraproject.org> - 5.4.4-1
|
|
|
|
|
- update to 5.4.4, update bootstrap code to 5.3.6
|
|
|
|
|
- 5.4.4 contains the fix for 5.4.3 bug7, which is also CVE-2021-43519
|
|
|
|
|
This fix was also in 5.4.3-4, so you do not need to update solely for that.
|
|
|
|
|
|
|
|
|
|
* Mon Oct 17 2022 Michal Domonkos <mdomonko@redhat.com> - 5.4.2-6
|
|
|
|
|
- Enable gating
|
|
|
|
|
* Mon Jan 24 2022 Tom Callaway <spot@fedoraproject.org> - 5.4.3-4
|
|
|
|
|
- apply upstream fix for CVE-2021-44647
|
|
|
|
|
- apply upstream fixes for known lua bugs 4-10 (11 assumes other changes beyond 5.4.3)
|
|
|
|
|
|
|
|
|
|
* Mon Oct 17 2022 Michal Domonkos <mdomonko@redhat.com> - 5.4.2-5
|
|
|
|
|
- apply upstream fix for CVE-2022-33099
|
|
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.4.3-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 5.4.2-4
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.4.3-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 5.4.2-3
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
* Wed Mar 31 2021 Tom Callaway <spot@fedoraproject.org> - 5.4.3-1
|
|
|
|
|
- update to 5.4.3
|
|
|
|
|
- apply fix for bug3
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.4.2-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|