Bug 619997

Summary: onboard needs to be rebuilt against python 2.7 in F14 and devel
Product: [Fedora] Fedora Reporter: Dave Malcolm <dmalcolm>
Component: onboardAssignee: Fabian Affolter <mail>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: mail, oget.fedora
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: onboard-0.93.0-3.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-08-03 02:18:51 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: 619913    
Attachments:
Description Flags
Patch on onboard.spec none

Description Dave Malcolm 2010-07-31 09:26:07 UTC
The package needs to be rebuilt against python 2.7 in both F14 and devel.

Automated rebuild failed with:
/usr/bin/python: can't open file 'setup.py': Errno 2 No such file or directory
http://koji.fedoraproject.org/koji/getfile?taskID=2344895&name=build.log

Information on the new "dist-git" system can be seen here:
  http://fedoraproject.org/wiki/Using_Fedora_GIT

Information on common difficulties with Python 2.7 rebuilds can be seen here:
  https://fedoraproject.org/wiki/Features/Python_2.7

Once it's been successfully rebuilt for F14, an update needs to be filed to get the rebuild into F14:
  https://admin.fedoraproject.org/updates/new/

Please add this bug to the update, to make it easy to track what's been done, and what's left to do.

Thanks!

Comment 1 Dave Malcolm 2010-07-31 10:11:46 UTC
Created attachment 435741 [details]
Patch on onboard.spec

I attempted to fix this, but ran into various problems.

Attaching latest attempt as a patch.

Current error is:
http://koji.fedoraproject.org/koji/getfile?taskID=2368538&name=build.log
Error on file "/builddir/build/BUILDROOT/onboard-0.93.0-2.fc14.noarch/usr/share/applications/onboard.desktop": No such file or directory

presumably caused by:
WARNING: the following files are not recognized by DistUtilsExtra.auto:
  PKG-INFO
  data/onboard-settings.desktop.in
  data/onboard.desktop.in
  po/onboard.pot

Removal of pygtk2-devel due to this:
http://koji.fedoraproject.org/koji/getfile?taskID=2368504&name=build.log
Traceback (most recent call last):
  File "setup.py", line 41, in <module>
    scripts = ['onboard', 'onboard-settings'],
  File "/usr/lib/python2.7/site-packages/DistUtilsExtra/auto.py", line 95, in setup
    __requires(attrs, src_all)
  File "/usr/lib/python2.7/site-packages/DistUtilsExtra/auto.py", line 392, in __requires
    __add_imports(imports, s, attrs)
  File "/usr/lib/python2.7/site-packages/DistUtilsExtra/auto.py", line 338, in __add_imports
    if __external_mod(name, attrs):
  File "/usr/lib/python2.7/site-packages/DistUtilsExtra/auto.py", line 317, in __external_mod
    path = __import__(module).__file__
  File "/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py", line 64, in <module>
    _init()
  File "/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py", line 52, in _init
    _gtk.init_check()
RuntimeError: could not open display

Comment 2 Dave Malcolm 2010-07-31 10:13:50 UTC
Looking at http://koji.fedoraproject.org/koji/packageinfo?packageID=7290 I see that the last version of this to actually build was onboard-0.91.2-5.fc12

Comment 3 Fedora Update System 2010-08-02 01:14:57 UTC
onboard-0.93.0-3.fc14 has been submitted as an update for Fedora 14.
http://admin.fedoraproject.org/updates/onboard-0.93.0-3.fc14

Comment 4 Orcan Ogetbil 2010-08-02 01:19:16 UTC
I wrote patches to make this build properly.

The setup uses distutils.extra, which has the tendency of initializing objects from the libraries that are being "import"ed. This caused the
   RuntimeError: could not open display

The required hack is to pass a
   requires = []
to the setup()

Next issue was to build and install the .desktop files. This patch can be upstream.

Another issue was the .mo files do not get install through the setup. I did this manually during %install. Of course the maintainer can make some research on how to do this properly.

Finally, all the scriptlets were missing. I added them, according to:
   http://fedoraproject.org/wiki/Packaging/ScriptletSnippets

Comment 5 Fedora Update System 2010-08-03 02:18:45 UTC
onboard-0.93.0-3.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.