All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-oe][PATCH 1/3] samba: fix dependencies and QA issues
@ 2015-11-10 21:22 Jens Rehsack
  2015-11-10 21:42 ` Christopher Larson
  0 siblings, 1 reply; 18+ messages in thread
From: Jens Rehsack @ 2015-11-10 21:22 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Volker Mösker, Tobias Theophile


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.

Signed-off-by: Jens Rehsack <sno@netbsd.org>
---
 meta-oe/recipes-connectivity/samba/samba_4.1.12.bb | 32 ++++++++++++++--------
 1 file changed, 21 insertions(+), 11 deletions(-)

diff --git a/meta-oe/recipes-connectivity/samba/samba_4.1.12.bb b/meta-oe/recipes-connectivity/samba/samba_4.1.12.bb
index af2cc1f..9e86e89 100644
--- a/meta-oe/recipes-connectivity/samba/samba_4.1.12.bb
+++ b/meta-oe/recipes-connectivity/samba/samba_4.1.12.bb
@@ -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}/*"
-- 
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 - rehsack@gmail.com



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

* Re: [meta-oe][PATCH 1/3] samba: fix dependencies and QA issues
  2015-11-10 21:22 [meta-oe][PATCH 1/3] samba: fix dependencies and QA issues Jens Rehsack
@ 2015-11-10 21:42 ` Christopher Larson
  2015-11-10 22:00   ` Jens Rehsack
  0 siblings, 1 reply; 18+ messages in thread
From: Christopher Larson @ 2015-11-10 21:42 UTC (permalink / raw)
  To: Openembedded Discussion; +Cc: Volker Mösker, Tobias Theophile

On Tue, Nov 10, 2015 at 2:22 PM, Jens Rehsack <rehsack@gmail.com> wrote:

> +                   ${@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?
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics


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

* Re: [meta-oe][PATCH 1/3] samba: fix dependencies and QA issues
  2015-11-10 21:42 ` Christopher Larson
@ 2015-11-10 22:00   ` Jens Rehsack
  2015-11-11  3:22     ` Khem Raj
  0 siblings, 1 reply; 18+ messages in thread
From: Jens Rehsack @ 2015-11-10 22:00 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Volker Mösker, Tobias Theophile


> Am 10.11.2015 um 22:42 schrieb Christopher Larson <clarson@kergoth.com>:
> 
> On Tue, Nov 10, 2015 at 2:22 PM, Jens Rehsack <rehsack@gmail.com> wrote:
> 
>> +                   ${@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?

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
-- 
Jens Rehsack - rehsack@gmail.com



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

* Re: [meta-oe][PATCH 1/3] samba: fix dependencies and QA issues
  2015-11-10 22:00   ` Jens Rehsack
@ 2015-11-11  3:22     ` Khem Raj
  2015-11-11  9:09       ` Jens Rehsack
  0 siblings, 1 reply; 18+ messages in thread
From: Khem Raj @ 2015-11-11  3:22 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Volker Mösker, Tobias Theophile


> On Nov 10, 2015, at 2:00 PM, Jens Rehsack <rehsack@gmail.com> wrote:
> 
> 
>> Am 10.11.2015 um 22:42 schrieb Christopher Larson <clarson@kergoth.com>:
>> 
>> On Tue, Nov 10, 2015 at 2:22 PM, Jens Rehsack <rehsack@gmail.com> wrote:
>> 
>>> +                   ${@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?
> 
> 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 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
> -- 
> Jens Rehsack - rehsack@gmail.com
> 
> -- 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel



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

* Re: [meta-oe][PATCH 1/3] samba: fix dependencies and QA issues
  2015-11-11  3:22     ` Khem Raj
@ 2015-11-11  9:09       ` Jens Rehsack
  2015-11-11 16:25         ` Khem Raj
  0 siblings, 1 reply; 18+ messages in thread
From: Jens Rehsack @ 2015-11-11  9:09 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Volker Mösker, Tobias Theophile


> Am 11.11.2015 um 04:22 schrieb Khem Raj <raj.khem@gmail.com>:
> 
>> 
>> On Nov 10, 2015, at 2:00 PM, Jens Rehsack <rehsack@gmail.com> wrote:
>> 
>> 
>>> Am 10.11.2015 um 22:42 schrieb Christopher Larson <clarson@kergoth.com>:
>>> 
>>> On Tue, Nov 10, 2015 at 2:22 PM, Jens Rehsack <rehsack@gmail.com> wrote:
>>> 
>>>> +                   ${@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?
>> 
>> 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
-- 
Jens Rehsack - rehsack@gmail.com



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

* Re: [meta-oe][PATCH 1/3] samba: fix dependencies and QA issues
  2015-11-11  9:09       ` Jens Rehsack
@ 2015-11-11 16:25         ` Khem Raj
  2015-11-11 16:37           ` Jens Rehsack
  0 siblings, 1 reply; 18+ messages in thread
From: Khem Raj @ 2015-11-11 16:25 UTC (permalink / raw)
  To: openembeded-devel; +Cc: Volker Mösker, Tobias Theophile

On Wed, Nov 11, 2015 at 1:09 AM, Jens Rehsack <rehsack@gmail.com> wrote:
>
>> Am 11.11.2015 um 04:22 schrieb Khem Raj <raj.khem@gmail.com>:
>>
>>>
>>> On Nov 10, 2015, at 2:00 PM, Jens Rehsack <rehsack@gmail.com> wrote:
>>>
>>>
>>>> Am 10.11.2015 um 22:42 schrieb Christopher Larson <clarson@kergoth.com>:
>>>>
>>>> On Tue, Nov 10, 2015 at 2:22 PM, Jens Rehsack <rehsack@gmail.com> wrote:
>>>>
>>>>> +                   ${@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?
>>>
>>> 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?
'
its called 'inuxstdbase' IIRC

> 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 - rehsack@gmail.com
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel


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

* Re: [meta-oe][PATCH 1/3] samba: fix dependencies and QA issues
  2015-11-11 16:25         ` Khem Raj
@ 2015-11-11 16:37           ` Jens Rehsack
  2015-11-11 18:07             ` Khem Raj
  0 siblings, 1 reply; 18+ messages in thread
From: Jens Rehsack @ 2015-11-11 16:37 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Volker Mösker, Tobias Theophile


> Am 11.11.2015 um 17:25 schrieb Khem Raj <raj.khem@gmail.com>:
> 
> On Wed, Nov 11, 2015 at 1:09 AM, Jens Rehsack <rehsack@gmail.com> wrote:
>> 
>>> Am 11.11.2015 um 04:22 schrieb Khem Raj <raj.khem@gmail.com>:
>>> 
>>>> 
>>>> On Nov 10, 2015, at 2:00 PM, Jens Rehsack <rehsack@gmail.com> wrote:
>>>> 
>>>> 
>>>>> Am 10.11.2015 um 22:42 schrieb Christopher Larson <clarson@kergoth.com>:
>>>>> 
>>>>> On Tue, Nov 10, 2015 at 2:22 PM, Jens Rehsack <rehsack@gmail.com> wrote:
>>>>> 
>>>>>> +                   ${@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?
>>>> 
>>>> 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?
> '
> 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?

>> 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
-- 
Jens Rehsack - rehsack@gmail.com



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

* Re: [meta-oe][PATCH 1/3] samba: fix dependencies and QA issues
  2015-11-11 16:37           ` Jens Rehsack
@ 2015-11-11 18:07             ` Khem Raj
  2015-11-11 18:20               ` Jens Rehsack
  0 siblings, 1 reply; 18+ messages in thread
From: Khem Raj @ 2015-11-11 18:07 UTC (permalink / raw)
  To: openembeded-devel; +Cc: Volker Mösker, Tobias Theophile

On Wed, Nov 11, 2015 at 8:37 AM, Jens Rehsack <rehsack@gmail.com> wrote:
>
> grep remains silent regarding DISTRO_FEATURES and linuxstdbase :(

right, its a OVERRIDE so you can do something like

foo_linuxstdbase = .....


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

* Re: [meta-oe][PATCH 1/3] samba: fix dependencies and QA issues
  2015-11-11 18:07             ` Khem Raj
@ 2015-11-11 18:20               ` Jens Rehsack
  2015-11-11 18:47                 ` Khem Raj
  0 siblings, 1 reply; 18+ messages in thread
From: Jens Rehsack @ 2015-11-11 18:20 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Volker Mösker, Tobias Theophile


> Am 11.11.2015 um 19:07 schrieb Khem Raj <raj.khem@gmail.com>:
> 
> On Wed, Nov 11, 2015 at 8:37 AM, Jens Rehsack <rehsack@gmail.com> wrote:
>> 
>> 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
-- 
Jens Rehsack - rehsack@gmail.com



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

* Re: [meta-oe][PATCH 1/3] samba: fix dependencies and QA issues
  2015-11-11 18:20               ` Jens Rehsack
@ 2015-11-11 18:47                 ` Khem Raj
  2015-11-11 18:54                   ` Jens Rehsack
  0 siblings, 1 reply; 18+ messages in thread
From: Khem Raj @ 2015-11-11 18:47 UTC (permalink / raw)
  To: openembeded-devel; +Cc: Volker Mösker, Tobias Theophile

On Wed, Nov 11, 2015 at 10:20 AM, Jens Rehsack <rehsack@gmail.com> wrote:
>
>> Am 11.11.2015 um 19:07 schrieb Khem Raj <raj.khem@gmail.com>:
>>
>> On Wed, Nov 11, 2015 at 8:37 AM, Jens Rehsack <rehsack@gmail.com> wrote:
>>>
>>> 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.

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

>
> Best regards
> --
> Jens Rehsack - rehsack@gmail.com
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel


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

* Re: [meta-oe][PATCH 1/3] samba: fix dependencies and QA issues
  2015-11-11 18:47                 ` Khem Raj
@ 2015-11-11 18:54                   ` Jens Rehsack
  2015-11-11 19:12                     ` Khem Raj
  0 siblings, 1 reply; 18+ messages in thread
From: Jens Rehsack @ 2015-11-11 18:54 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Volker Mösker, Tobias Theophile


> Am 11.11.2015 um 19:47 schrieb Khem Raj <raj.khem@gmail.com>:
> 
> On Wed, Nov 11, 2015 at 10:20 AM, Jens Rehsack <rehsack@gmail.com> wrote:
>> 
>>> Am 11.11.2015 um 19:07 schrieb Khem Raj <raj.khem@gmail.com>:
>>> 
>>> On Wed, Nov 11, 2015 at 8:37 AM, Jens Rehsack <rehsack@gmail.com> wrote:
>>>> 
>>>> 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.
> 
> 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
-- 
Jens Rehsack - rehsack@gmail.com



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

* Re: [meta-oe][PATCH 1/3] samba: fix dependencies and QA issues
  2015-11-11 18:54                   ` Jens Rehsack
@ 2015-11-11 19:12                     ` Khem Raj
  2015-11-11 19:22                       ` Jens Rehsack
  0 siblings, 1 reply; 18+ messages in thread
From: Khem Raj @ 2015-11-11 19:12 UTC (permalink / raw)
  To: openembeded-devel; +Cc: Volker Mösker, Tobias Theophile

On Wed, Nov 11, 2015 at 10:54 AM, Jens Rehsack <rehsack@gmail.com> wrote:
> 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


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

* Re: [meta-oe][PATCH 1/3] samba: fix dependencies and QA issues
  2015-11-11 19:12                     ` Khem Raj
@ 2015-11-11 19:22                       ` Jens Rehsack
  2015-11-11 19:48                         ` Khem Raj
  0 siblings, 1 reply; 18+ messages in thread
From: Jens Rehsack @ 2015-11-11 19:22 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Volker Mösker, Tobias Theophile


> Am 11.11.2015 um 20:12 schrieb Khem Raj <raj.khem@gmail.com>:
> 
> On Wed, Nov 11, 2015 at 10:54 AM, Jens Rehsack <rehsack@gmail.com> wrote:
>> 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

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
-- 
Jens Rehsack - rehsack@gmail.com



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

* Re: [meta-oe][PATCH 1/3] samba: fix dependencies and QA issues
  2015-11-11 19:22                       ` Jens Rehsack
@ 2015-11-11 19:48                         ` Khem Raj
  2015-11-11 20:20                           ` Jens Rehsack
  0 siblings, 1 reply; 18+ messages in thread
From: Khem Raj @ 2015-11-11 19:48 UTC (permalink / raw)
  To: openembeded-devel; +Cc: Volker Mösker, Tobias Theophile

On Wed, Nov 11, 2015 at 11:22 AM, Jens Rehsack <rehsack@gmail.com> wrote:
>
>> Am 11.11.2015 um 20:12 schrieb Khem Raj <raj.khem@gmail.com>:
>>
>> On Wed, Nov 11, 2015 at 10:54 AM, Jens Rehsack <rehsack@gmail.com> wrote:
>>> 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
>
> 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

>
> Cheers
> --
> Jens Rehsack - rehsack@gmail.com
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel


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

* Re: [meta-oe][PATCH 1/3] samba: fix dependencies and QA issues
  2015-11-11 19:48                         ` Khem Raj
@ 2015-11-11 20:20                           ` Jens Rehsack
  2015-11-11 20:53                             ` Khem Raj
  0 siblings, 1 reply; 18+ messages in thread
From: Jens Rehsack @ 2015-11-11 20:20 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Volker Mösker, Tobias Theophile


> Am 11.11.2015 um 20:48 schrieb Khem Raj <raj.khem@gmail.com>:
> 
> On Wed, Nov 11, 2015 at 11:22 AM, Jens Rehsack <rehsack@gmail.com> wrote:
>> 
>>> Am 11.11.2015 um 20:12 schrieb Khem Raj <raj.khem@gmail.com>:
>>> 
>>> On Wed, Nov 11, 2015 at 10:54 AM, Jens Rehsack <rehsack@gmail.com> wrote:
>>>> 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
>> 
>> 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

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
-- 
Jens Rehsack - rehsack@gmail.com



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

* Re: [meta-oe][PATCH 1/3] samba: fix dependencies and QA issues
  2015-11-11 20:20                           ` Jens Rehsack
@ 2015-11-11 20:53                             ` Khem Raj
  2015-11-11 21:08                               ` Martin Jansa
  0 siblings, 1 reply; 18+ messages in thread
From: Khem Raj @ 2015-11-11 20:53 UTC (permalink / raw)
  To: openembeded-devel; +Cc: Volker Mösker, Tobias Theophile

On Wed, Nov 11, 2015 at 12:20 PM, Jens Rehsack <rehsack@gmail.com> wrote:
>
>> Am 11.11.2015 um 20:48 schrieb Khem Raj <raj.khem@gmail.com>:
>>
>> On Wed, Nov 11, 2015 at 11:22 AM, Jens Rehsack <rehsack@gmail.com> wrote:
>>>
>>>> Am 11.11.2015 um 20:12 schrieb Khem Raj <raj.khem@gmail.com>:
>>>>
>>>> On Wed, Nov 11, 2015 at 10:54 AM, Jens Rehsack <rehsack@gmail.com> wrote:
>>>>> 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
>>>
>>> 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
>
> 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 ...

> Cheers
> --
> Jens Rehsack - rehsack@gmail.com
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel


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

* Re: [meta-oe][PATCH 1/3] samba: fix dependencies and QA issues
  2015-11-11 20:53                             ` Khem Raj
@ 2015-11-11 21:08                               ` Martin Jansa
  2015-11-11 23:22                                 ` Khem Raj
  0 siblings, 1 reply; 18+ messages in thread
From: Martin Jansa @ 2015-11-11 21:08 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Volker Mösker, Tobias Theophile

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

On Wed, Nov 11, 2015 at 12:53:22PM -0800, Khem Raj wrote:
> On Wed, Nov 11, 2015 at 12:20 PM, Jens Rehsack <rehsack@gmail.com> wrote:
> >
> >> Am 11.11.2015 um 20:48 schrieb Khem Raj <raj.khem@gmail.com>:
> >>
> >> On Wed, Nov 11, 2015 at 11:22 AM, Jens Rehsack <rehsack@gmail.com> wrote:
> >>>
> >>>> Am 11.11.2015 um 20:12 schrieb Khem Raj <raj.khem@gmail.com>:
> >>>>
> >>>> On Wed, Nov 11, 2015 at 10:54 AM, Jens Rehsack <rehsack@gmail.com> wrote:
> >>>>> 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
> >>>
> >>> 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
> >
> > 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)}"

> on these line ...
> 
> > Cheers
> > --
> > Jens Rehsack - rehsack@gmail.com
> >
> > --
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> -- 
> _______________________________________________
> 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: 188 bytes --]

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

* Re: [meta-oe][PATCH 1/3] samba: fix dependencies and QA issues
  2015-11-11 21:08                               ` Martin Jansa
@ 2015-11-11 23:22                                 ` Khem Raj
  0 siblings, 0 replies; 18+ messages in thread
From: Khem Raj @ 2015-11-11 23:22 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Volker Mösker, Tobias Theophile

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


> On Nov 11, 2015, at 1:08 PM, Martin Jansa <martin.jansa@gmail.com> wrote:
> 
> On Wed, Nov 11, 2015 at 12:53:22PM -0800, Khem Raj wrote:
>> On Wed, Nov 11, 2015 at 12:20 PM, Jens Rehsack <rehsack@gmail.com> wrote:
>>> 
>>>> Am 11.11.2015 um 20:48 schrieb Khem Raj <raj.khem@gmail.com>:
>>>> 
>>>> On Wed, Nov 11, 2015 at 11:22 AM, Jens Rehsack <rehsack@gmail.com> wrote:
>>>>> 
>>>>>> Am 11.11.2015 um 20:12 schrieb Khem Raj <raj.khem@gmail.com>:
>>>>>> 
>>>>>> On Wed, Nov 11, 2015 at 10:54 AM, Jens Rehsack <rehsack@gmail.com> wrote:
>>>>>>> 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
>>>>> 
>>>>> 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
>>> 
>>> 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)}”
> 

