* [meta-oe][PATCH] krb5: allow to generate empty package
@ 2017-03-02 16:13 Adrian Calianu
2017-03-02 16:52 ` Martin Jansa
0 siblings, 1 reply; 5+ messages in thread
From: Adrian Calianu @ 2017-03-02 16:13 UTC (permalink / raw)
To: openembedded-devel
Since other packages may depend on krb5(${PN}).
Signed-off-by: Adrian Calianu <adrian.calianu@enea.com>
---
meta-oe/recipes-connectivity/krb5/krb5_1.13.6.bb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta-oe/recipes-connectivity/krb5/krb5_1.13.6.bb b/meta-oe/recipes-connectivity/krb5/krb5_1.13.6.bb
index 656a02f..a0589a6 100644
--- a/meta-oe/recipes-connectivity/krb5/krb5_1.13.6.bb
+++ b/meta-oe/recipes-connectivity/krb5/krb5_1.13.6.bb
@@ -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
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [meta-oe][PATCH] krb5: allow to generate empty package
2017-03-02 16:13 [meta-oe][PATCH] krb5: allow to generate empty package Adrian Calianu
@ 2017-03-02 16:52 ` Martin Jansa
2017-03-03 9:24 ` Adrian Calianu
0 siblings, 1 reply; 5+ messages in thread
From: Martin Jansa @ 2017-03-02 16:52 UTC (permalink / raw)
To: Adrian Calianu; +Cc: openembedded-devel
> Since other packages may depend on krb5(${PN}).
Then fix these other packages.
On Thu, Mar 2, 2017 at 5:13 PM, Adrian Calianu <adrian.calianu@enea.com>
wrote:
> Since other packages may depend on krb5(${PN}).
>
> Signed-off-by: Adrian Calianu <adrian.calianu@enea.com>
> ---
> meta-oe/recipes-connectivity/krb5/krb5_1.13.6.bb | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/meta-oe/recipes-connectivity/krb5/krb5_1.13.6.bb
> b/meta-oe/recipes-connectivity/krb5/krb5_1.13.6.bb
> index 656a02f..a0589a6 100644
> --- a/meta-oe/recipes-connectivity/krb5/krb5_1.13.6.bb
> +++ b/meta-oe/recipes-connectivity/krb5/krb5_1.13.6.bb
> @@ -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
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [meta-oe][PATCH] krb5: allow to generate empty package
2017-03-02 16:52 ` Martin Jansa
@ 2017-03-03 9:24 ` Adrian Calianu
2017-03-03 9:28 ` Martin Jansa
0 siblings, 1 reply; 5+ messages in thread
From: Adrian Calianu @ 2017-03-03 9:24 UTC (permalink / raw)
To: Martin Jansa; +Cc: openembedded-devel
Hi Martin,
From: Martin Jansa [mailto:martin.jansa@gmail.com]
Sent: Thursday, March 02, 2017 6:53 PM
To: Adrian Calianu <Adrian.Calianu@enea.com>
Cc: openembedded-devel <openembedded-devel@lists.openembedded.org>
Subject: Re: [oe] [meta-oe][PATCH] krb5: allow to generate empty package
> 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 <adrian.calianu@enea.com<mailto:adrian.calianu@enea.com>> wrote:
Since other packages may depend on krb5(${PN}).
Signed-off-by: Adrian Calianu <adrian.calianu@enea.com<mailto:adrian.calianu@enea.com>>
---
meta-oe/recipes-connectivity/krb5/krb5_1.13.6.bb<http://krb5_1.13.6.bb> | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta-oe/recipes-connectivity/krb5/krb5_1.13.6.bb<http://krb5_1.13.6.bb> b/meta-oe/recipes-connectivity/krb5/krb5_1.13.6.bb<http://krb5_1.13.6.bb>
index 656a02f..a0589a6 100644
--- a/meta-oe/recipes-connectivity/krb5/krb5_1.13.6.bb<http://krb5_1.13.6.bb>
+++ b/meta-oe/recipes-connectivity/krb5/krb5_1.13.6.bb<http://krb5_1.13.6.bb>
@@ -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
Openembedded-devel@lists.openembedded.org<mailto:Openembedded-devel@lists.openembedded.org>
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [meta-oe][PATCH] krb5: allow to generate empty package
2017-03-03 9:24 ` Adrian Calianu
@ 2017-03-03 9:28 ` Martin Jansa
2017-03-05 21:38 ` Paul Eggleton
0 siblings, 1 reply; 5+ messages in thread
From: Martin Jansa @ 2017-03-03 9:28 UTC (permalink / raw)
To: Adrian Calianu; +Cc: openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 2174 bytes --]
On Fri, Mar 03, 2017 at 09:24:24AM +0000, Adrian Calianu wrote:
> Hi Martin,
>
> From: Martin Jansa [mailto:martin.jansa@gmail.com]
> Sent: Thursday, March 02, 2017 6:53 PM
> To: Adrian Calianu <Adrian.Calianu@enea.com>
> Cc: openembedded-devel <openembedded-devel@lists.openembedded.org>
> Subject: Re: [oe] [meta-oe][PATCH] krb5: allow to generate empty package
>
> > 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.
> On Thu, Mar 2, 2017 at 5:13 PM, Adrian Calianu <adrian.calianu@enea.com<mailto:adrian.calianu@enea.com>> wrote:
> Since other packages may depend on krb5(${PN}).
>
> Signed-off-by: Adrian Calianu <adrian.calianu@enea.com<mailto:adrian.calianu@enea.com>>
> ---
> meta-oe/recipes-connectivity/krb5/krb5_1.13.6.bb<http://krb5_1.13.6.bb> | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/meta-oe/recipes-connectivity/krb5/krb5_1.13.6.bb<http://krb5_1.13.6.bb> b/meta-oe/recipes-connectivity/krb5/krb5_1.13.6.bb<http://krb5_1.13.6.bb>
> index 656a02f..a0589a6 100644
> --- a/meta-oe/recipes-connectivity/krb5/krb5_1.13.6.bb<http://krb5_1.13.6.bb>
> +++ b/meta-oe/recipes-connectivity/krb5/krb5_1.13.6.bb<http://krb5_1.13.6.bb>
> @@ -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
> Openembedded-devel@lists.openembedded.org<mailto: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: 201 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [meta-oe][PATCH] krb5: allow to generate empty package
2017-03-03 9:28 ` Martin Jansa
@ 2017-03-05 21:38 ` Paul Eggleton
0 siblings, 0 replies; 5+ messages in thread
From: Paul Eggleton @ 2017-03-05 21:38 UTC (permalink / raw)
To: Martin Jansa, Adrian Calianu; +Cc: openembedded-devel
On Friday, 3 March 2017 10:28:39 PM NZDT Martin Jansa wrote:
> On Fri, Mar 03, 2017 at 09:24:24AM +0000, Adrian Calianu wrote:
> > From: Martin Jansa [mailto:martin.jansa@gmail.com]
> > Sent: Thursday, March 02, 2017 6:53 PM
> > To: Adrian Calianu <Adrian.Calianu@enea.com>
> > Cc: openembedded-devel <openembedded-devel@lists.openembedded.org>
> > Subject: Re: [oe] [meta-oe][PATCH] krb5: allow to generate empty package
> >
> > > 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.
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
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-03-05 21:38 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-02 16:13 [meta-oe][PATCH] krb5: allow to generate empty package Adrian Calianu
2017-03-02 16:52 ` Martin Jansa
2017-03-03 9:24 ` Adrian Calianu
2017-03-03 9:28 ` Martin Jansa
2017-03-05 21:38 ` Paul Eggleton
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.