krb5: allow to generate empty package
PATCH 1/1 krb5: allow to generate empty package
Since other packages may depend on krb5(${PN}).
--- meta-oe/recipes-connectivity/krb5/krb5_1.13.6.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-oe/recipes-connectivity/krb5/krb5_1.13.6.bb +2 -0
@@ -107,6 +107,8 @@ PACKAGES =+ "${PN}-admin-server \ libkrb5support \ libverto" +ALLOW_EMPTY_${PN} = "1" + FILES_${PN} = "" FILES_${PN}-doc += "${datadir}/examples" FILES_${PN}-dbg += "${libdir}/krb5/plugins/*/.debug"
Signature · 1 line
1.9.1
Quoted 1 line
Since other packages may depend on krb5(${PN}).
Then fix these other packages.
Quoted 30 lines · Adrian Calianu
Since other packages may depend on krb5(${PN}).
Signed-off-by Adrian Calianu <[email protected]>--- meta-oe/recipes-connectivity/krb5/krb5_1.13.6.bb | 2 ++ 1 file changed, 2 insertions(+)meta-oe/recipes-connectivity/krb5/krb5_1.13.6.bb +2
-1@@ -107,6 +107,8 @@ PACKAGES =+ "${PN}-admin-server \ libkrb5support \ libverto" +ALLOW_EMPTY_${PN} = "1" + FILES_${PN} = "" FILES_${PN}-doc += "${datadir}/examples" FILES_${PN}-dbg += "${libdir}/krb5/plugins/*/.debug" --1.9.1
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Hi Martin,
From: Martin Jansa [mailto:[email protected]]
Sent: Thursday, March 02, 2017 6:53 PM
To: Adrian Calianu <[email protected]>
Cc: openembedded-devel <[email protected]>
Subject: Re: [oe] [meta-oe][PATCH] krb5: allow to generate empty package
Quoted 1 line
Since other packages may depend on krb5(${PN}).
Then fix these other packages.
[Adrian Calianu] If you want to install krb5-dev, krb5-dbg packages, they are dependent on krb5 but it does not exists!
/Adrian
On Thu, Mar 2, 2017 at 5:13 PM, Adrian Calianu <[email protected]<mailto:[email protected]>> wrote:
Since other packages may depend on krb5(${PN}).
--- meta-oe/recipes-connectivity/krb5/krb5_1.13.6.bb<http://krb5_1.13.6.bb> | 2 ++ 1 file changed, 2 insertions(+)
meta-oe/recipes-connectivity/krb5/krb5_1.13.6.bb<http://krb5_1.13.6.bb> +2 -0
@@ -107,6 +107,8 @@ PACKAGES =+ "${PN}-admin-server \ libkrb5support \ libverto" +ALLOW_EMPTY_${PN} = "1" + FILES_${PN} = "" FILES_${PN}-doc += "${datadir}/examples" FILES_${PN}-dbg += "${libdir}/krb5/plugins/*/.debug"
--
1.9.1
--
_______________________________________________
Openembedded-devel mailing list [email protected]<mailto:[email protected]>
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Quoted 8 lines · Adrian Calianu
Hi Martin,
From: Martin Jansa [mailto:[email protected]]
Sent: Thursday, March 02, 2017 6:53 PM
To: Adrian Calianu <[email protected]>
Cc: openembedded-devel <[email protected]>
Subject: Re: [oe] [meta-oe][PATCH] krb5: allow to generate empty package
Quoted 4 lines
Quoted 1 line
Since other packages may depend on krb5(${PN}).
Then fix these other packages.
[Adrian Calianu] If you want to install krb5-dev, krb5-dbg packages, they are dependent on krb5 but it does not exists!
Good, so you know which packages to fix.
Installing empty packages to rootfs never helped anyone except HW manufactures because we're wasting disk space and processing on useless empty packages.
Quoted 30 lines · On Thu, Mar 2, 2017 at 5:13 PM, Adrian Calianu…
Since other packages may depend on krb5(${PN}).
--- meta-oe/recipes-connectivity/krb5/krb5_1.13.6.bb<http://krb5_1.13.6.bb> | 2 ++ 1 file changed, 2 insertions(+)meta-oe/recipes-connectivity/krb5/krb5_1.13.6.bb<http://krb5_1.13.6.bb> +2
-1@@ -107,6 +107,8 @@ PACKAGES =+ "${PN}-admin-server \ libkrb5support \ libverto" +ALLOW_EMPTY_${PN} = "1" + FILES_${PN} = "" FILES_${PN}-doc += "${datadir}/examples" FILES_${PN}-dbg += "${libdir}/krb5/plugins/*/.debug" --1.9.1
--
_______________________________________________
Openembedded-devel mailing list [email protected]<mailto:[email protected]>
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 13 lines · NZDT Martin Jansa
Quoted 11 lines · Adrian Calianu
From: Martin Jansa [mailto:[email protected]]
Sent: Thursday, March 02, 2017 6:53 PM
To: Adrian Calianu <[email protected]>
Cc: openembedded-devel <[email protected]>
Subject: Re: [oe] [meta-oe][PATCH] krb5: allow to generate empty packageQuoted 1 line
Since other packages may depend on krb5(${PN}).
Then fix these other packages.
[Adrian Calianu] If you want to install krb5-dev, krb5-dbg
packages, they are dependent on krb5 but it does not exists!
Quoted 5 lines
Good, so you know which packages to fix.
Installing empty packages to rootfs never helped anyone except HW manufactures because we're wasting disk space and processing on useless empty packages.
On the other hand, we do have lots of empty packages that exist only to bring in other packages (e.g. packagegroups).
Specifically in this type of scenario, I do agree that just setting ALLOW_EMPTY_${PN} isn't enough - that does give you an empty package that serves no function; worse, it's claiming that krb5 is installed when it really isn't. There are two workable alternatives:
1) Change PACKAGES so that the recipe doesn't claim that it provides a ${PN} package when we know it's not going to, so that if you do have a dependency on it you get an error earlier in the build instead of right at the end during do_rootfs. At the same time you'd want to change RDEPENDS_${PN}-dev such that it doesn't depend on the now definitely nonexistent ${PN} package.
2) Have an empty ${PN} package that has RDEPENDS / RRECOMMENDS set to bring in a sensible subset of the recipe's packages for runtime usage so that you don't have to having to look at each recipe to determine whether or not it has a main package. This seems to me to be the least awkward alternative for users, but of course, it assumes that there is such a sensible subset. The openssh recipe is an example of this.
FWIW, we have talked about changing the default in OE-Core for the dependency of ${PN}-dev on ${PN} in order to make this less of a problem (bug 8222 [1] relates to this). Honestly though I'd prefer people take option 2 above where possible and then we at least save a few question threads on the mailing list from new users.
Cheers,
Paul
[1] https://bugzilla.yoctoproject.org/show_bug.cgi?id=8222
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre