GNU bug report logs -
#76342
[PATCH] Shepherd: build: Pass CFLAGS, CPPFLAGS and LDFLAGS to CC.
Previous Next
Reported by: Simon Josefsson <simon <at> josefsson.org>
Date: Sun, 16 Feb 2025 17:23:02 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 76342 in the body.
You can then email your comments to 76342 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#76342
; Package
guix-patches
.
(Sun, 16 Feb 2025 17:23:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Simon Josefsson <simon <at> josefsson.org>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Sun, 16 Feb 2025 17:23:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi
The Debian QA linters noticed that some CC flags were missing, and this
patch fixes it. It seems the default CFLAGS for me is '-O2 -g' when
running ./configure so I dropped those since they were added twice
otherwise. Maye -Wall should be moved to a Makefile.am AM_CFLAGS (or
something), but the attached patch seems sufficient to silences Debian's
"blhc" tool which is my main concern.
https://salsa.debian.org/debian/shepherd/-/jobs/7100765
400:CFLAGS missing (-fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection): \ gcc -O2 -g -Wall -shared -fPIC -o "etc/crash-handler.so" "etc/crash-handler.c"
400:CPPFLAGS missing (-D_FORTIFY_SOURCE=2): \ gcc -O2 -g -Wall -shared -fPIC -o "etc/crash-handler.so" "etc/crash-handler.c"
400:LDFLAGS missing (-Wl,-z,relro): \ gcc -O2 -g -Wall -shared -fPIC -o "etc/crash-handler.so" "etc/crash-handler.c"
/Simon
[0001-build-Pass-CFLAGS-CPPFLAGS-and-LDFLAGS-to-CC.patch (text/x-diff, inline)]
From fdaeac0a71f3bdd1daaafffc46647f05e019ac10 Mon Sep 17 00:00:00 2001
From: Simon Josefsson <simon <at> josefsson.org>
Date: Sun, 16 Feb 2025 16:11:04 +0100
Subject: [PATCH] build: Pass CFLAGS, CPPFLAGS and LDFLAGS to CC.
* Makefile.am (etc/crash-handler.so): Do it.
Signed-off-by: Simon Josefsson <simon <at> josefsson.org>
---
Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile.am b/Makefile.am
index aa2edd9..bc87404 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -107,7 +107,7 @@ install-crash-handler:
etc/crash-handler.so: etc/crash-handler.c
$(AM_V_GEN)$(MKDIR_P) etc; \
- $(CC) -O2 -g -Wall -shared -fPIC -o "$@" "$^"
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -Wall -shared -fPIC -o "$@" "$^"
CLEANFILES += etc/crash-handler.so
--
2.48.1
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#76342
; Package
guix-patches
.
(Thu, 20 Feb 2025 07:53:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 76342 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
retitle 76342 [PATCH] Shepherd: build: Pass CFLAGS, CPPFLAGS and LDFLAGS to CC.
thanks
I forgot to include the word 'Shepherd' in the Subject line...
[signature.asc (application/pgp-signature, inline)]
Changed bug title to '[PATCH] Shepherd: build: Pass CFLAGS, CPPFLAGS and LDFLAGS to CC.' from '[PATCH] build: Pass CFLAGS, CPPFLAGS and LDFLAGS to CC.'
Request was from
Simon Josefsson <simon <at> josefsson.org>
to
control <at> debbugs.gnu.org
.
(Thu, 20 Feb 2025 07:53:02 GMT)
Full text and
rfc822 format available.
Reply sent
to
Ludovic Courtès <ludo <at> gnu.org>
:
You have taken responsibility.
(Thu, 20 Feb 2025 22:54:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Simon Josefsson <simon <at> josefsson.org>
:
bug acknowledged by developer.
(Thu, 20 Feb 2025 22:54:02 GMT)
Full text and
rfc822 format available.
Message #15 received at 76342-done <at> debbugs.gnu.org (full text, mbox):
Hi Simon,
Simon Josefsson <simon <at> josefsson.org> skribis:
> From fdaeac0a71f3bdd1daaafffc46647f05e019ac10 Mon Sep 17 00:00:00 2001
> From: Simon Josefsson <simon <at> josefsson.org>
> Date: Sun, 16 Feb 2025 16:11:04 +0100
> Subject: [PATCH] build: Pass CFLAGS, CPPFLAGS and LDFLAGS to CC.
>
> * Makefile.am (etc/crash-handler.so): Do it.
>
> Signed-off-by: Simon Josefsson <simon <at> josefsson.org>
Applied, thanks!
Ludo’.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 21 Mar 2025 11:24:14 GMT)
Full text and
rfc822 format available.
This bug report was last modified 148 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.