develooper Front page | perl.perl5.porters | Postings from November 2003

Re: [perl #24486] 'make install' should not assume writable build directory

Thread Previous | Thread Next
Slaven Rezic
November 13, 2003 05:16
Re: [perl #24486] 'make install' should not assume writable build directory
Message ID:
" (via RT)" <> wrote:
> # New Ticket Created by 
> # Please include the string:  [perl #24486]
> # in the subject line of all future correspondence about this issue. 
> # <URL: >
> This is a bug report for perl from,
> generated with the help of perlbug 1.34 running under perl v5.8.2.
> -----------------------------------------------------------------
> [Please enter your report here]
> 'make install' should not attempt to change any file or directory
> that has previously been created by 'make'. Both AIX and HPUX 
> installs attempt to rebuild Dynaloader.a, and possibly other
> files. Not only is this unnecessary because Dynaloader is already
> up to date, but it also causes permission problems:
> If I have changed to a different userid for the install, I probably
> don't have permission to make such changes any more. (Remember that
> root has NO PRIVILEGES on an NFS filesystem as a general rule.)
> Also, remember that developers may or may not have the password to
> root on their build machines, which causes problems creating perl
> to be included in other products.

Here's some analysis of the problem. The blibdirs sections of DynaLoader's
Makefile looks like this on my system:

blibdirs :: 
	$(NOECHO) $(CHMOD) 755 \
	$(NOECHO) $(TOUCH) blibdirs

As it stands, this rule gets always fired in a static DynaLoader
build. Maybe it would be better if ExtUtils::MM_Any::blibdirs spit
out something like:

blibdirs :: $(INST_LIBDIR) $(INST_AUTODIR) \
	$(NOECHO) $(TOUCH) blibdirs




$(INST_BIN)  :
	$(NOECHO) $(CHMOD) 755 $(INST_BIN) 




This is not perfect, either, because GNU make emits some warnings
about overridden targets ($(INST_ARCHAUTODIR) and $(INST_AUTODIR) are
the same here).


     __o		Slaven Rezic
   _`\<,_		slaven <at> rezic <dot> de
__(_)/ (_)____

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About