Opened 5 years ago

Closed 5 years ago

#4883 closed bug (fixed)

make install DESTDIR=./relative/path fails

Reported by: duncan Owned by: igloo
Priority: normal Milestone:
Component: Build System Version: 7.0.1
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Installing GHC failed Test Case:
Blocked By: Blocking:
Related Tickets: Differential Revisions:

Description

The following works as expected:

$ make install DESTDIR=$PWD/image

however when using a relative target path it fails:

$ make install DESTDIR=./image
...
"inplace/bin/ghc-cabal" install "./image/usr/local/lib/ghc-7.0.1/ghc"
 "./image/usr/local/lib/ghc-7.0.1/ghc-pkg"
 "strip" "./image/usr/local/lib/ghc-7.0.1" libraries/ghc-prim dist-install
 './image' '/usr/local' '/usr/local/lib/ghc-7.0.1'
 '/usr/local/share/doc/ghc/html/libraries' NO  
ghc-cabal:
make[1]: *** [install_packages] Error 1
make: *** [install] Error 2

The ghc-cabal command clearly fails, but no error message (other than "ghc-cabal:") is produced.

Change History (3)

comment:1 Changed 5 years ago by igloo

comment:2 Changed 5 years ago by igloo

  • Owner set to igloo

comment:3 Changed 5 years ago by igloo

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

Fixed in HEAD and 7.0 branch:

Sat Jan  8 17:16:35 GMT 2011  Ian Lynagh <[email protected]>
  * Make DESTDIR an absolute path when installing; fixes #4883
Note: See TracTickets for help on using tickets.