Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 436302 - app-text/libwps-0.2.7 with dev-libs/boost-1.50.0-r2 - configure: conftest.cpp:23:34: fatal error: boost/shared_ptr.hpp: No such file or directory
Summary: app-text/libwps-0.2.7 with dev-libs/boost-1.50.0-r2 - configure: conftest.cpp...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-26 14:37 UTC by Hans
Modified: 2012-10-31 16:37 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,7.79 KB, text/plain)
2012-09-26 14:37 UTC, Hans
Details
config.log (config.log,34.07 KB, text/plain)
2012-09-26 14:38 UTC, Hans
Details
emerge --info (emerge.info,3.14 KB, text/plain)
2012-09-26 14:40 UTC, Hans
Details
libwps-boost-1.50 (libwps-boost-1.50.diff,701 bytes, patch)
2012-10-01 21:51 UTC, Jory A. Pratt
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hans 2012-09-26 14:37:57 UTC
Created attachment 325030 [details]
build.log

app-text/libwps-0.2.7 fails with dev-libs/boost-1.50.0-r2:

[...]
checking for boost shared ptr... no
configure: error: Could not find Boost implementation of shared_ptr
[...]

From config.log:
[...]
configure:15947: x86_64-pc-linux-gnu-g++ -c -O2 -pipe -march=native -fomit-frame-pointer -Wall -Wextra -pedantic -Weffc++  conftest.cpp >&5
conftest.cpp:23:34: fatal error: boost/shared_ptr.hpp: No such file or directory
compilation terminated.
configure:15947: $? = 1
[...]

Works with dev-libs/boost-1.49.0-r1.
Comment 1 Hans 2012-09-26 14:38:16 UTC
Created attachment 325032 [details]
config.log
Comment 2 Hans 2012-09-26 14:40:09 UTC
Created attachment 325034 [details]
emerge --info

# ln -s /usr/include/boost-1_50/boost /usr/include/boost
worked around this for now.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2012-09-26 14:42:34 UTC
configure: error: Could not find Boost implementation of shared_ptr

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/app-text/libwps-0.2.7/work/libwps-0.2.7/config.log
Comment 4 Jory A. Pratt gentoo-dev 2012-10-01 21:51:05 UTC
Created attachment 325502 [details, diff]
libwps-boost-1.50

Simply adds the includes via append-cppflags due to eselect boost support being removed in ~arch
Comment 5 Michael Palimaka (kensington) gentoo-dev 2012-10-17 13:25:01 UTC
Any objections to applying Jory's patch?
Comment 6 Tomáš Chvátal (RETIRED) gentoo-dev 2012-10-17 13:46:09 UTC
I have a question about our boost handling, are we going to need to fck with every package to work with the new shiny boost approach.

And if the answer is yes then NO I am against such per package alteration.
Comment 7 Andreas K. Hüttel archtester gentoo-dev 2012-10-24 21:56:28 UTC
(In reply to comment #6)
> I have a question about our boost handling, are we going to need to fck with
> every package to work with the new shiny boost approach.
> 
> And if the answer is yes then NO I am against such per package alteration.

We had similar discussions already regarding FindKDEPimLibs.cmake (whether it should automagically add the boost dir to the include path just because boost headers are included in its headers and thereby its interface).
Comment 8 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-10-25 00:49:42 UTC
(In reply to comment #6)
> I have a question about our boost handling, are we going to need to fck with
> every package to work with the new shiny boost approach.

For every package that needs boost but doesn't use boost.m4 from sys-devel/boost-m4 (if it's autotools-based) or FindBoost (if cmake-based).

Which is not a very onerous requirement: packages that need anything with multiple slots or implementations (java, python, ruby, vala, etc.) already inherit special eclasses for that purpose that do the right thing automatically or with a standard one-line call for most packages, but may require more esoteric handling whose build systems use a non-standard approach for finding java or python.

Now boost in gentoo will be getting the same treatment. It's a logical development.

Back to the subject of the libwps ebuild: Jory's patch works, but it is not beautiful. Unless the situation is urgent, my suggestion is to properly patch libwps's configure.ac to use the standard macros from boost.m4, and submit that patch to libwps upstream.
Comment 9 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-10-31 16:37:13 UTC
I'd assume this is fixed with 1.51.0-r1 unless proven otherwise.