[opensuse-packaging] Pre require does not work?
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? Werner -- "Having a smoking section in a restaurant is like having a peeing section in a swimming pool." -- Edward Burr
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) ? -- Frederic Crozat Enterprise Desktop Release Manager SUSE -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
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. Werner -- "Having a smoking section in a restaurant is like having a peeing section in a swimming pool." -- Edward Burr
On Fri, 2017-03-03 at 13:38 +0100, Dr. Werner Fink wrote:
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.
OBS for most parts ignores File-Requires as far as I remember. A couple of them are translated using project configuration: FileProvides: /usr/sbin/groupadd shadow ^^^ NOTE: until a couple minutes ago this translated to pwdutils this should also be valid, as pwdutils is provided by shadow FileProvides: /usr/sbin/useradd shadow FileProvides: /sbin/netconfig sysconfig-netconfig FileProvides: /usr/bin/docbook2man docbook-utils FileProvides: /usr/bin/mkisofs cdrkit-cdrtools-compat #FileProvides: /usr/bin/mkisofs mkisofs FileProvides: /usr/sbin/lockdev lockdev FileProvides: /bin/logger util-linux-systemd FileProvides: /bin/csh tcsh FileProvides: /usr/bin/csh tcsh FileProvides: /usr/bin/mimencode metamail FileProvides: /usr/bin/pkg-config pkg-config FileProvides: /usr/bin/sg_inq sg3_utils FileProvides: /usr/bin/tput ncurses-utils FileProvides: /usr/bin/eu-nm elfutils FileProvides: /usr/bin/Xvfb xorg-x11-server FileProvides: /usr/bin/xmllint libxml2-tools FileProvides: /sbin/setcap libcap-progs FileProvides: /usr/bin/setfacl acl FileProvides: /usr/bin/fipscheck fipscheck FileProvides: /usr/bin/python python-base Cheers Dominique
On Fri, Mar 03, 2017 at 01:46:04PM +0100, Dominique Leuenberger / DimStar wrote:
On Fri, 2017-03-03 at 13:38 +0100, Dr. Werner Fink wrote:
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.
OBS for most parts ignores File-Requires as far as I remember.
A couple of them are translated using project configuration:
FileProvides: /usr/sbin/groupadd shadow ^^^ NOTE: until a couple minutes ago this translated to pwdutils this should also be valid, as pwdutils is provided by shadow FileProvides: /usr/sbin/useradd shadow FileProvides: /sbin/netconfig sysconfig-netconfig FileProvides: /usr/bin/docbook2man docbook-utils FileProvides: /usr/bin/mkisofs cdrkit-cdrtools-compat #FileProvides: /usr/bin/mkisofs mkisofs FileProvides: /usr/sbin/lockdev lockdev FileProvides: /bin/logger util-linux-systemd FileProvides: /bin/csh tcsh FileProvides: /usr/bin/csh tcsh FileProvides: /usr/bin/mimencode metamail FileProvides: /usr/bin/pkg-config pkg-config FileProvides: /usr/bin/sg_inq sg3_utils FileProvides: /usr/bin/tput ncurses-utils FileProvides: /usr/bin/eu-nm elfutils FileProvides: /usr/bin/Xvfb xorg-x11-server FileProvides: /usr/bin/xmllint libxml2-tools FileProvides: /sbin/setcap libcap-progs FileProvides: /usr/bin/setfacl acl FileProvides: /usr/bin/fipscheck fipscheck FileProvides: /usr/bin/python python-base
Then the guy or lady which had removed shadow from the default pre installation of the build system might add the lines FileProvides: /usr/sbin/groupadd shadow AFAICS for /usr/sbin/useradd this had been done Werner -- "Having a smoking section in a restaurant is like having a peeing section in a swimming pool." -- Edward Burr
Am Freitag, 3. März 2017, 13:54:30 CET schrieb Dr. Werner Fink:
On Fri, Mar 03, 2017 at 01:46:04PM +0100, Dominique Leuenberger / DimStar wrote:
On Fri, 2017-03-03 at 13:38 +0100, Dr. Werner Fink wrote:
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.
OBS for most parts ignores File-Requires as far as I remember.
A couple of them are translated using project configuration:
FileProvides: /usr/sbin/groupadd shadow ^^^ NOTE: until a couple minutes ago this translated to pwdutils
this should also be valid, as pwdutils is provided by shadow
FileProvides: /usr/sbin/useradd shadow FileProvides: /sbin/netconfig sysconfig-netconfig FileProvides: /usr/bin/docbook2man docbook-utils FileProvides: /usr/bin/mkisofs cdrkit-cdrtools-compat #FileProvides: /usr/bin/mkisofs mkisofs FileProvides: /usr/sbin/lockdev lockdev FileProvides: /bin/logger util-linux-systemd FileProvides: /bin/csh tcsh FileProvides: /usr/bin/csh tcsh FileProvides: /usr/bin/mimencode metamail FileProvides: /usr/bin/pkg-config pkg-config FileProvides: /usr/bin/sg_inq sg3_utils FileProvides: /usr/bin/tput ncurses-utils FileProvides: /usr/bin/eu-nm elfutils FileProvides: /usr/bin/Xvfb xorg-x11-server FileProvides: /usr/bin/xmllint libxml2-tools FileProvides: /sbin/setcap libcap-progs FileProvides: /usr/bin/setfacl acl FileProvides: /usr/bin/fipscheck fipscheck FileProvides: /usr/bin/python python-base
Then the guy or lady which had removed shadow from the default pre installation of the build system might add the lines
FileProvides: /usr/sbin/groupadd shadow
AFAICS for /usr/sbin/useradd this had been done
YES PLEASE - just saw the mess in my packages as well! Axel -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Fri, Mar 03, 2017 at 01:46:04PM +0100, Dominique Leuenberger / DimStar wrote:
OBS for most parts ignores File-Requires as far as I remember.
A couple of them are translated using project configuration:
FileProvides: /usr/sbin/groupadd shadow ^^^ NOTE: until a couple minutes ago this translated to pwdutils this should also be valid, as pwdutils is provided by shadow
Ahh ... this I had overlooked now then let us wait and see ;) Werner -- "Having a smoking section in a restaurant is like having a peeing section in a swimming pool." -- Edward Burr
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
participants (4)
-
Axel Braun
-
Dominique Leuenberger / DimStar
-
Dr. Werner Fink
-
Frederic Crozat