Skip to contentSkip to conversation

117/124: libuser: remove

oe-commits Robert Yang 2 participants 2 messages May 7, 2018 – May 8, 2018 2 messages not in the archive

lore
Share & tools
lore
#2 lore raw
In reply to a message not in the archive

Hi Ross,

The recipe meta-openembedded/meta-gnome/recipes-support/usermode/usermode_1.111.bb

depends on libuser, so may be we need add libuser to meta-gnome, please ?

// Robert

Quoted 231 lines · On 05/04/2018 04:57 PM, [email protected] wrote:

This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 11ee7989b2f0709119c450819cd66bad70082a93
Author: Ross Burton <[email protected]>
AuthorDate: Fri Apr 27 20:10:24 2018 +0100

libuser: remove

This isn't used by anything in oe-core (or in common use in general, only one package in Debian depends on it), so remove it from oe-core.

---
  meta/conf/distro/include/maintainers.inc           |  1 -
  .../libuser/libuser/0001-Check-for-issetugid.patch | 62 ----------------------
  ...es.c-parse_field-fix-string-formating-in-.patch | 34 ------------
  .../libuser/0002-remove-unused-execinfo.h.patch    | 27 ----------
  meta/recipes-extended/libuser/libuser_0.62.bb      | 35 ------------
  .../packagegroup-core-full-cmdline.bb              |  1 -
  6 files changed, 160 deletions(-)
meta/conf/distro/include/maintainers.inc +0 -1
index c2ab132..4fb9fc2 100644
@@ -387,7 +387,6 @@ RECIPE_MAINTAINER_pn-liburcu = "Alexander Kanavin <[email protected]>"
  RECIPE_MAINTAINER_pn-liburi-perl = "Tim Orling <[email protected]>"
  RECIPE_MAINTAINER_pn-libusb-compat = "Maxin B. John <[email protected]>"
  RECIPE_MAINTAINER_pn-libusb1 = "Maxin B. John <[email protected]>"
-RECIPE_MAINTAINER_pn-libuser = "Robert Yang <[email protected]>"
  RECIPE_MAINTAINER_pn-libva = "Anuj Mittal <[email protected]>"
  RECIPE_MAINTAINER_pn-libva-utils = "Anuj Mittal <[email protected]>"
  RECIPE_MAINTAINER_pn-libvorbis = "Tanu Kaskinen <[email protected]>"
