packagekit: Updated to 0.8.13
PATCH 1/1 packagekit: Updated to 0.8.13
From: "Felipe F. Tonello" <[email protected]>
This recipe supports the backend for packagekit dynamically based on the IMAGE_PKGTYPE.
--- ...deprecated-glib-functions-and-use-the-new.patch | 166 -------- .../packagekit/packagekit-0.5.6/configurefix.patch | 13 - .../packagekit/packagekit-0.5.6/opkgfixes.patch | 422 --------------------- .../packagekit/packagekit_0.5.6.bb | 62 --- .../packagekit/packagekit_0.8.13.bb | 71 ++++ 5 files changed, 71 insertions(+), 663 deletions(-) delete mode 100644 meta-oe/recipes-devtools/packagekit/packagekit-0.5.6/0001-Don-t-call-deprecated-glib-functions-and-use-the-new.patch delete mode 100644 meta-oe/recipes-devtools/packagekit/packagekit-0.5.6/configurefix.patch delete mode 100644 meta-oe/recipes-devtools/packagekit/packagekit-0.5.6/opkgfixes.patch delete mode 100644 meta-oe/recipes-devtools/packagekit/packagekit_0.5.6.bb create mode 100644 meta-oe/recipes-devtools/packagekit/packagekit_0.8.13.bb
meta-oe/recipes-devtools/packagekit/packagekit-0.5.6/0001-Don-t-call-deprecated-glib-functions-and-use-the-new.patch deleted +0 -166
@@ -1,166 +0,0 @@ -From 869e52a9055c72970fed036a1510f676e6ce0824 Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Thu, 13 Jun 2013 01:24:19 -0700 -Subject: [PATCH] Don't call deprecated glib functions and use the new gthread - API. - -Signed-off-by: Khem Raj <[email protected]> - -Upstream-Status: Inappropriate[version Unmaintained Upstream] ---- - client/pk-console.c | 3 ++- - client/pk-generate-pack.c | 3 ++- - client/pk-monitor.c | 3 ++- - contrib/command-not-found/PackageKit.sh | 2 +- - contrib/command-not-found/pk-command-not-found.c | 4 ++-- - contrib/debuginfo-install/pk-debuginfo-install.c | 4 ++-- - src/pk-backend.c | 7 +++++++ - src/pk-main.c | 4 ++-- - 10 files changed, 20 insertions(+), 10 deletions(-) - -diff --git a/client/pk-console.c b/client/pk-console.c -index de927e1..2435f27 100644 ---- a/client/pk-console.c -+++ b/client/pk-console.c -@@ -1264,11 +1264,12 @@ main (int argc, char *argv[]) - bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR); - bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); - textdomain (GETTEXT_PACKAGE); -- -+#if !GLIB_CHECK_VERSION(2,32,0) - if (! g_thread_supported ()) - g_thread_init (NULL); - g_type_init (); - dbus_g_thread_init (); -+#endif - - /* do stuff on ctrl-c */ - signal (SIGINT, pk_console_sigint_cb); -diff --git a/client/pk-generate-pack.c b/client/pk-generate-pack.c -index 0b2b40f..20d7e8d 100644 ---- a/client/pk-generate-pack.c -+++ b/client/pk-generate-pack.c -@@ -251,12 +251,13 @@ main (int argc, char *argv[]) - bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR); - bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); - textdomain (GETTEXT_PACKAGE); -- -+#if !GLIB_CHECK_VERSION(2,32,0) - if (! g_thread_supported ()) - g_thread_init (NULL); - - g_type_init (); - dbus_g_thread_init (); -+#endif - - /* do stuff on ctrl-c */ - signal (SIGINT, pk_generate_pack_sigint_cb); -diff --git a/client/pk-monitor.c b/client/pk-monitor.c -index f230f7a..d43007f 100644 ---- a/client/pk-monitor.c -+++ b/client/pk-monitor.c -@@ -285,11 +285,12 @@ main (int argc, char *argv[]) - bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR); - bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); - textdomain (GETTEXT_PACKAGE); -- -+#if !GLIB_CHECK_VERSION(2,32,0) - if (! g_thread_supported ()) - g_thread_init (NULL); - g_type_init (); - dbus_g_thread_init (); -+#endif - - context = g_option_context_new (NULL); - /* TRANSLATORS: this is a program that monitors PackageKit */ -diff --git a/contrib/command-not-found/PackageKit.sh b/contrib/command-not-found/PackageKit.sh -index d08989c..d708fff 100644 ---- a/contrib/command-not-found/PackageKit.sh -+++ b/contrib/command-not-found/PackageKit.sh -@@ -18,7 +18,7 @@ command_not_found_handle () { - - # run the command, or just print a warning - if [ $runcnf -eq 1 ]; then -- /home/hughsie/.root/libexec/pk-command-not-found $1 -+ /usr/lib/packagekit/pk-command-not-found $1 - retval=$? - else - echo "bash: $1: command not found" -diff --git a/contrib/command-not-found/pk-command-not-found.c b/contrib/command-not-found/pk-command-not-found.c -index 70679c0..9f81ce4 100644 ---- a/contrib/command-not-found/pk-command-not-found.c -+++ b/contrib/command-not-found/pk-command-not-found.c -@@ -659,12 +659,12 @@ main (int argc, char *argv[]) - bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR); - bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); - textdomain (GETTEXT_PACKAGE); -- -+#if !GLIB_CHECK_VERSION(2,32,0) - if (! g_thread_supported ()) - g_thread_init (NULL); - dbus_g_thread_init (); - g_type_init (); -- -+#endif - context = g_option_context_new (NULL); - /* TRANSLATORS: tool that gets called when the command is not found */ - g_option_context_set_summary (context, _("PackageKit Command Not Found")); -diff --git a/contrib/debuginfo-install/pk-debuginfo-install.c b/contrib/debuginfo-install/pk-debuginfo-install.c -index c12aca5..b0e1e7c 100644 ---- a/contrib/debuginfo-install/pk-debuginfo-install.c -+++ b/contrib/debuginfo-install/pk-debuginfo-install.c -@@ -532,11 +532,11 @@ main (int argc, char *argv[]) - bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR); - bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); - textdomain (GETTEXT_PACKAGE); -- -+#if !GLIB_CHECK_VERSION(2,32,0) - if (! g_thread_supported ()) - g_thread_init (NULL); - g_type_init (); -- -+#endif - context = g_option_context_new (NULL); - /* TRANSLATORS: tool that gets called when the command is not found */ - g_option_context_set_summary (context, _("PackageKit Debuginfo Installer")); -diff --git a/src/pk-backend.c b/src/pk-backend.c -index 5216b63..5b83ae4 100644 ---- a/src/pk-backend.c -+++ b/src/pk-backend.c -@@ -2103,7 +2103,14 @@ pk_backend_thread_create (PkBackend *backend, PkBackendThreadFunc func) - egg_warning ("already has thread"); - return FALSE; - } -+#if !GLIB_CHECK_VERSION(2,32,0) - backend->priv->thread = g_thread_create ((GThreadFunc) func, backend, FALSE, NULL); -+#else -+ backend->priv->thread = g_thread_try_new ("daemon thread", (GThreadFunc) func, backend, NULL); -+ if (backend->priv->thread != NULL) { -+ g_thread_unref(backend->priv->thread); -+ } -+#endif - if (backend->priv->thread == NULL) { - egg_warning ("failed to create thread"); - return FALSE; -diff --git a/src/pk-main.c b/src/pk-main.c -index 4c758cd..8fa2482 100644 ---- a/src/pk-main.c -+++ b/src/pk-main.c -@@ -219,12 +219,12 @@ main (int argc, char *argv[]) - bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR); - bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); - textdomain (GETTEXT_PACKAGE); -- -+#if !GLIB_CHECK_VERSION(2,32,0) - if (! g_thread_supported ()) - g_thread_init (NULL); - dbus_g_thread_init (); - g_type_init (); -- -+#endif - /* TRANSLATORS: describing the service that is running */ - context = g_option_context_new (_("PackageKit service")); - g_option_context_add_main_entries (context, options, NULL); --- -1.7.9.5 -
meta-oe/recipes-devtools/packagekit/packagekit-0.5.6/configurefix.patch deleted +0 -13
@@ -1,13 +0,0 @@ -Index: PackageKit-0.6.0/configure.ac -=================================================================== ---- PackageKit-0.6.0.orig/configure.ac 2010-01-04 16:32:18.000000000 +0000 -+++ PackageKit-0.6.0/configure.ac 2010-01-29 11:33:48.000000000 +0000 -@@ -90,7 +90,7 @@ - enable_strict=$default_strict) - if test x$enable_strict != xno; then - if test "$GCC" = "yes"; then -- WARNINGFLAGS_CPP="$WARNINGFLAGS_CPP -Werror" -+ : - fi - fi -
meta-oe/recipes-devtools/packagekit/packagekit-0.5.6/opkgfixes.patch deleted +0 -422
422 lines not on this page · raw message
meta-oe/recipes-devtools/packagekit/packagekit_0.5.6.bb deleted +0 -62
62 lines not on this page · raw message
meta-oe/recipes-devtools/packagekit/packagekit_0.8.13.bb new file +71 -0
71 lines not on this page · raw message
Signature · 1 line
1.8.3.1
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Felipe F. Tonello schreef op 28-11-13 01:56:
Quoted 4 lines
From: "Felipe F. Tonello" <[email protected]>
This recipe supports the backend for packagekit dynamically based on the
IMAGE_PKGTYPE.
NAK! IMAGE_FEATURES should *never* change non-image recipe params. This breaks using feeds horribly.
Quoted 11 lines
Signed-off-by Felipe F. Tonello <[email protected]> ---...deprecated-glib-functions-and-use-the-new.patch | 166 -------- .../packagekit/packagekit-0.5.6/configurefix.patch | 13 - .../packagekit/packagekit-0.5.6/opkgfixes.patch | 422--------------------- .../packagekit/packagekit_0.5.6.bb
| 62 --- .../packagekit/packagekit_0.8.13.bb | 71 ++++ 5
files changed, 71 insertions(+), 663 deletions(-) delete mode 100644meta-oe/recipes-devtools/packagekit/packagekit-0.5.6/0001-Don-t-call-deprecated-glib-functions-and-use-the-new.patch
delete mode 100644 meta-oe/recipes-devtools/packagekit/packagekit-0.5.6/configurefix.patch
Quoted 11 lines
delete mode 100644
meta-oe/recipes-devtools/packagekit/packagekit-0.5.6/opkgfixes.patchdelete mode 100644 meta-oe/recipes-devtools/packagekit/packagekit_0.5.6.bb create mode 100644 meta-oe/recipes-devtools/packagekit/packagekit_0.8.13.bbdiff --git
a/meta-oe/recipes-devtools/packagekit/packagekit-0.5.6/0001-Don-t-call-deprecated-glib-functions-and-use-the-new.patchb/meta-oe/recipes-devtools/packagekit/packagekit-0.5.6/0001-Don-t-call-deprecated-glib-functions-and-use-the-new.patch
deleted file mode 100644
Quoted 4 lines
index ecf8e74..0000000 ---
a/meta-oe/recipes-devtools/packagekit/packagekit-0.5.6/0001-Don-t-call-deprecated-glib-functions-and-use-the-new.patch
+++ /dev/null
Quoted 91 lines
(quoted diff) +0
-0@@ -1,166 +0,0 @@ -From 869e52a9055c72970fed036a1510f676e6ce0824 Mon Sep17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Thu, 13 Jun 2013 01:24:19 -0700 -Subject: [PATCH] Don't call deprecated glib functions and use the new gthread - API. - -Signed-off-by: Khem Raj <[email protected]> - -Upstream-Status: Inappropriate[version Unmaintained Upstream] ---- -
client/pk-console.c| 3 ++- - client/pk-generate-pack.c | 3 ++- - client/pk-monitor.c | 3 ++- - contrib/command-not-found/PackageKit.sh | 2 +- - contrib/command-not-found/pk-command-not-found.c | 4 ++-- - contrib/debuginfo-install/pk-debuginfo-install.c | 4 ++-- - src/pk-backend.c | 7 +++++++ - src/pk-main.c | 4 ++-- - 10 fileschanged, 20 insertions(+), 10 deletions(-) - -diff --git
a/client/pk-console.cb/client/pk-console.c-index de927e1..2435f27 100644 ----a/client/pk-console.c-+++b/client/pk-console.c-@@ -1264,11
+1264,12 @@ main (int argc, char *argv[]) - bindtextdomain
(GETTEXT_PACKAGE,PACKAGE_LOCALE_DIR); -bind_textdomain_codeset
(GETTEXT_PACKAGE, "UTF-8"); - textdomain (GETTEXT_PACKAGE); -- -+#if
!GLIB_CHECK_VERSION(2,32,0) - if (!g_thread_supported()) -g_thread_init(NULL); -g_type_init(); -dbus_g_thread_init();
-+#endif - - /* do stuff on ctrl-c */ - signal (SIGINT,pk_console_sigint_cb); -diff --gita/client/pk-generate-pack.cb/client/pk-generate-pack.c-index 0b2b40f..20d7e8d 100644 ----a/client/pk-generate-pack.c-+++b/client/pk-generate-pack.c-@@ -251,12
+251,13 @@ main (int argc, char *argv[]) - bindtextdomain
(GETTEXT_PACKAGE,PACKAGE_LOCALE_DIR); -bind_textdomain_codeset
(GETTEXT_PACKAGE, "UTF-8"); - textdomain (GETTEXT_PACKAGE); -- -+#if
!GLIB_CHECK_VERSION(2,32,0) - if (!g_thread_supported()) -g_thread_init(NULL); - -g_type_init(); -dbus_g_thread_init();
-+#endif - - /* do stuff on ctrl-c */ - signal (SIGINT,pk_generate_pack_sigint_cb); -diff --gita/client/pk-monitor.cb/client/pk-monitor.c-index f230f7a..d43007f 100644 ----a/client/pk-monitor.c-+++b/client/pk-monitor.c-@@ -285,11 +285,12 @@
main (int argc, char *argv[]) - bindtextdomain (GETTEXT_PACKAGE,PACKAGE_LOCALE_DIR); -bind_textdomain_codeset(GETTEXT_PACKAGE,
"UTF-8"); - textdomain (GETTEXT_PACKAGE); -- -+#if
!GLIB_CHECK_VERSION(2,32,0) - if (!g_thread_supported()) -g_thread_init(NULL); -g_type_init(); -dbus_g_thread_init();
-+#endif - - context =g_option_context_new(NULL); - /* TRANSLATORS:
this is a program that monitors PackageKit */ -diff --gita/contrib/command-not-found/PackageKit.shb/contrib/command-not-found/PackageKit.sh-index d08989c..d708fff 100644 ----a/contrib/command-not-found/PackageKit.sh-+++b/contrib/command-not-found/PackageKit.sh-@@ -18,7 +18,7 @@command_not_found_handle() { - - # run the command, or just print a
warning - if [ $runcnf -eq 1 ]; then --/home/hughsie/.root/libexec/pk-command-not-found$1 -+/usr/lib/packagekit/pk-command-not-found$1 - retval=$? - else -
echo "bash: $1: command not found" -diff --gita/contrib/command-not-found/pk-command-not-found.cb/contrib/command-not-found/pk-command-not-found.c-index 70679c0..9f81ce4 100644 ----a/contrib/command-not-found/pk-command-not-found.c-+++b/contrib/command-not-found/pk-command-not-found.c-@@ -659,12 +659,12 @@
main (int argc, char *argv[]) - bindtextdomain (GETTEXT_PACKAGE,PACKAGE_LOCALE_DIR); -bind_textdomain_codeset(GETTEXT_PACKAGE,
"UTF-8"); - textdomain (GETTEXT_PACKAGE); -- -+#if
!GLIB_CHECK_VERSION(2,32,0) - if (!g_thread_supported()) -g_thread_init(NULL); -dbus_g_thread_init(); -g_type_init(); --
-+#endif - context =g_option_context_new(NULL); - /* TRANSLATORS:
tool that gets called when the command is not found */ -g_option_context_set_summary(context,_("PackageKit Command Not Found")); -diff --gita/contrib/debuginfo-install/pk-debuginfo-install.cb/contrib/debuginfo-install/pk-debuginfo-install.c-index c12aca5..b0e1e7c 100644 ----a/contrib/debuginfo-install/pk-debuginfo-install.c-+++b/contrib/debuginfo-install/pk-debuginfo-install.c-@@ -532,11 +532,11 @@
main (int argc, char *argv[]) - bindtextdomain (GETTEXT_PACKAGE,PACKAGE_LOCALE_DIR); -bind_textdomain_codeset(GETTEXT_PACKAGE,
"UTF-8"); - textdomain (GETTEXT_PACKAGE); -- -+#if
!GLIB_CHECK_VERSION(2,32,0) - if (!g_thread_supported()) -g_thread_init(NULL); -g_type_init(); -- -+#endif - context =g_option_context_new(NULL); - /* TRANSLATORS: tool that gets called
when the command is not found */ -g_option_context_set_summary
(context,_("PackageKit Debuginfo Installer")); -diff --gita/src/pk-backend.cb/src/pk-backend.c-index 5216b63..5b83ae4 100644 ----a/src/pk-backend.c-+++b/src/pk-backend.c-@@ -2103,7 +2103,14 @@pk_backend_thread_create(PkBackend *backend, PkBackendThreadFunc func) -egg_warning("already has thread"); - return FALSE; - } -+#if
!GLIB_CHECK_VERSION(2,32,0) -backend->priv->thread=g_thread_create
((GThreadFunc) func, backend, FALSE, NULL); -+#else -+backend->priv->thread=g_thread_try_new("daemon thread", (GThreadFunc)
func, backend, NULL); -+ if (backend->priv->thread!= NULL) { -+g_thread_unref(backend->priv->thread); -+ } -+#endif - if
(backend->priv->thread== NULL) { -egg_warning("failed to create
thread"); - return FALSE; -diff --gita/src/pk-main.cb/src/pk-main.c
-index 4c758cd..8fa2482 100644 ----a/src/pk-main.c-+++b/src/pk-main.c
-@@ -219,12 +219,12 @@ main (int argc, char *argv[]) - bindtextdomain
(GETTEXT_PACKAGE,PACKAGE_LOCALE_DIR); -bind_textdomain_codeset
(GETTEXT_PACKAGE, "UTF-8"); - textdomain (GETTEXT_PACKAGE); -- -+#if
Quoted 10 lines
!GLIB_CHECK_VERSION(2,32,0) - if (!
g_thread_supported()) -g_thread_init(NULL); -dbus_g_thread_init(); -g_type_init(); --
-+#endif - /* TRANSLATORS: describing the service that is running */ -
context =g_option_context_new(_("PackageKit service")); -g_option_context_add_main_entries(context, options, NULL); --- -1.7.9.5
- diff --gita/meta-oe/recipes-devtools/packagekit/packagekit-0.5.6/configurefix.patchb/meta-oe/recipes-devtools/packagekit/packagekit-0.5.6/configurefix.patch
deleted file mode 100644
Quoted 4 lines
index 48f9591..0000000 ---
a/meta-oe/recipes-devtools/packagekit/packagekit-0.5.6/configurefix.patch
+++ /dev/null
Quoted 281 lines
(quoted diff) +0
-1@@ -1,13 +0,0 @@ -Index: PackageKit-0.6.0/configure.ac -=================================================================== ----PackageKit-0.6.0.orig/configure.ac 2010-01-04 16:32:18.000000000 +0000
-+++ PackageKit-0.6.0/configure.ac 2010-01-29 11:33:48.000000000 +0000
-@@ -90,7 +90,7 @@ - enable_strict=$default_strict) - if test
x$enable_strict != xno; then - if test "$GCC" = "yes"; then --
WARNINGFLAGS_CPP="$WARNINGFLAGS_CPP -Werror" -+ : - fi - fi - diff
--gita/meta-oe/recipes-devtools/packagekit/packagekit-0.5.6/opkgfixes.patchb/meta-oe/recipes-devtools/packagekit/packagekit-0.5.6/opkgfixes.patchdeleted file mode 100644 index 5a73a19..0000000 ---a/meta-oe/recipes-devtools/packagekit/packagekit-0.5.6/opkgfixes.patch+++/dev/null@@ -1,422 +0,0 @@ -Index:PackageKit-0.6.0/backends/opkg/pk-backend-opkg.c-=================================================================== ----PackageKit-0.6.0.orig/backends/opkg/pk-backend-opkg.c2010-01-29
09:39:33.000000000 +0000 -+++PackageKit-0.6.0/backends/opkg/pk-backend-opkg.c2010-01-29
11:30:51.000000000 +0000 -@@ -29,8 +29,7 @@ - -+#include <stdio.h> - #include <libopkg/opkg.h> - --staticopkg_t*opkg; -- - enum { -SEARCH_NAME, -SEARCH_DESCRIPTION, -@@ -62,7 +60,7 @@ - * check an opkg
package for known GUI dependancies - */ - static gboolean --opkg_is_gui_pkg (opkg_package_t*pkg) -+opkg_is_gui_pkg (pkg_t*pkg) -
{ - - /* TODO: check appropriate tag */ -@@ -84,7 +82,7 @@ - * check
an opkg package to determine if it is a development package - */ - static gboolean --opkg_is_devel_pkg (opkg_package_t*pkg)
-+opkg_is_devel_pkg (pkg_t*pkg) - { - if (g_strrstr(pkg->name,
"-dev")) - return TRUE; -@@ -105,7 +103,7 @@ - * returns true if
the tag is present - */ - static gboolean --opkg_check_tag (opkg_package_t*pkg, const gchar *tag) -+opkg_check_tag (pkg_t*pkg,
const gchar *tag) - { - if (pkg->tags&& tag) - return (g_strrstr
(pkg->tags, tag) != NULL); -@@ -118,7 +116,7 @@ - { - switch (err) - {
-- caseOPKG_NO_ERROR: -+/* caseOPKG_NO_ERROR: - break; - caseOPKG_PACKAGE_NOT_INSTALLED: -pk_backend_error_code(backend,PK_ERROR_ENUM_PACKAGE_NOT_INSTALLED, NULL); -@@ -140,7 +138,7 @@ -
break; - caseOPKG_PACKAGE_NOT_AVAILABLE: -pk_backend_error_code
(backend,PK_ERROR_ENUM_PACKAGE_NOT_FOUND, NULL); -- break; -+
break;*/ - default: -opkg_unknown_error(backend, err, "Update
package"); - } -@@ -152,7 +150,7 @@ - static void -backend_initialize
(PkBackend *backend) - { -- opkg =opkg_new(); -+ int opkg =opkg_new
(); - - if (!opkg) { -pk_backend_error_code(backend, -@@ -162,8
+160,8 @@ - } - - #ifdefOPKG_OFFLINE_ROOT--opkg_set_option(opkg,
(char *) "offline_root",OPKG_OFFLINE_ROOT); --opkg_re_read_config_files
(opkg); -+opkg_set_option((char *) "offline_root",OPKG_OFFLINE_ROOT);
-+opkg_re_read_config_files(); - #endif - - } -@@ -174,22 +172,22 @@ -
static void -backend_destroy(PkBackend *backend) - { --opkg_free
(opkg); -+opkg_free(); - } - - - static void --pk_opkg_progress_cb
(opkg_t*_opkg, constopkg_progress_data_t*pdata, void *data) -+pk_opkg_progress_cb (constopkg_progress_data_t*pdata, void *data) -
{ -- PkBackend *backend =PK_BACKEND(data); -+ PkBackend *backend =
(PkBackend*) data; - if (!backend) - return; - -pk_backend_set_percentage(backend,pdata->percentage); -- if
(pdata->package) -+ if (pdata->pkg) - { - gchar *uid; --opkg_package_t*pkg =pdata->package; -+pkg_t*pkg =pdata->pkg; -
gint status =PK_INFO_ENUM_UNKNOWN; - - uid =g_strdup_printf
("%s;%s;%s;", -@@ -225,12 +223,12 @@ - { - int ret; - -- ret =opkg_update_package_lists(opkg,pk_opkg_progress_cb, backend); -+ ret =opkg_update_package_lists(pk_opkg_progress_cb, backend); - - if (ret)
{ -- if (ret ==OPKG_DOWNLOAD_FAILED) --pk_backend_error_code
(backend,PK_ERROR_ENUM_REPO_NOT_AVAILABLE, NULL); -- else -+// if (ret
==OPKG_DOWNLOAD_FAILED) -+//pk_backend_error_code(backend,PK_ERROR_ENUM_REPO_NOT_AVAILABLE, NULL); -+// else -opkg_unknown_error(backend, ret, "Refreshing cache"); - } -pk_backend_finished(backend); -@@ -256,7 +254,7 @@ - */ - - static void --pk_opkg_package_list_cb (opkg_t*_opkg,opkg_package_t*pkg, void *data) -+pk_opkg_package_list_cb (pkg_t*pkg, void *data) - { -
SearchParams *params = (SearchParams*) data; - gchar *uid; -@@ -298,7
+296,7 @@ - uid =g_strdup_printf("%s;%s;%s;", -pkg->name,pkg->version,pkg->architecture); - -- if (pkg->installed) -+ if
(pkg->state_status==SS_INSTALLED) - status =PK_INFO_ENUM_INSTALLED;(quoted diff) +0
-1- else - status = PK_INFO_ENUM_AVAILABLE; -@@ -318,10 +316,10 @@ -
opkg_is_gui_pkg(pkg)) - gotoend_handle; - if
(pk_bitfield_contain(filters, PK_FILTER_ENUM_INSTALLED)&& --
(!pkg->installed)) -+ (pkg->state_status!=SS_INSTALLED)) - gotoend_handle; - if (pk_bitfield_contain(filters,PK_FILTER_ENUM_NOT_INSTALLED) && -- (pkg->installed)) -+
(pkg->state_status==SS_INSTALLED)) - gotoend_handle; - -pk_backend_package(params->backend, status, uid,pkg->description); -@@
-338,7 +336,7 @@ - - params =pk_backend_get_pointer(backend,
"search-params"); - --opkg_list_packages(opkg,pk_opkg_package_list_cb,
params); -+opkg_list_packages(pk_opkg_package_list_cb, params); - -pk_backend_finished(params->backend); - -@@ -349,7 +347,7 @@ - } - - static void --backend_search_name (PkBackend *backend, PkBitfield filters, const gchar *search) -+backend_search_name (PkBackend *backend,
PkBitfield filters, gchar **search) - { - SearchParams *params; - -@@
-360,7 +358,7 @@ - params =g_new0(SearchParams, 1); -params->filters
= filters; -params->search_type=SEARCH_NAME; --params->needle=g_utf8_strdown(search, -1); -+params->needle=g_utf8_strdown
(search[0], -1); -params->backend= backend; - -pk_backend_set_pointer(backend, "search-params", params); -@@ -371,7 +369,7 @@ - *backend_search_description: - */ - static void --backend_search_description (PkBackend *backend, PkBitfield filters, const gchar *search) -+backend_search_description (PkBackend *backend,
PkBitfield filters, gchar **search) - { - SearchParams *params; - -@@
-382,7 +380,7 @@ - params =g_new0(SearchParams, 1); -params->filters
= filters; -params->search_type=SEARCH_DESCRIPTION; --params->needle
=g_utf8_strdown(search, -1); -+params->needle=g_utf8_strdown
(search[0], -1); -params->backend= backend; - -pk_backend_set_pointer(backend, "search-params", params); -@@ -390,7 +388,7 @@ - } - - static void --backend_search_group (PkBackend *backend, PkBitfield filters, const gchar *search) -+backend_search_group (PkBackend *backend, PkBitfield filters, gchar **search) - { -
SearchParams *params; - -@@ -401,7 +399,7 @@ - params =g_new0
(SearchParams, 1); -params->filters= filters; -params->search_type=SEARCH_TAG; --params->needle=g_strdup_printf("group::%s", search); -+params->needle=g_strdup_printf("group::%s", search[0]); -params->backend= backend; - -pk_backend_set_pointer(backend,
"search-params", params); -@@ -412,9 +410,9 @@ - static gboolean -backend_install_packages_thread(PkBackend *backend) - { -- PkPackageId
*pi; - gint err, i; - gchar **package_ids; -+ gchar **parts; - -package_ids=pk_backend_get_strv(backend, "pkids"); - -@@ -424,13
+422,13 @@ - { -pk_backend_package(backend,PK_INFO_ENUM_INSTALLING,
package_ids[i], NULL); - -- pi =pk_package_id_new_from_string
(package_ids[i]); -+ parts =pk_package_id_split(package_ids[i]); - --
err =opkg_install_package(opkg,pi->name,pk_opkg_progress_cb,
backend); -+ err =opkg_install_package(parts[PK_PACKAGE_ID_NAME],pk_opkg_progress_cb, backend); - if (err) -handle_install_error
(backend, err); - --pk_package_id_free(pi); -+g_strfreev(parts); -
if (err != 0) - break; - } -@@ -453,9 +451,9 @@ - static gboolean -backend_remove_packages_thread(PkBackend *backend) - { -- PkPackageId
*pi; - gint err, i; - gchar **package_ids; -+ gchar **parts; -
gbooleanallow_deps; - gboolean autoremove; - gpointer *data; -@@
-467,29 +465,30 @@ - autoremove =GPOINTER_TO_INT(data[2]); -g_free
(data); - --opkg_set_option(opkg, (char *)"autoremove", &autoremove);
--opkg_set_option(opkg, (char *)"force_removal_of_dependent_packages",&allow_deps); -+opkg_set_option((char *)"autoremove", &autoremove); -+opkg_set_option((char *)"force_removal_of_dependent_packages",&allow_deps); - - err = 0; - - for (i = 0; package_ids[i]; i++) - { --
pi =pk_package_id_new_from_string(package_ids[i]); -pk_backend_package(backend,PK_INFO_ENUM_REMOVING, package_ids[i],
NULL); - -- err =opkg_remove_package(opkg,pi->name,pk_opkg_progress_cb, backend); -+ parts =pk_package_id_split
(package_ids[i]); -+ -+ err =opkg_remove_package
(parts[PK_PACKAGE_ID_NAME],pk_opkg_progress_cb, backend); - - switch
(err) - { -- caseOPKG_NO_ERROR: -- break; -- caseOPKG_PACKAGE_NOT_INSTALLED: --pk_backend_error_code(backend,PK_ERROR_ENUM_PACKAGE_NOT_INSTALLED, NULL); -- break; -+ //caseOPKG_NO_ERROR: -+ // break; -+ //caseOPKG_PACKAGE_NOT_INSTALLED: -+
//pk_backend_error_code(backend,PK_ERROR_ENUM_PACKAGE_NOT_INSTALLED,
NULL); -+ // break; - default: -opkg_unknown_error(backend, err,
"Remove"); - } --pk_package_id_free(pi); -+g_strfreev(parts); - -
if (err != 0) - break; -@@ -540,7 +539,7 @@ - gint err; - - /*
FIXME: supportonly_trusted*/ -- err =opkg_upgrade_all(opkg,pk_opkg_progress_cb, backend); -+ err =opkg_upgrade_all
(pk_opkg_progress_cb, backend); - - if (err) -opkg_unknown_error
(backend, err, "Upgrading system"); -@@ -564,29 +563,28 @@ - static gboolean -backend_update_package_thread(PkBackend *backend) - { --
PkPackageId *pi; -+ gchar **parts; - gint err = 0; - const gchar*package_id; - - /* FIXME: supportonly_trusted*/ -package_id=pk_backend_get_string(backend, "pkgid"); -- pi =pk_package_id_new_from_string(package_id); -+ parts =pk_package_id_split(package_id); - -- if (!pi->name || !pi->version) -+
if (!parts) - { -pk_backend_error_code(backend,PK_ERROR_ENUM_PACKAGE_NOT_FOUND, - "Package not found"); --pk_package_id_free(pi); -pk_backend_finished(backend); - return
FALSE; - } - -- err =opkg_upgrade_package(opkg,pi->name,pk_opkg_progress_cb, backend); -+ err =opkg_upgrade_package
(parts[PK_PACKAGE_ID_NAME],pk_opkg_progress_cb, backend); - if (err) -handle_install_error(backend, err); - - --pk_package_id_free(pi); -+g_strfreev(parts); -pk_backend_finished(backend); - return (err !=
0); - } -@@ -610,13 +608,13 @@ - */ - - static void --pk_opkg_list_upgradable_cb (opkg_t*_opkg,opkg_package_t*pkg, void *data) -+pk_opkg_list_upgradable_cb (pkg_t*pkg, void *data) - { --
PkBackend *backend =PK_BACKEND(data); -+ PkBackend *backend =
(PkBackend*) data; - gchar *uid; - gint status; - -- if
(pkg->installed) -+ if (pkg->state_status==SS_INSTALLED) - status =PK_INFO_ENUM_INSTALLED; - else - status =PK_INFO_ENUM_AVAILABLE; -@@
-631,7 +629,7 @@ - static gboolean -backend_get_updates_thread
(PkBackend *backend) - { --opkg_list_upgradable_packages(opkg,pk_opkg_list_upgradable_cb, backend); -+opkg_list_upgradable_packages
(pk_opkg_list_upgradable_cb, backend); -pk_backend_finished(backend);(quoted diff) +0
-1- return TRUE; - } -@@ -668,16 +666,18 @@ - static gboolean -
backend_get_details_thread(PkBackend *backend) - { -- PkPackageId *pi; -
gchar **package_ids; -+ gchar **parts; - intgroup_index; -
PkGroupEnum group = 0; --opkg_package_t*pkg; -+pkg_t*pkg; - gchar
*newid; - -package_ids= pk_backend_get_strv(backend,
"package_ids"); -- pi =pk_package_id_new_from_string(package_ids[0]);
-- if (pi == NULL) -+ parts =pk_package_id_split(package_ids[0]); -+
-+ -+ if (!parts) - { -pk_backend_error_code(backend,PK_ERROR_ENUM_PACKAGE_ID_INVALID, "invalid package id"); -pk_backend_finished(backend); -@@ -685,8 +685,8 @@ - } - - -- pkg =opkg_find_package(opkg,pi->name,pi->version,pi->arch,pi->data); --pk_package_id_free(pi); -+ pkg =opkg_find_package
(parts[PK_PACKAGE_ID_NAME], parts[PK_PACKAGE_ID_VERSION],
parts[PK_PACKAGE_ID_ARCH], parts[PK_PACKAGE_ID_DATA]); -+g_strfreev
(parts); - - if (!pkg) - { -@@ -695,7 +695,7 @@ - return FALSE; - }
- -- newid =g_strdup_printf("%s;%s;%s;%s",pkg->name,pkg->version,pkg->architecture,pkg->repository); -+ newid =g_strdup_printf
("%s;%s;%s;%s",pkg->name,pkg->version,pkg->architecture,pkg->src->name); - - if (pkg->tags) { - for (group_index= 0; group <PK_GROUP_ENUM_LAST; group_index++) { -@@ -706,9 +706,8 @@ - } - } - --pk_backend_details(backend, newid, NULL, group,pkg->description,pkg->url,pkg->size); -+pk_backend_details(backend, newid, NULL, group,pkg->description, NULL,pkg->size); -g_free(newid); --opkg_package_free(pkg); -pk_backend_finished(backend); - return
TRUE; - } diff --git a/meta-oe/recipes-devtools/packagekit/packagekit_0.5.6.bb b/meta-oe/recipes-devtools/packagekit/packagekit_0.5.6.bb deleted file mode 100644 index 7d9c2bf..0000000 --- a/meta-oe/recipes-devtools/packagekit/packagekit_0.5.6.bb +++/dev/null(quoted diff) +0
-0@@ -1,62 +0,0 @@ -DESCRIPTION = "PackageKit package managementabstraction" -SECTION = "libs" -LICENSE = "GPL-2.0+" -LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" -DEPENDS = "gtk+ python polkit dbus dbus-glib glib-2.0 sqlite3 opkg intltool intltool-native" -RDEPENDS_${PN} = "opkg" - -inherit gnome pythonnative
- -SRC_URI = "http://www.packagekit.org/releases/PackageKit-${PV}.tar.gz;name=archive
\ - file://configurefix.patch \ -
file://opkgfixes.patch \ - file://0001-Don-t-call-deprecated-glib-functions-and-use-the-new.patch \
- " - -SRC_URI[archive.md5sum] =
"6c8d9c48e21b82abeea15c3fd5066242" -SRC_URI[archive.sha256sum] = "0eafd1be5516a41ebc0f0c3acff0b0763da105a4178b5eee0ff16d66ccd04408" - -S = "${WORKDIR}/PackageKit-${PV}" - -PACKAGECONFIG ??= "" -PACKAGECONFIG[service-packs] = "--enable-service-packs,--disable-service-packs,libarchive" - -EXTRA_OECONF = "--with-security-framework=dummy \ -
--with-default-backend=opkg \ - --enable-opkg \ -
--disable-tests \ - --disable-ruck \ -
--disable-qt \ - --disable-gstreamer-plugin \ -
--disable-local \ - --disable-networkmanager \ -
ac_cv_path_XMLTO=no \ -" - -#do_configure_prepend() { -# mkdir -p m4
-# echo "EXTRA_DIST=" > gtk-doc.make -#} - -do_configure_append() { -
for i in $(find . -nameMakefile) ; do - sed -i -e
s:${STAGING_DIR_NATIVE}::g \ - -e
s:${bindir}/mkdir:${STAGING_BINDIR_NATIVE}/mkdir:g \ - -e
s:/usr/bin/intltool-merge:${STAGING_BINDIR_NATIVE}/intltool-merge: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 ${datadir}/PackageKit" -FILES_${PN}-dbg += "${libdir}/packagekit-backend/.debug/*.so ${libdir}/gtk-2.0/*/.debug" -FILES_${PN}-dev += "${libdir}/packagekit-backend/*.la ${libdir}/gtk-2.0/*/*.la" -FILES_${PN}-staticdev += "${libdir}/packagekit-backend/*.a ${libdir}/gtk-2.0/*/*.a" diff --git a/meta-oe/recipes-devtools/packagekit/packagekit_0.8.13.bb b/meta-oe/recipes-devtools/packagekit/packagekit_0.8.13.bb new file mode 100644 index 0000000..4bd751e ---/dev/null+++ b/meta-oe/recipes-devtools/packagekit/packagekit_0.8.13.bb @@ -0,0 +1,71 @@ +DESCRIPTION = "PackageKit package management abstraction" +SECTION = "libs" +LICENSE = "GPL-2.0+" +LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" +DEPENDS = "python polkit dbus dbus-glib glib-2.0 sqlite3 intltool intltool-native" + +inherit autotools gtk-doc pkgconfig pythonnative + +# we declare the packages the OE supports so we can define proper RDEPENDS to them +PACKAGES =+ "${PN}-python ${PN}-backend-smart ${PN}-backend-opkg ${PN}-backend-apt" +PACKAGES_DYNAMIC += "^pulseaudio-plugin.* ^pulseaudio-backend.*" + +SRC_URI = "http://www.packagekit.org/releases/PackageKit-${PV}.tar.xz" + +SRC_URI[md5sum] = "c8f7207cca4fcdb3d62d012b67c2f319" +SRC_URI[sha256sum] = "110da1afcbfb9d56da18ece3161e8554f77bc3f90793332406ca54129ec43c76" + +S = "${WORKDIR}/PackageKit-${PV}" + +PACKAGECONFIG ??= " \ + ${@base_contains('IMAGE_PKGTYPE', 'deb', 'apt', '', d)} \ + ${@base_contains('IMAGE_PKGTYPE', 'ipk', 'opkg', '', d)} \ + ${@base_contains('IMAGE_PKGTYPE', 'rpm', 'smart', '', d)} \ +" + +PACKAGECONFIG[apt] = "--with-default-backend=apt --enable-apt,--disable-apt,apt,${PN}-backend-apt" +PACKAGECONFIG[opkg] = "--with-default-backend=opkg --enable-opkg,--disable-opkg,opkg,${PN}-backend-opkg"(quoted diff) +3
-4+PACKAGECONFIG[smart] = "--with-default-backend=smart --enable-smart,--disable-smart,python-smartpm,${PN}-backend-smart" + +EXTRA_OECONF = " \ + --with-security-framework=dummy \ + --disable-tests \ + --disable-cron \ + --disable-connman \ + --disable-strict \ + --disable-systemd \ + --disable-systemd-updates \ + --disable-bash-completion \ + --disable-gstreamer-plugin \ + --disable-local \ + --disable-networkmanager \ + --disable-gtk-module\ + --disable-browser-plugin \ + --disable-python3 \ + ac_cv_path_XMLTO=no \ +" + +FILES_${PN}-python = "${libdir}/python*" +RDEPENDS_${PN}-python = "python" + +FILES_${PN} += " \ + ${datadir}/dbus-1 \ + ${datadir}/PackageKit \ + ${datadir}/mime \ +" +FILES_${PN}-dbg += "${libdir}/packagekit-backend/.debug/*.so ${libdir}/packagekit-plugins/.debug/*.so" +FILES_${PN}-dev += "${libdir}/packagekit-backend/*.la ${libdir}/packagekit-plugins/*.la" +FILES_${PN}-staticdev += "${libdir}/packagekit-backend/*.a ${libdir}/packagekit-plugins/*.a" + +FILES_${PN}-backend-smart += "${datadir}/PackageKit/helpers/smart" +RDEPENDS_${PN}-backend-smart += "${PN} ${PN}-python smartpm" + +RDEPENDS_${PN}-backend-apt += "${PN} apt" +RDEPENDS_${PN}-backend-opkg += "${PN} opkg" + +python
Quoted 9 lines
populate_packages_prepend(){ + backenddir =d.expand('${libdir}/packagekit-backend/')+ do_split_packages(d,
backenddir, '^libpk_backend_(.*)\.so$', 'packagekit-backend-%s', 'PackageKit backend for %s', extra_depends='', prepend=True) + plugindir =d.expand('${libdir}/packagekit-plugins/')+ do_split_packages(d, plugindir, '^libpk_plugin[_\-](.*)\.so$', 'packagekit-plugin-%s', 'PackageKit plugin for %s', extra_depends='', prepend=True) +}
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org
iD8DBQFSlwtXMkyGM64RGpERAtZ0AJ9+8Z1VRSUiCD4a/I6ZTWCF6bMuygCfXFn+ 99xN0L04mgjrkcshBtc9X2E=
=oteQ
-----END PGP SIGNATURE-----
Hi Koen / Felipe,
Quoted 7 lines · On Thursday 28 November 2013 10:22:31 Koen Kooi wrote:
Felipe F. Tonello schreef op 28-11-13 01:56:
Quoted 3 lines
From: "Felipe F. Tonello" <[email protected]>
This recipe supports the backend for packagekit dynamically based on theIMAGE_PKGTYPE.NAK!
IMAGE_FEATURESshould *never* change non-image recipe params. This breaks using feeds horribly.
IMAGE_PKGTYPE is influenced by PACKAGE_CLASSES; so this is not about IMAGE_FEATURES, and correct me if I'm wrong but maintaining package feeds would generally preclude switching to an alternative package manager, right?
Some options:
1) Apply the patch as-is. Changing the order/value of PACKAGE_CLASSES will mean this and anything that depends upon it will rebuild.
2) Install the appropriate backend via some code in the image recipe. Obviously this means you have to do this for every image recipe though.
3) Use non-dynamic PACKAGECONFIG. Of course this means you'll have to remember to change this manually if you change PACKAGE_CLASSES or it'll just be broken at runtime.
Honestly, option 1 sounds like the best course to me here. This is rather a special case compared to other recipes.
Cheers,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Paul Eggleton schreef op 28-11-13 11:32:
Quoted 7 lines
Hi Koen / Felipe,
Quoted 4 lines · On Thursday 28 November 2013 10:22:31 Koen Kooi wrote:
Felipe F. Tonello schreef op 28-11-13 01:56:
Quoted 2 lines
From: "Felipe F. Tonello" <[email protected]> This recipe supports the backend for packagekit dynamically based on the
IMAGE_PKGTYPE.
Quoted 7 lines
Quoted 2 lines
NAK!
IMAGE_FEATURESshould *never* change non-image recipe params. This breaks using feeds horribly.
IMAGE_PKGTYPEis influenced byPACKAGE_CLASSES; so this is not aboutIMAGE_FEATURES, and correct me if I'm wrong but maintaining package feeds
would generally preclude switching to an alternative package manager,
right?
No, it's perfectly possible to build both opkg and rpm, which is what I'm currently doing. When doing that the DISTRO.conf does need to make a decision on what to support for things like packagekit.
Quoted 8 lines
Some options:
1) Apply the patch as-is. Changing the order/value of
PACKAGE_CLASSESwill mean this and anything that depends upon it will rebuild.2) Install the appropriate backend via some code in the image recipe. Obviously this means you have to do this for every image recipe though.
Quoted 6 lines
3) Use non-dynamic PACKAGECONFIG. Of course this means you'll have to remember to change this manually if you change
PACKAGE_CLASSESor it'll just be broken at runtime.Honestly, option 1 sounds like the best course to me here. This is rather a special case compared to other recipes.
1) will let you end up with packagekit_1.0.ipk that only supports RPM
2) Is what we would really want, but I don't think packagekit supports that :(
So that leaves 3, which makes it a clear DISTRO decision, like it should be.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org
iD8DBQFSlx+uMkyGM64RGpERAklsAJ0dtXhGERpNu+IizQN05XNliTk50wCfR8nl xGpfq7tjqZPsx1V0hSYW5qs=
=1or8
-----END PGP SIGNATURE-----
Quoted 30 lines · On Thursday 28 November 2013 11:49:18 Koen Kooi wrote:
Paul Eggleton schreef op 28-11-13 11:32:
Quoted 10 lines
Hi Koen / Felipe,
Quoted 6 lines · On Thursday 28 November 2013 10:22:31 Koen Kooi wrote:
Felipe F. Tonello schreef op 28-11-13 01:56:
Quoted 2 lines
From: "Felipe F. Tonello" <[email protected]> This recipe supports the backend for packagekit dynamically based on the
IMAGE_PKGTYPE.NAK!
IMAGE_FEATURESshould *never* change non-image recipe params. This breaks using feeds horribly.Quoted 6 lines
IMAGE_PKGTYPEis influenced byPACKAGE_CLASSES; so this is not aboutIMAGE_FEATURES, and correct me if I'm wrong but maintaining package feedswould generally preclude switching to an alternative package manager,
right?
No, it's perfectly possible to build both opkg and rpm, which is what I'm currently doing. When doing that the DISTRO.conf does need to make a decision on what to support for things like packagekit.
Quoted 8 lines
Some options:
1) Apply the patch as-is. Changing the order/value of
PACKAGE_CLASSESwill mean this and anything that depends upon it will rebuild.2) Install the appropriate backend via some code in the image recipe. Obviously this means you have to do this for every image recipe though.
Quoted 8 lines
Quoted 6 lines
3) Use non-dynamic PACKAGECONFIG. Of course this means you'll have to remember to change this manually if you change
PACKAGE_CLASSESor it'll just be broken at runtime.Honestly, option 1 sounds like the best course to me here. This is rather a special case compared to other recipes.
1) will let you end up with packagekit_1.0.ipk that only supports RPM
Correct, it would. I agree that's not ideal. Neither is having it broken by default for some people though (unless you just set all backends to on by default, that is.)
Quoted 2 lines
2) Is what we would really want, but I don't think packagekit supports that :(
This patch looks like it is splitting out the backends into separate packages...
Quoted 1 line
So that leaves 3, which makes it a clear DISTRO decision, like it should be.
It's worth pointing out that the patch sets PACKAGECONFIG with ??= so it doesn't stop you from doing this.
Cheers,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Paul Eggleton schreef op 28-11-13 11:58:
Quoted 49 lines · On Thursday 28 November 2013 11:49:18 Koen Kooi wrote:
Quoted 35 lines
Paul Eggleton schreef op 28-11-13 11:32:
Quoted 11 lines
Hi Koen / Felipe,
Quoted 7 lines · On Thursday 28 November 2013 10:22:31 Koen Kooi wrote:
Felipe F. Tonello schreef op 28-11-13 01:56:
Quoted 3 lines
From: "Felipe F. Tonello" <[email protected]> This recipe supports the backend for packagekit dynamically based on the
IMAGE_PKGTYPE.NAK!
IMAGE_FEATURESshould *never* change non-image recipe params. This breaks using feeds horribly.Quoted 8 lines
IMAGE_PKGTYPEis influenced byPACKAGE_CLASSES; so this is not aboutIMAGE_FEATURES, and correct me if I'm wrong but maintaining package feedswould generally preclude switching to an alternative package manager,
right?
No, it's perfectly possible to build both opkg and rpm, which is what I'm currently doing. When doing that the DISTRO.conf does need to make a decision on what to support for things like packagekit.
Quoted 10 lines
Some options:
1) Apply the patch as-is. Changing the order/value of
PACKAGE_CLASSESwill mean this and anything that depends upon it will rebuild.2) Install the appropriate backend via some code in the image recipe. Obviously this means you have to do this for every image recipe though.
Quoted 8 lines
Quoted 6 lines
3) Use non-dynamic PACKAGECONFIG. Of course this means you'll have to remember to change this manually if you change
PACKAGE_CLASSESor it'll just be broken at runtime.Honestly, option 1 sounds like the best course to me here. This is rather a special case compared to other recipes.
1) will let you end up with packagekit_1.0.ipk that only supports RPM
Correct, it would. I agree that's not ideal. Neither is having it broken by default for some people though (unless you just set all backends to on by default, that is.)
Quoted 5 lines
Quoted 2 lines
2) Is what we would really want, but I don't think packagekit supports that :(
This patch looks like it is splitting out the backends into separate packages...
If that's the case, 2) is the route to go.
Quoted 9 lines
Quoted 3 lines
So that leaves 3, which makes it a clear DISTRO decision, like it should be.
It's worth pointing out that the patch sets PACKAGECONFIG with ??= so it
doesn't stop you from doing this.Cheers, Paul
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org
iD8DBQFSlyLtMkyGM64RGpERAmfuAJ9DTZhTFkAQ7AwRYQbSVzHGyRCtigCeLU92 psvh/e2iCRGJLTUfAWzoF5I=
=vIts
-----END PGP SIGNATURE-----
I just found a typo in the patch, I will have to fix it.
Felipe
Quoted 2 lines · Felipe Tonello
I just found a typo in the patch, I will have to fix it.
Actually, let me know if this patch will be approved, then I fix the typo and resend a v2.
Felipe
Hi Koen,
Quoted 53 lines · Koen Kooi
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Paul Eggleton schreef op 28-11-13 11:58:
Quoted 49 lines · On Thursday 28 November 2013 11:49:18 Koen Kooi wrote:
Quoted 35 lines
Paul Eggleton schreef op 28-11-13 11:32:
Quoted 11 lines
Hi Koen / Felipe,
Quoted 7 lines · On Thursday 28 November 2013 10:22:31 Koen Kooi wrote:
Felipe F. Tonello schreef op 28-11-13 01:56:
Quoted 3 lines
From: "Felipe F. Tonello" <[email protected]> This recipe supports the backend for packagekit dynamically based on the
IMAGE_PKGTYPE.NAK!
IMAGE_FEATURESshould *never* change non-image recipe params. This breaks using feeds horribly.Quoted 8 lines
IMAGE_PKGTYPEis influenced byPACKAGE_CLASSES; so this is not aboutIMAGE_FEATURES, and correct me if I'm wrong but maintaining package feedswould generally preclude switching to an alternative package manager,
right?
No, it's perfectly possible to build both opkg and rpm, which is what I'm currently doing. When doing that the DISTRO.conf does need to make a decision on what to support for things like packagekit.
Quoted 10 lines
Some options:
1) Apply the patch as-is. Changing the order/value of
PACKAGE_CLASSESwill mean this and anything that depends upon it will rebuild.2) Install the appropriate backend via some code in the image recipe. Obviously this means you have to do this for every image recipe though.
Quoted 8 lines
Quoted 6 lines
3) Use non-dynamic PACKAGECONFIG. Of course this means you'll have to remember to change this manually if you change
PACKAGE_CLASSESor it'll just be broken at runtime.Honestly, option 1 sounds like the best course to me here. This is rather a special case compared to other recipes.
1) will let you end up with packagekit_1.0.ipk that only supports RPM
Correct, it would. I agree that's not ideal. Neither is having it broken by default for some people though (unless you just set all backends to on by default, that is.)
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
2) Is what we would really want, but I don't think packagekit supports that :(
This patch looks like it is splitting out the backends into separate packages...
If that's the case, 2) is the route to go.
It does split into packages. I splited it up in packages just so if the user wants to have different backend options, it can.
The problem with this aproach, is that you will add the apt and opkg dependency to the build even if the user doesn't care about it. I don't like this option to be honest.
Felipe
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Felipe Tonello schreef op 10-12-13 02:17:
Quoted 6 lines
It does split into packages. I splited it up in packages just so if the user wants to have different backend options, it can.
The problem with this aproach, is that you will add the apt and opkg dependency to the build even if the user doesn't care about it. I don't like this option to be honest.
It's only 2 small build time dependencies saving a lot of rebuilding and runtime headaches.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org
iD8DBQFSpt5EMkyGM64RGpERAuUXAKClv7R7D5BQ2HAHq/izXFFasdIgTwCgmxGS ABJMGP0RcNAnlQNUb24eXds=
=Dzav
-----END PGP SIGNATURE-----
Hi Koen,
Quoted 8 lines · Koen Kooi
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Felipe Tonello schreef op 10-12-13 02:17:
Quoted 3 lines
It does split into packages. I splited it up in packages just so if the user wants to have different backend options, it can.
Quoted 6 lines
Quoted 3 lines
The problem with this aproach, is that you will add the apt and opkg dependency to the build even if the user doesn't care about it. I don't like this option to be honest.
It's only 2 small build time dependencies saving a lot of rebuilding and runtime headaches.
So what's your suggestion for me to fix this patch?
Felipe
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Felipe Ferreri Tonello schreef op 10-12-13 18:29:
Quoted 10 lines
Hi Koen,
Quoted 7 lines · Koen Kooi
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Felipe Tonello schreef op 10-12-13 02:17:
Quoted 3 lines
It does split into packages. I splited it up in packages just so if the user wants to have different backend options, it can.
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
The problem with this aproach, is that you will add the apt and opkg dependency to the build even if the user doesn't care about it. I don't like this option to be honest.
It's only 2 small build time dependencies saving a lot of rebuilding and runtime headaches.
So what's your suggestion for me to fix this patch?
Go with option 2)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org
iD8DBQFSqCUEMkyGM64RGpERAppbAJ9UDWDc1ahBy8J5pneh3rYvZsborQCgoYoI RU9Y/n8RZeflFP/tNjrr7QU=
=ro0O
-----END PGP SIGNATURE-----
Hi Koen,
Quoted 18 lines · Koen Kooi
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Felipe Ferreri Tonello schreef op 10-12-13 18:29:
Quoted 14 lines
Hi Koen,
Quoted 11 lines · Koen Kooi
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Felipe Tonello schreef op 10-12-13 02:17:
Quoted 6 lines
It does split into packages. I splited it up in packages just so if the user wants to have different backend options, it can.
The problem with this aproach, is that you will add the apt and opkg dependency to the build even if the user doesn't care about it. I don't like this option to be honest.
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
It's only 2 small build time dependencies saving a lot of rebuilding and runtime headaches.
So what's your suggestion for me to fix this patch?
Go with option 2)
What do you suggest to do with regards the "--with-default-backend=" configure param?
Felipe