Bug 1406787 - unbundle bear from plee-the-bear
Summary: unbundle bear from plee-the-bear
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: plee-the-bear
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Hans de Goede
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1398949
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-21 13:44 UTC by MartinKG
Modified: 2017-01-27 19:21 UTC (History)
4 users (show)

Fixed In Version: plee-the-bear-0.7.0-13.fc24 plee-the-bear-0.7.0-13.fc25
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-27 19:18:27 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description MartinKG 2016-12-21 13:44:48 UTC
I would like to start the process to unbundle bear from plee-the-bear.

I have already started the first attempt.
PTB compiles fine, but at the start I get the following error message:

[martin@fc25 SPECS]$ plee-the-bear 
Exception: /usr/lib64/bear/libplee_the_bear.so: cannot open shared object file: No such file or directory

rpm files:
Spec URL: https://martinkg.fedorapeople.org/Review/SPECS/plee-the-bear.spec
SRPM URL: https://martinkg.fedorapeople.org/Review/SRPMS/plee-the-bear-0.7.0-11.fc25.src.rpm

Comment 1 MartinKG 2016-12-22 10:47:09 UTC
new rpm files:
Spec URL: https://martinkg.fedorapeople.org/Review/SPECS/plee-the-bear.spec
SRPM URL: https://martinkg.fedorapeople.org/Review/SRPMS/plee-the-bear-0.7.0-11.fc25.src.rpm

%changelog
* Thu Dec 22 2016 Martin Gansser <martinkg> - 0.7.0-11
- add BR bear-devel
- set -DBEAR_ENGINE_LIBRARY_DIRECTORY=%%{_libdir}/bear
- set -DBEAR_ENGINE_INSTALL_LIBRARY_DIR=%%{_lib}/bear
- set -DBEAR_ROOT_DIRECTORY=%%{_includedir}/bear
- delete add_subdirectory( bear ) in CMakeLists.txt
- correct CMAKE_MODULE_PATH in CMakeLists.txt
- correct BEAR_ROOT_DIRECTORY in CMakeLists.txt
- correct PTB_LIBRARY_PATH in plee-the-bear/launcher/src/CMakeLists.txt
- porting issue https://gcc.gnu.org/gcc-6/porting_to.html in 
  plee-the-bear/lib/src/ptb/item/mini-game/code/sequencer.cpp

Comment 2 MartinKG 2016-12-23 13:31:13 UTC
new rpm files:
Spec URL: https://martinkg.fedorapeople.org/Review/SPECS/plee-the-bear.spec
SRPM URL: https://martinkg.fedorapeople.org/Review/SRPMS/plee-the-bear-0.7.0-12.fc25.src.rpm

%changelog
* Fri Dec 23 2016 Martin Gansser <martinkg> - 0.7.0-12
- add ptb-CMakeLists.patch

Comment 4 Michael Schwendt 2017-01-14 15:46:20 UTC
> - set -DBEAR_ENGINE_LIBRARY_DIRECTORY=%%{_libdir}/bear

As pointed out in the review request of "bear", it makes no sense to relocate the libs into a private libdir, if the same path is added to the runtime linker's search path (via a ld.so config script). There is not even a file conflict that would avoid, because plee-the-bear also places its bundled bear libs into a private libdir.

I strongly suggest installing bear's libs into global %libdir and starting from there without having to patch every other program to find the libs in that place at build-time.

Comment 5 MartinKG 2017-01-16 21:22:23 UTC
Have implemented your suggestions.
new rpm files:
Spec URL: https://martinkg.fedorapeople.org/Review/SPECS/plee-the-bear.spec
SRPM URL: https://martinkg.fedorapeople.org/Review/SRPMS/plee-the-bear-0.7.0-13.fc25.src.rpm

%changelog
* Mon Jan 16 2017 Martin Gansser <martinkg> - 0.7.0-13
- set -DBEAR_ENGINE_LIBRARY_DIRECTORY=%%{_libdir} to global %%libdir
- set -DBEAR_ENGINE_INSTALL_LIBRARY_DIR=%%{_lib} to global %%lib
- set -DPTB_LIBRARY_PATH=%%{_libdir} to global %%libdir
- set -DPTB_INSTALL_CUSTOM_LIBRARY_DIR=%%{_lib} global %%lib
- set -DPTB_LIBRARY_OUTPUT_PATH=%%{_libdir} to global %%libdir

Comment 6 Fedora Update System 2017-01-18 18:52:17 UTC
plee-the-bear-0.7.0-13.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-f8436310d2

Comment 7 Fedora Update System 2017-01-18 18:52:26 UTC
plee-the-bear-0.7.0-13.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-75dae99a36

Comment 8 Fedora Update System 2017-01-19 07:24:05 UTC
plee-the-bear-0.7.0-13.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-75dae99a36

Comment 9 Fedora Update System 2017-01-19 09:12:28 UTC
plee-the-bear-0.7.0-13.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-f8436310d2

Comment 10 Fedora Update System 2017-01-27 19:18:27 UTC
plee-the-bear-0.7.0-13.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2017-01-27 19:21:53 UTC
plee-the-bear-0.7.0-13.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.