All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4] elfutils: split libdebuginfod into its own package
@ 2021-01-27 13:27 Dorinda
  2021-01-27 13:35 ` [OE-core] " Quentin Schulz
  0 siblings, 1 reply; 3+ messages in thread
From: Dorinda @ 2021-01-27 13:27 UTC (permalink / raw)
  To: openembedded-core; +Cc: dorindabassey

Added package options for libdebuginfod.
Added GPLv2+ | LGPLv3+ license for libdebuginfod with reference to https://sourceware.org/git/?p=elfutils.git;a=blob;f=debuginfod/debuginfod-client.c;h=de26af5bb26e187b51d9ea00d5826e199a96d01a;hb=HEAD

[YOCTO #13807]

Signed-off-by: Dorinda Bassey <dorindabassey@gmail.com>
---
v4:
-changed LIC_FILES_CHKSUM for debuginfod-client.c

 meta/recipes-devtools/elfutils/elfutils_0.182.bb | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-devtools/elfutils/elfutils_0.182.bb b/meta/recipes-devtools/elfutils/elfutils_0.182.bb
index f63208d72b..0b4c30b936 100644
--- a/meta/recipes-devtools/elfutils/elfutils_0.182.bb
+++ b/meta/recipes-devtools/elfutils/elfutils_0.182.bb
@@ -1,8 +1,10 @@
 SUMMARY = "Utilities and libraries for handling compiled object files"
 HOMEPAGE = "https://sourceware.org/elfutils"
 SECTION = "base"
-LICENSE = "GPLv2 & LGPLv3+ & GPLv3+"
-LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
+LICENSE = "GPLv2 & GPLv2+ & LGPLv3+ & GPLv3+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
+                    file://debuginfod/debuginfod-client.c;md5=0cf97982735b2ea53f5d7fcd7d88dafe \
+                    "
 DEPENDS = "zlib virtual/libintl"
 DEPENDS_append_libc-musl = " argp-standalone fts musl-obstack "
 # The Debian patches below are from:
@@ -91,7 +93,7 @@ EXTRA_OEMAKE_class-nativesdk = ""
 BBCLASSEXTEND = "native nativesdk"
 
 # Package utilities separately
-PACKAGES =+ "${PN}-binutils libelf libasm libdw"
+PACKAGES =+ "${PN}-binutils libelf libasm libdw libdebuginfod"
 
 # shared libraries are licensed GPLv2 or GPLv3+, binaries GPLv3+
 # according to NEWS file:
@@ -103,6 +105,7 @@ LICENSE_${PN} = "GPLv3+"
 LICENSE_libelf = "GPLv2 | LGPLv3+"
 LICENSE_libasm = "GPLv2 | LGPLv3+"
 LICENSE_libdw = "GPLv2 | LGPLv3+"
+LICENSE_libdebuginfod = "GPLv2+ | LGPLv3+"
 
 FILES_${PN}-binutils = "\
     ${bindir}/eu-addr2line \
@@ -115,6 +118,7 @@ FILES_${PN}-binutils = "\
 FILES_libelf = "${libdir}/libelf-${PV}.so ${libdir}/libelf.so.*"
 FILES_libasm = "${libdir}/libasm-${PV}.so ${libdir}/libasm.so.*"
 FILES_libdw  = "${libdir}/libdw-${PV}.so ${libdir}/libdw.so.* ${libdir}/elfutils/lib*"
+FILES_libdebuginfod = "${libdir}/libdebuginfod-${PV}.so ${libdir}/libdebuginfod.so.*"
 # Some packages have the version preceeding the .so instead properly
 # versioned .so.<version>, so we need to reorder and repackage.
 #FILES_${PN} += "${libdir}/*-${PV}.so ${base_libdir}/*-${PV}.so"
-- 
2.17.1


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

* Re: [OE-core] [PATCH v4] elfutils: split libdebuginfod into its own package
  2021-01-27 13:27 [PATCH v4] elfutils: split libdebuginfod into its own package Dorinda
@ 2021-01-27 13:35 ` Quentin Schulz
  2021-01-27 14:07   ` Richard Purdie
  0 siblings, 1 reply; 3+ messages in thread
From: Quentin Schulz @ 2021-01-27 13:35 UTC (permalink / raw)
  To: Dorinda; +Cc: openembedded-core

Hi Dorinda,

On Wed, Jan 27, 2021 at 02:27:12PM +0100, Dorinda wrote:
> Added package options for libdebuginfod.
> Added GPLv2+ | LGPLv3+ license for libdebuginfod with reference to https://sourceware.org/git/?p=elfutils.git;a=blob;f=debuginfod/debuginfod-client.c;h=de26af5bb26e187b51d9ea00d5826e199a96d01a;hb=HEAD
> 
> [YOCTO #13807]
> 
> Signed-off-by: Dorinda Bassey <dorindabassey@gmail.com>
> ---
> v4:
> -changed LIC_FILES_CHKSUM for debuginfod-client.c
> 
>  meta/recipes-devtools/elfutils/elfutils_0.182.bb | 10 +++++++---
>  1 file changed, 7 insertions(+), 3 deletions(-)
> 
> diff --git a/meta/recipes-devtools/elfutils/elfutils_0.182.bb b/meta/recipes-devtools/elfutils/elfutils_0.182.bb
> index f63208d72b..0b4c30b936 100644
> --- a/meta/recipes-devtools/elfutils/elfutils_0.182.bb
> +++ b/meta/recipes-devtools/elfutils/elfutils_0.182.bb
> @@ -1,8 +1,10 @@
>  SUMMARY = "Utilities and libraries for handling compiled object files"
>  HOMEPAGE = "https://sourceware.org/elfutils"
>  SECTION = "base"
> -LICENSE = "GPLv2 & LGPLv3+ & GPLv3+"
> -LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
> +LICENSE = "GPLv2 & GPLv2+ & LGPLv3+ & GPLv3+"
> +LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
> +                    file://debuginfod/debuginfod-client.c;md5=0cf97982735b2ea53f5d7fcd7d88dafe \

That won't fly. Any change to debuginfod/debuginfod-client.c will
trigger a build error because of license changes (which isn't
necessarily the case).

This makes it harder to upgrade the recipe (usually, just changing the
recipe version in the filename is enough, and changes to
LIC_FILES_CHKSUM smell fishy).

You want to use:
file://debuginfod/debuginfod-client.c;endline=27;md5=xxxxxx

c.f. https://docs.yoctoproject.org/dev-manual/common-tasks.html#specifying-the-lic-files-chksum-variable

Cheers,
Quentin

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

* Re: [OE-core] [PATCH v4] elfutils: split libdebuginfod into its own package
  2021-01-27 13:35 ` [OE-core] " Quentin Schulz
