it should be noted that I'm not the only one which uses paths in Requires(pre) ... zgrep SRC/SUSE:Factory:Head/ INDEX.spec.gz | xargs grep 'Requires(pre)' | grep bin/ shows a lot of packages and AFAICR this had worked in past. On Fri, Mar 03, 2017 at 01:38:56PM +0100, Werner Fink wrote:
On Fri, Mar 03, 2017 at 01:21:59PM +0100, Frederic Crozat wrote:
Le vendredi 03 mars 2017 à 13:16 +0100, Dr. Werner Fink a écrit :
Hi,
just found this
[ 87s] /var/tmp/rpm-tmp.JEB8CE: line 2: /usr/sbin/groupadd: No such file or directory [ 87s] error: %prein(texlive-filesystem-2016.108-20.1.noarch) scriptlet failed, exit status 127 [ 87s] error: texlive-filesystem-2016.108-20.1.noarch: install failed
[ 87s] /var/tmp/rpm-tmp.rJ6r3Q: line 2: /usr/sbin/groupadd: No such file or directory [ 87s] error: %prein(texlive-kpathsea-bin-2016.20160523.svn40473- 35.3.armv7hl) scriptlet failed, exit status 127 [ 87s] error: texlive-kpathsea-bin-2016.20160523.svn40473- 35.3.armv7hl: install failed
[...]
[ 155s] /var/tmp/rpm-tmp.4CmP4O: line 3: /usr/share/texmf/texconfig/update: No such file or directory [ 155s] /var/tmp/rpm-tmp.RJDvjs: line 3: /usr/share/texmf/texconfig/update: No such file or directory [ 156s] /var/tmp/rpm-tmp.ahy1H5: line 3: /usr/share/texmf/texconfig/update: No such file or directory
the script /usr/share/texmf/texconfig/update does belong to the package texlive-filesystem, but there are some pre requires in the spec file(s) as well, like
Requires(pre): /usr/bin/getent Requires(pre): /usr/sbin/groupadd Requires(post): %fillup_prereq Requires(post): permissions Requires(pre): /usr/bin/perl Requires(pre): /usr/bin/clear Requires(pre): /usr/bin/dialog Requires(pre): coreutils Requires(pre): ed Requires(pre): findutils Requires(pre): grep Requires(pre): sed
What does going wrong here?
Did you try with Requires(pre): shadow (instead of /usr/sbin/groupadd) ?
This was my first thought. Nevertheless, the resolver like zypper or that of the auto build system should handle this. Beside this I wonder why shadow had been skipped from the pre-installed packages as well. And if a (pre)require can not be resolved I expect an error not only for /usr/sbin/groupadd but also for the other paths I used in the spec file.
-- "Having a smoking section in a restaurant is like having a peeing section in a swimming pool." -- Edward Burr