Bug 1195879

Summary: FTBFS - gdcm uses reserved python keword "as" for variable name
Product: [Fedora] Fedora Reporter: Orion Poplawski <orion>
Component: gdcmAssignee: Mario Ceresa <mrceresa>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: lemenkov, mrceresa, sanjay.ankur, sebp
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: gdcm-2.4.4-3.fc23 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-24 20:36:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Orion Poplawski 2015-02-24 18:46:33 UTC
Description of problem:

http://koji.fedoraproject.org/koji/taskinfo?taskID=9054722

Bytecompiling .py files below /builddir/build/BUILDROOT/gdcm-2.4.4-2.fc23.i386/usr/lib/python2.7 using /usr/bin/python2.7
Compiling /builddir/build/BUILDROOT/gdcm-2.4.4-2.fc23.i386/usr/lib/python2.7/site-packages/gdcmswig.py ...
  File "/usr/lib/python2.7/site-packages/gdcmswig.py", line 18876
    def SetAbstractSyntax(self, as):
                                 ^
SyntaxError: invalid syntax

I'm seeing similar on F21 now as well.

Version-Release number of selected component (if applicable):
gdcm-2.4.4-2.fc23


Upstream report: https://sourceforge.net/p/gdcm/bugs/345/

I tried to fix with:

%rename(absyn) as;

in gdcmswig.i

But I'm not getting that to work. May need to actually rename it in the code.

We need to rebuild gdcm for the new C++11 ABI, so it would be nice to get this fixed soon.

Comment 1 Orion Poplawski 2015-02-24 20:36:20 UTC
Needed to use:

#define as absyn

patch checked in and built (nearly, waiting on arm).