[Python-bugs-list] [Bug #133668] install-sh has no -d option but 2.1a2 Makefile uses it

noreply@sourceforge.net noreply@sourceforge.net
Thu, 22 Feb 2001 13:44:26 -0800


Bug #133668, was updated on 2001-Feb-22 13:44
Here is a current snapshot of the bug.

Project: Python
Category: None
Status: Open
Resolution: None
Bug Group: None
Priority: 5
Submitted by: mengel
Assigned to : nobody
Summary: install-sh has no -d option but 2.1a2 Makefile uses it

Details: The install-sh script has no -d option to make directories, but
the
Makefile attempts to use such an option on OSF1.  I suggest the
following patch:

*** install-sh.python.orig	Thu Feb 22 15:42:30 2001
--- install-sh.python.new	Thu Feb 22 15:39:49 2001
***************
*** 25,30 ****
--- 26,32 ----
  chownprog="${CHOWNPROG-chown}"
  chgrpprog="${CHGRPPROG-chgrp}"
  stripprog="${STRIPPROG-strip}"
+ mkdirprog="${MKDIRPROG-mkdir}"
  rmprog="${RMPROG-rm}"
  
  instcmd="$mvprog"
***************
*** 58,63 ****
--- 60,73 ----
  	    shift
  	    continue;;
  
+ 	-d) mkdircmd="$mkdirprog"
+ 	    chmodcmd="$chmodprog $2"
+ 	    instcmd=":"
+ 	    src="."
+ 	    shift
+ 	    shift
+ 	    continue;;
+ 
  	-s) stripcmd="$stripprog"
  	    shift
  	    continue;;
***************
*** 106,111 ****
--- 116,122 ----
  
  # and set any options; do chmod last to preserve setuid bits
  
+ if [ x"$mkdircmd" != x ]; then $doit $mkdircmd $dsttmp; fi
  if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; fi
  if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; fi
  if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; fi


For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=133668&group_id=5470