[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opencsw-users
Subject:    [csw-users] libidn fails to install
From:       james () blastwave ! org (James Lee)
Date:       2005-05-05 11:09:13
Message-ID: 20050505.11091300.2284029795 () landeck ! jamesipoos ! com
[Download RAW message or body]

On 05/05/05, 06:13:59, Robert Stampfli <rob at cboh.org> wrote regarding 
[csw-users] libidn fails to install:

> I just ran pkg-add this evening to update libidn (I was on
> 0.5.5,REV=2004.10.02 and was updating to 0.5.9,REV=2005.04.14
> from ibiblio) and it failed to install in the postinstall
> script twice.  Luckily, I still had the old package hanging
> around and could reinstall that.

Although there is an error message the package will have installed.

The problem is the return value of postinstall script that updates
the info dir table.

It returns the return value of its last command, (there is no
explicit return).   postinstall calls /opt/csw/sbin/mkdirentries
and it doesn't have an explict return either and returns the status
of its last command.  That command returns 1 which suggests to
pkgadd that it has failed.

Run this as root (which is basically /opt/csw/sbin/mkdirentries):


#!/bin/sh
BASE=/opt/csw

FILES=`ls $BASE/share/info | /usr/xpg4/bin/grep -v -e "~" -e "dir"`

for i in $FILES; do
    /opt/csw/bin/install-info $BASE/share/info/$i $BASE/share/info/dir
    echo $?
done


and you can see why.

The workaround is for postinstall to always return 0.  The fix is
with texinfo.



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic