public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Filipe Rosset <rosset.filipe@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/foremost] rawhide: silent rpmlint (position-independent-executable-suggested, shared-dir-glob-in-files and no-check-section)
Date: Wed, 04 Nov 2026 03:59:13 GMT	[thread overview]
Message-ID: <179376475366.1.13903564703816960799.rpms-foremost-1f5863e2aa29@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-11-04  3:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179376475366.1.13903564703816960799.rpms-foremost-1f5863e2aa29@fedoraproject.org \
    --to=rosset.filipe@gmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox