Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 912838 - games-strategy/0ad-0.0.26_alpha-r1 fails to compile: js-config.h:28:4: error: #error "SpiderMonkey was configured with --disable-debug, so DEBUG must be not defined when including this header"
Summary: games-strategy/0ad-0.0.26_alpha-r1 fails to compile: js-config.h:28:4: error:...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-22 13:44 UTC by Agostino Sarubbo
Modified: 2025-03-10 02:21 UTC (History)
2 users (show)

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


Attachments
build.log.xz (build.log.xz,193.24 KB, application/x-xz)
2023-08-22 13:44 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 2023-08-22 13:44:54 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: games-strategy/0ad-0.0.26_alpha fails to compile.
Discovered on: amd64 (internal ref: ci)
Comment 1 Agostino Sarubbo gentoo-dev 2023-08-22 13:44:58 UTC
Created attachment 868494 [details]
build.log.xz

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Agostino Sarubbo gentoo-dev 2023-08-22 13:44:59 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


91 |                 ::std::error::Error::description(self)
99 |                 Error::IoError(ref e) => e.description(),
FCollada/FUtils/FUError.cpp: In static member function ‘static void FUError::SetCustomErrorString(const char*)’:
    inlined from ‘static void FUError::SetCustomErrorString(const char*)’ at FCollada/FUtils/FUError.cpp:272:22:
warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string()
../../../libraries/source/spidermonkey/include-unix-release/js-config.h:28:4: error: #error "SpiderMonkey was configured with --disable-debug, so DEBUG must be not defined when including this header"
Comment 3 Ionen Wolkens gentoo-dev 2023-08-22 14:09:14 UTC
Haven't really looked into this but I suspect it's related to the global USE=debug, perhaps when set on python, that ends up causing this -DDEBUG=1 to be added from somewhere.
Comment 4 Agostino Sarubbo gentoo-dev 2023-09-14 06:44:34 UTC
ci has reproduced this issue with version 0.0.26_alpha-r1 - Updating summary.
Comment 5 Larry the Git Cow gentoo-dev 2025-03-10 02:21:32 UTC
The bug has been closed via the following commit(s):

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

commit c08ce8c1e9d5c04878738f6ca9f12dccd5bfda52
Author:     Ralph Sennhauser <ralph.sennhauser@gmail.com>
AuthorDate: 2025-01-22 12:32:49 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-03-10 02:19:19 +0000

    games-strategy/0ad: bump to version 0.27.0
    
    Bump to version 0.27.0 and add support for rc builds.
    
    Use system spidermonkey as the minor version restriction was dropped
    upstream, unlike in the early days of spidermonkey it's unlikely that
    version differences lead to different results. Update checkreqs as the
    needed space is reduced quite a bit by using system spidermonkey.
    
    Use verify-sig eclass and drop custom unpack.
    
    Use wxgtk 3.2, there is no reason not to and move wx-setup to
    src_configure.
    
    Install libCollada.so, fixes pyrogenesis so it can actually generate
    models from collada files if mods require it. Don't install various
    unused files on the other hand.
    
    Fix building and running tests. Also replace perl dep with python as
    cxxtestgen was rewitten in python long time ago.
    
    With the move to git and gitea the github repo was archived, so drop it
    from metadata.xml
    
    LTO still doen't work but not for the original reason
    
    Address some qa items, like http to https, line length or outdated
    blocker and remove no longer needed QA_PRESTRIPPED.
    
    Closes: https://bugs.gentoo.org/774153
    Closes: https://bugs.gentoo.org/873058
    Closes: https://bugs.gentoo.org/896964
    Closes: https://bugs.gentoo.org/909509
    Closes: https://bugs.gentoo.org/912838
    Closes: https://bugs.gentoo.org/917626
    Closes: https://bugs.gentoo.org/921324
    Closes: https://bugs.gentoo.org/935474
    Closes: https://bugs.gentoo.org/945956
    Closes: https://bugs.gentoo.org/946468
    Closes: https://bugs.gentoo.org/949122
    Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/40383
    Signed-off-by: Sam James <sam@gentoo.org>

 games-strategy/0ad/0ad-0.27.0.ebuild               | 235 +++++++++++++++++++++
 games-strategy/0ad/Manifest                        |   4 +
 .../0ad/files/0ad-0.27.0-fix-tests.patch           |  78 +++++++
 games-strategy/0ad/files/0ad-minisign.pub          |   1 +
 games-strategy/0ad/metadata.xml                    |   1 -
 5 files changed, 318 insertions(+), 1 deletion(-)