ports/108149: dar 2.3.2 port install failure
Chris Calvey
chris at securityforensics.yi.org
Sat Jan 20 13:20:19 UTC 2007
>Number: 108149
>Category: ports
>Synopsis: dar 2.3.2 port install failure
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat Jan 20 13:20:18 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Chris Calvey
>Release: 6.1
>Organization:
Enigmathica Consulting
>Environment:
FreeBSD enigmathica.localdomain 6.1-RELEASE-p10 FreeBSD 6.1-RELEASE-p10 #0: Mon Oct 2 15:19:44 BST 2006 root at enigmathica.localdomain:/usr/src/sys/i386/compile/ENIGMATHICA i386
>Description:
Port installation for the Disk Archiver "dar" fails.
The executable components of dar are installed with mode 555 and during the post installation phase the install script trys to use UPX to compress these executables. As the files are read-only, the UPX compression fails:-
/usr/bin/install -c -o root -g wheel -d /usr/local/libdata/pkgconfig
/usr/bin/install -c -o root -g wheel -m 0644 libdar.pc /usr/local/libdata/pkgconfig/libdar.pc
Making install in dar_suite
test -z "/usr/local/bin" || /bin/sh ../../mkinstalldirs "/usr/local/bin"
/bin/sh /usr/local/bin/libtool --mode=install install -s -o root -g wheel -m 555 'dar' '/usr/local/bin/dar'
install -o root -g wheel -m 555 -s dar /usr/local/bin/dar
/bin/sh /usr/local/bin/libtool --mode=install install -s -o root -g wheel -m 555 'dar_xform' '/usr/local/bin/dar_xform'
install -o root -g wheel -m 555 -s dar_xform /usr/local/bin/dar_xform
/bin/sh /usr/local/bin/libtool --mode=install install -s -o root -g wheel -m 555 'dar_slave' '/usr/local/bin/dar_slave'
install -o root -g wheel -m 555 -s dar_slave /usr/local/bin/dar_slave
/bin/sh /usr/local/bin/libtool --mode=install install -s -o root -g wheel -m 555 'dar_manager' '/usr/local/bin/dar_manager'
install -o root -g wheel -m 555 -s dar_manager /usr/local/bin/dar_manager
/bin/sh /usr/local/bin/libtool --mode=install install -s -o root -g wheel -m 555 'dar_cp' '/usr/local/bin/dar_cp'
install -o root -g wheel -m 555 -s dar_cp /usr/local/bin/dar_cp
make install-exec-hook
cd //usr/local/bin ; upx -9 dar dar_xform dar_slave dar_manager dar_cp
Ultimate Packer for eXecutables
Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
UPX 1.25 Markus F.X.J. Oberhumer & Laszlo Molnar Jun 29th 2004
File size Ratio Format Name
-------------------- ------ ----------- -----------
upx: dar: IOException: file is write protected -- skipped
upx: dar_xform: IOException: file is write protected -- skipped
upx: dar_slave: IOException: file is write protected -- skipped
upx: dar_manager: IOException: file is write protected -- skipped
upx: dar_cp: IOException: file is write protected -- skipped
Packed 0 files.
*** Error code 1
Stop in /usr/ports/sysutils/dar/work/dar-2.3.2/src/dar_suite.
*** Error code 1
Stop in /usr/ports/sysutils/dar/work/dar-2.3.2/src/dar_suite.
*** Error code 1
Stop in /usr/ports/sysutils/dar/work/dar-2.3.2/src/dar_suite.
*** Error code 1
Stop in /usr/ports/sysutils/dar/work/dar-2.3.2/src.
*** Error code 1
Stop in /usr/ports/sysutils/dar/work/dar-2.3.2.
*** Error code 1
Stop in /usr/ports/sysutils/dar.
[dar]#
>How-To-Repeat:
Note: The UPX compression program should be installed. I seem to remember that
the installation will fail also if UPX is not installed, perhaps UPX should
be marked as a dependency also.
make
make install
>Fix:
A quick and dirty patch, just to get it to install, should be made against
the file work/dar-2.3.2/src/dar_suite/Makefile using the patch:
167,168c167,168
< INSTALL_PROGRAM = install -s -o root -g wheel -m 655
< INSTALL_SCRIPT = install -o root -g wheel -m 655
---
> INSTALL_PROGRAM = install -s -o root -g wheel -m 755
> INSTALL_SCRIPT = install -o root -g wheel -m 755
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list