Bug 1221112 - python3-pygit2 package install fails
Summary: python3-pygit2 package install fails
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: Python (show other bugs)
Version: Leap 15.6
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Daniel Garcia
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-07 11:17 UTC by Takashi Iwai
Modified: 2024-03-25 09:21 UTC (History)
3 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 Takashi Iwai 2024-03-07 11:17:54 UTC
On a clean installed Leap 15.6 system, installing python3-pygit2 package fails.
"""
% zypper in python3-pygit2
Reading installed packages...
Resolving package dependencies...

Problem: nothing provides 'libgit2.so.28()(64bit)' needed by the to be installed python3-pygit2-0.28.2-1.35.x86_64
 Solution 1: do not install python3-pygit2-0.28.2-1.35.x86_64
 Solution 2: break python3-pygit2-0.28.2-1.35.x86_64 by ignoring some of its dependencies

Choose from above solutions by number or cancel [1/2/c/d/?] (c):
"""

python3-pygit2-0.28.2 is a very old package, maybe inherited from the older SLE?

Meanwhile the latest build of python-pygit2 gives only python311-pygit2, hence the package for the default python3 is missing.
Comment 1 Matej Cepl 2024-03-08 19:11:31 UTC
> python3-pygit2-0.28.2 is a very old package, maybe inherited from the older SLE?

Yes, … well, it is from the current SLE, but it is the build for the Python 3.6. If you want (as I suspect) for the Python 3.11, then you need python311-pygit2.
Comment 2 Takashi Iwai 2024-03-09 08:48:40 UTC
No, no, I don't want for python 3.11.  I need it for python 3.6.

The problem is that you install the package due to the dependency although it's provided via the official channel.

Reopened.
Comment 3 Takashi Iwai 2024-03-09 08:50:20 UTC
To be more exact: there are lots of other stuff that import pygit2 while it's invoked with /usr/bin/python3, including kernel's git-sort scripts.  Leap 15.6 breaks those programs.
Comment 4 Daniel Garcia 2024-03-11 06:25:45 UTC
(In reply to Takashi Iwai from comment #3)
> To be more exact: there are lots of other stuff that import pygit2 while
> it's invoked with /usr/bin/python3, including kernel's git-sort scripts. 
> Leap 15.6 breaks those programs.

I can see that there is a newer version  (1.7.0) in Backports for SP5 [1]. Maybe we can resend that version (or something a bit newer) to Backports SP6 with a new name python3-pygit2.

[1] https://build.opensuse.org/package/show/openSUSE:Backports:SLE-15-SP5/python-pygit2
Comment 5 Daniel Garcia 2024-03-18 13:35:41 UTC
I've just created a request to build the package python-pygit2 also for python 3.6 on Backports:

https://build.opensuse.org/request/show/1159017
Comment 6 Daniel Garcia 2024-03-18 13:55:39 UTC
(In reply to Daniel Garcia from comment #5)
> I've just created a request to build the package python-pygit2 also for
> python 3.6 on Backports:
> 
> https://build.opensuse.org/request/show/1159017

Ups, looks like it's not possible to send this to Backports, so if this should go to SP6, it'll require more bureaucracy.
Comment 7 Max Lin 2024-03-18 15:40:06 UTC
(In reply to Daniel Garcia from comment #6)
> (In reply to Daniel Garcia from comment #5)
> > I've just created a request to build the package python-pygit2 also for
> > python 3.6 on Backports:
> > 
> > https://build.opensuse.org/request/show/1159017
> 
> Ups, looks like it's not possible to send this to Backports, so if this
> should go to SP6, it'll require more bureaucracy.

The problem here is about python3.6 build of python-pygit2 (from SP2) has not got rebuild with newer libgit2 in SP6:GA, and it was supposed to be obsoleted by python 3.11 build of python-pygit2, if I know the process right, we can take https://build.opensuse.org/request/show/1159017 (would override the review for now), or add a python3-pygit2 to SLE15-SP6. In case you need python 3.6 build of python-pygit2 to be available for SLE15-SP6, the later one can be a better option.
Comment 8 Daniel Garcia 2024-03-25 09:21:07 UTC
python3-pygit2-1.14.0 is now built in openSUSE:Backports:SLE-15-SP6