Horde_Util build problem with 2.2.1 upgrade, was Update from 2.2.0 to 2.2.1 fails

Otmar Stahl O.Stahl at lsw.uni-heidelberg.de
Thu Apr 16 14:11:16 CEST 2009


Hello again,

Otmar Stahl wrote:
> Hello all,
> 
> I just tried to upgrade kolab from 2.2.0 to 2.2.1 on a debian lenny 
> (5.0.1) box.
> 
> The upgrade fails when the install command tries to install 
> Horde_Util-0.1.0-20081209.src.rpm. Here are the last lines of the log:
> 
> --------------------------------
> + cd /kolab/RPM/TMP
> + cd Util-0.1.0
> + exit 0
> Executing(%install): env -i /kolab/lib/openpkg/bash --norc --noprofile 
> --posix -e /kolab/RPM/TMP/rpm-tmp.13837
> + cd /kolab/RPM/TMP
> + cd Util-0.1.0
> + env 'PHP_PEAR_PHP_BIN=/kolab/bin/php -d safe_mode=off -d 
> memory_limit=40M' PHP_PEAR_CACHE_DIR=/tmp/pear/cache /kolab/bin/pear 
> install --offline --force --nodeps -P 
> /kolab/RPM/TMP/Horde_Util-0.1.0-root 
> /kolab/RPM/SRC/Horde_Util/Util-0.1.0.tgz
> env: /kolab/bin/pear: No such file or directory
> error: Bad exit status from /kolab/RPM/TMP/rpm-tmp.13837 (%install)
> 
> 
> RPM build errors:
>      Bad exit status from /kolab/RPM/TMP/rpm-tmp.13837 (%install)

After some research, it seems that this error was caused by an old
root-owned /kolab/RPM/TMP/pear/temp directory, probably left over from 
the 2.2.0 install.

After removing everything in  the /kolab/RPM/TMP directory and starting 
again, I now have a pear-binary with php again, but now the installation 
of Horde_Util fails with the following error:

---------------------------------
+ cd Util-0.1.0
+ exit 0
Executing(%build): env -i /kolab/lib/openpkg/bash --norc --noprofile
--posix -e /kolab/RPM/TMP/rpm-tmp.80985
+ cd /kolab/RPM/TMP
+ cd Util-0.1.0
+ exit 0
Executing(%install): env -i /kolab/lib/openpkg/bash --norc --noprofile
--posix -e /kolab/RPM/TMP/rpm-tmp.80985
+ cd /kolab/RPM/TMP
+ cd Util-0.1.0
+ env 'PHP_PEAR_PHP_BIN=/kolab/bin/php -d safe_mode=off -d
memory_limit=40M' PHP_PEAR_CACHE_DIR=/tmp/pear/cache /kolab/bin/pear
install --offline --force --nodeps -P
/kolab/RPM/TMP/Horde_Util-0.1.0-root
/kolab/RPM/SRC/Horde_Util/Util-0.1.0.tgz
Parsing of package.xml from file
"/kolab/RPM/TMP/pear/download/package.xml" failed
Cannot download non-local package "/kolab/RPM/SRC/Horde_Util/Util-0.1.0.tgz"
Package "/kolab/RPM/SRC/Horde_Util/Util-0.1.0.tgz" is not valid
install failed
error: Bad exit status from /kolab/RPM/TMP/rpm-tmp.80985 (%install)


RPM build errors:
     Bad exit status from /kolab/RPM/TMP/rpm-tmp.80985 (%install)

---------------------------------

This looks a lot like kolab issue2441, but this issue was supposedly 
fixed before the 2.2.1 release?

The problem seems to be a permissions problem, since running

env 'PHP_PEAR_PHP_BIN=/kolab/bin/php -d safe_mode=off -d 
memory_limit=40M' PHP_PEAR_CACHE_DIR=/tmp/pear/cache /kolab/bin/pear 
install --offline --force --nodeps -P 
/kolab/RPM/TMP/Horde_Util-0.1.0-root 
/kolab/RPM/SRC/Horde_Util/Util-0.1.0.tgz

as user root in /kolab/RPM/TMP/Util-0.1.0 works fine, but fails as user 
kolab.

Any hints?

Kind regards,
Otmar Stahl




More information about the users mailing list