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

perl DESTDIR bug #438

Closed
p5pRT opened this issue Aug 25, 1999 · 1 comment
Closed

perl DESTDIR bug #438

p5pRT opened this issue Aug 25, 1999 · 1 comment

Comments

@p5pRT
Copy link

p5pRT commented Aug 25, 1999

Migrated from rt.perl.org#1279 (status was 'resolved')

Searchable as RT1279$

@p5pRT
Copy link
Author

p5pRT commented Aug 25, 1999

From wiget@wiget.t17.ds.pwr.wroc.pl

perl ExtUtils​::MakeMaker don't allow use $DESTDIR to move installed
files to pseudo-root. This feature is very important for packagers
(like perl modules rpm/deb maintainers).
I write simple patch for Unix MakeMaker module adding this feature.
Similar patch mayby writen for another archs.

=========================== cut ==================================

Inline Patch
diff -ur perl5.005_61.old/lib/ExtUtils/MM_Unix.pm perl5.005_61/lib/ExtUtils/MM_Unix.pm
--- perl5.005_61.old/lib/ExtUtils/MM_Unix.pm	Fri Aug 20 17:51:31 1999
+++ perl5.005_61/lib/ExtUtils/MM_Unix.pm	Thu Aug 26 00:22:31 1999
@@ -527,8 +527,7 @@
 	      AR_STATIC_ARGS NAME DISTNAME NAME_SYM VERSION
 	      VERSION_SYM XS_VERSION INST_BIN INST_EXE INST_LIB
 	      INST_ARCHLIB INST_SCRIPT PREFIX  INSTALLDIRS
-	      INSTALLPRIVLIB INSTALLARCHLIB INSTALLSITELIB
-	      INSTALLSITEARCH INSTALLBIN INSTALLSCRIPT PERL_LIB
+	      PERL_LIB
 	      PERL_ARCHLIB SITELIBEXP SITEARCHEXP LIBPERL_A MYEXTLIB
 	      FIRST_MAKEFILE MAKE_APERL_FILE PERLMAINCC PERL_SRC
 	      PERL_INC PERL FULLPERL
@@ -538,6 +537,15 @@
 	push @m, "$tmp = $self->{$tmp}\n";
     }
 
+    for $tmp (qw/
+
+	      INSTALLPRIVLIB INSTALLARCHLIB INSTALLSITELIB
+	      INSTALLSITEARCH INSTALLBIN INSTALLSCRIPT 
+
+	      / ) {
+	next unless defined $self->{$tmp};
+	push @m, "$tmp = \$\(DESTDIR\)$self->{$tmp}\n";
+    }
     push @m, qq{
 VERSION_MACRO = VERSION
 DEFINE_VERSION = -D\$(VERSION_MACRO)=\\\"\$(VERSION)\\\"
@@ -580,17 +588,27 @@
 ";
 
     for $tmp (qw/
-	      INST_HTMLPRIVLIBDIR INSTALLHTMLPRIVLIBDIR
-	      INST_HTMLSITELIBDIR INSTALLHTMLSITELIBDIR
-	      INST_HTMLSCRIPTDIR  INSTALLHTMLSCRIPTDIR
-	      INST_HTMLLIBDIR                    HTMLEXT
-	      INST_MAN1DIR        INSTALLMAN1DIR MAN1EXT
-	      INST_MAN3DIR        INSTALLMAN3DIR MAN3EXT
+	      INST_HTMLPRIVLIBDIR 
+	      INST_HTMLSITELIBDIR 
+	      INST_HTMLSCRIPTDIR  
+	      INST_HTMLLIBDIR     HTMLEXT
+	      INST_MAN1DIR        MAN1EXT
+	      INST_MAN3DIR        MAN3EXT
 	      /) {
 	next unless defined $self->{$tmp};
 	push @m, "$tmp = $self->{$tmp}\n";
     }
 
+    for $tmp (qw/
+	      INSTALLHTMLPRIVLIBDIR
+	      INSTALLHTMLSITELIBDIR
+	      INSTALLHTMLSCRIPTDIR
+	      INSTALLMAN1DIR 
+	      INSTALLMAN3DIR 
+	      /) {
+	next unless defined $self->{$tmp};
+	push @m, "$tmp = \$\(DESTDIR\)$self->{$tmp}\n";
+    }
     for $tmp (qw(
 		PERM_RW PERM_RWX
 		)
Perl Info


Site configuration information for perl 5.00561:

Configured by xwiget at Wed Aug 25 15:22:51 CEST 1999.

Summary of my perl5 (revision 5.0 version 5 subversion 61) configuration:
  Platform:
    osname=linux, osvers=2.2.11, archname=i586-pld-linux-thread
    uname='linux wiget 2.2.11 #1 pon sie 16 12:42:26 cest 1999 i586 pld '
    config_args='-des -Dcc=gcc -Darchname=i586-pld-linux -Dprefix=/usr -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 -Dman3ext=3pm -Doptimize=-O2 -mpentium -Duseshrplib -Dusethreads -Dd_dosuid -Ud_setresuid -Ud_setresgid'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define useperlio=undef d_sfio=undef
    use64bits=undef usemultiplicity=undef
  Compiler:
    cc='gcc', optimize='-O2 -mpentium', gccversion=2.95.1 19990816 (release)
    cppflags='-D_REENTRANT -Dbool=char -DHAS_BOOL -I/usr/local/include'
    ccflags ='-D_REENTRANT -Dbool=char -DHAS_BOOL -I/usr/local/include'
    stdchar='char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    alignbytes=4, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lndbm -lgdbm -ldb -ldl -lm -lpthread -lc -lposix -lcrypt
    libc=/lib/libc-2.1.1.so, so=so, useshrplib=true, libperl=libperl.so
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic -Wl,-rpath,/usr/lib/perl5/5.00561/i586-pld-linux-thread/CORE'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'

Locally applied patches:
    


@INC for perl 5.00561:
    /usr/lib/perl5/5.00561/i586-pld-linux-thread
    /usr/lib/perl5/5.00561
    /usr/lib/site_perl/5.00561/i586-pld-linux-thread
    /usr/lib/site_perl
    .


Environment for perl 5.00561:
    HOME=/home/users/wiget
    LANG=pl
    LANGUAGE (unset)
    LC_ALL=pl_PL
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/home/users/wiget/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin
    PERL_BADLANG (unset)
    SHELL=/bin/bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant