Bugzilla – Bug 1226523
cnf suggests wrong package installation
Last modified: 2024-06-26 10:46:15 UTC
``` $ rpm -q cnf cnf-0.6.0~0-3.4.x86_64 $ rpm -q gettext-runtime gettext-runtime-0.22.5-5.0.2.1.sr20240605.x86_64 ``` ``` $ cnf envsubst The program 'envsubst' can be found in following packages: * gettext-runtime [ path: /usr/bin/envsubst, repository: openSUSE:repo-oss ] * gettext-runtime-mini [ path: /usr/bin/envsubst, repository: openSUSE:repo-oss ] * envsubst [ path: /usr/bin/envsubst, repository: openSUSE:update-slowroll ] * envsubst [ path: /usr/bin/envsubst, repository: openSUSE:update-slowroll ] * envsubst-mini [ path: /usr/bin/envsubst, repository: openSUSE:update-slowroll ] * envsubst-mini [ path: /usr/bin/envsubst, repository: openSUSE:update-slowroll ] Try installing with: sudo zypper install <selected_package> ``` But gettext-runtime does not have envsubst. In the first place, gettext-runtime is already installed. ``` $ rpm -q gettext-runtime gettext-runtime-0.22.5-5.0.2.1.sr20240605.x86_64 $ rpm -ql gettext-runtime | grep envsubst $ ``` And why envsubst and envsubst-mini are shown twice, even though they are in the same repository? supplement: ``` $ cat /etc/zypp/repos.d/openSUSE:repo-oss.repo [openSUSE:repo-oss] name=repo-oss enabled=1 autorefresh=1 baseurl=http://download.opensuse.org/slowroll/repo/oss service=openSUSE $ cat /etc/zypp/repos.d/openSUSE:update-slowroll.repo [openSUSE:update-slowroll] name=update-slowroll enabled=1 autorefresh=1 baseurl=http://download.opensuse.org/update/slowroll/repo/oss priority=80 service=openSUSE ```
scout shows gettext-runtime, too. Is the problem in gettext-runtime package? ``` $ scout bin envsubst repository | package | path | binary ---------------------------------+----------------------+----------+---------- zypp (openSUSE:repo-oss) | gettext-runtime | /usr/bin | envsubst zypp (openSUSE:repo-oss) | gettext-runtime-mini | /usr/bin | envsubst zypp (openSUSE:update-slowroll) | envsubst | /usr/bin | envsubst zypp (openSUSE:update-slowroll) | envsubst-mini | /usr/bin | envsubst ```
From https://build.opensuse.org/request/show/1179033 > Split out envsubst into a separate package
I can reproduce neither the issue with cnf nor with scout on Tumbleweed. I guess this is a repodata issue in Slowroll
The output is technically correct: There is an envsubst binary in the version from 'repo-oss' zypper in -r repo-oss -f gettext-runtime # rpm -q gettext-runtime gettext-runtime-0.22.5-4.1.x86_64 # rpm -ql gettext-runtime| grep envsubst /usr/bin/envsubst /usr/share/doc/packages/gettext-runtime/envsubst.1.html /usr/share/man/man1/envsubst.1.gz It seems, it was dropped from the later version per https://build.opensuse.org/request/show/1179033 and auto-imported into Slowroll as a minor change. If envsubst is needed for something, maybe there are some Requires missing?
(In reply to Bernhard Wiedemann from comment #4) > > If envsubst is needed for something, maybe there are some Requires missing? It's needed by /usr/bin/gettext.sh, see bug 1227070.