fix to build for el8
This commit is contained in:
parent
759284ddef
commit
80687600e8
12
LPRng-3.8.35-el8_build_format-security.patch
Normal file
12
LPRng-3.8.35-el8_build_format-security.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -Nur --no-dereference LPRng-3.8.35.old/src/common/lpf.c LPRng-3.8.35/src/common/lpf.c
|
||||||
|
--- LPRng-3.8.35.old/src/common/lpf.c 2005-05-07 13:28:23.000000000 -0400
|
||||||
|
+++ LPRng-3.8.35/src/common/lpf.c 2024-03-15 16:50:08.863000000 -0400
|
||||||
|
@@ -485,7 +485,7 @@
|
||||||
|
case 'x': xwidth = atoi( optargv ); break;
|
||||||
|
case 'y': ylength = atoi( optargv ); break;
|
||||||
|
case 'V':
|
||||||
|
- fprintf( stdout, Version );
|
||||||
|
+ fputs(Version, stdout);
|
||||||
|
Printlist( Copyright, 2 );
|
||||||
|
exit(1);
|
||||||
|
break;
|
13
LPRng.spec
13
LPRng.spec
@ -1,12 +1,14 @@
|
|||||||
|
%global debug_package %{nil}
|
||||||
Summary: The LPRng print spooler.
|
Summary: The LPRng print spooler.
|
||||||
Name: LPRng
|
Name: LPRng
|
||||||
Version: 3.8.35
|
Version: 3.8.35
|
||||||
Release: 6%{?dist}
|
Release: 7%{?dist}
|
||||||
License: GPL and Artistic
|
License: GPL and Artistic
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Source0: ftp://ftp.lprng.com/pub/LPRng/LPRng/%{name}-%{version}.tgz
|
Source0: ftp://ftp.lprng.com/pub/LPRng/LPRng/%{name}-%{version}.tgz
|
||||||
Source1: lpd.init
|
Source1: lpd.init
|
||||||
Patch0: LPRng-3.8.35-el5_build_fix.patch
|
Patch0: LPRng-3.8.35-el5_build_fix.patch
|
||||||
|
Patch1: LPRng-3.8.35-el8_build_format-security.patch
|
||||||
URL: http://www.lprng.com
|
URL: http://www.lprng.com
|
||||||
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||||
Obsoletes: lpr
|
Obsoletes: lpr
|
||||||
@ -44,6 +46,7 @@ to add.
|
|||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
# pick up configure.in changes
|
# pick up configure.in changes
|
||||||
|
|
||||||
@ -100,8 +103,7 @@ fi
|
|||||||
%attr(644,root,root) %{_sysconfdir}/lpd/lpd.perms.sample
|
%attr(644,root,root) %{_sysconfdir}/lpd/lpd.perms.sample
|
||||||
%attr(644,root,root) %{_sysconfdir}/printcap.sample
|
%attr(644,root,root) %{_sysconfdir}/printcap.sample
|
||||||
%attr(755,root,root) %{_libdir}/*
|
%attr(755,root,root) %{_libdir}/*
|
||||||
%config %{_sysconfdir}/rc.d/init.d/lpd
|
%config %attr(755,root,root) %{_sysconfdir}/rc.d/init.d/lpd
|
||||||
%attr(755,root,root) %{_sysconfdir}/rc.d/init.d/lpd
|
|
||||||
%doc %{_datadir}/LPRng/*
|
%doc %{_datadir}/LPRng/*
|
||||||
%attr(755,lp,lp) %{_bindir}/lpq
|
%attr(755,lp,lp) %{_bindir}/lpq
|
||||||
%attr(755,lp,lp) %{_bindir}/lprm
|
%attr(755,lp,lp) %{_bindir}/lprm
|
||||||
@ -126,6 +128,11 @@ fi
|
|||||||
%exclude %{_sysconfdir}/rc.d/init.d/lpd.sample
|
%exclude %{_sysconfdir}/rc.d/init.d/lpd.sample
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Mar 15 2024 Jean-Philippe Pialasse <jpp@koozali.org> 3.8.35-7.sme
|
||||||
|
- fix security warning at buidl time for el8 to build
|
||||||
|
- fix File listed twice /etc/rc.d/init.d/lpd
|
||||||
|
- fix empty debugsource filelist
|
||||||
|
|
||||||
* Wed Jul 12 2023 BogusDateBot
|
* Wed Jul 12 2023 BogusDateBot
|
||||||
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
|
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
|
||||||
by assuming the date is correct and changing the weekday.
|
by assuming the date is correct and changing the weekday.
|
||||||
|
Loading…
Reference in New Issue
Block a user