On 05/02/2008, Jean-François Mertens <[EMAIL PROTECTED]> wrote: > > On 05 Feb 2008, at 02:01, Daniel Macks wrote: > > > On Mon, Feb 04, 2008 at 03:20:43PM -0500, Alexander Hansen wrote: > >> OS 10.5.1, Xcode 3.0 > >> > >> I get the following when I try to install ruby18: > >> > >> $ fink install ruby18 > >> Information about 6521 packages read in 8 seconds. > >> The package 'ruby18' will be installed. > >> Reading dependency for ruby18-1.8.6-p111-1... > >> The following package will be installed or updated: > >> ruby18 > >> Reading buildlock packages... > >> All buildlocks accounted for. > >> /sw2/bin/dpkg-lockwait -i > >> /sw2/fink/dists/unstable/main/binary-darwin-powerpc/languages/ > >> ruby18_1.8.6-p111-1_darwin-powerpc.deb > >> (Reading database ... 7878 files and directories currently > >> installed.) > >> Preparing to replace ruby18 1.8.6-p111-1 (using > >> .../ruby18_1.8.6-p111-1_darwin-powerpc.deb) ... > >> Unpacking replacement ruby18 ... > >> Setting up ruby18 (1.8.6-p111-1) ... > >> /sw2/share/doc/ruby18/logo/ruby.png > >> /sw2/share/doc/ruby18/logo/ruby.png > >> cp: /sw2/bin/ruby-aqua1.8/rsrc: Not a directory > >> /sw2/bin/dpkg: error processing ruby18 (--install): > >> subprocess post-installation script returned error exit status 1 > >> Errors were encountered while processing: > >> ruby18 > >> ### execution of /sw2/bin/dpkg-lockwait failed, exit code 1 > > > > There are several 10.4-only and untested-error-condition things in > > that PostInstScript, the whole point of which seems to be to set a > > custom icon for some executable. > > In addition, the postinstallscript is completely broken on UFS; > indeed there sips makes a file %p/share/doc/%n/logo/._ruby.png , > and it is presumably that one that should be copied .. > I guess these resources are completely broken on UFS and NFS. Or if they have to be set up differently I don't know how.
Anyway, the postinst script requires dev tools which would not work in binary-only fink (if the package ever gets there). You can 1) remove the script it should be in /sw/var/lib/dpkg/info/ruby18.postinst (assuming you installed fink into /sw) and run something like sudo dpkg --pending --configure 2) edit your ruby18.info and remove the postinst commands or add set +e before them and exit 0 after them to make dpkg happy even if the commands fail. fink automatically adds set -e before the commands as you can observe if you look at the installed script. After you edit the info file run something like fink rebuild ruby 3) find out how to set up resources on filesystems that do not support them and post the findings here so that the script can be fixed ;-) Note that you are using unstable fink so you should be able to cope with minor breakage :) The package is already installed when this scripts runs. However, dpkg refuses to mark the package as configured unless the script exits sucessfully and will complain about it every time you try to install or remove anything. Thanks Michal ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Fink-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fink-users
