$summary
See https://bugs.gentoo.org/696962#c1
See https://bugs.gentoo.org/696962#c2
If the summary is not enough clear: nginx-unit adds some CFLAGS like -g -pipe that could overwrite user's CFLAGS, so they should be removed.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=424ed4537c26ea62a23bb040e691477ac1bc0e1b commit 424ed4537c26ea62a23bb040e691477ac1bc0e1b Author: Ralph Seichter <github@seichter.de> AuthorDate: 2019-10-24 18:34:17 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2019-10-28 06:39:36 +0000 www-servers/nginx-unit: Build related bug fixes This ebuild addresses CFLAGS/LDFLAGS issues and introduces a USE flag for OpenSSL support. Closes: https://bugs.gentoo.org/696964 Closes: https://bugs.gentoo.org/696966 Closes: https://bugs.gentoo.org/696972 Package-Manager: Portage-2.3.76, Repoman-2.3.16 Signed-off-by: Ralph Seichter <gentoo@seichter.de> Closes: https://github.com/gentoo/gentoo/pull/13417 Signed-off-by: Joonas Niilola <juippis@gentoo.org> www-servers/nginx-unit/nginx-unit-1.12.0-r1.ebuild | 72 ++++++++++++++++++++++ 1 file changed, 72 insertions(+)
Hello Ralph, I tested www-servers/nginx-unit-1.12.0-r1::gentoo and the bug does not look to be fixed, here is an example from the build log: cc -c -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -I src -I build \ \ \ -o build/src/nxt_lib.o \ -MMD -MF build/src/nxt_lib.dep -MT build/src/nxt_lib.o \ src/nxt_lib.c
Looks like I underestimated how stubbornly the upstream build is in enforcing its own idea of compiler options. I'll take another look, patching might be the only way.
I already notified Gentoo QA about the thread http://mailman.nginx.org/pipermail/unit/2019-October/000176.html , but perhaps somebody else is also interested in contributing to it.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8075ead5b2ce8dd6fa31381667643d91755a2311 commit 8075ead5b2ce8dd6fa31381667643d91755a2311 Author: Ralph Seichter <github@seichter.de> AuthorDate: 2019-10-28 23:39:04 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2019-10-30 15:56:52 +0000 www-servers/nginx-unit: Address CFLAGS issues The upstream build adds compiler flags like '-pipe' and '-g'. This updated ebuild prevents that from happening. Closes: https://bugs.gentoo.org/696966 Package-Manager: Portage-2.3.76, Repoman-2.3.16 Signed-off-by: Ralph Seichter <gentoo@seichter.de> Signed-off-by: Joonas Niilola <juippis@gentoo.org> www-servers/nginx-unit/nginx-unit-1.12.0-r2.ebuild | 78 ++++++++++++++++++++++ 1 file changed, 78 insertions(+)
Atm it drops "-g -pipe" but it drops also user's cflags, so it is worse than before.
(In reply to Agostino Sarubbo from comment #9) > Atm it drops "-g -pipe" but it drops also user's cflags My logs show that the build uses CFLAGS as I have defined them. You may send me patches to the build and I will evaluate them, but I won't spend more time on this myself.