Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 834578 - games-strategy/0ad-0.0.25b_alpha - ../.../Environment.cpp: error: expected unqualified-id before numeric constant
Summary: games-strategy/0ad-0.0.25b_alpha - ../.../Environment.cpp: error: expected un...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords: PATCH
: 847547 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-03-04 15:53 UTC by Toralf Förster
Modified: 2022-06-07 00:41 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,19.58 KB, text/plain)
2022-03-04 15:53 UTC, Toralf Förster
Details
emerge-history.txt.bz2 (emerge-history.txt.bz2,127.59 KB, application/x-bzip)
2022-03-04 15:53 UTC, Toralf Förster
Details
environment (environment,125.87 KB, text/plain)
2022-03-04 15:53 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,56.97 KB, application/x-bzip)
2022-03-04 15:53 UTC, Toralf Förster
Details
games-strategy:0ad-0.0.25b_alpha:20220304-085834.log.bz2 (games-strategy:0ad-0.0.25b_alpha:20220304-085834.log.bz2,122.97 KB, application/x-bzip)
2022-03-04 15:53 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,10.25 KB, application/x-bzip)
2022-03-04 15:53 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,157.69 KB, application/x-bzip)
2022-03-04 15:53 UTC, Toralf Förster
Details
upstream patch (bug834578.patch,9.86 KB, patch)
2022-04-11 11:11 UTC, Christian Bricart
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-03-04 15:53:09 UTC
                 from /usr/include/wx-3.0-gtk3/wx/event.h:20,
                 from /usr/include/wx-3.0-gtk3/wx/wx.h:24,
                 from ../../../source/tools/atlas/AtlasUI/Misc/precompiled.h:107,
                 from ../../../source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Environment/Environment.cpp:18:
../../../source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Environment/Environment.cpp:32:13: error: expected unqualified-id before numeric constant
   32 | const float M_PIf = 3.14159265f;
      |             ^~~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome-j4-20220220-080014

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.2.1 *
clang/llvm (if any):
/usr/lib/llvm/13
13.0.1
Python 3.9.10
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.59.0 *
The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:
  [1]   php7.4
  [2]   php8.0
  [3]   php8.1 *

  HEAD of ::gentoo
commit c488b6b10e13c628b1b2c94d0197d2004308c39a
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Mar 4 08:07:12 2022 +0000

    2022-03-04 08:07:09 UTC

emerge -qpvO games-strategy/0ad
[ebuild  N    ] games-strategy/0ad-0.0.25b_alpha  USE="editor nvtt -lobby (-pch) -test -verify-sig"
Comment 1 Toralf Förster gentoo-dev 2022-03-04 15:53:10 UTC
Created attachment 766232 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-03-04 15:53:12 UTC
Created attachment 766233 [details]
emerge-history.txt.bz2
Comment 3 Toralf Förster gentoo-dev 2022-03-04 15:53:13 UTC
Created attachment 766234 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-03-04 15:53:14 UTC
Created attachment 766235 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-03-04 15:53:16 UTC
Created attachment 766236 [details]
games-strategy:0ad-0.0.25b_alpha:20220304-085834.log.bz2
Comment 6 Toralf Förster gentoo-dev 2022-03-04 15:53:16 UTC
Created attachment 766237 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-03-04 15:53:18 UTC
Created attachment 766238 [details]
temp.tar.bz2
Comment 8 Christian Bricart 2022-04-11 10:27:28 UTC
possible upstream fix:
https://trac.wildfiregames.com/changeset/26536/
Comment 9 Christian Bricart 2022-04-11 11:11:59 UTC
Created attachment 770114 [details, diff]
upstream patch
Comment 10 Andrew Ammerlaan gentoo-dev 2022-04-12 14:38:18 UTC
(In reply to Christian Bricart from comment #9)
> Created attachment 770114 [details, diff] [details, diff]
> upstream patch

Patch works and fixes the problem!
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-07 00:16:50 UTC
*** Bug 847547 has been marked as a duplicate of this bug. ***
Comment 12 Larry the Git Cow gentoo-dev 2022-06-07 00:41:37 UTC
The bug has been closed via the following commit(s):

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

commit a1016e0bb4a875a396f1f46aa3cec3037251b934
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-07 00:40:34 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-07 00:41:23 +0000

    games-strategy/0ad: backport build patches
    
    Given how fragile the build system can be, it's worth a revbump.
    
    Closes: https://bugs.gentoo.org/834578
    Closes: https://bugs.gentoo.org/845987
    Signed-off-by: Sam James <sam@gentoo.org>

 games-strategy/0ad/0ad-0.0.25b_alpha-r1.ebuild     | 264 +++++++++++++++++++++
 ...ad-0.0.25b_alpha-fix-name-collision-glibc.patch | 131 ++++++++++
 .../0ad/files/0ad-0.0.25b_alpha-python3.10.patch   | 156 ++++++++++++
 3 files changed, 551 insertions(+)