mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: Roland Hieber <rhi@pengutronix.de>
Cc: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH v3 2/2] binutils: add license information
Date: Thu, 15 Dec 2022 09:33:37 +0100	[thread overview]
Message-ID: <Y5rb4Wc9+Q+6bg0s@pengutronix.de> (raw)
In-Reply-To: <20221212222655.h6zidsrr2pn6qreb@pengutronix.de>

On Mon, Dec 12, 2022 at 11:26:55PM +0100, Roland Hieber wrote:
> On Mon, Dec 12, 2022 at 11:17:26PM +0100, Roland Hieber wrote:
> > Only readelf and objdump are installed to the target, but they are
> > statically linked to the bundled zlib, libbfd, libctf, libiberty, and
> > libopcodes, which don't have the same licenses. Try a divide-and-conquer
> > strategy here to keep the clarity.
> > 
> > libiberty includes an "unknown" portion in libiberty/xatexit.c, which
> > only carries the following lines:
> > 
> >     | /*
> >     |  * Copyright (c) 1990 Regents of the University of California.
> >     |  * All rights reserved.
> >     |  *
> >     |  * %sccs.include.redist.c%
> >     |  */
> > 
> > Reported-by: Felicitas Jung <f.jung@pengutronix.de>
> > Signed-off-by: Roland Hieber <rhi@pengutronix.de>
> > ---
> > PATCH v3:
> >  - unravel the sub-libs into clearly arranged license statements
> >  - this is the last patch that remained open from the original PULL v1.
> > 
> > PATCH v2: https://lore.ptxdist.org/ptxdist/20211205004208.2306245-13-rhi@pengutronix.de
> >  - use "custom-exception" instead of "unknown"
> >  - rebase to current master, review and adapt MD5 sums accordingly
> > 
> > PULL v1: https://lore.ptxdist.org/ptxdist/20200527112204.ll7ij44ahllid6ip@pengutronix.de
> > ---
> >  rules/binutils.make | 56 +++++++++++++++++++++++++++++++++++++++++++++
> >  1 file changed, 56 insertions(+)
> > 
> > diff --git a/rules/binutils.make b/rules/binutils.make
> > index 20bb5d60f700..aed4d9226b35 100644
> > --- a/rules/binutils.make
> > +++ b/rules/binutils.make
> > @@ -23,6 +23,62 @@ BINUTILS_URL		:= $(call ptx/mirror, GNU, binutils/$(BINUTILS).$(BINUTILS_SUFFIX)
> >  BINUTILS_SOURCE		:= $(SRCDIR)/$(BINUTILS).$(BINUTILS_SUFFIX)
> >  BINUTILS_DIR		:= $(BUILDDIR)/$(BINUTILS)
> 
> Oh my. I just discovered that the binutils version depends on the
> toolchain version too, so this patch only works cleanly with
> OSELAS.Toolchain 2022.10.0 which brings us binutils 2.39 …
> 
> So I guess we need to find a similar versioning strategy for the license
> variables, as with the kernel package.

I think, something like what we do for glibc would make sense:
Provide a file to include with the toolchain for the simple case.
For toolchains that don't have it yet, I think a
rules/binutils.license.make is needed in the BSP.

Michael

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



  reply	other threads:[~2022-12-15  8:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-12 22:17 [ptxdist] [PATCH v3 1/2] binutils: build with system zlib Roland Hieber
2022-12-12 22:17 ` [ptxdist] [PATCH v3 2/2] binutils: add license information Roland Hieber
2022-12-12 22:26   ` Roland Hieber
2022-12-15  8:33     ` Michael Olbrich [this message]
2023-01-03 11:08 ` [ptxdist] [APPLIED] binutils: build with system zlib Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Y5rb4Wc9+Q+6bg0s@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    --cc=rhi@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox