Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install-core-dist.pl ignores DESTDIR #4807

Closed
p6rt opened this issue Dec 2, 2015 · 2 comments
Closed

install-core-dist.pl ignores DESTDIR #4807

p6rt opened this issue Dec 2, 2015 · 2 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Dec 2, 2015

Migrated from rt.perl.org#126786 (status was 'new')

Searchable as RT126786$

@p6rt
Copy link
Author

p6rt commented Dec 2, 2015

From brian@gernhardtsoftware.com

git describe​: Bend-317-g9511ff2

OS X 10.11.1

Steps to reproduce​:
perl Configure.pl --prefix=/usr/local --backends=moar --build-moar --build-nqp
make DESTDIR=$PWD/temp m-install

Output​:
perl -MExtUtils​::Command -e mkpath /Users/brian/dev/perl6/rakudo/temp/usr/local/bin
perl -MExtUtils​::Command -e mkpath /Users/brian/dev/perl6/rakudo/temp/usr/local/share/nqp/lib/Perl6
perl -MExtUtils​::Command -e cp blib/Perl6/ModuleLoader.moarvm blib/Perl6/World.moarvm blib/Perl6/Grammar.moarvm blib/Perl6/Ops.moarvm blib/Perl6/Actions.moarvm blib/Perl6/Optimizer.moarvm blib/Perl6/Pod.moarvm blib/Perl6/Compiler.moarvm blib/Perl6/Metamodel.moarvm blib/Perl6/BOOTSTRAP.moarvm /Users/brian/dev/perl6/rakudo/temp/usr/local/share/nqp/lib/Perl6
perl -MExtUtils​::Command -e mkpath /Users/brian/dev/perl6/rakudo/temp/usr/local/share/perl6/lib
perl -MExtUtils​::Command -e mkpath /Users/brian/dev/perl6/rakudo/temp/usr/local/share/perl6/runtime
perl -MExtUtils​::Command -e cp CORE.setting.moarvm RESTRICTED.setting.moarvm /Users/brian/dev/perl6/rakudo/temp/usr/local/share/perl6/runtime
perl -MExtUtils​::Command -e cp perl6.moarvm perl6-debug.moarvm /Users/brian/dev/perl6/rakudo/temp/usr/local/share/perl6/runtime
perl -MExtUtils​::Command -e mkpath /Users/brian/dev/perl6/rakudo/temp/usr/local/share/perl6/runtime/dynext
perl -MExtUtils​::Command -e cp dynext/libperl6_ops_moar.dylib /Users/brian/dev/perl6/rakudo/temp/usr/local/share/perl6/runtime/dynext
perl -MExtUtils​::Command -e mkpath /Users/brian/dev/perl6/rakudo/temp/usr/local/share/perl6/dist
perl -MExtUtils​::Command -e mkpath /Users/brian/dev/perl6/rakudo/temp/usr/local/share/perl6/sources
perl -MExtUtils​::Command -e mkpath /Users/brian/dev/perl6/rakudo/temp/usr/local/share/perl6/resources
perl -MExtUtils​::Command -e mkpath /Users/brian/dev/perl6/rakudo/temp/usr/local/share/perl6/bin
perl -MExtUtils​::Command -e mkpath /Users/brian/dev/perl6/rakudo/temp/usr/local/share/perl6/short
perl -MExtUtils​::Command -e mkpath /Users/brian/dev/perl6/rakudo/temp/usr/local/share/perl6/vendor/dist
perl -MExtUtils​::Command -e mkpath /Users/brian/dev/perl6/rakudo/temp/usr/local/share/perl6/vendor/sources
perl -MExtUtils​::Command -e mkpath /Users/brian/dev/perl6/rakudo/temp/usr/local/share/perl6/vendor/resources
perl -MExtUtils​::Command -e mkpath /Users/brian/dev/perl6/rakudo/temp/usr/local/share/perl6/vendor/bin
perl -MExtUtils​::Command -e mkpath /Users/brian/dev/perl6/rakudo/temp/usr/local/share/perl6/vendor/short
perl -MExtUtils​::Command -e mkpath /Users/brian/dev/perl6/rakudo/temp/usr/local/share/perl6/site/dist
perl -MExtUtils​::Command -e mkpath /Users/brian/dev/perl6/rakudo/temp/usr/local/share/perl6/site/sources
perl -MExtUtils​::Command -e mkpath /Users/brian/dev/perl6/rakudo/temp/usr/local/share/perl6/site/resources
perl -MExtUtils​::Command -e mkpath /Users/brian/dev/perl6/rakudo/temp/usr/local/share/perl6/site/bin
perl -MExtUtils​::Command -e mkpath /Users/brian/dev/perl6/rakudo/temp/usr/local/share/perl6/site/short
./perl6-m tools/build/install-core-dist.pl
No writeable path found
  in block <unit> at tools/build/install-core-dist.pl​:14

