Skip to contentSkip to conversation

samba: fix dependencies and QA issues

PATCH Superseded Jens Rehsack 4 participants 18 messages Nov 10, 2015 – Nov 11, 2015

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 samba: fix dependencies and QA issues

Fix remaining QA issues (dependency-wise) like

WARNING: QA Issue: samba rdepends on libacl, but it isn't a build dependency? [build-deps]
WARNING: QA Issue: samba rdepends on libavahi-client, but it isn't a build dependency? [build-deps]

broken perl library path, having a default PACKAGECONFIG, but allow user-defined one and rely on PACKAGECONFIG instead of DISTRO_FEATURES.

---
 meta-oe/recipes-connectivity/samba/samba_4.1.12.bb | 32 ++++++++++++++--------
 1 file changed, 21 insertions(+), 11 deletions(-)
meta-oe/recipes-connectivity/samba/samba_4.1.12.bb +21 -11
index af2cc1f..9e86e89 100644
@@ -38,26 +38,36 @@ SRC_URI = "${SAMBA_MIRROR}/stable/samba-${PV}.tar.gz \
 SRC_URI[md5sum] = "232016d7581a1ba11e991ec2674553c4"
 SRC_URI[sha256sum] = "033604674936bf5c77d7df299b0626052b84a41505a6a6afe902f6274fc29898"
 
-inherit systemd waf-samba
+inherit systemd waf-samba cpan-base perlnative
 
-DEPENDS += "readline virtual/libiconv zlib popt talloc libtdb libtevent libldb krb5 ctdb cups"
-RDEPENDS_${PN} += "openldap"
+DEPENDS += "readline virtual/libiconv zlib popt talloc libtdb libtevent libldb krb5 ctdb"
+RDEPENDS_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'lsb', 'lsb', '', d)}"
 
-PACKAGECONFIG = "${@base_contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}"
-PACKAGECONFIG += "${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"
+PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'pam', 'pam', '', d)} \
+                   ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'lsb', '', d)} \
+                   ${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)} \
+                   ${@base_contains('DISTRO_FEATURES', 'zeroconf', 'zeroconf', '', d)} \
+                   acl aio cups ldap \
+"
 
-PACKAGECONFIG[pam] = "--with-pam,--without-pam,libpam"
+PACKAGECONFIG[acl] = "--with-acl-support,---without-acl-support,acl"
+PACKAGECONFIG[aio] = "--with-aio-support,---without-aio-support,libaio"
 PACKAGECONFIG[fam] = "--with-fam,--without-fam,gamin"
+PACKAGECONFIG[pam] = "--with-pam,--without-pam,libpam"
+PACKAGECONFIG[lsb] = ",,lsb"
+PACKAGECONFIG[cups] = "--enable-cups,--disable-cups,cups"
+PACKAGECONFIG[ldap] = "--with-ldap,--without-ldap,openldap"
 PACKAGECONFIG[systemd] = "--with-systemd,--without-systemd,systemd"
+PACKAGECONFIG[zeroconf] = "--enable-avahi,--disable-avahi,avahi"
 
 SAMBA4_IDMAP_MODULES="idmap_ad,idmap_rid,idmap_adex,idmap_hash,idmap_tdb2"
-SAMBA4_PDB_MODULES="pdb_tdbsam,pdb_ldap,pdb_ads,pdb_smbpasswd,pdb_wbc_sam,pdb_samba4"
+SAMBA4_PDB_MODULES="pdb_tdbsam,${@bb.utils.contains('PACKAGECONFIG', 'ldap', 'pdb_ldap,', '', d)}pdb_ads,pdb_smbpasswd,pdb_wbc_sam,pdb_samba4"
 SAMBA4_AUTH_MODULES="auth_unix,auth_wbc,auth_server,auth_netlogond,auth_script,auth_samba4"
 SAMBA4_MODULES="${SAMBA4_IDMAP_MODULES},${SAMBA4_PDB_MODULES},${SAMBA4_AUTH_MODULES}"
 
 SAMBA4_LIBS="heimdal,!zlib,!popt,!talloc,!pytalloc,!pytalloc-util,!tevent,!pytevent,!tdb,!pytdb,!ldb,!pyldb"
 
-PERL_VERNDORLIB="${datadir}/perl5/vendor_perl/"
+PERL_VERNDORLIB="${libdir}/perl5/vendor_perl/${PERLVERSION}"
 
 EXTRA_OECONF += "--enable-fhs \
                  --with-piddir=${localstatedir}/run \
@@ -85,7 +95,7 @@ LDFLAGS += "-Wl,-z,relro,-z,now"
 do_install_append() {
     rmdir --ignore-fail-on-non-empty "${D}/${localstatedir}/run"
 
-    if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
+    if ${@bb.utils.contains('PACKAGECONFIG', 'systemd', 'true', 'false', d)}; then
         install -d ${D}${systemd_unitdir}/system
         for i in nmb smb winbind; do
             install -m 0644 packaging/systemd/$i.service ${D}${systemd_unitdir}/system
@@ -97,7 +107,7 @@ do_install_append() {
 	install -d ${D}${sysconfdir}/tmpfiles.d
 	echo "d ${localstatedir}/log/samba 0755 root root -" \
             > ${D}${sysconfdir}/tmpfiles.d/99-${BPN}.conf
-    elif ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
+    elif ${@bb.utils.contains('PACKAGECONFIG', 'lsb', 'true', 'false', d)}; then
 	install -d ${D}${sysconfdir}/init.d
 	install -m 0755 packaging/LSB/samba.sh ${D}${sysconfdir}/init.d
 	update-rc.d -r ${D} samba.sh start 20 3 5 .
@@ -160,4 +170,4 @@ FILES_${PN}-python-dbg = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/.d
                           ${libdir}/python${PYTHON_BASEVERSION}/site-packages/samba/dcerpc/.debug/* \
                          "
 
-FILES_${PN}-pidl = "${datadir}/perl5/vendor_perl/*"
+FILES_${PN}-pidl = "${bindir}/pidl ${PERL_VERNDORLIB}/*"
Signature · 7 lines
1.9.1

fighting with missing lsb on target and needless openldap and cups, I decided to give a larger cleanup a chance :)

Cheers
-- 
Jens Rehsack - [email protected]
#1 lore raw
Quoted 3 lines · Jens Rehsack

+ ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'lsb',
'', d)} \

This really requires lsb to able build, for all sysvinit distros? That seems unlikely. Was this intended to be based on the lsb distro feature? Also, why add lsb to rdepends independently of the packageconfig? I'd think using the packageconfig's 4th field for rdepends, if necessary, would work better, unless I'm missing something?

Signature · 5 lines
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
#2 lore raw
Quoted 9 lines

Am 10.11.2015 um 22:42 schrieb Christopher Larson <[email protected]>:

Quoted 3 lines · Jens Rehsack

+ ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'lsb',
'', d)} \

Quoted 5 lines

This really requires lsb to able build, for all sysvinit distros? That seems unlikely. Was this intended to be based on the lsb distro feature? Also, why add lsb to rdepends independently of the packageconfig? I'd think using the packageconfig's 4th field for rdepends, if necessary, would work better, unless I'm missing something?

You do ;)

It uses the LSB init-script for systemv-init - and lsb doesn't suck in that much that it hurts. But the line you quoted just adds an item to PACKAGECONFIG :) Do a PACKAGECONFIG_remove-pn-samba = "lsb" to avoid the 4 scripts ...

I will be happy supporting a patch distinguishing between lsb's init-script and basic init-script with only rudimentary start and stop and nothing else.

Cheers

Signature · 1 line
Jens Rehsack - [email protected]
#3 lore raw
Quoted 18 lines · Jens Rehsack
Quoted 10 lines

Am 10.11.2015 um 22:42 schrieb Christopher Larson <[email protected]>:

Quoted 3 lines · Jens Rehsack

+ ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'lsb',
'', d)} \

Quoted 5 lines

This really requires lsb to able build, for all sysvinit distros? That seems unlikely. Was this intended to be based on the lsb distro feature? Also, why add lsb to rdepends independently of the packageconfig? I'd think using the packageconfig's 4th field for rdepends, if necessary, would work better, unless I'm missing something?

Quoted 6 lines

You do ;)

It uses the LSB init-script for systemv-init - and lsb doesn't suck in that much that it hurts. But the line you quoted just adds an item to PACKAGECONFIG :) Do a PACKAGECONFIG_remove-pn-samba = "lsb" to avoid the 4 scripts …

that should be tied to ‘lsb’ distro feature as it exists. Distro’s then automatically get the intended behavior based upon the selected distro policy.

Quoted 12 lines

I will be happy supporting a patch distinguishing between lsb's init-script and basic init-script with only rudimentary start and stop and nothing else.

Cheers

Signature · 7 lines
Jens Rehsack - [email protected]

-- 
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
#4 lore raw
Quoted 21 lines

Am 11.11.2015 um 04:22 schrieb Khem Raj <[email protected]>:

Quoted 18 lines · Jens Rehsack
Quoted 15 lines

Am 10.11.2015 um 22:42 schrieb Christopher Larson <[email protected]>:

Quoted 3 lines · Jens Rehsack

+ ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'lsb',
'', d)} \

This really requires lsb to able build, for all sysvinit distros? That seems unlikely. Was this intended to be based on the lsb distro feature? Also, why add lsb to rdepends independently of the packageconfig? I'd think using the packageconfig's 4th field for rdepends, if necessary, would work better, unless I'm missing something?

Quoted 8 lines
Quoted 6 lines

You do ;)

It uses the LSB init-script for systemv-init - and lsb doesn't suck in that much that it hurts. But the line you quoted just adds an item to PACKAGECONFIG :) Do a PACKAGECONFIG_remove-pn-samba = "lsb" to avoid the 4 scripts …

that should be tied to ‘lsb’ distro feature as it exists. Distro’s then automatically get the intended behavior based upon the selected distro policy.

I didn't find such a feature - is it intended to be introduced? I only found a packagegroup for lsb, which is slightly overloaded for common stuff.

Nevertheless - samba already uses the LSB init-script and so requires the lsb init-functions. To fix currently broken status, this is needed to be done - and splitting between rough sysvinit and lsb init can be done in a following cleanup (and I'm happy to do it if you insist).

Cheers

Signature · 1 line
Jens Rehsack - [email protected]
#5 lore raw
Quoted 23 lines · Jens Rehsack
Quoted 23 lines

Am 11.11.2015 um 04:22 schrieb Khem Raj <[email protected]>:

Quoted 20 lines · Jens Rehsack
Quoted 10 lines

Am 10.11.2015 um 22:42 schrieb Christopher Larson <[email protected]>:

Quoted 3 lines · Jens Rehsack

+ ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'lsb',
'', d)} \

Quoted 5 lines

This really requires lsb to able build, for all sysvinit distros? That seems unlikely. Was this intended to be based on the lsb distro feature? Also, why add lsb to rdepends independently of the packageconfig? I'd think using the packageconfig's 4th field for rdepends, if necessary, would work better, unless I'm missing something?

You do ;)

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

It uses the LSB init-script for systemv-init - and lsb doesn't suck in that much that it hurts. But the line you quoted just adds an item to PACKAGECONFIG :) Do a PACKAGECONFIG_remove-pn-samba = "lsb" to avoid the 4 scripts …

that should be tied to ‘lsb’ distro feature as it exists. Distro’s then automatically get the intended behavior based upon the selected distro policy.

I didn't find such a feature - is it intended to be introduced?

'
its called 'inuxstdbase' IIRC

Quoted 18 lines

I only found a packagegroup for lsb, which is slightly overloaded for common stuff.

Nevertheless - samba already uses the LSB init-script and so requires the lsb init-functions. To fix currently broken status, this is needed to be done - and splitting between rough sysvinit and lsb init can be done in a following cleanup (and I'm happy to do it if you insist).

Cheers
--
Jens Rehsack - [email protected]

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#6 lore raw
Quoted 32 lines

Am 11.11.2015 um 17:25 schrieb Khem Raj <[email protected]>:

Quoted 28 lines · Jens Rehsack
Quoted 28 lines

Am 11.11.2015 um 04:22 schrieb Khem Raj <[email protected]>:

Quoted 24 lines · Jens Rehsack
Quoted 10 lines

Am 10.11.2015 um 22:42 schrieb Christopher Larson <[email protected]>:

Quoted 3 lines · Jens Rehsack

+ ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'lsb',
'', d)} \

Quoted 5 lines

This really requires lsb to able build, for all sysvinit distros? That seems unlikely. Was this intended to be based on the lsb distro feature? Also, why add lsb to rdepends independently of the packageconfig? I'd think using the packageconfig's 4th field for rdepends, if necessary, would work better, unless I'm missing something?

You do ;)

It uses the LSB init-script for systemv-init - and lsb doesn't suck in that much that it hurts. But the line you quoted just adds an item to PACKAGECONFIG :) Do a PACKAGECONFIG_remove-pn-samba = "lsb" to avoid the 4 scripts …

Quoted 5 lines
Quoted 3 lines
Quoted 1 line

that should be tied to ‘lsb’ distro feature as it exists. Distro’s then automatically get the intended behavior based upon the selected distro policy.

I didn't find such a feature - is it intended to be introduced?

'
its called 'inuxstdbase' IIRC

grep remains silent regarding DISTRO_FEATURES and linuxstdbase :(

For the while, please make a suggestion for 2.0 how to ensure samba_4.1.12.bb:112 "install -m 0755 packaging/LSB/samba.sh ${D}${sysconfdir}/init.d" can work without that.

The PACKAGECONFIG lsb is absolutely correct for the behavior - it can be discussed whether sysvinit shall automatically enable it or not. Since it's tiny ... why not?

When there is a sane linuxstdbase or lsb feature there, cleaning samba up distingishing between lsb and pure sysv script is fine for me.

Question is: now? Or 2.1 / 2.0.1?

Quoted 10 lines
Quoted 10 lines

I only found a packagegroup for lsb, which is slightly overloaded for common stuff.

Nevertheless - samba already uses the LSB init-script and so requires the lsb init-functions. To fix currently broken status, this is needed to be done - and splitting between rough sysvinit and lsb init can be done in a following cleanup (and I'm happy to do it if you insist).

Cheers

Cheers

Signature · 1 line
Jens Rehsack - [email protected]
#7 lore raw
Quoted 2 lines · Jens Rehsack

grep remains silent regarding DISTRO_FEATURES and linuxstdbase :(

right, its a OVERRIDE so you can do something like

foo_linuxstdbase = .....

#8 lore raw
Quoted 10 lines

Am 11.11.2015 um 19:07 schrieb Khem Raj <[email protected]>:

Quoted 2 lines · Jens Rehsack

grep remains silent regarding DISTRO_FEATURES and linuxstdbase :(

right, its a OVERRIDE so you can do something like

foo_linuxstdbase = .....

And? That's why? ...

I still don't get your initial argument why the PACKAGEOPTION shall not be named lsb, when init support based on lsb is added by it.

Best regards

Signature · 1 line
Jens Rehsack - [email protected]
#9 lore raw
Quoted 7 lines · Jens Rehsack
Quoted 7 lines

Am 11.11.2015 um 19:07 schrieb Khem Raj <[email protected]>:

Quoted 2 lines · Jens Rehsack

grep remains silent regarding DISTRO_FEATURES and linuxstdbase :(

Quoted 8 lines
Quoted 3 lines

right, its a OVERRIDE so you can do something like

foo_linuxstdbase = .....

And? That's why? ...

I still don't get your initial argument why the PACKAGEOPTION shall not be named lsb, when init support based on lsb is added by it.

my only ask was that if I have linuxstdbase in overrides then I should get lsb behaviour enabled for this package automatically weather its PACKAGRECONFIG or not. and similarly disabled when I dont have it in my distro overrides

Quoted 10 lines

Best regards
--
Jens Rehsack - [email protected]

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#10 lore raw
Quoted 17 lines

Am 11.11.2015 um 19:47 schrieb Khem Raj <[email protected]>:

Quoted 13 lines · Jens Rehsack
Quoted 10 lines

Am 11.11.2015 um 19:07 schrieb Khem Raj <[email protected]>:

Quoted 2 lines · Jens Rehsack

grep remains silent regarding DISTRO_FEATURES and linuxstdbase :(

right, its a OVERRIDE so you can do something like

foo_linuxstdbase = .....

And? That's why? ...

Quoted 7 lines
Quoted 2 lines

I still don't get your initial argument why the PACKAGEOPTION shall not be named lsb, when init support based on lsb is added by it.

my only ask was that if I have linuxstdbase in overrides then I should get lsb behaviour enabled for this package automatically weather its PACKAGRECONFIG or not. and similarly disabled when I dont have it in my distro overrides

In this special case I intend to say no, because:

The lsb support is limited to startup only - and the distro features controlling startup are "sysvinit" and "systemd", respectively.

Mixing systemd with linuxstdbase in overrides is possible but installing two init-script not knowing each other is likely asking for trouble. Maybe I'm wrong with that :)

Cheers

Signature · 1 line
Jens Rehsack - [email protected]
#11 lore raw
Quoted 8 lines · Jens Rehsack

In this special case I intend to say no, because:

The lsb support is limited to startup only - and the distro features controlling startup are "sysvinit" and "systemd", respectively.

Mixing systemd with linuxstdbase in overrides is possible but installing two init-script not knowing each other is likely asking for trouble. Maybe I'm wrong with that :)

and only sysvinit is valid for LSB, if you use systemd then lsb is violated anyway
you can encode that logic for completion if you want

#12 lore raw
Quoted 9 lines

Am 11.11.2015 um 20:12 schrieb Khem Raj <[email protected]>:

Quoted 5 lines · Jens Rehsack

In this special case I intend to say no, because:

The lsb support is limited to startup only - and the distro features controlling startup are "sysvinit" and "systemd", respectively.

Quoted 7 lines
Quoted 3 lines

Mixing systemd with linuxstdbase in overrides is possible but installing two init-script not knowing each other is likely asking for trouble. Maybe I'm wrong with that :)

and only sysvinit is valid for LSB, if you use systemd then lsb is violated anyway
you can encode that logic for completion if you want

Currently I'd like not to complicate things before jethro :)

When you have an example somewhere how it can be sanely done, and it's easily adopted - I'm happy to send an update for that. Otherwise I intend to wait after release and take the patch as it is to fix remaining issues before release is done.

Cheers

Signature · 1 line
Jens Rehsack - [email protected]
#13 lore raw
Quoted 17 lines · Jens Rehsack
Quoted 9 lines

Am 11.11.2015 um 20:12 schrieb Khem Raj <[email protected]>:

Quoted 5 lines · Jens Rehsack

In this special case I intend to say no, because:

The lsb support is limited to startup only - and the distro features controlling startup are "sysvinit" and "systemd", respectively.

Quoted 7 lines
Quoted 3 lines

Mixing systemd with linuxstdbase in overrides is possible but installing two init-script not knowing each other is likely asking for trouble. Maybe I'm wrong with that :)

and only sysvinit is valid for LSB, if you use systemd then lsb is violated anyway
you can encode that logic for completion if you want

Quoted 6 lines

Currently I'd like not to complicate things before jethro :)

When you have an example somewhere how it can be sanely done, and it's easily adopted - I'm happy to send an update for that. Otherwise I intend to wait after release and take the patch as it is to fix remaining issues before release is done.

jethro announcement went out yesterday so ..

https://lists.yoctoproject.org/pipermail/yocto/2015-November/027342.html

Quoted 10 lines

Cheers
--
Jens Rehsack - [email protected]

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#14 lore raw
Quoted 23 lines

Am 11.11.2015 um 20:48 schrieb Khem Raj <[email protected]>:

Quoted 19 lines · Jens Rehsack
Quoted 9 lines

Am 11.11.2015 um 20:12 schrieb Khem Raj <[email protected]>:

Quoted 5 lines · Jens Rehsack

In this special case I intend to say no, because:

The lsb support is limited to startup only - and the distro features controlling startup are "sysvinit" and "systemd", respectively.

Quoted 7 lines
Quoted 3 lines

Mixing systemd with linuxstdbase in overrides is possible but installing two init-script not knowing each other is likely asking for trouble. Maybe I'm wrong with that :)

and only sysvinit is valid for LSB, if you use systemd then lsb is violated anyway
you can encode that logic for completion if you want

Currently I'd like not to complicate things before jethro :)

Quoted 8 lines
Quoted 4 lines

When you have an example somewhere how it can be sanely done, and it's easily adopted - I'm happy to send an update for that. Otherwise I intend to wait after release and take the patch as it is to fix remaining issues before release is done.

jethro announcement went out yesterday so ..

https://lists.yoctoproject.org/pipermail/yocto/2015-November/027342.html

Cool - so it's shipped with a 3 month known bug https://bugzilla.yoctoproject.org/show_bug.cgi?id=8127 ... anyway ;)

So, do you have an example around how to reasonable add your suggestion to check for lsb override?

Cheers

Signature · 1 line
Jens Rehsack - [email protected]
#15 lore raw
Quoted 28 lines · Jens Rehsack
Quoted 28 lines

Am 11.11.2015 um 20:48 schrieb Khem Raj <[email protected]>:

Quoted 23 lines · Jens Rehsack
Quoted 9 lines

Am 11.11.2015 um 20:12 schrieb Khem Raj <[email protected]>:

Quoted 5 lines · Jens Rehsack

In this special case I intend to say no, because:

The lsb support is limited to startup only - and the distro features controlling startup are "sysvinit" and "systemd", respectively.

Quoted 7 lines
Quoted 3 lines

Mixing systemd with linuxstdbase in overrides is possible but installing two init-script not knowing each other is likely asking for trouble. Maybe I'm wrong with that :)

and only sysvinit is valid for LSB, if you use systemd then lsb is violated anyway
you can encode that logic for completion if you want

Currently I'd like not to complicate things before jethro :)

When you have an example somewhere how it can be sanely done, and it's easily adopted - I'm happy to send an update for that. Otherwise I intend to wait after release and take the patch as it is to fix remaining issues before release is done.

Quoted 8 lines
Quoted 3 lines

jethro announcement went out yesterday so ..

https://lists.yoctoproject.org/pipermail/yocto/2015-November/027342.html

Cool - so it's shipped with a 3 month known bug https://bugzilla.yoctoproject.org/show_bug.cgi?id=8127 ... anyway ;)

So, do you have an example around how to reasonable add your suggestion to check for lsb override?

PACKAGECONFIG_linuxstdbase = "${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'foo', '', d)} "

on these line ...

Quoted 9 lines

Cheers
--
Jens Rehsack - [email protected]

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#16 lore raw
Quoted 33 lines · Khem Raj
Quoted 32 lines · Jens Rehsack
Quoted 31 lines

Am 11.11.2015 um 20:48 schrieb Khem Raj <[email protected]>:

Quoted 17 lines · Jens Rehsack
Quoted 9 lines

Am 11.11.2015 um 20:12 schrieb Khem Raj <[email protected]>:

Quoted 5 lines · Jens Rehsack

In this special case I intend to say no, because:

The lsb support is limited to startup only - and the distro features controlling startup are "sysvinit" and "systemd", respectively.

Quoted 7 lines
Quoted 3 lines

Mixing systemd with linuxstdbase in overrides is possible but installing two init-script not knowing each other is likely asking for trouble. Maybe I'm wrong with that :)

and only sysvinit is valid for LSB, if you use systemd then lsb is violated anyway
you can encode that logic for completion if you want

Quoted 6 lines

Currently I'd like not to complicate things before jethro :)

When you have an example somewhere how it can be sanely done, and it's easily adopted - I'm happy to send an update for that. Otherwise I intend to wait after release and take the patch as it is to fix remaining issues before release is done.

jethro announcement went out yesterday so ..

https://lists.yoctoproject.org/pipermail/yocto/2015-November/027342.html

Quoted 8 lines
Quoted 4 lines

Cool - so it's shipped with a 3 month known bug https://bugzilla.yoctoproject.org/show_bug.cgi?id=8127 ... anyway ;)

So, do you have an example around how to reasonable add your suggestion to check for lsb override?

PACKAGECONFIG_linuxstdbase = "${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'foo', '', d)} "

You don't want to override default PACKAGECONFIG right?

PACKAGECONFIG_append_linuxstdbase = " ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'foo', '', d)}"

Quoted 16 lines

on these line ...

Quoted 9 lines

Cheers
--
Jens Rehsack - [email protected]

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Signature · 4 lines
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#17 lore raw
Quoted 42 lines · Martin Jansa
Quoted 38 lines · Khem Raj
Quoted 36 lines · Jens Rehsack
Quoted 23 lines

Am 11.11.2015 um 20:48 schrieb Khem Raj <[email protected]>:

Quoted 19 lines · Jens Rehsack
Quoted 9 lines

Am 11.11.2015 um 20:12 schrieb Khem Raj <[email protected]>:

Quoted 5 lines · Jens Rehsack

In this special case I intend to say no, because:

The lsb support is limited to startup only - and the distro features controlling startup are "sysvinit" and "systemd", respectively.

Quoted 7 lines
Quoted 3 lines

Mixing systemd with linuxstdbase in overrides is possible but installing two init-script not knowing each other is likely asking for trouble. Maybe I'm wrong with that :)

and only sysvinit is valid for LSB, if you use systemd then lsb is violated anyway
you can encode that logic for completion if you want

Currently I'd like not to complicate things before jethro :)

Quoted 8 lines
Quoted 4 lines

When you have an example somewhere how it can be sanely done, and it's easily adopted - I'm happy to send an update for that. Otherwise I intend to wait after release and take the patch as it is to fix remaining issues before release is done.

jethro announcement went out yesterday so ..

https://lists.yoctoproject.org/pipermail/yocto/2015-November/027342.html

Cool - so it's shipped with a 3 month known bug https://bugzilla.yoctoproject.org/show_bug.cgi?id=8127 ... anyway ;)

So, do you have an example around how to reasonable add your suggestion to check for lsb override?

Quoted 8 lines
Quoted 3 lines

PACKAGECONFIG_linuxstdbase = "${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'foo', '', d)} "

You don't want to override default PACKAGECONFIG right?

PACKAGECONFIG_append_linuxstdbase = " ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'foo', '', d)}”

yes right

Quoted 24 lines
Quoted 11 lines

on these line ...

Quoted 9 lines

Cheers
--
Jens Rehsack - [email protected]

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Quoted 5 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
Martin 'JaMa' Jansa jabber: [email protected]
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel