* [PATCH 0/2] replace USE_LDCONFIG with ldconfig distro feature
@ 2017-01-27 22:29 Andre McCurdy
2017-01-27 22:29 ` [PATCH 1/2] bitbake.conf: replace USE_LDCONFIG with new "ldconfig" " Andre McCurdy
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Andre McCurdy @ 2017-01-27 22:29 UTC (permalink / raw)
To: openembedded-core
Andre McCurdy (2):
bitbake.conf: replace USE_LDCONFIG with new "ldconfig" distro feature
systemd: check "ldconfig" distro feature when setting PACKAGECONFIG
meta/classes/package.bbclass | 5 +----
meta/conf/bitbake.conf | 2 +-
meta/recipes-core/glibc/glibc-package.inc | 9 +++------
meta/recipes-core/systemd/systemd_232.bb | 2 +-
4 files changed, 6 insertions(+), 12 deletions(-)
--
1.9.1
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/2] bitbake.conf: replace USE_LDCONFIG with new "ldconfig" distro feature
2017-01-27 22:29 [PATCH 0/2] replace USE_LDCONFIG with ldconfig distro feature Andre McCurdy
@ 2017-01-27 22:29 ` Andre McCurdy
2017-01-27 22:29 ` [PATCH 2/2] systemd: check "ldconfig" distro feature when setting PACKAGECONFIG Andre McCurdy
` (2 subsequent siblings)
3 siblings, 0 replies; 8+ messages in thread
From: Andre McCurdy @ 2017-01-27 22:29 UTC (permalink / raw)
To: openembedded-core
USE_LDCONFIG could previously be set to 0 by distros which do not
require ldconfig or ld.so.conf on the target. Since more and more
recipes may need to respect that option, replace the ad-hoc variable
with a distro feature.
Distros which previously set:
USE_LDCONFIG = "0"
Should now instead use:
DISTRO_FEATURES_BACKFILL_CONSIDERED_append = " ldconfig"
Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
---
meta/classes/package.bbclass | 5 +----
meta/conf/bitbake.conf | 2 +-
meta/recipes-core/glibc/glibc-package.inc | 9 +++------
3 files changed, 5 insertions(+), 11 deletions(-)
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index ac2d71c..d5c2d82 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -1618,10 +1618,7 @@ python package_do_shlibs() {
else:
snap_symlinks = False
- if (d.getVar('USE_LDCONFIG') or "1") == "1":
- use_ldconfig = True
- else:
- use_ldconfig = False
+ use_ldconfig = bb.utils.contains('DISTRO_FEATURES', 'ldconfig', True, False, d)
needed = {}
shlib_provider = oe.package.read_shlib_providers(d)
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index e421650..01fd144 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -769,7 +769,7 @@ MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS ?= ""
EXTRA_IMAGE_FEATURES ??= ""
IMAGE_FEATURES += "${EXTRA_IMAGE_FEATURES}"
-DISTRO_FEATURES_BACKFILL = "pulseaudio sysvinit bluez5 gobject-introspection-data"
+DISTRO_FEATURES_BACKFILL = "pulseaudio sysvinit bluez5 gobject-introspection-data ldconfig"
MACHINE_FEATURES_BACKFILL = "rtc qemu-usermode"
COMBINED_FEATURES = "${@oe.utils.set_intersect('DISTRO_FEATURES', 'MACHINE_FEATURES', d)}"
diff --git a/meta/recipes-core/glibc/glibc-package.inc b/meta/recipes-core/glibc/glibc-package.inc
index 481a00e..bb8dc2d 100644
--- a/meta/recipes-core/glibc/glibc-package.inc
+++ b/meta/recipes-core/glibc/glibc-package.inc
@@ -14,9 +14,6 @@ python __anonymous () {
d.getVar('TARGET_OS'))
}
-# Set this to zero if you don't want ldconfig in the output package
-USE_LDCONFIG ?= "1"
-
INHIBIT_SYSROOT_STRIP = "1"
PACKAGES = "${PN}-dbg catchsegv sln nscd ldd tzcode ${PN}-utils glibc-thread-db ${PN}-pic libcidn libmemusage libsegfault ${PN}-pcprofile libsotruss ${PN} glibc-extra-nss ${PN}-dev ${PN}-staticdev ${PN}-doc"
@@ -37,7 +34,7 @@ libc_baselibs = "${base_libdir}/libcrypt*.so.* ${base_libdir}/libcrypt-*.so ${ba
libc_baselibs_append_aarch64 = " /lib/ld-linux-aarch64*.so.1"
INSANE_SKIP_${PN}_append_aarch64 = " libdir"
-FILES_${PN} = "${libc_baselibs} ${libexecdir}/* ${@base_conditional('USE_LDCONFIG', '1', '${base_sbindir}/ldconfig ${sysconfdir}/ld.so.conf', '', d)}"
+FILES_${PN} = "${libc_baselibs} ${libexecdir}/* ${base_sbindir}/ldconfig ${sysconfdir}/ld.so.conf"
FILES_ldd = "${bindir}/ldd"
FILES_libsegfault = "${base_libdir}/libSegFault*"
FILES_libcidn = "${base_libdir}/libcidn-*.so ${base_libdir}/libcidn.so.*"
@@ -96,8 +93,8 @@ do_install_append () {
rm -f ${D}${infodir}/dir
fi
- if [ "${USE_LDCONFIG}" != "1" ]; then
- # We won't ship these files (see FILES above) so let's not install them
+ if ! ${@bb.utils.contains('DISTRO_FEATURES', 'ldconfig', 'true', 'false', d)}; then
+ # The distro doesn't want these files so let's not install them
rm -f ${D}${sysconfdir}/ld.so.conf
rm -f ${D}${base_sbindir}/ldconfig
# This directory will be empty now so remove it too.
--
1.9.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 2/2] systemd: check "ldconfig" distro feature when setting PACKAGECONFIG
2017-01-27 22:29 [PATCH 0/2] replace USE_LDCONFIG with ldconfig distro feature Andre McCurdy
2017-01-27 22:29 ` [PATCH 1/2] bitbake.conf: replace USE_LDCONFIG with new "ldconfig" " Andre McCurdy
@ 2017-01-27 22:29 ` Andre McCurdy
2017-02-03 1:07 ` [PATCH 0/2] replace USE_LDCONFIG with ldconfig distro feature Andre McCurdy
2017-02-03 1:44 ` Khem Raj
3 siblings, 0 replies; 8+ messages in thread
From: Andre McCurdy @ 2017-01-27 22:29 UTC (permalink / raw)
To: openembedded-core
Avoid trying to call ldconfig at run-time in distros which don't
provide ldconfig on the target.
Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
---
meta/recipes-core/systemd/systemd_232.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/recipes-core/systemd/systemd_232.bb b/meta/recipes-core/systemd/systemd_232.bb
index cc8781e..2b52227 100644
--- a/meta/recipes-core/systemd/systemd_232.bb
+++ b/meta/recipes-core/systemd/systemd_232.bb
@@ -40,7 +40,7 @@ SRC_URI_append_libc-uclibc = "\
SRC_URI_append_qemuall = " file://0001-core-device.c-Change-the-default-device-timeout-to-2.patch"
PACKAGECONFIG ??= "xz \
- ldconfig \
+ ${@bb.utils.contains('DISTRO_FEATURES', 'ldconfig', 'ldconfig', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xkbcommon', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)} \
--
1.9.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 0/2] replace USE_LDCONFIG with ldconfig distro feature
2017-01-27 22:29 [PATCH 0/2] replace USE_LDCONFIG with ldconfig distro feature Andre McCurdy
2017-01-27 22:29 ` [PATCH 1/2] bitbake.conf: replace USE_LDCONFIG with new "ldconfig" " Andre McCurdy
2017-01-27 22:29 ` [PATCH 2/2] systemd: check "ldconfig" distro feature when setting PACKAGECONFIG Andre McCurdy
@ 2017-02-03 1:07 ` Andre McCurdy
2017-02-03 1:44 ` Khem Raj
3 siblings, 0 replies; 8+ messages in thread
From: Andre McCurdy @ 2017-02-03 1:07 UTC (permalink / raw)
To: OE Core mailing list
On Fri, Jan 27, 2017 at 2:29 PM, Andre McCurdy <armccurdy@gmail.com> wrote:
> Andre McCurdy (2):
> bitbake.conf: replace USE_LDCONFIG with new "ldconfig" distro feature
> systemd: check "ldconfig" distro feature when setting PACKAGECONFIG
Ping!
> meta/classes/package.bbclass | 5 +----
> meta/conf/bitbake.conf | 2 +-
> meta/recipes-core/glibc/glibc-package.inc | 9 +++------
> meta/recipes-core/systemd/systemd_232.bb | 2 +-
> 4 files changed, 6 insertions(+), 12 deletions(-)
>
> --
> 1.9.1
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 0/2] replace USE_LDCONFIG with ldconfig distro feature
2017-01-27 22:29 [PATCH 0/2] replace USE_LDCONFIG with ldconfig distro feature Andre McCurdy
` (2 preceding siblings ...)
2017-02-03 1:07 ` [PATCH 0/2] replace USE_LDCONFIG with ldconfig distro feature Andre McCurdy
@ 2017-02-03 1:44 ` Khem Raj
2017-02-28 19:17 ` Andre McCurdy
3 siblings, 1 reply; 8+ messages in thread
From: Khem Raj @ 2017-02-03 1:44 UTC (permalink / raw)
To: Andre McCurdy; +Cc: Patches and discussions about the oe-core layer
On Fri, Jan 27, 2017 at 2:29 PM, Andre McCurdy <armccurdy@gmail.com> wrote:
> Andre McCurdy (2):
> bitbake.conf: replace USE_LDCONFIG with new "ldconfig" distro feature
> systemd: check "ldconfig" distro feature when setting PACKAGECONFIG
>
> meta/classes/package.bbclass | 5 +----
> meta/conf/bitbake.conf | 2 +-
> meta/recipes-core/glibc/glibc-package.inc | 9 +++------
> meta/recipes-core/systemd/systemd_232.bb | 2 +-
> 4 files changed, 6 insertions(+), 12 deletions(-)
This changeset looks good.
Acked-by: Khem Raj <raj.khem@gmail.com>
>
> --
> 1.9.1
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 0/2] replace USE_LDCONFIG with ldconfig distro feature
2017-02-03 1:44 ` Khem Raj
@ 2017-02-28 19:17 ` Andre McCurdy
2017-03-02 19:25 ` Andre McCurdy
0 siblings, 1 reply; 8+ messages in thread
From: Andre McCurdy @ 2017-02-28 19:17 UTC (permalink / raw)
To: Khem Raj; +Cc: Patches and discussions about the oe-core layer
On Thu, Feb 2, 2017 at 5:44 PM, Khem Raj <raj.khem@gmail.com> wrote:
> On Fri, Jan 27, 2017 at 2:29 PM, Andre McCurdy <armccurdy@gmail.com> wrote:
>> Andre McCurdy (2):
>> bitbake.conf: replace USE_LDCONFIG with new "ldconfig" distro feature
>> systemd: check "ldconfig" distro feature when setting PACKAGECONFIG
>>
>> meta/classes/package.bbclass | 5 +----
>> meta/conf/bitbake.conf | 2 +-
>> meta/recipes-core/glibc/glibc-package.inc | 9 +++------
>> meta/recipes-core/systemd/systemd_232.bb | 2 +-
>> 4 files changed, 6 insertions(+), 12 deletions(-)
>
> This changeset looks good.
>
> Acked-by: Khem Raj <raj.khem@gmail.com>
Ping.
>>
>> --
>> 1.9.1
>>
>> --
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 0/2] replace USE_LDCONFIG with ldconfig distro feature
2017-02-28 19:17 ` Andre McCurdy
@ 2017-03-02 19:25 ` Andre McCurdy
2017-03-02 20:14 ` Burton, Ross
0 siblings, 1 reply; 8+ messages in thread
From: Andre McCurdy @ 2017-03-02 19:25 UTC (permalink / raw)
To: Khem Raj; +Cc: Patches and discussions about the oe-core layer
On Tue, Feb 28, 2017 at 11:17 AM, Andre McCurdy <armccurdy@gmail.com> wrote:
> On Thu, Feb 2, 2017 at 5:44 PM, Khem Raj <raj.khem@gmail.com> wrote:
>> On Fri, Jan 27, 2017 at 2:29 PM, Andre McCurdy <armccurdy@gmail.com> wrote:
>>> Andre McCurdy (2):
>>> bitbake.conf: replace USE_LDCONFIG with new "ldconfig" distro feature
>>> systemd: check "ldconfig" distro feature when setting PACKAGECONFIG
>>>
>>> meta/classes/package.bbclass | 5 +----
>>> meta/conf/bitbake.conf | 2 +-
>>> meta/recipes-core/glibc/glibc-package.inc | 9 +++------
>>> meta/recipes-core/systemd/systemd_232.bb | 2 +-
>>> 4 files changed, 6 insertions(+), 12 deletions(-)
>>
>> This changeset looks good.
>>
>> Acked-by: Khem Raj <raj.khem@gmail.com>
>
> Ping.
Ross, thanks for rebasing.
However, as part of this:
PACKAGECONFIG ??= "xz \
ldconfig \
- ${@bb.utils.filter('DISTRO_FEATURES', 'efi pam selinux', d)} \
+ ${@bb.utils.filter('DISTRO_FEATURES', 'efi pam selinux ldconfig', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xkbcommon', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'wifi', 'rfkill', '', d)} \
binfmt \
the existing hardcoded "ldconfig" in PACKAGECONFIG should also be removed.
>>>
>>> --
>>> 1.9.1
>>>
>>> --
>>> _______________________________________________
>>> Openembedded-core mailing list
>>> Openembedded-core@lists.openembedded.org
>>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 0/2] replace USE_LDCONFIG with ldconfig distro feature
2017-03-02 19:25 ` Andre McCurdy
@ 2017-03-02 20:14 ` Burton, Ross
0 siblings, 0 replies; 8+ messages in thread
From: Burton, Ross @ 2017-03-02 20:14 UTC (permalink / raw)
To: Andre McCurdy; +Cc: Patches and discussions about the oe-core layer
[-- Attachment #1: Type: text/plain, Size: 180 bytes --]
On 2 March 2017 at 19:25, Andre McCurdy <armccurdy@gmail.com> wrote:
> the existing hardcoded "ldconfig" in PACKAGECONFIG should also be removed.
>
Damnit, thanks.
Ross
[-- Attachment #2: Type: text/html, Size: 667 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2017-03-02 20:14 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-27 22:29 [PATCH 0/2] replace USE_LDCONFIG with ldconfig distro feature Andre McCurdy
2017-01-27 22:29 ` [PATCH 1/2] bitbake.conf: replace USE_LDCONFIG with new "ldconfig" " Andre McCurdy
2017-01-27 22:29 ` [PATCH 2/2] systemd: check "ldconfig" distro feature when setting PACKAGECONFIG Andre McCurdy
2017-02-03 1:07 ` [PATCH 0/2] replace USE_LDCONFIG with ldconfig distro feature Andre McCurdy
2017-02-03 1:44 ` Khem Raj
2017-02-28 19:17 ` Andre McCurdy
2017-03-02 19:25 ` Andre McCurdy
2017-03-02 20:14 ` Burton, Ross
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.