checking which box2d to use... external checking Box2D/Box2D.h usability... no checking Box2D/Box2D.h presence... no checking for Box2D/Box2D.h... no configure: error: box2d headers not found.
Even after emerging games-engines/box2d-2.3.1 the header file is not found: configure:34068: checking which box2d to use configure:34071: result: external configure:34080: checking Box2D/Box2D.h usability configure:34080: x86_64-pc-linux-gnu-g++ -c -march=native -mtune=native -O2 -pipe conftest.cpp >&5 conftest.cpp:142:10: fatal error: Box2D/Box2D.h: No such file or directory 142 | #include <Box2D/Box2D.h> | ^~~~~~~~~~~~~~~ compilation terminated. equery f box2d |grep Box2D/Box2D.h /usr/include/Box2D-2.3.0/Box2D/Box2D.h Does games-engines/box2d really need to be slotted?
- insinto "/usr/include/${MY_PN}-${SLOT}/${FILE%/*}" + insinto "/usr/include/${FILE%/*}" equery f box2d * Searching for box2d ... * Contents of games-engines/box2d-2.3.1: /usr /usr/include /usr/include/Box2D /usr/include/Box2D/Box2D.h /usr/include/Box2D/Collision /usr/include/Box2D/Collision/Shapes /usr/include/Box2D/Collision/Shapes/b2ChainShape.h /usr/include/Box2D/Collision/Shapes/b2CircleShape.h /usr/include/Box2D/Collision/Shapes/b2EdgeShape.h /usr/include/Box2D/Collision/Shapes/b2PolygonShape.h /usr/include/Box2D/Collision/Shapes/b2Shape.h /usr/include/Box2D/Collision/b2BroadPhase.h /usr/include/Box2D/Collision/b2Collision.h /usr/include/Box2D/Collision/b2Distance.h /usr/include/Box2D/Collision/b2DynamicTree.h /usr/include/Box2D/Collision/b2TimeOfImpact.h /usr/include/Box2D/Common /usr/include/Box2D/Common/b2BlockAllocator.h /usr/include/Box2D/Common/b2Draw.h /usr/include/Box2D/Common/b2GrowableStack.h /usr/include/Box2D/Common/b2Math.h /usr/include/Box2D/Common/b2Settings.h /usr/include/Box2D/Common/b2StackAllocator.h /usr/include/Box2D/Common/b2Timer.h /usr/include/Box2D/Dynamics /usr/include/Box2D/Dynamics/Contacts /usr/include/Box2D/Dynamics/Contacts/b2ChainAndCircleContact.h /usr/include/Box2D/Dynamics/Contacts/b2ChainAndPolygonContact.h /usr/include/Box2D/Dynamics/Contacts/b2CircleContact.h /usr/include/Box2D/Dynamics/Contacts/b2Contact.h /usr/include/Box2D/Dynamics/Contacts/b2ContactSolver.h /usr/include/Box2D/Dynamics/Contacts/b2EdgeAndCircleContact.h /usr/include/Box2D/Dynamics/Contacts/b2EdgeAndPolygonContact.h /usr/include/Box2D/Dynamics/Contacts/b2PolygonAndCircleContact.h /usr/include/Box2D/Dynamics/Contacts/b2PolygonContact.h /usr/include/Box2D/Dynamics/Joints /usr/include/Box2D/Dynamics/Joints/b2DistanceJoint.h /usr/include/Box2D/Dynamics/Joints/b2FrictionJoint.h /usr/include/Box2D/Dynamics/Joints/b2GearJoint.h /usr/include/Box2D/Dynamics/Joints/b2Joint.h /usr/include/Box2D/Dynamics/Joints/b2MotorJoint.h /usr/include/Box2D/Dynamics/Joints/b2MouseJoint.h /usr/include/Box2D/Dynamics/Joints/b2PrismaticJoint.h /usr/include/Box2D/Dynamics/Joints/b2PulleyJoint.h /usr/include/Box2D/Dynamics/Joints/b2RevoluteJoint.h /usr/include/Box2D/Dynamics/Joints/b2RopeJoint.h /usr/include/Box2D/Dynamics/Joints/b2WeldJoint.h /usr/include/Box2D/Dynamics/Joints/b2WheelJoint.h /usr/include/Box2D/Dynamics/b2Body.h /usr/include/Box2D/Dynamics/b2ContactManager.h /usr/include/Box2D/Dynamics/b2Fixture.h /usr/include/Box2D/Dynamics/b2Island.h /usr/include/Box2D/Dynamics/b2TimeStep.h /usr/include/Box2D/Dynamics/b2World.h /usr/include/Box2D/Dynamics/b2WorldCallbacks.h /usr/include/Box2D/Rope /usr/include/Box2D/Rope/b2Rope.h /usr/lib64 /usr/lib64/libBox2D.so.2.3.0 /usr/share /usr/share/doc /usr/share/doc/box2d-2.3.1 /usr/share/doc/box2d-2.3.1/Changes.txt.bz2 /usr/share/doc/box2d-2.3.1/Readme.txt.bz2 removing the slotted folder in header path lets me a step further: checking which box2d to use... external checking Box2D/Box2D.h usability... yes checking Box2D/Box2D.h presence... yes checking for Box2D/Box2D.h... yes checking for main in -lBox2D... no configure: error: box2d library not found. configure:34068: checking which box2d to use configure:34071: result: external configure:34080: checking Box2D/Box2D.h usability configure:34080: x86_64-pc-linux-gnu-g++ -c -march=native -mtune=native -O2 -pipe conftest.cpp >&5 configure:34080: $? = 0 configure:34080: result: yes configure:34080: checking Box2D/Box2D.h presence configure:34080: x86_64-pc-linux-gnu-g++ -E conftest.cpp configure:34080: $? = 0 configure:34080: result: yes configure:34080: checking for Box2D/Box2D.h configure:34080: result: yes configure:34088: checking for main in -lBox2D configure:34107: x86_64-pc-linux-gnu-g++ -o conftest -march=native -mtune=native -O2 -pipe -Wl,-O1 -Wl,--as-needed conftest.cpp -lBox2D >&5 /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lBox2D collect2: error: ld returned 1 exit status
app-office/libreoffice in gentoo does not use this at the moment. Maybe the internal bundled is used or it is off by default.
The dependency is there again with libreoffice-9999 and my libreoffice-7.1.9999.ebuild. Don't know what changed.
After using my box2d ebuild in https://bugs.gentoo.org/show_bug.cgi?id=737890 I was able to emerge libreoffice 7.1 branch.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92487ce0347faa3a5a6c3a5728e6ce4e7c114e7d commit 92487ce0347faa3a5a6c3a5728e6ce4e7c114e7d Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2021-03-12 22:49:20 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2021-03-13 15:50:50 +0000 app-office/libreoffice: Update dependencies New dependency: games-engines/box2d-2.4.1 Raise dev-libs/liborcus slot dep to 0/0.16 Raise net-libs/neon minimum dep to 0.31.1 and add slot op Drop nonexistent blocker against app-office/openoffice Drop appdata downstream fix: Upstream commit e98c4be2c87ba5b3f4aedc31388014b320588d4b Update skia bundled tarball Thanks-to: jospezial <jospezial@gmx.de> Bug: https://bugs.gentoo.org/768570 Closes: https://bugs.gentoo.org/737720 Package-Manager: Portage-3.0.17, Repoman-3.0.2 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> app-office/libreoffice/Manifest | 1 + app-office/libreoffice/libreoffice-9999.ebuild | 11 +++-------- 2 files changed, 4 insertions(+), 8 deletions(-)