@ 2021-01-27 14:07   ` Richard Purdie
  0 siblings, 0 replies; 3+ messages in thread
From: Richard Purdie @ 2021-01-27 14:07 UTC (permalink / raw)
  To: Quentin Schulz, Dorinda; +Cc: openembedded-core

On Wed, 2021-01-27 at 14:35 +0100, Quentin Schulz wrote:
> Hi Dorinda,
> 
> On Wed, Jan 27, 2021 at 02:27:12PM +0100, Dorinda wrote:
> > Added package options for libdebuginfod.
> > Added GPLv2+ | LGPLv3+ license for libdebuginfod with reference to https://sourceware.org/git/?p=elfutils.git;a=blob;f=debuginfod/debuginfod-client.c;h=de26af5bb26e187b51d9ea00d5826e199a96d01a;hb=HEAD
> > 
> > [YOCTO #13807]
> > 
> > Signed-off-by: Dorinda Bassey <dorindabassey@gmail.com>
> > ---
> > v4:
> > -changed LIC_FILES_CHKSUM for debuginfod-client.c
> > 
> >  meta/recipes-devtools/elfutils/elfutils_0.182.bb | 10 +++++++---
> >  1 file changed, 7 insertions(+), 3 deletions(-)
> > 
> > diff --git a/meta/recipes-devtools/elfutils/elfutils_0.182.bb b/meta/recipes-devtools/elfutils/elfutils_0.182.bb
> > index f63208d72b..0b4c30b936 100644
> > --- a/meta/recipes-devtools/elfutils/elfutils_0.182.bb
> > +++ b/meta/recipes-devtools/elfutils/elfutils_0.182.bb
> > @@ -1,8 +1,10 @@
> >  SUMMARY = "Utilities and libraries for handling compiled object files"
> >  HOMEPAGE = "https://sourceware.org/elfutils"
> >  SECTION = "base"
> > -LICENSE = "GPLv2 & LGPLv3+ & GPLv3+"
> > -LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
> > +LICENSE = "GPLv2 & GPLv2+ & LGPLv3+ & GPLv3+"
> > +LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
> > +                    file://debuginfod/debuginfod-client.c;md5=0cf97982735b2ea53f5d7fcd7d88dafe \
> 
> That won't fly. Any change to debuginfod/debuginfod-client.c will
> trigger a build error because of license changes (which isn't
> necessarily the case).
> 
> This makes it harder to upgrade the recipe (usually, just changing the
> recipe version in the filename is enough, and changes to
> LIC_FILES_CHKSUM smell fishy).
> 
> You want to use:
> file://debuginfod/debuginfod-client.c;endline=27;md5=xxxxxx
> 
> c.f. https://docs.yoctoproject.org/dev-manual/common-tasks.html#specifying-the-lic-files-chksum-variable

To be fair I think that was in a previous patch and my comments weren't
clear, I was asking for the ${WORKDIR} piece to be removed but not the
parameters which were correct!

Cheers,

Richard


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

end of thread, other threads:[~2021-01-27 14:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-27 13:27 [PATCH v4] elfutils: split libdebuginfod into its own package Dorinda
2021-01-27 13:35 ` [OE-core] " Quentin Schulz
2021-01-27 14:07   ` Richard Purdie

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.