Bug 553713

Summary: qgis FTBFS
Product: [Fedora] Fedora Reporter: Rex Dieter <rdieter>
Component: qgisAssignee: Kevin Kofler <kevin>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: cristian.balint, kevin, silfreed
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 1.0.2-6.fc13 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-02-05 23:03:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 553711    

Description Rex Dieter 2010-01-08 18:08:07 UTC
build failure,
http://koji.fedoraproject.org/koji/buildinfo?buildID=149926

...
nstalling: /builddir/build/BUILDROOT/qgis-1.0.2-5.fc13.i386/usr/share/qgis/i18n/qgis_sv.qm
-- Installing: /builddir/build/BUILDROOT/qgis-1.0.2-5.fc13.i386/usr/share/qgis/i18n/qgis_de.qm
-- Installing: /builddir/build/BUILDROOT/qgis-1.0.2-5.fc13.i386/usr/share/qgis/i18n/qt_fr.qm
-- Installing: /builddir/build/BUILDROOT/qgis-1.0.2-5.fc13.i386/usr/share/qgis/i18n/qgis_he.qm
-- Installing: /builddir/build/BUILDROOT/qgis-1.0.2-5.fc13.i386/usr/share/qgis/i18n/qgis_ja.qm
-- Installing: /builddir/build/BUILDROOT/qgis-1.0.2-5.fc13.i386/usr/share/qgis/i18n/qt_pl.qm
-- Installing: /builddir/build/BUILDROOT/qgis-1.0.2-5.fc13.i386/usr/share/qgis/i18n/qgis_ka_GE.qm
-- Installing: /builddir/build/BUILDROOT/qgis-1.0.2-5.fc13.i386/usr/share/qgis/i18n/qt_ja_jp.qm
-- Installing: /builddir/build/BUILDROOT/qgis-1.0.2-5.fc13.i386/usr/share/qgis/i18n/qgis_cs_CZ.qm
-- Installing: /builddir/build/BUILDROOT/qgis-1.0.2-5.fc13.i386/usr/share/qgis/i18n/qt_pt.qm
+ chrpath --delete /builddir/build/BUILDROOT/qgis-1.0.2-5.fc13.i386/usr/bin/qgis '/builddir/build/BUILDROOT/qgis-1.0.2-5.fc13.i386/usr/lib/python2.6/site-packages/qgis/*.so'
open: No such file or directory
elf_open: Invalid argument
error: Bad exit status from /var/tmp/rpm-tmp.35i0kM (%install)
RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.35i0kM (%install)
Child returncode was: 1
EXCEPTION: Command failed. See logs for output.
 # ['bash', '--login', '-c', 'rpmbuild -bb --target i686 --nodeps builddir/build/SPECS/qgis.spec']
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/mock/trace_decorator.py", line 70, in trace
    result = func(*args, **kw)
  File "/usr/lib/python2.4/site-packages/mock/util.py", line 324, in do
    raise mock.exception.Error, ("Command failed. See logs for output.\n # %s" % (command,), child.returncode)
Error: Command failed. See logs for output.
 # ['bash', '--login', '-c', 'rpmbuild -bb --target i686 --nodeps builddir/build/SPECS/qgis.spec']
LEAVE do --> EXCEPTION RAISED

Comment 1 Kevin Kofler 2010-02-05 20:31:58 UTC
This is due to trying to use string comparisons for version numbers:
-- SIP is required in version 4.7 or later!
-- Python bindings disabled due dependency problems!

I'm on it.

Comment 2 Kevin Kofler 2010-02-05 21:21:33 UTC
Actually, this is the offending code:
      # check for SIP version
      # minimal version is 4.7 (to support universal builds)
      SET (SIP_MIN_VERSION 040700)
      TRY_RUN_PYTHON (RES "import sip\nprint '%x' % sip.SIP_VERSION" SIP_VERSION)
      IF (SIP_VERSION EQUAL "${SIP_MIN_VERSION}" OR SIP_VERSION GREATER "${SIP_MIN_VERSION}")
        SET (SIP_IS_GOOD TRUE)
      ENDIF (SIP_VERSION EQUAL "${SIP_MIN_VERSION}" OR SIP_VERSION GREATER "${SIP_MIN_VERSION}")
    
      IF (NOT SIP_IS_GOOD)
        MESSAGE (STATUS "SIP is required in version 4.7 or later!")
      ENDIF (NOT SIP_IS_GOOD)


The problem is that this is now 40a00 and so checking it with an integer comparison for decimal numbers fails.

Comment 3 Kevin Kofler 2010-02-05 23:03:00 UTC
qgis-1.0.2-6.fc13 built successfully.