binarycrusader / libproxy

Automatically exported from code.google.com/p/libproxy
GNU Lesser General Public License v2.1
0 stars 0 forks source link

libproxy does not support DESTDIR due to issue with sfw_stage #139

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

What steps will reproduce the problem?

1. If you build libproxy
2. Make a directory /tmp/foo
3. Try to install with a DESTDIR setting, like this:

   make install DESTDIR=/tmp/foo

Then you see this error:

CMake Error at libmodman/cmake_install.cmake:38 (FILE):
  file called with relative DESTINATION.  This does not make sense when 
  using DESTDIR.  Specify absolute path or remove DESTDIR environment 
  variable.  Call Stack (most recent call first):
  cmake_install.cmake:32 (INCLUDE)

The problem seems to be that the cmake Makefile's hardcode a relative path like 
this:

/usr/bin/cmake -D CMAKE_INSTALL_PREFIX=./sfw_stage/ -P cmake_install.cmake

What is the expected output? What do you see instead?

I expect to be able to install libproxy to /tmp/foo.

What version of the product are you using? On what operating system?  Is there 
a way to do this other than using DESTDIR?

libproxy 0.4.5 on OpenSolaris
Please provide any additional information below.

Original issue reported on code.google.com by brian.ar...@gmail.com on 31 Aug 2010 at 6:03

GoogleCodeExporter commented 9 years ago
CMAKE_INSTALL_PREFIX must be an absolute path (./sfw_stage is not valid here). 
Please  ask for help on freenode IRC #libproxy or through our mailing list if 
you experience further problems.

Original comment by nicolas.dufresne@gmail.com on 31 Aug 2010 at 8:02

GoogleCodeExporter commented 9 years ago

I am confused by your answer.  I am not setting CMAKE_INSTALL_PREFIX.  I am 
just trying to run make install with a DESTDIR value, which works for most 
modules.  

The problem seems to be that the libproxy Makefile's hardcode 
CMAKE_INSTALL_PREFIX to a relative path.  

If I'm missing something and you need to do something else to install libproxy 
to a specific directory, then how do you do it?  Do I need to use something 
other than DESTDIR for example?

Original comment by brian.ar...@gmail.com on 10 Sep 2010 at 2:46