Opened 6 years ago

Closed 2 months ago

#104 closed defect (migrated)

make install fails with DESTDIR and pkg-config

Reported by: mlubin Owned by: stefan
Priority: major Component: build system
Version: 0.7 Keywords:
Cc:

Description

To reproduce, building OSI, for example:

$ ./configure
$ make
$ mkdir installdir
$ make DESTDIR=`pwd`/installdir install
...
make  install-data-hook
make[4]: Entering directory `/home/mlubin/osi/Osi-0.106.1/CoinUtils'
PKG_CONFIG_PATH=/home/mlubin/osi/Osi-0.106.1/lib64/pkgconfig:/home/mlubin/osi/Osi-0.106.1/lib/pkgconfig:/home/mlubin/osi/Osi-0.106.1/share/pkgconfig:
\
    pkg-config --libs coinutils >
/home/mlubin/osi/Osi-0.106.1/installdir/home/mlubin/osi/Osi-0.106.1/share/coin/doc/CoinUtils/coinutils_addlibs.txt
Package coinutils was not found in the pkg-config search path.
Perhaps you should add the directory containing `coinutils.pc'
to the PKG_CONFIG_PATH environment variable
No package 'coinutils' found

I believe this can be fixed by changing the lines in Osi/Makefile.am from:

if COIN_HAS_PKGCONFIG
    PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@ \
    $(PKG_CONFIG) --libs osi > $(addlibsdir)/osi_addlibs.txt
else

to

if COIN_HAS_PKGCONFIG
    PKG_CONFIG_PATH=$(DESTDIR)/$(pkgconfiglibdir) \
    $(PKG_CONFIG) --libs osi > $(addlibsdir)/osi_addlibs.txt
else

with similar changes in all coin projects.

Change History (1)

comment:1 Changed 2 months ago by stefan

  • Resolution set to migrated
  • Status changed from new to closed

Ticket has been migrated to GitHub and will be resolved there: https://github.com/coin-or-tools/BuildTools/issues/104

Note: See TracTickets for help on using tickets.