multiple users cannot do perl installation due to chmod on .bs file

Manohar Koduru <[email protected]> Wed, 13 Oct 2010 07:04:26 +0100 (BST)
Newsgroups gmane.comp.lang.perl.modules.extutils-makemaker.devel
Message-ID <[email protected]>

 

The following code in ExtUtils::MM_Unix is doing chmod 664 on .bs file. This means that two different users cannot do installation as if one user if the owner, then the other cannot do chmod on it. Is there any solution to this? Or am I missing something? 
 
 
 
# As Mkbootstrap might not write a file (if none is required)
# we use touch to prevent make continually trying to remake it.
# The DynaLoader only reads a non-empty file.
$(BOOTSTRAP) : $(FIRST_MAKEFILE) $(BOOTDEP) $(INST_ARCHAUTODIR)$(DFSEP).exists
 $(NOECHO) $(ECHO) "Running Mkbootstrap for $(NAME) ($(BSLOADLIBS))"
 $(NOECHO) $(PERLRUN) \
  "-MExtUtils::Mkbootstrap" \
  -e "Mkbootstrap('$(BASEEXT)','$(BSLOADLIBS)');"
 $(NOECHO) $(TOUCH) %s
 $(CHMOD) $(PERM_RW) %s