Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 888972 - dev-libs/nspr-4.35-r1 fails to compile: configure: error: invalid feature name: optimize=-O2
Summary: dev-libs/nspr-4.35-r1 fails to compile: configure: error: invalid feature nam...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-30 12:14 UTC by Agostino Sarubbo
Modified: 2023-01-21 08:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,45.18 KB, text/plain)
2022-12-30 12:14 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-12-30 12:14:39 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-libs/nspr-4.35-r1 fails to compile.
Discovered on: amd64 (internal ref: ci)
Comment 1 Agostino Sarubbo gentoo-dev 2022-12-30 12:14:41 UTC
Created attachment 845856 [details]
build.log

build log and emerge --info
Comment 2 Joonas Niilola gentoo-dev 2022-12-30 15:07:51 UTC
Right, it doesn't work when 'debug' is enabled. I wonder if these debug options are better moved inside "if use debug; then" block, or if something like $(use_enable !debug debug optimize="${my_optlvl}") works...
(away from home so I won't test this in a week or so)
Comment 3 Larry the Git Cow gentoo-dev 2023-01-21 08:34:08 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1150b0c245c9c371355c6a94a4eaec020fecd19

commit e1150b0c245c9c371355c6a94a4eaec020fecd19
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2023-01-21 08:21:52 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2023-01-21 08:34:05 +0000

    dev-libs/nspr: disable 'optimize' when 'debug' is enabled
    
    Closes: https://bugs.gentoo.org/888972
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 dev-libs/nspr/nspr-4.35-r1.ebuild | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)