From: Martin Jansa <martin.jansa@gmail.com>
To: "Andreas Müller" <schnitzeltony@gmail.com>
Cc: openembeded-devel <openembedded-devel@lists.openembedded.org>
Subject: Re: [RFC meta-gnome][PATCH 04/16] accountsservice: add recipe for Accounts Service
Date: Tue, 30 Oct 2018 12:48:58 +0100 [thread overview]
Message-ID: <20181030114858.GA1380@jama> (raw)
In-Reply-To: <CALbNGRSf1FU_cT0BEmBgNZmiDYEEAHDApy8a=6vvAsHF-1E0-w@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 6426 bytes --]
On Mon, Oct 29, 2018 at 11:43:09PM +0100, Andreas Müller wrote:
> On Mon, Oct 29, 2018 at 5:41 PM brendank310 <brendank310@gmail.com> wrote:
> >
> > From: Brendan Kerrigan <kerriganb@ainfosec.com>
> >
> > Signed-off-by: Brendan Kerrigan <kerriganb@ainfosec.com>
> > ---
> > .../accountsservice/0001-strip-out-intl.patch | 104 ++++++++++++++++++
> > .../gnome3/accountsservice_git.bb | 24 ++++
> > 2 files changed, 128 insertions(+)
> > create mode 100644 meta-gnome/recipes-gnome/gnome3/accountsservice/0001-strip-out-intl.patch
> > create mode 100644 meta-gnome/recipes-gnome/gnome3/accountsservice_git.bb
> >
> > diff --git a/meta-gnome/recipes-gnome/gnome3/accountsservice/0001-strip-out-intl.patch b/meta-gnome/recipes-gnome/gnome3/accountsservice/0001-strip-out-intl.patch
> > new file mode 100644
> > index 000000000..622b3335d
> > --- /dev/null
> > +++ b/meta-gnome/recipes-gnome/gnome3/accountsservice/0001-strip-out-intl.patch
> > @@ -0,0 +1,104 @@
> > +accountsservice: Remove internationalization
> > +
> > + The i18n internationalization fails within the OE
> > + environment.
> > +
> > + Upstream-Status: Inappropriate [disable-feature]
> > +
> > + Signed-off-by: Brendan Kerrigan <kerriganb@ainfosec.com>
> > +
> > +diff --git a/data/meson.build b/data/meson.build
> > +index 4987937..6274e5d 100644
> > +--- a/data/meson.build
> > ++++ b/data/meson.build
> > +@@ -28,15 +28,6 @@ configure_file(
> > +
> > + policy = act_namespace.to_lower() + '.policy'
> > +
> > +-i18n.merge_file(
> > +- policy,
> > +- input: policy + '.in',
> > +- output: policy,
> > +- po_dir: po_dir,
> > +- install: true,
> > +- install_dir: policy_dir,
> > +-)
> > +-
> > + if install_systemd_unit_dir
> > + service = 'accounts-daemon.service'
> > +
> > +diff --git a/meson.build b/meson.build
> > +index 77b6a3f..7da5d5d 100644
> > +--- a/meson.build
> > ++++ b/meson.build
> > +@@ -25,8 +25,6 @@ act_pkgincludedir = join_paths(act_includedir, act_api_name)
> > +
> > + act_namespace = 'org.freedesktop.Accounts'
> > +
> > +-act_gettext = 'accounts-service'
> > +-
> > + soversion = 0
> > + current = 0
> > + revision = 0
> > +@@ -35,11 +33,9 @@ libversion = '@0@.@1@.@2@'.format(soversion, current, revision)
> > + act_buildtype = get_option('buildtype')
> > +
> > + gnome = import('gnome')
> > +-i18n = import('i18n')
> > + pkg = import('pkgconfig')
> > +
> > + data_dir = join_paths(meson.current_source_dir(), 'data')
> > +-po_dir = join_paths(meson.current_source_dir(), 'po')
> > +
> > + top_inc = include_directories('.')
> > +
> > +@@ -52,9 +48,6 @@ config_h.set_quoted('VERSION', act_version)
> > + config_h.set('_DEFAULT_SOURCE', true)
> > + config_h.set('_GNU_SOURCE', true)
> > +
> > +-# i18n
> > +-config_h.set_quoted('GETTEXT_PACKAGE', act_gettext)
> > +-
> > + # headers
> > + check_headers = [
> > + 'paths.h',
> > +@@ -182,7 +175,6 @@ config_h.set('WITH_SYSTEMD', enable_systemd or enable_elogind)
> > +
> > + subdir('data')
> > + subdir('src')
> > +-subdir('po')
> > +
> > + enable_docbook = get_option('docbook')
> > + if enable_docbook
> > +diff --git a/src/libaccountsservice/act-user-manager.c b/src/libaccountsservice/act-user-manager.c
> > +index 12be9cb..712db6c 100644
> > +--- a/src/libaccountsservice/act-user-manager.c
> > ++++ b/src/libaccountsservice/act-user-manager.c
> > +@@ -35,7 +35,6 @@
> > + #endif /* HAVE_PATHS_H */
> > +
> > + #include <glib.h>
> > +-#include <glib/gi18n-lib.h>
> > + #include <glib/gstdio.h>
> > + #include <glib-object.h>
> > + #include <gio/gio.h>
> > +diff --git a/src/main.c b/src/main.c
> > +index 9caec7f..acbd422 100644
> > +--- a/src/main.c
> > ++++ b/src/main.c
> > +@@ -155,7 +155,6 @@ main (int argc, char *argv[])
> > + };
> > +
> > + setlocale (LC_ALL, "");
> > +- bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
> > +
> > + #if !GLIB_CHECK_VERSION (2, 35, 3)
> > + g_type_init ();
> > +@@ -167,7 +166,6 @@ main (int argc, char *argv[])
> > + }
> > +
> > + context = g_option_context_new ("");
> > +- g_option_context_set_translation_domain (context, GETTEXT_PACKAGE);
> > + g_option_context_set_summary (context, _("Provides D-Bus interfaces for querying and manipulating\nuser account information."));
> > + g_option_context_add_main_entries (context, entries, NULL);
> > + if (!g_option_context_parse (context, &argc, &argv, &error)) {
> > diff --git a/meta-gnome/recipes-gnome/gnome3/accountsservice_git.bb b/meta-gnome/recipes-gnome/gnome3/accountsservice_git.bb
> > new file mode 100644
> > index 000000000..a019a8c6d
> > --- /dev/null
> > +++ b/meta-gnome/recipes-gnome/gnome3/accountsservice_git.bb
> > @@ -0,0 +1,24 @@
> > +DESCRIPTION = "Accounts Service"
> > +LICENSE = "GPLv3"
> > +DEPENDS = " \
> > + glib-2.0 \
> > + gsettings-desktop-schemas \
> > + polkit \
> > + dbus \
> > + "
> > +
> > +LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
> > +
> > +SRC_URI = "git://anongit.freedesktop.org/accountsservice.git;protocol=git;branch=master \
protocol=git and branch=master are default, please drop them.
> > + file://0001-strip-out-intl.patch \
> > + "
> > +
> > +FILES_${PN} += "${systemd_system_unitdir}"
> > +FILES_${PN} += "${datadir}"
> ^ I hate styleguide nitpickers :) - but please put this into one
> statement and to the end of the recipe.
Please while doing these styleguide changes, please use 4 spaces for
indentation *everywhere* and the closing " for multiline variables
should be first character on separate line (not indented).
This does apply to other changes in this patch series as well.
> > +FILES_${PN} += "${libdir}"
> ^ Is this required?
> > +
> > +SRCREV="${AUTOREV}"
> ^ No AUTOREV - set a commid ID
And set PV to something meaningful while doing that.
> > +S = "${WORKDIR}/git"
> > +
> > +inherit pkgconfig meson gobject-introspection
> > +
> > --
> > 2.17.1
> >
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 201 bytes --]
next prev parent reply other threads:[~2018-10-30 11:48 UTC|newest]
Thread overview: 64+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-29 16:40 [RFC meta-gnome][PATCH 00/16] Add gnome-shell support brendank310
2018-10-29 16:40 ` [RFC meta-gnome][PATCH 01/16] sassc: add recipes for libsass-native and sassc-native brendank310
2018-10-30 12:10 ` Burton, Ross
2018-10-29 16:40 ` [RFC meta-gnome][PATCH 02/16] ibus: add recipe for ibus to support gnome-settings-daemon and gnome-shell brendank310
2018-10-29 22:33 ` Andreas Müller
2018-10-30 2:38 ` Khem Raj
2018-10-30 11:24 ` Burton, Ross
2018-11-08 17:27 ` Brendan Kerrigan
2018-11-08 18:32 ` Khem Raj
2018-11-08 23:12 ` Burton, Ross
2018-11-08 23:13 ` Burton, Ross
2018-10-29 16:41 ` [RFC meta-gnome][PATCH 03/16] gjs: add a recipe for gjs (Gnome JavaScript engine) brendank310
2018-10-29 18:07 ` Burton, Ross
2018-10-29 18:28 ` Brendan Kerrigan
2018-10-29 16:41 ` [RFC meta-gnome][PATCH 04/16] accountsservice: add recipe for Accounts Service brendank310
2018-10-29 22:43 ` Andreas Müller
2018-10-30 11:48 ` Martin Jansa [this message]
2018-10-30 11:30 ` Burton, Ross
2018-10-29 16:41 ` [RFC meta-gnome][PATCH 05/16] lcms2: add recipe for Little Color Management System brendank310
2018-10-29 22:46 ` Andreas Müller
2018-10-30 2:41 ` Khem Raj
2018-10-30 11:22 ` Burton, Ross
2018-10-30 15:03 ` Brendan Kerrigan
2018-10-30 21:07 ` Khem Raj
2018-10-30 23:08 ` Andreas Müller
2018-10-29 16:41 ` [RFC meta-gnome][PATCH 06/16] gnome-settings-daemon: add recipe for gnome-settings-daemon brendank310
2018-10-30 2:53 ` Khem Raj
2018-10-29 16:41 ` [RFC meta-gnome][PATCH 07/16] geocode-glib: add recipe for geocode-glib library brendank310
2018-10-30 2:52 ` Khem Raj
2018-10-30 11:16 ` Burton, Ross
2018-10-29 16:41 ` [RFC meta-gnome][PATCH 08/16] libgweather: add recipe for libgweather brendank310
2018-10-30 2:49 ` Khem Raj
2018-10-30 11:18 ` Burton, Ross
2018-10-29 16:41 ` [RFC meta-gnome][PATCH 09/16] gdm: add recipe for gdm (Gnome Desktop Manager) brendank310
2018-10-29 22:51 ` Andreas Müller
2018-10-30 11:33 ` Burton, Ross
2018-10-29 16:41 ` [RFC meta-gnome][PATCH 10/16] dconf-native: add dconf-native recipe brendank310
2018-10-29 18:06 ` Burton, Ross
2018-10-29 18:27 ` Brendan Kerrigan
2018-10-29 19:30 ` Khem Raj
2018-10-29 21:17 ` Burton, Ross
2018-10-29 16:41 ` [RFC meta-gnome][PATCH 11/16] libwacom: add recipe for libwacom brendank310
2018-10-29 16:41 ` [RFC meta-gnome][PATCH 12/16] mutter: add recipe for mutter window manager brendank310
2018-10-30 2:47 ` Khem Raj
2018-10-30 11:21 ` Burton, Ross
2018-10-29 16:41 ` [RFC meta-gnome][PATCH 13/16] gnome-shell: add recipe for gnome-shell brendank310
2018-10-30 2:44 ` Khem Raj
2018-10-30 11:20 ` Burton, Ross
2018-10-29 16:41 ` [RFC meta-gnome][PATCH 14/16] packagegroup-gnome3-base: add packagegroup for installing gnome3/gnome-shell brendank310
2018-10-29 23:03 ` Andreas Müller
2018-10-30 11:32 ` Burton, Ross
2018-10-30 12:00 ` Burton, Ross
2018-10-29 16:41 ` [RFC meta-gnome][PATCH 15/16] gnome-shell-extensions: add recipe for gnome-shell-extensions brendank310
2018-10-29 23:06 ` Andreas Müller
2018-10-30 11:31 ` Burton, Ross
2018-10-29 16:41 ` [RFC meta-gnome][PATCH 16/16] gnome-tweak-tool: add recipe for the GNOME Tweak tool brendank310
2018-10-29 23:09 ` Andreas Müller
2018-10-30 2:32 ` Khem Raj
2018-10-30 11:54 ` Burton, Ross
2018-10-29 22:34 ` [RFC meta-gnome][PATCH 00/16] Add gnome-shell support Andreas Müller
2018-10-31 13:17 ` Brendan Kerrigan
2018-10-31 13:30 ` Andreas Müller
2018-11-06 20:11 ` Alexander Kanavin
2018-11-07 20:24 ` Khem Raj
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181030114858.GA1380@jama \
--to=martin.jansa@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
--cc=schnitzeltony@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.