Bug 619997 - onboard needs to be rebuilt against python 2.7 in F14 and devel
Summary: onboard needs to be rebuilt against python 2.7 in F14 and devel
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: onboard
Version: 14
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Fabian Affolter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: Python27Rebuild
TreeView+ depends on / blocked
 
Reported: 2010-07-31 09:26 UTC by Dave Malcolm
Modified: 2010-08-03 02:18 UTC (History)
2 users (show)

Fixed In Version: onboard-0.93.0-3.fc14
Clone Of:
Environment:
Last Closed: 2010-08-03 02:18:51 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Patch on onboard.spec (1.26 KB, patch)
2010-07-31 10:11 UTC, Dave Malcolm
no flags Details | Diff

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.


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