SPECS: rpm-build-macros.spec - 1.316: added %env_update

Elan Ruusamäe glen at delfi.ee
Fri Sep 1 01:27:56 CEST 2006


On Friday 01 September 2006 02:14, Paweł Sikora wrote:

> [1] env-update is optional, so fix this:
>
> jpackage-utils             
> ##################################################
> /var/tmp/rpm-tmp.18589[2]: /sbin/env-update: not found
> error: %post(jpackage-utils-1.6.6-9.x86_64) scriptlet failed, exit status
> 127 There were errors
typo. corrected.

> [2] it doesn't install cleanly.
>
> poldek:/all-avail> install env-update-1.6.14-2.x86_64
> Processing dependencies...
> There are 1 package to install:
> I env-update-1.6.14-2.x86_64
> Need to get 10.2KB of archives (10.2KB to download).
> After unpacking 17.2KB will be used.
> Retrieving th-test::env-update-1.6.14-2.x86_64.rpm...
> .............................. 100.0% [10.2K (10.2K/s)]
> Executing sudo /bin/rpm --upgrade -vh --root / --noorder --define
> _install_langs en:en_US:pl:pl_PL...
> error: failed to open /etc/mtab: No such file or directory
> Preparing...               
> ################################################## env-update              
>    ################################################## * No files to
> process!
> error: %post(env-update-1.6.14-2.x86_64) scriptlet failed, exit status 1
> There were errors
made rpm macro return always true.

but how to solve it otherwise? check for /etc/env.d/* in rpm macro? in 
env-update script?

-- 
glen


More information about the pld-devel-en mailing list