Subject: pkg/21086: Samba Makefile calls Solaris "install -d" with two directory names, which fails
To: None <gnats-bugs@gnats.netbsd.org>
From: None <rquinn@sec.sprint.net>
List: netbsd-bugs
Date: 04/10/2003 04:50:20
>Number: 21086
>Category: pkg
>Synopsis: Samba Makefile calls Solaris "install -d" with two directory names, which fails
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Apr 10 04:51:01 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Rob Quinn
>Release: Solaris 2.8
>Organization:
>Environment:
SunOS crn-oss 5.8 Generic_108528-19 sun4u sparc SUNW,Netra-T4
>Description:
With pkgsrc under Solaris, and the build of Samba fails because the Makefile tries to
use "install -d" to create two directories at once. Neither version of install under
Solaris2.8 supports this. The native /usr/sbin/install creates just one directory, and the
"SunOS/BSD Compatibility Package Commands" /usr/ucb/install (from SUNWscpu?)
gives an error message.
>How-To-Repeat:
#/usr/sbin/install -d /tmp/dir1 /tmp/dir2
directory /tmp/dir1 created
#/usr/ucb/install -d /tmp/dir3 /tmp/dir4
usage: install [-cs] [-g group] [-m mode] [-o owner] file ... destination
install -d [-g group] [-m mode] [-o owner] dir
#ls -ld /tmp/dir*
drwxr-xr-x 2 bin bin 117 Apr 10 07:42 /tmp/dir1/
>Fix:
#cvs diff net/samba/Makefile
Index: net/samba/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/net/samba/Makefile,v
retrieving revision 1.95
diff -c -r1.95 Makefile
*** net/samba/Makefile 2003/03/16 07:57:43 1.95
--- net/samba/Makefile 2003/04/10 11:40:17
***************
*** 71,77 ****
post-install:
# Install Samba documentation.
! ${INSTALL_DATA_DIR} ${DOCDIR} ${HTMLDIR}
cd ${WRKDIR}/${DISTNAME}/docs; \
${INSTALL_DATA} announce textdocs/* ${DOCDIR}; \
${INSTALL_DATA} Registry/*.reg ${DOCDIR}; \
--- 71,78 ----
post-install:
# Install Samba documentation.
! ${INSTALL_DATA_DIR} ${DOCDIR}
! ${INSTALL_DATA_DIR} ${HTMLDIR}
cd ${WRKDIR}/${DISTNAME}/docs; \
${INSTALL_DATA} announce textdocs/* ${DOCDIR}; \
${INSTALL_DATA} Registry/*.reg ${DOCDIR}; \
>Release-Note:
>Audit-Trail:
>Unformatted: