All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] nssmyhostname: fix runtime dependencies
@ 2014-08-09  8:26 Koen Kooi
  2014-08-09  8:26 ` [RFC][PATCH 2/2] systemd: rprovide/rreplace/rconflict nss-myhostname Koen Kooi
  2014-08-09 10:34 ` [PATCH 1/2] nssmyhostname: fix runtime dependencies Martin Jansa
  0 siblings, 2 replies; 4+ messages in thread
From: Koen Kooi @ 2014-08-09  8:26 UTC (permalink / raw)
  To: openembedded-core; +Cc: Koen Kooi

This should fix:

19:40 <fabo> ERROR: Unable to install packages. Command '/mnt/ci_build/workspace/tmp/sysroots/x86_64-linux/usr/bin/opkg-cl -f /mnt/ci_build/workspace/tmp/work/genericarmv8-oe-linux/linaro-image-minimal/1.0-r0/opkg.conf -o
             /mnt/ci_build/workspace/tmp/work/genericarmv8-oe-linux/linaro-image-minimal/1.0-r0/rootfs --force_postinstall --prefer-arch-to-version   install opkg-collateral stress libnss-myhostname2 run-postinsts auto-serial-console
             util-linux-fsck stress-dbg packagegroup-co
19:41 <fabo> sed: can't read /mnt/ci_build/workspace/tmp/work/aarch64-oe-linux/nss-myhostname/0.3-r0/image/etc/nsswitch.conf: No such file or directory

Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
---
 meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb b/meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb
index d8ec863..b9ddeaf 100644
--- a/meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb
+++ b/meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb
@@ -13,6 +13,9 @@ SRC_URI[sha256sum] = "2ba744ea8d578d1c57c85884e94a3042ee17843a5294434d3a7f6c4d67
 
 inherit autotools
 
+# /etc/nsswitch.conf needs to be present
+RDEPENDS_${PN} = "base-files"
+
 pkg_postinst_${PN} () {
 	sed -e '/^hosts:/s/\s*\<myhostname\>//' \
 		-e 's/\(^hosts:.*\)\(\<files\>\)\(.*\)\(\<dns\>\)\(.*\)/\1\2 myhostname \3\4\5/' \
-- 
1.9.3



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [RFC][PATCH 2/2] systemd: rprovide/rreplace/rconflict nss-myhostname
  2014-08-09  8:26 [PATCH 1/2] nssmyhostname: fix runtime dependencies Koen Kooi
@ 2014-08-09  8:26 ` Koen Kooi
  2014-08-09 10:34 ` [PATCH 1/2] nssmyhostname: fix runtime dependencies Martin Jansa
  1 sibling, 0 replies; 4+ messages in thread
From: Koen Kooi @ 2014-08-09  8:26 UTC (permalink / raw)
  To: openembedded-core; +Cc: Koen Kooi

Systems builds and packages nss-myhostname so add the appropriate lines to the recipe.

Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
---

I'm not 100% sure how this works with the debian shlib renaming for nss-myhostname_0.3.bb and how to handle this in the default providers include. Hence the RFC.


 meta/recipes-core/systemd/systemd_213.bb | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-core/systemd/systemd_213.bb b/meta/recipes-core/systemd/systemd_213.bb
index 4fb7ffc..8572dbd 100644
--- a/meta/recipes-core/systemd/systemd_213.bb
+++ b/meta/recipes-core/systemd/systemd_213.bb
@@ -6,7 +6,11 @@ LIC_FILES_CHKSUM = "file://LICENSE.GPL2;md5=751419260aa954499f7abaabaa882bbe \
                     file://LICENSE.LGPL2.1;md5=4fbd65380cdd255951079008b364516c \
                     file://LICENSE.MIT;md5=544799d0b492f119fa04641d1b8868ed"
 
-PROVIDES = "udev"
+MYHOSTNAME = "nss-myhostname"
+# See EXTRA_OECONF_uclibc below
+MYHOSTNAME_uclibc = ""
+
+PROVIDES = "udev ${MYHOSTNAME}"
 
 PE = "1"
 
@@ -195,6 +199,10 @@ RRECOMMENDS_${PN}-binfmt = "kernel-module-binfmt-misc"
 
 RRECOMMENDS_${PN}-vconsole-setup = "kbd kbd-consolefonts"
 
+RPROVIDES_{$PN} = "${MYHOSTNAME}"
+RREPLACES_${PN} = "${MYHOSTNAME}"
+RCONFLICTS_${PN} = "${MYHOSTNAME}"
+
 CONFFILES_${PN} = "${sysconfdir}/systemd/journald.conf \
                 ${sysconfdir}/systemd/logind.conf \
                 ${sysconfdir}/systemd/system.conf \
-- 
1.9.3



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] nssmyhostname: fix runtime dependencies
  2014-08-09  8:26 [PATCH 1/2] nssmyhostname: fix runtime dependencies Koen Kooi
  2014-08-09  8:26 ` [RFC][PATCH 2/2] systemd: rprovide/rreplace/rconflict nss-myhostname Koen Kooi
@ 2014-08-09 10:34 ` Martin Jansa
  2014-08-09 11:23   ` Koen Kooi
  1 sibling, 1 reply; 4+ messages in thread
From: Martin Jansa @ 2014-08-09 10:34 UTC (permalink / raw)
  To: Koen Kooi; +Cc: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 2335 bytes --]

On Sat, Aug 09, 2014 at 10:26:49AM +0200, Koen Kooi wrote:
> This should fix:
> 
> 19:40 <fabo> ERROR: Unable to install packages. Command '/mnt/ci_build/workspace/tmp/sysroots/x86_64-linux/usr/bin/opkg-cl -f /mnt/ci_build/workspace/tmp/work/genericarmv8-oe-linux/linaro-image-minimal/1.0-r0/opkg.conf -o
>              /mnt/ci_build/workspace/tmp/work/genericarmv8-oe-linux/linaro-image-minimal/1.0-r0/rootfs --force_postinstall --prefer-arch-to-version   install opkg-collateral stress libnss-myhostname2 run-postinsts auto-serial-console
>              util-linux-fsck stress-dbg packagegroup-co
> 19:41 <fabo> sed: can't read /mnt/ci_build/workspace/tmp/work/aarch64-oe-linux/nss-myhostname/0.3-r0/image/etc/nsswitch.conf: No such file or directory

Can you please check which recipe is supposed to install
libnss_myhostname.so.2 and kill it in the other one?

WARNING: The recipe systemd is trying to install files into a shared
area when those files already exist. Those files and their manifest
location are:
   /home/jenkins/oe/world/shr-core/tmp-eglibc/sysroots/qemux86-64/usr/lib/libnss_myhostname.so.2
   Matched in manifest-qemux86-64-nss-myhostname.populate_sysroot

> Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
> ---
>  meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb b/meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb
> index d8ec863..b9ddeaf 100644
> --- a/meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb
> +++ b/meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb
> @@ -13,6 +13,9 @@ SRC_URI[sha256sum] = "2ba744ea8d578d1c57c85884e94a3042ee17843a5294434d3a7f6c4d67
>  
>  inherit autotools
>  
> +# /etc/nsswitch.conf needs to be present
> +RDEPENDS_${PN} = "base-files"
> +
>  pkg_postinst_${PN} () {
>  	sed -e '/^hosts:/s/\s*\<myhostname\>//' \
>  		-e 's/\(^hosts:.*\)\(\<files\>\)\(.*\)\(\<dns\>\)\(.*\)/\1\2 myhostname \3\4\5/' \
> -- 
> 1.9.3
> 
> -- 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] nssmyhostname: fix runtime dependencies
  2014-08-09 10:34 ` [PATCH 1/2] nssmyhostname: fix runtime dependencies Martin Jansa
