Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 600550

Summary: sys-apps/sandbox with CFLAGS="-DNDEBUG" fails to build
Product: Portage Development Reporter: Guenther Brunthaler <gb_about_gnu>
Component: SandboxAssignee: Sandbox Maintainers <sandbox>
Status: RESOLVED FIXED    
Severity: normal CC: kensington
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch fixing the problem

Description Guenther Brunthaler 2016-11-23 03:25:51 UTC
Created attachment 454096 [details, diff]
Patch fixing the problem

When using "release"-version CFLAGS containing "-D NDEBUG", sys-apps/sandbox checks for NDEBUG but handles it incorrectly.

There are 2 problems:

1. It replaces a function call by a no-op macro, but the macro has a different number of arguments than the function call.

2. It also uses the macro to expand the function name when compiling the function definition, resulting in a missing function name.

The patch fixes those problems.
Comment 1 SpanKY gentoo-dev 2021-10-18 04:39:21 UTC
hmm, guess i forgot to close this.  it was (partially) merged shortly after this was filed:
https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=87d6537245b6f7cbf028e4c0e187cda7484729f0