yes right


>> on these line ...
>> 
>>> Cheers
>>> --
>>> Jens Rehsack - rehsack@gmail.com
>>> 
>>> --
>>> _______________________________________________
>>> Openembedded-devel mailing list
>>> Openembedded-devel@lists.openembedded.org
>>> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>> --
>> _______________________________________________
>> 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
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel


[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 211 bytes --]

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

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

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-10 21:22 [meta-oe][PATCH 1/3] samba: fix dependencies and QA issues Jens Rehsack
2015-11-10 21:42 ` Christopher Larson
2015-11-10 22:00   ` Jens Rehsack
2015-11-11  3:22     ` Khem Raj
2015-11-11  9:09       ` Jens Rehsack
2015-11-11 16:25         ` Khem Raj
2015-11-11 16:37           ` Jens Rehsack
2015-11-11 18:07             ` Khem Raj
2015-11-11 18:20               ` Jens Rehsack
2015-11-11 18:47                 ` Khem Raj
2015-11-11 18:54                   ` Jens Rehsack
2015-11-11 19:12                     ` Khem Raj
2015-11-11 19:22                       ` Jens Rehsack
2015-11-11 19:48                         ` Khem Raj
2015-11-11 20:20                           ` Jens Rehsack
2015-11-11 20:53                             ` Khem Raj
2015-11-11 21:08                               ` Martin Jansa
2015-11-11 23:22                                 ` Khem Raj

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.