meta/recipes-extended/libuser/libuser/0001-Check-for-issetugid.patch deleted +0 -62
deleted file mode 100644
index 79756b9..0000000
@@ -1,62 +0,0 @@
-From d0537cb7f2dc5877700ad78dfd191515379d4edc Mon Sep 17 00:00:00 2001
-From: Khem Raj <[email protected]>
-Date: Thu, 7 Jan 2016 02:22:51 +0000
-Subject: [PATCH 1/2] Check for issetugid()
-
-If secure version of getenv is not there then we can use
-issetugid() as aid to call getenv()
-
-Signed-off-by: Khem Raj <[email protected]>
----
-Upstream-Status: Pending
-
- configure.ac |  1 +
- lib/config.c | 12 +++++++++++-
- 2 files changed, 12 insertions(+), 1 deletion(-)
-
-diff --git a/configure.ac b/configure.ac
-index 1ded1a2..ee19e1f 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -125,6 +125,7 @@ AC_TYPE_OFF_T
- AC_TYPE_SIZE_T
-
- AC_CHECK_FUNCS([__secure_getenv secure_getenv])
-+AC_CHECK_FUNCS([issetugid])
-
- # Modify CFLAGS after all tests are run (some of them could fail because
- # of the -Werror).
-diff --git a/lib/config.c b/lib/config.c
-index 29e7120..30f9daf 100644
---- a/lib/config.c
-+++ b/lib/config.c
-@@ -44,8 +44,10 @@
- #  define safe_getenv(string) secure_getenv(string)
- #elif defined(HAVE___SECURE_GETENV)
- #  define safe_getenv(string) __secure_getenv(string)
-+#elif defined(HAVE_ISSETUGID)
-+#  define safe_getenv(string) safe_getenv_issetugid(string)
- #else
--#  error Neither secure_getenv not __secure_getenv are available
-+#  error None of secure_getenv, __secure_getenv, or issetugid is available
- #endif
-
- struct config_config {
-@@ -59,6 +61,14 @@ struct config_key {
- 	GList *values;
- };
-
-+static const char*
-+safe_getenv_issetugid(const char* name)
-+{
-+	if (issetugid ())
-+		return 0;
-+	return getenv (name);
-+}
-+
- /* Compare two section names */
- static int
- compare_section_names(gconstpointer a, gconstpointer b)
---
-2.7.0
-
meta/recipes-extended/libuser/libuser/0001-modules-files.c-parse_field-fix-string-formating-in-.patch deleted +0 -34
deleted file mode 100644
index 7c47df2..0000000
@@ -1,34 +0,0 @@
-From a4857911ece5ebfcdef42aee4c070eb216f39597 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?An=C3=ADbal=20Lim=C3=B3n?= <[email protected]>
-Date: Fri, 13 May 2016 11:40:13 -0500
-Subject: [PATCH] modules/files.c: parse_field fix string formating in
- g_warnings
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-[YOCTO #9547]
-
-Signed-off-by: Aníbal Limón <[email protected]>
-
-Upstream-Status: Pending
----
- modules/files.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/modules/files.c b/modules/files.c
-index 4ef0a57..35eafc9 100644
---- a/modules/files.c
-+++ b/modules/files.c
-@@ -534,7 +534,7 @@ parse_field(const struct format_specifier *format, GValue *value,
- 						 string, &err);
- 	if (ret == FALSE) {
- 		g_assert(err != NULL);
--		g_warning(lu_strerror(err));
-+		g_warning(lu_strerror(err), NULL);
- 		lu_error_free(&err);
- 	}
- 	return ret;
---
-2.1.4
-
meta/recipes-extended/libuser/libuser/0002-remove-unused-execinfo.h.patch deleted +0 -27
deleted file mode 100644
index 4bc0219..0000000
@@ -1,27 +0,0 @@
-From 4b2f81f307ffeac12956e5c16e894e5ebb937ea5 Mon Sep 17 00:00:00 2001
-From: Khem Raj <[email protected]>
-Date: Thu, 7 Jan 2016 02:26:00 +0000
-Subject: [PATCH 2/2] remove unused execinfo.h
-
-Signed-off-by: Khem Raj <[email protected]>
----
-Upstream-Status: Pending
-
- lib/error.c | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/lib/error.c b/lib/error.c
-index a5ec30a..443e601 100644
---- a/lib/error.c
-+++ b/lib/error.c
-@@ -18,7 +18,6 @@
- #include <config.h>
- #include <sys/types.h>
- #include <errno.h>
--#include <execinfo.h>
- #include <libintl.h>
- #include <stdarg.h>
- #include <stdlib.h>
---
-2.7.0
-
meta/recipes-extended/libuser/libuser_0.62.bb deleted +0 -35
deleted file mode 100644
index 7ec54eb..0000000
@@ -1,35 +0,0 @@
-SUMMARY = "user and group account administration library"
-DESCRIPTION = "The libuser library implements a standardized interface for manipulating and administering user \
-and group accounts"
-HOMEPAGE = "https://pagure.io/libuser"
-BUGTRACKER = "https://pagure.io/libuser/issues"
-
-LICENSE = "LGPLv2"
-LIC_FILES_CHKSUM = "file://COPYING;md5=5f30f0716dfdd0d91eb439ebec522ec2 \
-                    file://lib/user.h;endline=19;md5=76b301f63c39fa992062395efbdc9558 \
-                    file://samples/testuser.c;endline=19;md5=3b87fa660fa3f4a6bb31d624afe30ba1"
-
-SECTION = "base"
-
-SRC_URI = "https://releases.pagure.org/libuser/libuser-${PV}.tar.xz \
-           file://0001-Check-for-issetugid.patch \
-           file://0002-remove-unused-execinfo.h.patch \
-           file://0001-modules-files.c-parse_field-fix-string-formating-in-.patch \
-           "
-
-SRC_URI[md5sum] = "63e5e5c551e99dc5302b40b80bd6d4f2"
-SRC_URI[sha256sum] = "a58ff4fabb01a25043b142185a33eeea961109dd60d4b40b6a9df4fa3cace20b"
-
-DEPENDS = "popt libpam glib-2.0 python3"
-
-inherit distro_features_check
-REQUIRED_DISTRO_FEATURES = "pam"
-
-inherit autotools gettext python3native python3-dir pkgconfig gtk-doc
-
-EXTRA_OEMAKE = "PYTHON_CPPFLAGS=-I${STAGING_INCDIR}/${PYTHON_DIR}${PYTHON_ABI}"
-
-PACKAGES += "${PN}-python "
-
-FILES_${PN}-python = "${PYTHON_SITEPACKAGES_DIR}"
-
meta/recipes-extended/packagegroups/packagegroup-core-full-cmdline.bb +0 -1
index 9002fbc..92881e9 100644
@@ -129,7 +129,6 @@ RDEPENDS_packagegroup-core-full-cmdline-initscripts = "\
  RDEPENDS_packagegroup-core-full-cmdline-multiuser = "\
      cracklib \
      gzip \
-    ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libuser', '', d)} \
      shadow \
      sudo \
      "
#3 lore raw
Quoted 7 lines · Robert Yang

Hi Ross,

The recipe meta-openembedded/meta-gnome/recipes-support/usermode/usermode_1.111.bb

depends on libuser, so may be we need add libuser to meta-gnome, please ?

I've sent the patch to oe-dev which add liubuser to meta-gnome.

//Hongxu

Quoted 255 lines

// Robert

Quoted 250 lines · On 05/04/2018 04:57 PM, [email protected] wrote:

This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 11ee7989b2f0709119c450819cd66bad70082a93
Author: Ross Burton <[email protected]>
AuthorDate: Fri Apr 27 20:10:24 2018 +0100

     libuser: remove
          This isn't used by anything in oe-core (or in common use in general, only one package in Debian depends on it), so remove it from oe-core.

---
  meta/conf/distro/include/maintainers.inc           |  1 - .../libuser/libuser/0001-Check-for-issetugid.patch | 62
----------------------
  ...es.c-parse_field-fix-string-formating-in-.patch | 34 ------------ .../libuser/0002-remove-unused-execinfo.h.patch    | 27 ---------- meta/recipes-extended/libuser/libuser_0.62.bb      | 35 ------------ .../packagegroup-core-full-cmdline.bb              |  1 -

  6 files changed, 160 deletions(-)
meta/conf/distro/include/maintainers.inc +0 -0
index c2ab132..4fb9fc2 100644
@@ -387,7 +387,6 @@ RECIPE_MAINTAINER_pn-liburcu = "Alexander Kanavin 

<[email protected]>"
  RECIPE_MAINTAINER_pn-liburi-perl = "Tim Orling <[email protected]>" RECIPE_MAINTAINER_pn-libusb-compat = "Maxin B. John <[email protected]>" RECIPE_MAINTAINER_pn-libusb1 = "Maxin B. John <[email protected]>" -RECIPE_MAINTAINER_pn-libuser = "Robert Yang <[email protected]>"
  RECIPE_MAINTAINER_pn-libva = "Anuj Mittal <[email protected]>" RECIPE_MAINTAINER_pn-libva-utils = "Anuj Mittal <[email protected]>" RECIPE_MAINTAINER_pn-libvorbis = "Tanu Kaskinen <[email protected]>"

meta/recipes-extended/libuser/libuser/0001-Check-for-issetugid.patch deleted +0 -1
deleted file mode 100644
index 79756b9..0000000
--- 

a/meta/recipes-extended/libuser/libuser/0001-Check-for-issetugid.patch +++ /dev/null

meta/recipes-extended/libuser/libuser/0001-Check-for-issetugid.patch deleted +0 -27
@@ -1,62 +0,0 @@
-From d0537cb7f2dc5877700ad78dfd191515379d4edc Mon Sep 17 00:00:00 2001
-From: Khem Raj <[email protected]>
-Date: Thu, 7 Jan 2016 02:22:51 +0000
-Subject: [PATCH 1/2] Check for issetugid()
-
-If secure version of getenv is not there then we can use
-issetugid() as aid to call getenv()
-
-Signed-off-by: Khem Raj <[email protected]>
----
-Upstream-Status: Pending
-
- configure.ac |  1 +
- lib/config.c | 12 +++++++++++-
- 2 files changed, 12 insertions(+), 1 deletion(-)
-
-diff --git a/configure.ac b/configure.ac
-index 1ded1a2..ee19e1f 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -125,6 +125,7 @@ AC_TYPE_OFF_T
- AC_TYPE_SIZE_T
-
- AC_CHECK_FUNCS([__secure_getenv secure_getenv])
-+AC_CHECK_FUNCS([issetugid])
-
- # Modify CFLAGS after all tests are run (some of them could fail 

because
- # of the -Werror).

meta/recipes-extended/libuser/libuser/0001-Check-for-issetugid.patch deleted +0 -13
-diff --git a/lib/config.c b/lib/config.c
-index 29e7120..30f9daf 100644
---- a/lib/config.c
-+++ b/lib/config.c
-@@ -44,8 +44,10 @@
- #  define safe_getenv(string) secure_getenv(string)
- #elif defined(HAVE___SECURE_GETENV)
- #  define safe_getenv(string) __secure_getenv(string)
-+#elif defined(HAVE_ISSETUGID)
-+#  define safe_getenv(string) safe_getenv_issetugid(string)
- #else
--#  error Neither secure_getenv not __secure_getenv are available
-+#  error None of secure_getenv, __secure_getenv, or issetugid is 

available
- #endif

meta/recipes-extended/libuser/libuser/0001-Check-for-issetugid.patch deleted +0 -20
-
- struct config_config {
-@@ -59,6 +61,14 @@ struct config_key {
-     GList *values;
- };
-
-+static const char*
-+safe_getenv_issetugid(const char* name)
-+{
-+    if (issetugid ())
-+        return 0;
-+    return getenv (name);
-+}
-+
- /* Compare two section names */
- static int
- compare_section_names(gconstpointer a, gconstpointer b)
---
-2.7.0
-
meta/recipes-extended/libuser/libuser/0001-modules-files.c-parse_field-fix-string-formating-in-.patch +0 -0

deleted file mode 100644
index 7c47df2..0000000
---
a/meta/recipes-extended/libuser/libuser/0001-modules-files.c-parse_field-fix-string-formating-in-.patch +++ /dev/null

meta/recipes-extended/libuser/libuser/0001-modules-files.c-parse_field-fix-string-formating-in-.patch +0 -2
@@ -1,34 +0,0 @@
-From a4857911ece5ebfcdef42aee4c070eb216f39597 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?An=C3=ADbal=20Lim=C3=B3n?= 

<[email protected]>

meta/recipes-extended/libuser/libuser/0001-modules-files.c-parse_field-fix-string-formating-in-.patch +0 -21
-Date: Fri, 13 May 2016 11:40:13 -0500
-Subject: [PATCH] modules/files.c: parse_field fix string formating in
- g_warnings
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-[YOCTO #9547]
-
-Signed-off-by: Aníbal Limón <[email protected]>
-
-Upstream-Status: Pending
----
- modules/files.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/modules/files.c b/modules/files.c
-index 4ef0a57..35eafc9 100644
---- a/modules/files.c
-+++ b/modules/files.c
-@@ -534,7 +534,7 @@ parse_field(const struct format_specifier 

*format, GValue *value,
-                          string, &err);
-     if (ret == FALSE) {
-         g_assert(err != NULL);
--        g_warning(lu_strerror(err));
-+        g_warning(lu_strerror(err), NULL);
-         lu_error_free(&err);
-     }
-     return ret;
---
-2.1.4

meta/recipes-extended/libuser/libuser/0001-modules-files.c-parse_field-fix-string-formating-in-.patch +0 -1
-
meta/recipes-extended/libuser/libuser/0002-remove-unused-execinfo.h.patch +0 -0

deleted file mode 100644
index 4bc0219..0000000
---
a/meta/recipes-extended/libuser/libuser/0002-remove-unused-execinfo.h.patch +++ /dev/null

meta/recipes-extended/libuser/libuser/0002-remove-unused-execinfo.h.patch +0 -27
@@ -1,27 +0,0 @@
-From 4b2f81f307ffeac12956e5c16e894e5ebb937ea5 Mon Sep 17 00:00:00 2001
-From: Khem Raj <[email protected]>
-Date: Thu, 7 Jan 2016 02:26:00 +0000
-Subject: [PATCH 2/2] remove unused execinfo.h
-
-Signed-off-by: Khem Raj <[email protected]>
----
-Upstream-Status: Pending
-
- lib/error.c | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/lib/error.c b/lib/error.c
-index a5ec30a..443e601 100644
---- a/lib/error.c
-+++ b/lib/error.c
-@@ -18,7 +18,6 @@
- #include <config.h>
- #include <sys/types.h>
- #include <errno.h>
--#include <execinfo.h>
- #include <libintl.h>
- #include <stdarg.h>
- #include <stdlib.h>
---
-2.7.0
-
meta/recipes-extended/libuser/libuser_0.62.bb deleted +0 -2
deleted file mode 100644
index 7ec54eb..0000000
@@ -1,35 +0,0 @@
-SUMMARY = "user and group account administration library"
-DESCRIPTION = "The libuser library implements a standardized 

interface for manipulating and administering user \

meta/recipes-extended/libuser/libuser_0.62.bb deleted +0 -6
-and group accounts"
-HOMEPAGE = "https://pagure.io/libuser"
-BUGTRACKER = "https://pagure.io/libuser/issues"
-
-LICENSE = "LGPLv2"
-LIC_FILES_CHKSUM = 

"file://COPYING;md5=5f30f0716dfdd0d91eb439ebec522ec2 \
- file://lib/user.h;endline=19;md5=76b301f63c39fa992062395efbdc9558 \
- file://samples/testuser.c;endline=19;md5=3b87fa660fa3f4a6bb31d624afe30ba1"

meta/recipes-extended/libuser/libuser_0.62.bb deleted +0 -7
-
-SECTION = "base"
-
-SRC_URI = "https://releases.pagure.org/libuser/libuser-${PV}.tar.xz \
-           file://0001-Check-for-issetugid.patch \
-           file://0002-remove-unused-execinfo.h.patch \
- 

file://0001-modules-files.c-parse_field-fix-string-formating-in-.patch \
-           "

meta/recipes-extended/libuser/libuser_0.62.bb deleted +0 -3
-
-SRC_URI[md5sum] = "63e5e5c551e99dc5302b40b80bd6d4f2"
-SRC_URI[sha256sum] = 

"a58ff4fabb01a25043b142185a33eeea961109dd60d4b40b6a9df4fa3cace20b"

meta/recipes-extended/libuser/libuser_0.62.bb deleted +0 -9
-
-DEPENDS = "popt libpam glib-2.0 python3"
-
-inherit distro_features_check
-REQUIRED_DISTRO_FEATURES = "pam"
-
-inherit autotools gettext python3native python3-dir pkgconfig gtk-doc
-
-EXTRA_OEMAKE = 

"PYTHON_CPPFLAGS=-I${STAGING_INCDIR}/${PYTHON_DIR}${PYTHON_ABI}"

meta/recipes-extended/libuser/libuser_0.62.bb deleted +0 -5
-
-PACKAGES += "${PN}-python "
-
-FILES_${PN}-python = "${PYTHON_SITEPACKAGES_DIR}"
-
meta/recipes-extended/packagegroups/packagegroup-core-full-cmdline.bb +0 -1
index 9002fbc..92881e9 100644
--- 

a/meta/recipes-extended/packagegroups/packagegroup-core-full-cmdline.bb
+++
b/meta/recipes-extended/packagegroups/packagegroup-core-full-cmdline.bb

meta/recipes-extended/packagegroups/packagegroup-core-full-cmdline.bb +0 -1
@@ -129,7 +129,6 @@ 
 RDEPENDS_packagegroup-core-full-cmdline-initscripts = "\
   RDEPENDS_packagegroup-core-full-cmdline-multiuser = "\
       cracklib \
       gzip \
-    ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libuser', '', d)} \
       shadow \
       sudo \

      "