Bug 1195879 - FTBFS - gdcm uses reserved python keword "as" for variable name
Summary: FTBFS - gdcm uses reserved python keword "as" for variable name
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: gdcm
Version: rawhide
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Mario Ceresa
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-24 18:46 UTC by Orion Poplawski
Modified: 2015-02-24 20:36 UTC (History)
4 users (show)

Fixed In Version: gdcm-2.4.4-3.fc23
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-02-24 20:36:20 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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).


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