PackageKit

From openSUSE

(Difference between revisions)
Revision as of 09:38, 9 December 2008
Haass (Talk | contribs)

� Previous diff
Revision as of 09:40, 9 December 2008
Haass (Talk | contribs)

Next diff →
Line 65: Line 65:
Please attach all of this files when reporting a bug!!! Please attach all of this files when reporting a bug!!!
 +
 +=== Latest Code ===
 + git clone git://anongit.freedesktop.org/git/packagekit/PackageKit
 + git clone git://anongit.freedesktop.org/git/packagekit/PackageKit-Qt
 + git clone git://people.freedesktop.org/~hughsient/gnome-packagekit
=== Links === === Links ===

Revision as of 09:40, 9 December 2008

(From packagekit.org: )

PackageKit is a D-Bus abstraction layer that allows the session user to manage packages in a secure way using a cross-distro, cross-architecture API.

Contents

Integration with OpenSUSE

Base System Requirements for Development (openSUSE 11.1)

  • C/C++ developers enivronment
  • PolicyKit-devel
  • dbus-1-devel
  • dbus-1-glib-devel
  • glib2-devel
  • libzypp-devel
  • intltool
  • gtk-doc
  • sqlite3-devel

Building

To configure your build-environment run:

   ./autogen.sh
     --prefix=/usr
     --libdir=/usr/lib
     --localstatedir=/var
     --sysconfigdir=/etc
     --disable-browser-plugin
     --disable-qt
     --disable-gtk-doc
     --disable-gstreamer-plugin
     --enable-developer
     --enable-local
     --enable-zypp
     --with-security-framework=polkit
     --with-default-backend=zypp

Running and Debuging

To test and get debug info from PackageKit with zypp as backend use the script in the src dir

   ./run-pk.sh zypp

This script simply calls the local built packagekit-daemon with the following parameters:

   --verbose        
   --disable-timer  # PackageKit will not exit after the set timeout
   --backend=zypp   # Set zypp as used backend, otherwise the dummy backend will be started

To run the the packagekit-dameon in gdb edit the gdb.sh script and set zypp as backend.

Configuration Files

  • /etc/PackageKit/PackageKit.conf

Log-Files

  • /var/log/pk_backend_zypp & /var/log/pk-backend-zypp-1
 This file includes all log-messages from libzypp
  • /var/log/PackageKit
This file includes all log-messages from the PackageKit daemon (in the standard configuration only the errors)

Please attach all of this files when reporting a bug!!!

Latest Code

   git clone git://anongit.freedesktop.org/git/packagekit/PackageKit
   git clone git://anongit.freedesktop.org/git/packagekit/PackageKit-Qt
   git clone git://people.freedesktop.org/~hughsient/gnome-packagekit

Links

Some links for development:

http://www.packagekit.org

Before starting to develop please read: [1]

Blog of Richard Hughes (the author of PackageKit): [2]