All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] util-linux-uuid: include /usr/lib/debug in FILES_util-linux-libuuid-dbg
@ 2021-03-24 17:07 Luca Bocassi
  2021-03-24 21:39 ` Scott Branden
  2021-03-24 22:46 ` [OE-core] " Richard Purdie
  0 siblings, 2 replies; 4+ messages in thread
From: Luca Bocassi @ 2021-03-24 17:07 UTC (permalink / raw)
  To: openembedded-core; +Cc: scott.branden

From: Luca Boccassi <luca.boccassi@microsoft.com>

Apparently some users have /usr/lib/debug instead of /usr/lib/.debug
so add it to the FILES matching.

Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com>
---
 meta/recipes-core/util-linux/util-linux-uuid_2.36.2.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/util-linux/util-linux-uuid_2.36.2.bb b/meta/recipes-core/util-linux/util-linux-uuid_2.36.2.bb
index 65e4d23b7e..1ff37a4dcb 100644
--- a/meta/recipes-core/util-linux/util-linux-uuid_2.36.2.bb
+++ b/meta/recipes-core/util-linux/util-linux-uuid_2.36.2.bb
@@ -11,7 +11,7 @@ PACKAGES = "util-linux-libuuid util-linux-libuuid-dev util-linux-libuuid-staticd
 FILES_util-linux-libuuid = "${libdir}/libuuid.so.*"
 FILES_util-linux-libuuid-dev = "${libdir}/libuuid.so ${includedir} ${libdir}/pkgconfig"
 FILES_util-linux-libuuid-staticdev = "${libdir}/libuuid.a"
-FILES_util-linux-libuuid-dbg = "/usr/src ${libdir}/.debug"
+FILES_util-linux-libuuid-dbg = "/usr/src ${libdir}/.debug ${libdir}/debug"
 
 do_install_append() {
 	rm -rf ${D}${datadir} ${D}${bindir} ${D}${base_bindir} ${D}${sbindir} ${D}${base_sbindir} ${D}${exec_prefix}/sbin
-- 
2.29.2


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

* Re: [PATCH] util-linux-uuid: include /usr/lib/debug in FILES_util-linux-libuuid-dbg
  2021-03-24 17:07 [PATCH] util-linux-uuid: include /usr/lib/debug in FILES_util-linux-libuuid-dbg Luca Bocassi
@ 2021-03-24 21:39 ` Scott Branden
  2021-03-24 22:46 ` [OE-core] " Richard Purdie
  1 sibling, 0 replies; 4+ messages in thread
From: Scott Branden @ 2021-03-24 21:39 UTC (permalink / raw)
  To: luca.boccassi, openembedded-core

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

I can confirm this patch fixes the QA problem I reported.

On 2021-03-24 10:07 a.m., luca.boccassi@gmail.com wrote:
> From: Luca Boccassi <luca.boccassi@microsoft.com>
> 
> Apparently some users have /usr/lib/debug instead of /usr/lib/.debug
> so add it to the FILES matching.
> 
> Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com>
> ---
>  meta/recipes-core/util-linux/util-linux-uuid_2.36.2.bb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/recipes-core/util-linux/util-linux-uuid_2.36.2.bb b/meta/recipes-core/util-linux/util-linux-uuid_2.36.2.bb
> index 65e4d23b7e..1ff37a4dcb 100644
> --- a/meta/recipes-core/util-linux/util-linux-uuid_2.36.2.bb
> +++ b/meta/recipes-core/util-linux/util-linux-uuid_2.36.2.bb
> @@ -11,7 +11,7 @@ PACKAGES = "util-linux-libuuid util-linux-libuuid-dev util-linux-libuuid-staticd
>  FILES_util-linux-libuuid = "${libdir}/libuuid.so.*"
>  FILES_util-linux-libuuid-dev = "${libdir}/libuuid.so ${includedir} ${libdir}/pkgconfig"
>  FILES_util-linux-libuuid-staticdev = "${libdir}/libuuid.a"
> -FILES_util-linux-libuuid-dbg = "/usr/src ${libdir}/.debug"
> +FILES_util-linux-libuuid-dbg = "/usr/src ${libdir}/.debug ${libdir}/debug"
>  
>  do_install_append() {
>  	rm -rf ${D}${datadir} ${D}${bindir} ${D}${base_bindir} ${D}${sbindir} ${D}${base_sbindir} ${D}${exec_prefix}/sbin
> 


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4212 bytes --]

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

* Re: [OE-core] [PATCH] util-linux-uuid: include /usr/lib/debug in FILES_util-linux-libuuid-dbg
  2021-03-24 17:07 [PATCH] util-linux-uuid: include /usr/lib/debug in FILES_util-linux-libuuid-dbg Luca Bocassi
  2021-03-24 21:39 ` Scott Branden
@ 2021-03-24 22:46 ` Richard Purdie
  2021-03-24 23:05   ` Peter Kjellerstedt
  1 sibling, 1 reply; 4+ messages in thread
From: Richard Purdie @ 2021-03-24 22:46 UTC (permalink / raw)
  To: Luca Bocassi, openembedded-core; +Cc: scott.branden

On Wed, 2021-03-24 at 17:07 +0000, Luca Bocassi wrote:
> From: Luca Boccassi <luca.boccassi@microsoft.com>
> 
> Apparently some users have /usr/lib/debug instead of /usr/lib/.debug
> so add it to the FILES matching.
> 
> Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com>
> ---
>  meta/recipes-core/util-linux/util-linux-uuid_2.36.2.bb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/recipes-core/util-linux/util-linux-uuid_2.36.2.bb b/meta/recipes-core/util-linux/util-linux-uuid_2.36.2.bb
> index 65e4d23b7e..1ff37a4dcb 100644
> --- a/meta/recipes-core/util-linux/util-linux-uuid_2.36.2.bb
> +++ b/meta/recipes-core/util-linux/util-linux-uuid_2.36.2.bb
> @@ -11,7 +11,7 @@ PACKAGES = "util-linux-libuuid util-linux-libuuid-dev util-linux-libuuid-staticd
>  FILES_util-linux-libuuid = "${libdir}/libuuid.so.*"
>  FILES_util-linux-libuuid-dev = "${libdir}/libuuid.so ${includedir} ${libdir}/pkgconfig"
>  FILES_util-linux-libuuid-staticdev = "${libdir}/libuuid.a"
> -FILES_util-linux-libuuid-dbg = "/usr/src ${libdir}/.debug"
> +FILES_util-linux-libuuid-dbg = "/usr/src ${libdir}/.debug ${libdir}/debug"

Is there a reason the recipe is called "util-linux-uuid" yet it wants 
to be "util-linux-libuuid"? I suspect if we can rename it, some of
this juggling goes away. 

Ideally recipes shouldn't be needing to override the defaults for 
PACKAGES and FILES. I just tried a test build with a lot of this stripped
away and its seeing issues with the -dev package but even adding an
RPROVIDES for that would be better than all the above overrides...

Cheers,

Richard



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

* Re: [OE-core] [PATCH] util-linux-uuid: include /usr/lib/debug in FILES_util-linux-libuuid-dbg
  2021-03-24 22:46 ` [OE-core] " Richard Purdie
@ 2021-03-24 23:05   ` Peter Kjellerstedt
  0 siblings, 0 replies; 4+ messages in thread
From: Peter Kjellerstedt @ 2021-03-24 23:05 UTC (permalink / raw)
  To: Richard Purdie, Luca Bocassi, openembedded-core; +Cc: scott.branden

> -----Original Message-----
> From: openembedded-core@lists.openembedded.org <openembedded-
> core@lists.openembedded.org> On Behalf Of Richard Purdie
> Sent: den 24 mars 2021 23:46
> To: Luca Bocassi <luca.boccassi@gmail.com>; openembedded-
> core@lists.openembedded.org
> Cc: scott.branden@broadcom.com
> Subject: Re: [OE-core] [PATCH] util-linux-uuid: include /usr/lib/debug in
> FILES_util-linux-libuuid-dbg
> 
> On Wed, 2021-03-24 at 17:07 +0000, Luca Bocassi wrote:
> > From: Luca Boccassi <luca.boccassi@microsoft.com>
> >
> > Apparently some users have /usr/lib/debug instead of /usr/lib/.debug
> > so add it to the FILES matching.
> >
> > Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com>
> > ---
> >  meta/recipes-core/util-linux/util-linux-uuid_2.36.2.bb | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/meta/recipes-core/util-linux/util-linux-uuid_2.36.2.bb
> b/meta/recipes-core/util-linux/util-linux-uuid_2.36.2.bb
> > index 65e4d23b7e..1ff37a4dcb 100644
> > --- a/meta/recipes-core/util-linux/util-linux-uuid_2.36.2.bb
> > +++ b/meta/recipes-core/util-linux/util-linux-uuid_2.36.2.bb
> > @@ -11,7 +11,7 @@ PACKAGES = "util-linux-libuuid util-linux-libuuid-dev
> util-linux-libuuid-staticd
> >  FILES_util-linux-libuuid = "${libdir}/libuuid.so.*"
> >  FILES_util-linux-libuuid-dev = "${libdir}/libuuid.so ${includedir}
> ${libdir}/pkgconfig"
> >  FILES_util-linux-libuuid-staticdev = "${libdir}/libuuid.a"
> > -FILES_util-linux-libuuid-dbg = "/usr/src ${libdir}/.debug"
> > +FILES_util-linux-libuuid-dbg = "/usr/src ${libdir}/.debug ${libdir}/debug"

This is the only occurrence of ${libdir}/debug in OE-Core. Why is it needed 
here if it is a generic thing, when it is not needed anywhere else?
 
> Is there a reason the recipe is called "util-linux-uuid" yet it wants
> to be "util-linux-libuuid"? I suspect if we can rename it, some of
> this juggling goes away.

For what it's worth, it seems the packages end up as libuuid1, libuuid-dbg 
and libuuid-dev anyway. But util-linux-uuid-src retains its original name 
(not sure if that is a bug or working as intended).
 
> Ideally recipes shouldn't be needing to override the defaults for
> PACKAGES and FILES. I just tried a test build with a lot of this stripped
> away and its seeing issues with the -dev package but even adding an
> RPROVIDES for that would be better than all the above overrides...
> 
> Cheers,
> 
> Richard

//Peter



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

end of thread, other threads:[~2021-03-24 23:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-24 17:07 [PATCH] util-linux-uuid: include /usr/lib/debug in FILES_util-linux-libuuid-dbg Luca Bocassi
2021-03-24 21:39 ` Scott Branden
2021-03-24 22:46 ` [OE-core] " Richard Purdie
2021-03-24 23:05   ` Peter Kjellerstedt

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.