Bug 2128189 - nordugrid-arc tests fails with SWIG 4.1.0
Summary: nordugrid-arc tests fails with SWIG 4.1.0
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: nordugrid-arc
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Mattias Ellert
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F38FTBFS
TreeView+ depends on / blocked
 
Reported: 2022-09-20 07:56 UTC by Jitka Plesnikova
Modified: 2022-10-27 14:48 UTC (History)
2 users (show)

Fixed In Version: nordugrid-arc-6.16.1-2.fc38
Clone Of:
Environment:
Last Closed: 2022-10-27 14:48:00 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Fix for SWIG 4.1.0 (9.98 KB, patch)
2022-09-21 07:06 UTC, Jitka Plesnikova
no flags Details | Diff

Description Jitka Plesnikova 2022-09-20 07:56:55 UTC
I am testing rebuild of SWIG dependencies against upcoming version 4.1.0 in Fedora rawhide/38.

The test of nordugrid-arc-6.16.0 is failing with this version.

[slurmpy.t] [WARNING] [95031] PERL: Subroutine done_testing redefined at InfoproviderTestSuite.pm line 85.
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/builddir/build/BUILD/nordugrid-arc-6.16.0/python/python/arc/lrms/slurm.py", line 11, in <module>
    from .common.cancel import cancel
  File "/builddir/build/BUILD/nordugrid-arc-6.16.0/python/python/arc/lrms/common/__init__.py", line 15, in <module>
    arc.Logger_getRootLogger().addDestination(_logstream)
    ^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'arc' has no attribute 'Logger_getRootLogger'
[ARC0mod] [ERROR] [95031] No ARC0 module for SLURMPY
Failed 1/1 test programs. 0/0 subtests failed.

Complete build log is 
https://download.copr.fedorainfracloud.org/results/jplesnik/swig-rebuild/fedora-rawhide-x86_64/04863222-nordugrid-arc/builder-live.log.gz

Upstream provides the possible solution:
https://github.com/swig/swig/issues/2376#issuecomment-1251577548

Comment 1 Jitka Plesnikova 2022-09-21 07:06:36 UTC
Created attachment 1913266 [details]
Fix for SWIG 4.1.0

The patch contains fix for SWIG 4.1.0. The solution also works with any older SWIG version.

Build with SWIG 4.1.0
https://copr.fedorainfracloud.org/coprs/jplesnik/swig-rebuild/build/4866501/

Build with SWIG 4.0.2 in Fedora 38

Comment 2 Jitka Plesnikova 2022-09-21 07:07:13 UTC
(In reply to Jitka Plesnikova from comment #1)
> Created attachment 1913266 [details]
> Fix for SWIG 4.1.0
> 
> The patch contains fix for SWIG 4.1.0. The solution also works with any
> older SWIG version.
> 
> Build with SWIG 4.1.0
> https://copr.fedorainfracloud.org/coprs/jplesnik/swig-rebuild/build/4866501/
> 
> Build with SWIG 4.0.2 in Fedora 38
https://koji.fedoraproject.org/koji/taskinfo?taskID=92244377

Comment 3 Jitka Plesnikova 2022-10-27 11:56:50 UTC
SWIG 4.1.0 is in rawhide.

Rebuild is failing now. 
https://koschei.fedoraproject.org/build/13943730


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