Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#43632 - [box2d] Reference to build directory

Attached to Project: Community Packages
Opened by Lex Black (TrialnError) - Friday, 30 January 2015, 09:46 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Saturday, 28 February 2015, 14:08 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

I tried running a game which needs box2d. Every startup failed with this message:

$ ./oort_sdl
oort_sdl: /build/box2d/src/v2.3.1/Box2D/Box2D/Collision/Shapes/b2PolygonShape.cpp:158: void b2PolygonShape::Set(const b2Vec2*, int32): Assertion `false' failed.

Note the /build path
I rebuild the package and got the following error:

$ ./oort_sdl
oort_sdl: /home/omnius/Builds/ABS/box2d/src/v2.3.1/Box2D/Box2D/Collision/Shapes/b2PolygonShape.cpp:158: void b2PolygonShape::Set(const b2Vec2*, int32): Assertion `false' failed.

Which is my build directory. Should be noted that makepkg didn't come up with: WARNING: Package contains reference to $srcdir

I did the following then:

$ grep -R "$(pwd)/src" pkg/

for both packages (my rebuild and the repo package (search and search path altered for the extracted one))

Results: Both .so files included the build path for the headers.
Counting the the buildpaths:
repo-package: 35 times /build/box2d/src/v2.3.1/Box2D/Box2D/
my package: 35 times (unsurprisingly) /home/omnius/Builds/ABS/box2d/src/v2.3.1/Box2D/Box2D/

Seems a packaging issue, but maybe the build files make something wrong? I don't have a solution for fixing this

Additional info:
* box2d-2.3.1-1


Steps to reproduce:
Should imo fail with everything that includes box2d
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Saturday, 28 February 2015, 14:08 GMT
Reason for closing:  Won't fix
Comment by Doug Newgard (Scimmia) - Friday, 30 January 2015, 15:45 GMT
I don't think this is the problem. It's simply giving the path for debugging purposes, it's not trying to use it for anything. The problem is most likely the game you're trying to run.
Comment by Lex Black (TrialnError) - Monday, 02 February 2015, 12:52 GMT
Ah, ok. Likely that I misinterpred the message. Still not nice with the wrong path but not such a problem as it would be if checked that path for including the header file. And likely that the game is broken for the recent box2d version. Got the last update in 2012 and some of the source needed to be altered to make it compile

Thanks for clarification. So this could then be closed?
Comment by Sven-Hendrik Haase (Svenstaro) - Saturday, 28 February 2015, 14:08 GMT
There is nothing to be done about this. The compiler can't know that the path isn't going to be final. The debugging info still is useful as the end of the path really is the only relevant part here. Many packages observe this behavior. Non-issue.

Loading...