From 80687600e8501d7fad9b5b9a7a24c1d381d3d52b Mon Sep 17 00:00:00 2001 From: Jean-Philippe Pialasse Date: Fri, 15 Mar 2024 17:13:28 -0400 Subject: [PATCH] fix to build for el8 --- LPRng-3.8.35-el8_build_format-security.patch | 12 ++++++++++++ LPRng.spec | 13 ++++++++++--- 2 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 LPRng-3.8.35-el8_build_format-security.patch diff --git a/LPRng-3.8.35-el8_build_format-security.patch b/LPRng-3.8.35-el8_build_format-security.patch new file mode 100644 index 0000000..539e75d --- /dev/null +++ b/LPRng-3.8.35-el8_build_format-security.patch @@ -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; diff --git a/LPRng.spec b/LPRng.spec index 92b1fdc..76df1c2 100644 --- a/LPRng.spec +++ b/LPRng.spec @@ -1,12 +1,14 @@ +%global debug_package %{nil} Summary: The LPRng print spooler. Name: LPRng Version: 3.8.35 -Release: 6%{?dist} +Release: 7%{?dist} License: GPL and Artistic Group: System Environment/Daemons Source0: ftp://ftp.lprng.com/pub/LPRng/LPRng/%{name}-%{version}.tgz Source1: lpd.init Patch0: LPRng-3.8.35-el5_build_fix.patch +Patch1: LPRng-3.8.35-el8_build_format-security.patch URL: http://www.lprng.com Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root Obsoletes: lpr @@ -44,6 +46,7 @@ to add. %setup -q %patch0 -p1 +%patch1 -p1 # pick up configure.in changes @@ -100,8 +103,7 @@ fi %attr(644,root,root) %{_sysconfdir}/lpd/lpd.perms.sample %attr(644,root,root) %{_sysconfdir}/printcap.sample %attr(755,root,root) %{_libdir}/* -%config %{_sysconfdir}/rc.d/init.d/lpd -%attr(755,root,root) %{_sysconfdir}/rc.d/init.d/lpd +%config %attr(755,root,root) %{_sysconfdir}/rc.d/init.d/lpd %doc %{_datadir}/LPRng/* %attr(755,lp,lp) %{_bindir}/lpq %attr(755,lp,lp) %{_bindir}/lprm @@ -126,6 +128,11 @@ fi %exclude %{_sysconfdir}/rc.d/init.d/lpd.sample %changelog +* Fri Mar 15 2024 Jean-Philippe Pialasse 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 - Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, by assuming the date is correct and changing the weekday.