Bug 1226523 - cnf suggests wrong package installation
Summary: cnf suggests wrong package installation
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Other (show other bugs)
Version: Slowroll
Hardware: Other openSUSE Tumbleweed
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Bernhard Wiedemann
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-19 11:26 UTC by Mitsuru Shimamura
Modified: 2024-06-26 10:46 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mitsuru Shimamura 2024-06-19 11:26:36 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
```
Comment 1 Mitsuru Shimamura 2024-06-19 11:30:07 UTC
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
```
Comment 2 Andreas Stieger 2024-06-19 16:29:32 UTC
From https://build.opensuse.org/request/show/1179033

> Split out envsubst into a separate package
Comment 3 Dan Čermák 2024-06-20 07:16:04 UTC
I can reproduce neither the issue with cnf nor with scout on Tumbleweed. I guess this is a repodata issue in Slowroll
Comment 4 Bernhard Wiedemann 2024-06-21 04:07:10 UTC
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?
Comment 5 Paul Fee 2024-06-26 10:46:15 UTC
(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.