Red Hat Bugzilla – Bug 468568
system-install-packages does not work, *again*
Last modified: 2008-11-06 05:47:19 EST
Description of problem:
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Created attachment 321534 [details]
error while processing a print job
What does 'rpm -q pnm2ppa' say?
(In reply to comment #2)
> What does 'rpm -q pnm2ppa' say?
package pnm2ppa is not installed (hummmm)
Now please run this from the command line, as the user you normally log on as (i.e. *don't* switch to root using 'su'):
What does it say?
(In reply to comment #4)
> Now please run this from the command line, as the user you normally log on as
> (i.e. *don't* switch to root using 'su'):
> system-install-packages pnm2ppa
> What does it say?
[Evan@localhost ~]$ system-install-packages pnm2ppa
Traceback (most recent call last):
File "/usr/bin/system-install-packages", line 34, in <module>
os.execv("/usr/bin/gpk-install-package", ["gpk-install-file"] + specified)
OSError: [Errno 2] No such file or directory
I used yum to install package pnm2ppa although I had to log on as root user using (su) command. Not sure what to do next . It says, pnm2ppa-1.04-16.fc10.i386, now I've installed it.
Now you've installed pnm2ppa I expect you can print. But the problem is that system-install-packages didn't work, so that's what we need to analyse.
What does this say, as root?:
rpm -V gnome-packagekit
(In reply to comment #7)
> Now you've installed pnm2ppa I expect you can print. But the problem is that
> system-install-packages didn't work, so that's what we need to analyse.
> What does this say, as root?:
> rpm -V gnome-packagekit
A long pause (2-3sec) and #
And yes I can print now.
So the problem is that gnome-packagekit ships a broken system-install-packages program again.
My fault, apologies. I've fixed this in http://koji.fedoraproject.org/koji/taskinfo?taskID=918077 -- the system-install-packages command must not have worked for the whole of F10. The compat wrapper is not upstream, so didn't get the same level of testing as the other stuff.
The proper fix would be to patch the session application to use the DBUS interface, rather than an legacy script that calls an application that calls the DBUS interface. It's really easy: http://www.packagekit.org/files/session.c
You then get the window modal to your application, and focus-stealing-prevention works correctly. Plus, it works with KDE when there's no gnome-packagekit installed.
If you want me to submit a patch that 's no problem at all, although I'm sure it would be quicker for you as you know where the calling point is, and how to get your window XID.
Thanks. I've checked in support for doing that upstream. It was more complicated in the end because:
1. The API is different in Fedora 9
2. I had to use async calls with DBusGMainLoop
If you wouldn't mind casting your eye over this it would be greatly appreciated. ;-)
Ahh cool. In a few weeks I'm going to backport 0.3.x to F9, but your code is probably the belt and braces way. The patch looks good, thanks for doing that.