@ 2014-08-09 11:23   ` Koen Kooi
  0 siblings, 0 replies; 4+ messages in thread
From: Koen Kooi @ 2014-08-09 11:23 UTC (permalink / raw)
  To: Martin Jansa; +Cc: Koen Kooi, openembedded-core


Op 9 aug. 2014, om 12:34 heeft Martin Jansa <martin.jansa@gmail.com> het volgende geschreven:

> On Sat, Aug 09, 2014 at 10:26:49AM +0200, Koen Kooi wrote:
>> This should fix:
>> 
>> 19:40 <fabo> ERROR: Unable to install packages. Command '/mnt/ci_build/workspace/tmp/sysroots/x86_64-linux/usr/bin/opkg-cl -f /mnt/ci_build/workspace/tmp/work/genericarmv8-oe-linux/linaro-image-minimal/1.0-r0/opkg.conf -o
>>             /mnt/ci_build/workspace/tmp/work/genericarmv8-oe-linux/linaro-image-minimal/1.0-r0/rootfs --force_postinstall --prefer-arch-to-version   install opkg-collateral stress libnss-myhostname2 run-postinsts auto-serial-console
>>             util-linux-fsck stress-dbg packagegroup-co
>> 19:41 <fabo> sed: can't read /mnt/ci_build/workspace/tmp/work/aarch64-oe-linux/nss-myhostname/0.3-r0/image/etc/nsswitch.conf: No such file or directory
> 
> Can you please check which recipe is supposed to install
> libnss_myhostname.so.2 and kill it in the other one?
> 
> WARNING: The recipe systemd is trying to install files into a shared
> area when those files already exist. Those files and their manifest
> location are:
>   /home/jenkins/oe/world/shr-core/tmp-eglibc/sysroots/qemux86-64/usr/lib/libnss_myhostname.so.2
>   Matched in manifest-qemux86-64-nss-myhostname.populate_sysroot

That's what http://patches.openembedded.org/patch/77643/ is for, but I'm not sure how to properly fix this, since not everyone has systemd in DISTRO_FEATURES.
Either way systemd needs to have postinst/postrm scripts for myhostname as well. Hopefully I'll have some time next week at work for this.

regards,

Koen

> 
>> Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
>> ---
>> meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb | 3 +++
>> 1 file changed, 3 insertions(+)
>> 
>> diff --git a/meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb b/meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb
>> index d8ec863..b9ddeaf 100644
>> --- a/meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb
>> +++ b/meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb
>> @@ -13,6 +13,9 @@ SRC_URI[sha256sum] = "2ba744ea8d578d1c57c85884e94a3042ee17843a5294434d3a7f6c4d67
>> 
>> inherit autotools
>> 
>> +# /etc/nsswitch.conf needs to be present
>> +RDEPENDS_${PN} = "base-files"
>> +
>> pkg_postinst_${PN} () {
>> 	sed -e '/^hosts:/s/\s*\<myhostname\>//' \
>> 		-e 's/\(^hosts:.*\)\(\<files\>\)\(.*\)\(\<dns\>\)\(.*\)/\1\2 myhostname \3\4\5/' \
>> -- 
>> 1.9.3
>> 
>> -- 
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
> 
> -- 
> Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> -- 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-08-09 11:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-09  8:26 [PATCH 1/2] nssmyhostname: fix runtime dependencies Koen Kooi
2014-08-09  8:26 ` [RFC][PATCH 2/2] systemd: rprovide/rreplace/rconflict nss-myhostname Koen Kooi
2014-08-09 10:34 ` [PATCH 1/2] nssmyhostname: fix runtime dependencies Martin Jansa
2014-08-09 11:23   ` Koen Kooi

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.