Bug 35085 - The python-svn package is unusable
Summary: The python-svn package is unusable
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 9
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA9-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2026-01-30 23:43 CET by Bruno Cornec
Modified: 2026-02-04 04:11 CET (History)
5 users (show)

See Also:
Source RPM: subversion-1.14.2-2.1.mga9.src.rpm
CVE:
Status comment:
herman.viaene: test_passed_mga9_64+


Attachments
Patch for subversion-1.14.5 in cauldron (1.55 KB, text/plain)
2026-02-01 21:23 CET, katnatek
Details

Description Bruno Cornec 2026-01-30 23:43:22 CET
Description of problem:

The python-svn package is unusable on Mageia 9:

# python
Python 3.10.18 (main, Dec  8 2025, 12:59:32) [GCC 12.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from svn import core
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.10/site-packages/svn/core.py", line 26, in <module>
    from libsvn.core import *
  File "/usr/lib64/python3.10/site-packages/libsvn/core.py", line 27, in <module>
    from . import _core
ImportError: /usr/lib64/python3.10/site-packages/libsvn/_core.so: undefined symbol: SWIG_InstallConstants

rpm -q python3-svn
python3-svn-1.14.2-2.1.mga9


FTR rebuilding the subversion package on Mageia 9 doesn't solve the issue.
Comment 1 Lewis Smith 2026-01-31 21:10:41 CET
1.14.2 is nearly 4y old. Since then, we have in Cauldron 1.14.3 (18m), 1.14.5 (13m).
Unsure whether this is a global or Python bug, notifying both.

Assignee: bugsquad => pkg-bugs
CC: (none) => python

Comment 2 Bruno Cornec 2026-02-01 00:42:35 CET
I don't think it's a problem of age. BTW it's what is currently available on mga9 both for subversion, swig and python. So should be easily reproduceable by anybody just installing python3-svn.

It *looks* like a dyssynchronization with swig used to build the so modules.
That's why I try to rebuild to see whether it could help, but didn't.
Comment 3 katnatek 2026-02-01 20:15:55 CET
(In reply to Bruno Cornec from comment #0)
> Description of problem:
> 
> The python-svn package is unusable on Mageia 9:
> 
> # python
> Python 3.10.18 (main, Dec  8 2025, 12:59:32) [GCC 12.3.0] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>> from svn import core
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/usr/lib/python3.10/site-packages/svn/core.py", line 26, in <module>
>     from libsvn.core import *
>   File "/usr/lib64/python3.10/site-packages/libsvn/core.py", line 27, in
> <module>
>     from . import _core
> ImportError: /usr/lib64/python3.10/site-packages/libsvn/_core.so: undefined
> symbol: SWIG_InstallConstants
> 
Perhaps a missing include or equivalent in code that generates _core.so
Comment 4 katnatek 2026-02-01 21:23:47 CET
Created attachment 15377 [details]
Patch for subversion-1.14.5 in cauldron

I find this patch in opensuse, I'll love to test my self but can't build with mock in this moment
Comment 5 katnatek 2026-02-01 21:31:57 CET
(In reply to katnatek from comment #4)
> Created attachment 15377 [details]
> Patch for subversion-1.14.5 in cauldron
> 
> I find this patch in opensuse, I'll love to test my self but can't build
> with mock in this moment
In cauldron work, I'll see if I can import the patch in mageia 9
Comment 6 katnatek 2026-02-01 22:13:22 CET
Nope, trying other patch, this from fedora
Comment 7 katnatek 2026-02-02 01:14:41 CET
I no yet find a solution, but in the build process I see this

grep SWIG_InstallConstants RPMS/build.log 
subversion/bindings/swig/python/svn_client.c:40344:3: warning: implicit declaration of function 'SWIG_InstallConstants'; did you mean 'SWIG_Python_InstallConstants'? [-Wimplicit-function-declaration]
40344 |   SWIG_InstallConstants(d,swig_const_table);
subversion/bindings/swig/python/core.c:40077:3: warning: implicit declaration of function 'SWIG_InstallConstants'; did you mean 'SWIG_Python_InstallConstants'? [-Wimplicit-function-declaration]
40077 |   SWIG_InstallConstants(d,swig_const_table);
subversion/bindings/swig/python/svn_delta.c:11073:3: warning: implicit declaration of function 'SWIG_InstallConstants'; did you mean 'SWIG_Python_InstallConstants'? [-Wimplicit-function-declaration]
11073 |   SWIG_InstallConstants(d,swig_const_table);
subversion/bindings/swig/python/svn_diff.c:12353:3: warning: implicit declaration of function 'SWIG_InstallConstants'; did you mean 'SWIG_Python_InstallConstants'? [-Wimplicit-function-declaration]
12353 |   SWIG_InstallConstants(d,swig_const_table);
subversion/bindings/swig/python/svn_fs.c:17488:3: warning: implicit declaration of function 'SWIG_InstallConstants'; did you mean 'SWIG_Python_InstallConstants'? [-Wimplicit-function-declaration]
17488 |   SWIG_InstallConstants(d,swig_const_table);
subversion/bindings/swig/python/svn_ra.c:19836:3: warning: implicit declaration of function 'SWIG_InstallConstants'; did you mean 'SWIG_Python_InstallConstants'? [-Wimplicit-function-declaration]
19836 |   SWIG_InstallConstants(d,swig_const_table);
subversion/bindings/swig/python/svn_repos.c:24148:3: warning: implicit declaration of function 'SWIG_InstallConstants'; did you mean 'SWIG_Python_InstallConstants'? [-Wimplicit-function-declaration]
24148 |   SWIG_InstallConstants(d,swig_const_table);
subversion/bindings/swig/python/svn_wc.c:43304:3: warning: implicit declaration of function 'SWIG_InstallConstants'; did you mean 'SWIG_Python_InstallConstants'? [-Wimplicit-function-declaration]
43304 |   SWIG_InstallConstants(d,swig_const_table);
Comment 8 Bruno Cornec 2026-02-02 01:52:22 CET
Yes I saz that as well. But as that sounded unrelated, didn't investigate.
Comment 9 David GEIGER 2026-02-02 05:16:38 CET
@katnatek Have you tried to build the cauldron pkg on a mga9 system? to see if it come from subversion itself or swig or finally from our python3 pkg.

That is strange is in swig pkg there is a define in pyrun.swg file:

#define SWIG_InstallConstants(d, constants)           SWIG_Python_InstallConstants(d, constants)

like in subversion itself in "subversion/bindings/swig/python/" some files contains this define.

#define SWIG_InstallConstants(d, constants)           SWIG_Python_InstallConstants(d, constants)

CC: (none) => geiger.david68210

Comment 10 David GEIGER 2026-02-02 05:20:53 CET
We can tried to patch the 8 files with:

sed -i 's|SWIG_InstallConstants(d,swig_const_table);|SWIG_Python_InstallConstants(d,swig_const_table);|'
Comment 11 katnatek 2026-02-02 18:30:25 CET
(In reply to David GEIGER from comment #9)
> @katnatek Have you tried to build the cauldron pkg on a mga9 system? to see
> if it come from subversion itself or swig or finally from our python3 pkg.
> 
That will be the last resource

> That is strange is in swig pkg there is a define in pyrun.swg file:
> 
> #define SWIG_InstallConstants(d, constants)          
> SWIG_Python_InstallConstants(d, constants)
> 
> like in subversion itself in "subversion/bindings/swig/python/" some files
> contains this define.
> 
> #define SWIG_InstallConstants(d, constants)          
> SWIG_Python_InstallConstants(d, constants)
You find the same that I, I'm trying with the change you suggest, was in my todo for today
Comment 12 katnatek 2026-02-02 19:01:14 CET
(In reply to David GEIGER from comment #10)
> We can tried to patch the 8 files with:
> 
> sed -i
> 's|SWIG_InstallConstants(d,swig_const_table);|SWIG_Python_InstallConstants(d,
> swig_const_table);|'

Did not work, the build show exactly the same, I confirm tha change is made, will test with the version in cauldron
Comment 13 katnatek 2026-02-02 20:46:23 CET
I build 1.14.3 from cauldron revision and now the python code works,
is there a test that I should do before send to build?
katnatek 2026-02-02 20:48:21 CET

CC: (none) => j.alberto.vc

Comment 14 katnatek 2026-02-03 00:25:19 CET
RPMS:
apache-mod_dav_svn-1.14.3-1.1.mga9
lib64svn-gnome-keyring0-1.14.3-1.1.mga9
lib64svn-kwallet0-1.14.3-1.1.mga9
lib64svn0-1.14.3-1.1.mga9
lib64svnjavahl1-1.14.3-1.1.mga9
perl-SVN-1.14.3-1.1.mga9
python3-svn-1.14.3-1.1.mga9
subversion-1.14.3-1.1.mga9
subversion-devel-1.14.3-1.1.mga9
subversion-doc-1.14.3-1.1.mga9
subversion-server-1.14.3-1.1.mga9
subversion-tools-1.14.3-1.1.mga9
svn-javahl-1.14.3-1.1.mga9

SRPM:subversion-1.14.3-1.1.mga9

Assignee: pkg-bugs => qa-bugs
Keywords: (none) => advisory

Comment 15 katnatek 2026-02-03 00:29:16 CET
FYI, I couldn't build 1-14-5 for mageia 9, if is necesary I'll build again and provide build log
katnatek 2026-02-03 01:44:33 CET

Attachment 15377 is obsolete: 0 => 1

Comment 16 Herman Viaene 2026-02-03 17:02:41 CET
MGA9-64 server Plasma Wayland on Compaq H000SB
No installation issues.
Followed procedure as in bug 33838 Comment 4 after adding the EDITOR env to this user.
I will not copy all the comands, but after making sure httpd is running, I could connect to http://localhost/svn/repos/
So good to go

Flags: (none) => test_passed_mga9_64+
CC: (none) => herman.viaene
Whiteboard: (none) => MGA9-64-OK

Comment 17 katnatek 2026-02-03 20:08:01 CET
Before the update

python
Python 3.10.18 (main, Dec  8 2025, 12:59:32) [GCC 12.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from svn import core
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.10/site-packages/svn/core.py", line 26, in <module>
    from libsvn.core import *
  File "/usr/lib64/python3.10/site-packages/libsvn/core.py", line 27, in <module>
    from . import _core
ImportError: /usr/lib64/python3.10/site-packages/libsvn/_core.so: undefined symbol: SWIG_InstallConstants


installing python3-svn-1.14.3-1.1.mga9.x86_64.rpm lib64svn0-1.14.3-1.1.mga9.x86_64.rpm subversion-1.14.3-1.1.mga9.x86_64.rpm from //home/katnatek/qa-testing/x86_64
Preparing...                     ###################################################################################################
      1/3: lib64svn0             ###################################################################################################
      2/3: python3-svn           ###################################################################################################
      3/3: subversion            ###################################################################################################
      1/3: removing subversion-2:1.14.2-2.1.mga9.x86_64
                                 ###################################################################################################
      2/3: removing python3-svn-2:1.14.2-2.1.mga9.x86_64
                                 ###################################################################################################
      3/3: removing lib64svn0-2:1.14.2-2.1.mga9.x86_64
                                 ###################################################################################################

After

python
Python 3.10.18 (main, Dec  8 2025, 12:59:32) [GCC 12.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from svn import core
>>> 


I can svn up for advisories
mgarepo co foo

I not have anything to send but with Herman test looks good

Bruno can you confirm this works for you?
Comment 18 katnatek 2026-02-03 23:07:16 CET
I used the packages updated in comment 17 to send advisories and changes to packages, looks good for me

CC: j.alberto.vc => andrewsfarm

Comment 19 Bruno Cornec 2026-02-04 01:20:10 CET
I can confirm that it fixed the original issue, as well as the capacity for trac to show subverion repositories now.

For me good to be validated by QA.

Status: NEW => ASSIGNED

Comment 20 Thomas Andrews 2026-02-04 03:19:00 CET
Validating.

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs

Comment 21 Mageia Robot 2026-02-04 04:11:28 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2026-0009.html

Resolution: (none) => FIXED
Status: ASSIGNED => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.