I guess my question now is: Why 2 urls? I can see that the second one would be a fallback URL if the first one was invalid or not available, but if the first one is good, why use the second one?
Looking at the template, the address is the same, it’s just that the extension in now invalid (obsolete?)
>>> import gi
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "D:\opt\msvc_x86_64\lib\site-packages\gi\__init__.py", line 40, in <module>
from . import _gi
ImportError: DLL load failed while importing _gi: The specified module could not be found.
>>> ^Z
(py312) PS C:\Users\Tim> python
Python 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.add_dll_directory(r'D:\opt\msvc_x86_64\bin')
<AddedDllDirectory('D:\\opt\\msvc_x86_64\\bin')>
>>> import gi
>>> gi
<module 'gi' from 'D:\\opt\\msvc_x86_64\\lib\\site-packages\\gi\\__init__.py'>
>>> gi.version_info
(3, 54, 2)
gi/__init__.py file changed enough that I need to find another patch, or edit the current one.
Running command ['C:/Program Files/Git/cmd/git.EXE', 'am', '--ignore-whitespace', 'D:/GitClones/cerbero/recipes/pygobject/0001-gi-
Call-os.add_dll_directory-on-Windows-when-possibl.patch'] in D:/GitClones/cerbero/build/sources/msvc_x86_64/pygobject-3.54.2
error: patch failed: gi/__init__.py:36
error: gi/__init__.py: patch does not apply
Applying: gi: Call os.add_dll_directory() on Windows when possible
Patch failed at 0001 gi: Call os.add_dll_directory() on Windows when possible
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config advice.mergeConflict false"