aykutbulut / OSI-CONIC

Solver interface for conic problems.
Eclipse Public License 1.0
0 stars 1 forks source link

Install fails: "Package osiconic was not found in the pkg-config search path" because stage directory isn't in PKG_CONFIG_PATH #2

Open yurivict opened 3 years ago

yurivict commented 3 years ago
test -z "/usr/local/lib/pkgconfig" || /disk-samsung/freebsd-ports/math/osi-conic/work/OSI-CONIC-releases-1.0.0/install-sh -d "/disk-samsung/freebsd-ports/math/osi-conic/work/stage/usr/local/lib/pkgconfig"
 install  -m 0644 'osiconic.pc' '/disk-samsung/freebsd-ports/math/osi-conic/work/stage/usr/local/lib/pkgconfig/osiconic.pc'
gmake  install-data-hook
gmake[4]: Entering directory '/disk-samsung/freebsd-ports/math/osi-conic/work/OSI-CONIC-releases-1.0.0'
PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig:/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig: \
pkgconf --libs osiconic > /disk-samsung/freebsd-ports/math/osi-conic/work/stage/usr/local/share/coin/doc/OsiConic/osiconic_addlibs.txt
Package osiconic was not found in the pkg-config search path.
Perhaps you should add the directory containing `osiconic.pc'
to the PKG_CONFIG_PATH environment variable
Package 'osiconic', required by 'virtual:world', not found
gmake[4]: *** [Makefile:771: install-data-hook] Error 1

It is trying to find its own .pc file but fails to prepend the stage directory.

tkralphs commented 3 years ago

Hmm, something is strange here, I'll try to take a look.

yurivict commented 3 years ago

This happens during the install phase.

It assumes that it is installed into $PREFIX but it is installed into the stage directory: $DESTDIR$PREFIX.