From 5554bd6fde6b7cbd71543f18ead848a0ab965706 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Sat, 28 Mar 2009 13:11:44 +0100 Subject: packagekit: add 0.4.5 --- recipes/packagekit/files/no_validate.patch | 21 ++++++++ .../packagekit/files/opkg-fix-declarations.diff | 22 +++++++++ recipes/packagekit/files/opkg-fix-includes.diff | 12 +++++ recipes/packagekit/packagekit_0.4.5.bb | 57 ++++++++++++++++++++++ 4 files changed, 112 insertions(+) create mode 100644 recipes/packagekit/files/no_validate.patch create mode 100644 recipes/packagekit/files/opkg-fix-declarations.diff create mode 100644 recipes/packagekit/files/opkg-fix-includes.diff create mode 100644 recipes/packagekit/packagekit_0.4.5.bb (limited to 'recipes/packagekit') diff --git a/recipes/packagekit/files/no_validate.patch b/recipes/packagekit/files/no_validate.patch new file mode 100644 index 0000000000..f987b567df --- /dev/null +++ b/recipes/packagekit/files/no_validate.patch @@ -0,0 +1,21 @@ +Index: PackageKit-0.3.8/configure.ac +=================================================================== +--- PackageKit-0.3.8.orig/configure.ac 2008-11-04 21:37:17.000000000 +0000 ++++ PackageKit-0.3.8/configure.ac 2008-11-04 21:37:57.000000000 +0000 +@@ -451,11 +451,11 @@ + polkit-grant >= $POLKIT_GRANT_REQUIRED) + AC_SUBST(POLKIT_CFLAGS) + AC_SUBST(POLKIT_LIBS) +- AC_CHECK_PROG([POLKIT_POLICY_FILE_VALIDATE], +- [polkit-policy-file-validate], [polkit-policy-file-validate]) +- if test -z "$POLKIT_POLICY_FILE_VALIDATE"; then +- AC_MSG_ERROR([polkit-policy-file-validate not found]) +- fi ++ #AC_CHECK_PROG([POLKIT_POLICY_FILE_VALIDATE], ++ # [polkit-policy-file-validate], [polkit-policy-file-validate]) ++ #if test -z "$POLKIT_POLICY_FILE_VALIDATE"; then ++ # AC_MSG_ERROR([polkit-policy-file-validate not found]) ++ #fi + AC_DEFINE(USE_SECURITY_POLKIT, 1, [if we should use PolicyKit]) + elif test x$with_security_framework = xdummy; then + AC_DEFINE(USE_SECURITY_DUMMY, 1, [if we should use a dummy security framework]) diff --git a/recipes/packagekit/files/opkg-fix-declarations.diff b/recipes/packagekit/files/opkg-fix-declarations.diff new file mode 100644 index 0000000000..8c86fabe4b --- /dev/null +++ b/recipes/packagekit/files/opkg-fix-declarations.diff @@ -0,0 +1,22 @@ +http://bugs.freedesktop.org/show_bug.cgi?id=20922 + +--- /tmp/pk-backend-opkg.c 2009-03-28 12:32:28.000000000 +0100 ++++ PackageKit-0.4.5/backends/opkg/pk-backend-opkg.c 2009-03-28 12:48:04.000000000 +0100 +@@ -47,7 +47,7 @@ + } SearchParams; + + static void +-opkg_unknown_error (PkBackend *backend, gint error_code, gchar *failed_cmd) ++opkg_unknown_error (PkBackend *backend, gint error_code, const gchar *failed_cmd) + { + gchar *msg; + +@@ -105,7 +105,7 @@ + * + * returns true if the tag is present + */ +-gboolean ++static gboolean + opkg_check_tag (opkg_package_t *pkg, gchar *tag) + { + if (pkg->tags && tag) diff --git a/recipes/packagekit/files/opkg-fix-includes.diff b/recipes/packagekit/files/opkg-fix-includes.diff new file mode 100644 index 0000000000..7692b0c0e7 --- /dev/null +++ b/recipes/packagekit/files/opkg-fix-includes.diff @@ -0,0 +1,12 @@ +https://bugs.freedesktop.org/show_bug.cgi?id=20921 + +--- /tmp/pk-backend-opkg.c 2009-03-28 12:31:01.000000000 +0100 ++++ PackageKit-0.4.5/backends/opkg/pk-backend-opkg.c 2009-03-28 12:31:12.000000000 +0100 +@@ -27,7 +27,6 @@ + #include + #include + #include +-#include + + #include + diff --git a/recipes/packagekit/packagekit_0.4.5.bb b/recipes/packagekit/packagekit_0.4.5.bb new file mode 100644 index 0000000000..89f4614cfd --- /dev/null +++ b/recipes/packagekit/packagekit_0.4.5.bb @@ -0,0 +1,57 @@ +DESCRIPTION = "PackageKit package management abstraction" +SECTION = "libs" +PRIORITY = "optional" +LICENSE = "GPL" +DEPENDS = "gtk+ python cppunit policykit dbus (>= 1.1.1) dbus-glib glib-2.0 sqlite3 opkg intltool intltool-native (>= 0.37.1)" +RDEPENDS_${PN} = "opkg" + +SRC_URI = "http://www.packagekit.org/releases/PackageKit-${PV}.tar.gz \ + file://no_validate.patch;patch=1 \ + file://opkg-fix-includes.diff;patch=1 \ + file://opkg-fix-declarations.diff;patch=1 " + +PE = "1" + +S = "${WORKDIR}/PackageKit-${PV}" + +inherit gnome autotools_stage + +EXTRA_OECONF = "--with-security-framework=dummy \ + --with-default-backend=opkg \ + --enable-opkg \ + --disable-tests \ + --disable-qt \ + --disable-gstreamer-plugin \ + --disable-local \ + ac_cv_path_XMLTO=no \ + " + + +do_configure_prepend() { + mkdir -p m4 + echo "EXTRA_DIST=" > gtk-doc.make + sed -i -e s:0\.1\.5:0\.1\.6:g -e /Werror/d configure.ac +} + +do_configure_append() { + for i in $(find . -name Makefile) ; do + sed -i -e s:${STAGING_DIR_NATIVE}::g -e s:${bindir}/mkdir:${STAGING_BINDIR_NATIVE}/mkdir:g $i + done +} + + +PACKAGES =+ "${PN}-website" +FILES_${PN}-website = "${datadir}/PackageKit/website" + +PACKAGES =+ "${PN}-python" +FILES_${PN}-python = "${libdir}/python*" + +PACKAGES =+ "${PN}-gtkmodule" +FILES_${PN}-gtkmodule = "${libdir}/gtk-2.0/*/*.so" + +FILES_${PN} += "${libdir}/packagekit-backend/*.so ${libdir}/pm-utils ${datadir}/dbus-1/system-services/ ${datadir}/PolicyKit" +FILES_${PN}-dbg += "${libdir}/packagekit-backend/.debug/*.so ${libdir}/gtk-2.0/*/.debug" +FILES_${PN}-dev += "${libdir}/packagekit-backend/*a ${libdir}/gtk-2.0/*/*a" + + + -- cgit 1.2.3-korg