netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] configure: Avoid addition assignment operators
@ 2025-01-13 15:08 fossdd
  2025-01-13 22:25 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 5+ messages in thread
From: fossdd @ 2025-01-13 15:08 UTC (permalink / raw)
  To: netfilter-devel

For compatability with other /bin/sh like busybox ash, since they don't
support the addition assignment operators (+=) and otherwise fail with:

	./configure: line 14174: regular_CFLAGS+= -D__UAPI_DEF_ETHHDR=0: not found

Signed-off-by: fossdd <fossdd@pwned.life>
---
 configure.ac | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index 2d38a4d4..0106b316 100644
--- a/configure.ac
+++ b/configure.ac
@@ -202,8 +202,8 @@ fi;
 pkgdatadir='${datadir}/xtables';
 
 if test "x$enable_profiling" = "xyes"; then
-	regular_CFLAGS+=" -fprofile-arcs -ftest-coverage"
-	regular_LDFLAGS+=" -lgcov --coverage"
+	regular_CFLAGS="$regular_CFLAGS -fprofile-arcs -ftest-coverage"
+	regular_LDFLAGS="$regular_LDFLAGS -lgcov --coverage"
 fi
 
 AC_MSG_CHECKING([whether the build is using musl-libc])
@@ -222,7 +222,7 @@ AC_COMPILE_IFELSE(
 AC_MSG_RESULT([${enable_musl_build}])
 
 if test "x$enable_musl_build" = "xyes"; then
-	regular_CFLAGS+=" -D__UAPI_DEF_ETHHDR=0"
+	regular_CFLAGS="$regular_CFLAGS -D__UAPI_DEF_ETHHDR=0"
 fi
 
 define([EXPAND_VARIABLE],

base-commit: b3f3e256c263b9a1db49732696aba0dde084ef5e
-- 
2.48.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] configure: Avoid addition assignment operators
  2025-01-13 15:08 [PATCH] configure: Avoid addition assignment operators fossdd
@ 2025-01-13 22:25 ` Pablo Neira Ayuso
  2025-01-14  2:56   ` fossdd
  0 siblings, 1 reply; 5+ messages in thread
From: Pablo Neira Ayuso @ 2025-01-13 22:25 UTC (permalink / raw)
  To: fossdd; +Cc: netfilter-devel

On Mon, Jan 13, 2025 at 04:08:34PM +0100, fossdd wrote:
> For compatability with other /bin/sh like busybox ash, since they don't
> support the addition assignment operators (+=) and otherwise fail with:
> 
> 	./configure: line 14174: regular_CFLAGS+= -D__UAPI_DEF_ETHHDR=0: not found
> 
> Signed-off-by: fossdd <fossdd@pwned.life>

This solution looks OK to address the musl issue that we have
discussed.

Unfortunately, we don't take patches that abuse DCO via Signed-off-by:
that looks clearly made up.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] configure: Avoid addition assignment operators
  2025-01-13 22:25 ` Pablo Neira Ayuso
@ 2025-01-14  2:56   ` fossdd
  2025-01-26 17:13     ` fossdd
  0 siblings, 1 reply; 5+ messages in thread
From: fossdd @ 2025-01-14  2:56 UTC (permalink / raw)
  To: Pablo Neira Ayuso; +Cc: netfilter-devel

> Unfortunately, we don't take patches that abuse DCO via Signed-off-by:
> that looks clearly made up.

I can resend a v2 with my full name as commit author and Signed-off-by,
if thats what you're asking.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] configure: Avoid addition assignment operators
  2025-01-14  2:56   ` fossdd
@ 2025-01-26 17:13     ` fossdd
  2025-01-28 12:01       ` Jeremy Sowden
  0 siblings, 1 reply; 5+ messages in thread
From: fossdd @ 2025-01-26 17:13 UTC (permalink / raw)
  To: fossdd, Pablo Neira Ayuso; +Cc: netfilter-devel

On Tue Jan 14, 2025 at 3:56 AM CET, fossdd wrote:
>> Unfortunately, we don't take patches that abuse DCO via Signed-off-by:
>> that looks clearly made up.
>
> I can resend a v2 with my full name as commit author and Signed-off-by,
> if thats what you're asking.

Ping

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] configure: Avoid addition assignment operators
  2025-01-26 17:13     ` fossdd
@ 2025-01-28 12:01       ` Jeremy Sowden
  0 siblings, 0 replies; 5+ messages in thread
From: Jeremy Sowden @ 2025-01-28 12:01 UTC (permalink / raw)
  To: fossdd; +Cc: Pablo Neira Ayuso, netfilter-devel

[-- Attachment #1: Type: text/plain, Size: 348 bytes --]

On 2025-01-26, at 18:13:59 +0100, fossdd wrote:
> On Tue Jan 14, 2025 at 3:56 AM CET, fossdd wrote:
> >> Unfortunately, we don't take patches that abuse DCO via Signed-off-by:
> >> that looks clearly made up.
> >
> > I can resend a v2 with my full name as commit author and Signed-off-by,
> > if thats what you're asking.

Yes, please.

> Ping

J.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 931 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-01-28 12:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-13 15:08 [PATCH] configure: Avoid addition assignment operators fossdd
2025-01-13 22:25 ` Pablo Neira Ayuso
2025-01-14  2:56   ` fossdd
2025-01-26 17:13     ` fossdd
2025-01-28 12:01       ` Jeremy Sowden

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).