On Thu, Jul 22, 2021 at 12:50 PM Miro Hrončok <[email protected]> wrote:

> On 22. 07. 21 21:47, Miro Hrončok wrote:
> > On 22. 07. 21 21:25, Troy Dawson wrote:
> >> I've been bitten by this yet again.  A package needing /usr/bin/python
> and
> >> not python2 or python3.  And it's way down in the code so it's hard to
> >> patch.  But, it works fine on Fedora.
> >>
> >> Is anyone in the middle of porting python-unversioned-command over to
> epel8?
> >> If not, does anyone object to me porting it over?
> >
> > I wonder how would that package work?
> >
> > /usr/bin/python is co-owned by several RHEL-proper packages and managed
> by
> > alternatives.
>
> I hit "Send" to early, apologies, here is the rest of my email:
>
> Could you please share the package spec file with us (Python Maint team at
> Red
> Hat, specifically Tomas Orsava and me) before you actually push it to
> EPEL, so
> we get a chance to review it (and maybe test it)?
>

On RHEL 8, if there is something that provides /usr/bin/python I can't find
it, nor can dnf.
I've been running RHEL 8 since 8.0, I'm currently at 8.4 and this is what I
have.

# dnf provides '/usr/bin/python'
  Error: No Matches found
# ls /usr/bin/python
  ls: cannot access '/usr/bin/python': No such file or directory
# which python
  /usr/bin/which: no python in
(/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)

On Fedora, it's rather simple, just look at the contents of
python-unversioned-command
Two files, no scripts or triggers.

# rpm -ql python-unversioned-command
  /usr/bin/python
  /usr/share/man/man1/python.1.gz
# ls -lh /usr/bin/python
  lrwxrwxrwx. 1 root root 9 May 18 03:48 /usr/bin/python -> ./python3
# ls -lh /usr/share/man/man1/python.1.gz
  lrwxrwxrwx. 1 root root 14 May 18 03:48 /usr/share/man/man1/python.1.gz
-> ./python3.1.gz

It looks like it will be very simple spec file.
I'll probably just cut it out of the Fedora python spec file.

Troy
_______________________________________________
epel-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to