public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/foremost] rawhide: silent rpmlint (position-independent-executable-suggested, shared-dir-glob-in-files and no-check-section)
@ 2026-11-04  3:59 Filipe Rosset
  0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-11-04  3:59 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/foremost
Branch : rawhide
Commit : 1f5863e2aa290c08115ba4b1df36af948b36e032
Author : Filipe Rosset <rosset.filipe@gmail.com>
Date   : 2026-10-22T15:39:33-03:00
Stats  : +8/-3 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/foremost/c/1f5863e2aa290c08115ba4b1df36af948b36e032?branch=rawhide

Log:
silent rpmlint (position-independent-executable-suggested, shared-dir-glob-in-files and no-check-section)

---
diff --git a/foremost.spec b/foremost.spec
index 6c9cd95..b2fc1a7 100644
--- a/foremost.spec
+++ b/foremost.spec
@@ -26,7 +26,8 @@ reliable and faster recovery.
 %autosetup
 
 sed -i 's!/usr/local/etc/foremost.conf!%{_sysconfdir}/foremost.conf!' config.c
-sed -i 's|^RAW_FLAGS =.*|RAW_FLAGS = %{optflags}|' Makefile
+sed -i 's|^RAW_FLAGS =.*|RAW_FLAGS = %{optflags} -fPIE|' Makefile
+sed -i 's|\$(CC) \$(OBJ) -o \$(NAME) \$(LINK_OPT)|\0 -pie|' Makefile
 
 %build
 make %{?_smp_mflags} CONF=%{_sysconfdir} V=1
@@ -39,10 +40,14 @@ mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
 make install BIN=$RPM_BUILD_ROOT%{_bindir} MAN=$RPM_BUILD_ROOT%{_mandir}/man8 \
     CONF=$RPM_BUILD_ROOT%{_sysconfdir}
 
+%check
+# no upstream test suite (smoke-test the binary)
+%{buildroot}%{_bindir}/foremost -V
+
 %files
 %doc README CHANGES
-%{_bindir}/*
-%{_mandir}/man8/*
+%{_bindir}/foremost
+%{_mandir}/man8/foremost.8*
 %config(noreplace) %{_sysconfdir}/foremost.conf
 
 %changelog

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-04  3:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-04  3:59 [rpms/foremost] rawhide: silent rpmlint (position-independent-executable-suggested, shared-dir-glob-in-files and no-check-section) Filipe Rosset

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox