Skip to contentSkip to conversation

Fix possibility to redefine -D_FORTIFY_SOURCE macro.

PATCH In review Martin Liška 2 participants 5 messages Apr 12, 2022 – Apr 29, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Fix possibility to redefine -D_FORTIFY_SOURCE macro.

As explained here:
https://github.com/opensvc/multipath-tools/issues/29

using -Wp,-D_FORTIFY_SOURCE cannot be redefined with -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3.

---
 Makefile.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile.inc +1 -1
index d24da43e..cc170a2e 100644
@@ -123,7 +123,7 @@ OPTFLAGS	:= -O2 -g $(STACKPROT) --param=ssp-buffer-size=4
 WARNFLAGS	:= -Werror -Wall -Wextra -Wformat=2 $(WFORMATOVERFLOW) -Werror=implicit-int \
 		  -Werror=implicit-function-declaration -Werror=format-security \
 		  $(WNOCLOBBERED) -Werror=cast-qual $(ERROR_DISCARDED_QUALIFIERS)
-CPPFLAGS	:= -Wp,-D_FORTIFY_SOURCE=2
+CPPFLAGS	:= -D_FORTIFY_SOURCE=2
 CFLAGS		:= --std=gnu99 $(CFLAGS) $(OPTFLAGS) $(WARNFLAGS) -pipe \
 		   -DBIN_DIR=\"$(bindir)\" -DLIB_STRING=\"${LIB}\" -DRUN_DIR=\"${RUN}\" \
 		   -MMD -MP
Signature · 6 lines
2.35.1

--
dm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/dm-devel
#2 lore raw
Quoted 4 lines · Martin Wilck
Quoted 3 lines · Martin Liška

As explained here:
https://github.com/opensvc/multipath-tools/issues/29

Quoted 8 lines
Quoted 4 lines

using -Wp,-D_FORTIFY_SOURCE cannot be redefined with -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3.

Hi.

May I please ping this?

Thanks,
Martin

--
dm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/dm-devel

#3 lore raw

Hi Martin L,

Quoted 10 lines · Martin Liška
Quoted 9 lines · Martin Wilck
Quoted 7 lines · Martin Liška

As explained here:
https://github.com/opensvc/multipath-tools/issues/29

using -Wp,-D_FORTIFY_SOURCE cannot be redefined with -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3.

Quoted 8 lines
Quoted 3 lines

Hi.

May I please ping this?

I told you this is in the "queue" branch in openSUSE/multipath-tools, which means it's going to be merged in the next official release. The main repository at opensvc [2] is only updated in batches, when a new "release" is made. We haven't decided on the timing for the next batch. There isn't much blocking it, so it should be possible to do it relatively soon, as time allows. Maybe next week (no promises).

In the meantime, use my "queue" branch, which represents the "rolling release" of multipath tools and will most probably just be merged into the main repo as-is, or simply apply your patch before building.

[1] https://github.com/openSUSE/multipath-tools/tree/queue
[2] https://github.com/opensvc/multipath-tools

Regards,
Martin

--
dm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/dm-devel

#4 lore raw
Quoted 17 lines · Martin Wilck

Hi Martin L,

Quoted 14 lines · Martin Liška
Quoted 12 lines · Martin Wilck
Quoted 7 lines · Martin Liška

As explained here:
https://github.com/opensvc/multipath-tools/issues/29

using -Wp,-D_FORTIFY_SOURCE cannot be redefined with -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3.

Quoted 8 lines
Quoted 4 lines

Hi.

May I please ping this?

I told you this is in the "queue" branch in openSUSE/multipath-tools, which means it's going to be merged in the next official release. The main repository at opensvc [2] is only updated in batches, when a new

Hi.

Oh, sorry, I must have forget about it ;)

Anyway, the timing is fine to me!

Cheers,
Martin

Quoted 9 lines

"release" is made. We haven't decided on the timing for the next batch. There isn't much blocking it, so it should be possible to do it relatively soon, as time allows. Maybe next week (no promises).

In the meantime, use my "queue" branch, which represents the "rolling release" of multipath tools and will most probably just be merged into the main repo as-is, or simply apply your patch before building.

Quoted 6 lines

[1] https://github.com/openSUSE/multipath-tools/tree/queue
[2] https://github.com/opensvc/multipath-tools

Regards,
Martin

--
dm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/dm-devel