Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 575298 - dev-cpp/eigen-3.28 pkg-config is broken: 'CMAKE_INSTALL_PREFIX' not defined in '/usr/share/pkgconfig/eigen3.pc'
Summary: dev-cpp/eigen-3.28 pkg-config is broken: 'CMAKE_INSTALL_PREFIX' not defined i...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Justin Lecher (RETIRED)
URL: https://github.com/gentoo/gentoo/pull...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-21 13:55 UTC by David Brooke
Modified: 2016-12-17 11:01 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Brooke 2016-02-21 13:55:17 UTC
The directory variable:
Cflags: -I${CMAKE_INSTALL_PREFIX}/${INCLUDE_INSTALL_DIR}
is not pointing to the correct file:
Cflags: -I/usr/include/eigen3

Work-around
/usr/share/pkgconfig/eigen3.pc:
prefix=/usr
exec_prefix=${prefix}

Name: Eigen3
Description: A C++ template library for linear algebra: vectors, matrices, and related algorithms
Requires:
Version: 3.2.8
Libs:
-Cflags: -I${CMAKE_INSTALL_PREFIX}/${INCLUDE_INSTALL_DIR}
+Cflags: -I/usr/include/eigen3

This causes an installation problem for media-video/movit-1.3.1:
checking for Eigen3... no
configure: error: Package requirements (eigen3) were not met:

Variable 'CMAKE_INSTALL_PREFIX' not defined in '/usr/share/pkgconfig/eigen3.pc'

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables Eigen3_CFLAGS
and Eigen3_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/media-video/movit-1.3.1/work/movit-1.3.1/config.log
 * ERROR: media-video/movit-1.3.1::gentoo failed (configure phase):
 *   econf failed
Comment 1 Louis Sautier (sbraz) gentoo-dev 2016-02-21 23:38:17 UTC
This is caused by a change to eigen3.pc that the ebuild applies, I made a pull request  to fix it: https://github.com/gentoo/gentoo/pull/900
Comment 2 Patrick Lauer gentoo-dev 2016-02-22 06:23:06 UTC
Fixed.

Please don't use Github for trivial patches, it makes it hard to figure out what changed :\
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2016-02-22 08:09:10 UTC
(In reply to Patrick Lauer from comment #2)
> Please don't use Github for trivial patches, it makes it hard to figure out
> what changed :\

David, thanks for the PR and please continue to do so. I find https://github.com/gentoo/gentoo/pull/900/files pretty clear in what changed.