Because install-core-dist.pl has no idea of $DESTDIR, it attempts to install in /usr/local/share/perl6, which doesn't exist yet.

Use case​: I use stow to manage my /usr/local/ directory, so use $DESTDIR to put everything into a temp directory and then move temp/usr/local to /usr/local/stow/rakudo.

@p6rt p6rt added the Bug label Jan 5, 2020
@usev6
Copy link

usev6 commented Apr 11, 2021

I'm closing this very old issue about a Rakudo from 2015-12 now. I'm pretty sure using --prefix and $DESTDIR has been working for quite some time. (If not we'd need a new issue over at https://github.com/rakudo/rakudo or https://github.com/rakudo/star.)

I tried the following (not on OS X, but on FreeBSD):

$ mkdir -p /home/christian/usr/local
$ perl Configure.pl --prefix=/home/christian/usr/local --backends=moar --gen-moar --gen-nqp
[...]
$ ls -l /home/christian/usr/local/bin ## moar and nqp are installed below --prefix dir
total 48
-rwxr-xr-x  1 christian  christian  15287 Apr 11 09:54 moar
-rwxr-xr-x  1 christian  christian  13009 Apr 11 09:55 nqp
-rwxr-xr-x  1 christian  christian  13009 Apr 11 09:55 nqp-m
$ mkdir /home/christian/usr_tmp
$ gmake DESTDIR=/home/christian/usr_tmp m-install
[...]
$ ls -l /home/christian/usr/local/bin/  ## /home/christian/usr/local/bin is untouched
total 48
-rwxr-xr-x  1 christian  christian  15287 Apr 11 09:54 moar
-rwxr-xr-x  1 christian  christian  13009 Apr 11 09:55 nqp
-rwxr-xr-x  1 christian  christian  13009 Apr 11 09:55 nqp-m
$ ls -l /home/christian/usr_tmp/home/christian/usr/local/bin/ ## rakudo is installed below $DESTDIR, --prefix is used
total 88
-rwxr-xr-x  1 christian  christian  14468 Apr 11 09:59 perl6-debug-m
-rwxr-xr-x  1 christian  christian   1927 Apr 11 09:59 perl6-gdb-m
-rwxr-xr-x  1 christian  christian   1779 Apr 11 09:59 perl6-lldb-m
-rwxr-xr-x  1 christian  christian  14436 Apr 11 09:59 perl6-m
-rwxr-xr-x  1 christian  christian   1605 Apr 11 09:59 perl6-valgrind-m
-rwxr-xr-x  1 christian  christian  14468 Apr 11 09:59 rakudo-debug-m
-rwxr-xr-x  1 christian  christian   1927 Apr 11 09:59 rakudo-gdb-m
-rwxr-xr-x  1 christian  christian   1779 Apr 11 09:59 rakudo-lldb-m
-rwxr-xr-x  1 christian  christian  14436 Apr 11 09:59 rakudo-m
-rwxr-xr-x  1 christian  christian   1605 Apr 11 09:59 rakudo-valgrind-m

So things seem to work as expected.

@usev6 usev6 closed this as completed Apr 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants