Subject: pkg/32711: devel/ruby-activesupport fails to install under Solaris 5.10 w/pkgsrc-2005Q4
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <chris.fuhrman@tfcci.com>
List: pkgsrc-bugs
Date: 02/02/2006 20:45:00
>Number: 32711
>Category: pkg
>Synopsis: devel/ruby-activesupport fails to install under Solaris 5.10 w/pkgsrc-2005Q4
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Feb 02 20:45:00 +0000 2006
>Originator: Christopher Fuhrman
>Release: N/A
>Organization:
Twenty First Century Communications
>Environment:
SunOS flare 5.10 Generic sun4u sparc SUNW,Ultra-2
>Description:
pkgsrc-2005Q4 is not able to install devel/ruby-activesupport under Solaris 10. Please make note of the version of install that is used under Solaris 10.
bash-3.00# bmake do-install
/bin/cp -R /export0/pkgsrc/devel/ruby-activesupport/work/activesupport-1.2.1/lib/* /opt/pkg/lib/ruby/site_ruby/1.8
/usr/bin/chown -R root:root /opt/pkg/lib/ruby/site_ruby/1.8/active_support*
/usr/bin/find /opt/pkg/lib/ruby/site_ruby/1.8/active_support -type d -print | /usr/bin/xargs /usr/bin/chmod 755
/usr/bin/find /opt/pkg/lib/ruby/site_ruby/1.8/active_support* -type f -print | /usr/bin/xargs /usr/bin/chmod 444
/usr/ucb/install -d -o root -g root -m 755 /export0/pkgsrc/devel/ruby-activesupport/work/activesupport-1.2.1/CHANGELOG /opt/pkg/share/doc/ruby18/CHANGELOG.activesupport
usage: install [-cs] [-g group] [-m mode] [-o owner] file ... destination
install -d [-g group] [-m mode] [-o owner] dir
*** Error code 1
The problem appears to be that it's trying to install a file as a directory.
>How-To-Repeat:
cd pkgsrc/devel/ruby-activesupport
bmake && bmake install
Installation will barf when it attempts to install the CHANGELOG file. Note that this problem *does not* occur under NetBSD 3.0 which utilizes a different version of the classic install program.
>Fix:
The problem is in the Makefile. It's calling ${INSTALL_DATA_DIR} instead of ${INSTALL_DATA}. Thus, to fix the issue, apply the following patch:
Common subdirectories: ruby-activesupport/CVS and ruby-activesupport.new/CVS
diff ruby-activesupport/Makefile ruby-activesupport.new/Makefile
23c23
< ${INSTALL_DATA_DIR} ${WRKSRC}/CHANGELOG \
---
> ${INSTALL_DATA} ${WRKSRC}/CHANGELOG \