Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/python-pycrypto: fix legal-info
@ 2013-12-23 17:39 Yann E. MORIN
  2013-12-23 18:21 ` Baruch Siach
  2013-12-25  9:09 ` Thomas Petazzoni
  0 siblings, 2 replies; 4+ messages in thread
From: Yann E. MORIN @ 2013-12-23 17:39 UTC (permalink / raw)
  To: buildroot

From: "Yann E. MORIN" <yann.morin.1998@free.fr>

The pycrypto package contains a LICENSE.orig file, but apply-patches.sh
removes all .orig file, so we can't list a .orig file asa license file,
as it would have disapeared by the time 'make legal-info' sould be called.

Add a post-extract hook that renames this license file, so it is renamed
just before we apply patches and remove .orig files.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Ryan Barnett <rjbarnet@rockwellcollins.com>
---
 package/python-pycrypto/python-pycrypto.mk | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/package/python-pycrypto/python-pycrypto.mk b/package/python-pycrypto/python-pycrypto.mk
index eda48bd..f872ccc 100644
--- a/package/python-pycrypto/python-pycrypto.mk
+++ b/package/python-pycrypto/python-pycrypto.mk
@@ -11,7 +11,17 @@ PYTHON_PYCRYPTO_SETUP_TYPE = distutils
 
 PYTHON_PYCRYPTO_LICENSE = Public Domain, Python 2.2 License (HMAC.py, setup.py)
 PYTHON_PYCRYPTO_LICENSE_FILES = COPYRIGHT LEGAL/copy/LICENSE.libtom \
-		LEGAL/copy/LICENSE.orig LEGAL/copy/LICENSE.python-2.2
+		LEGAL/copy/LICENSE.python-2.2
+
+# The pycrypto package contains a LICENSE.orig file, but our patching
+# infrastrucure removes all .orig file, so we must rename that license
+# file prior to patching, so it is still available to the legal-info
+# infrastructure
+define PYTHON_PYCRYPTO_RENAME_LICENSE
+	mv $(@D)/LEGAL/copy/LICENSE.orig $(@D)/LEGAL/copy/LICENSE.original
+endef
+PYTHON_PYCRYPTO_POST_EXTRACT_HOOKS += PYTHON_PYCRYPTO_RENAME_LICENSE
+PYTHON_PYCRYPTO_LICENSE_FILES += LEGAL/copy/LICENSE.original
 
 PYTHON_PYCRYPTO_DEPENDENCIES = gmp
 
-- 
1.8.1.2

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

* [Buildroot] [PATCH] package/python-pycrypto: fix legal-info
  2013-12-23 17:39 [Buildroot] [PATCH] package/python-pycrypto: fix legal-info Yann E. MORIN
@ 2013-12-23 18:21 ` Baruch Siach
  2013-12-23 18:27   ` Yann E. MORIN
  2013-12-25  9:09 ` Thomas Petazzoni
  1 sibling, 1 reply; 4+ messages in thread
From: Baruch Siach @ 2013-12-23 18:21 UTC (permalink / raw)
  To: buildroot

Hi Yann,

On Mon, Dec 23, 2013 at 06:39:48PM +0100, Yann E. MORIN wrote:
> From: "Yann E. MORIN" <yann.morin.1998@free.fr>
> 
> The pycrypto package contains a LICENSE.orig file, but apply-patches.sh
> removes all .orig file, so we can't list a .orig file asa license file,

as a

> as it would have disapeared by the time 'make legal-info' sould be called.
> 
> Add a post-extract hook that renames this license file, so it is renamed
> just before we apply patches and remove .orig files.
> 
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> Cc: Ryan Barnett <rjbarnet@rockwellcollins.com>
> ---
>  package/python-pycrypto/python-pycrypto.mk | 12 +++++++++++-
>  1 file changed, 11 insertions(+), 1 deletion(-)
> 
> diff --git a/package/python-pycrypto/python-pycrypto.mk b/package/python-pycrypto/python-pycrypto.mk
> index eda48bd..f872ccc 100644
> --- a/package/python-pycrypto/python-pycrypto.mk
> +++ b/package/python-pycrypto/python-pycrypto.mk
> @@ -11,7 +11,17 @@ PYTHON_PYCRYPTO_SETUP_TYPE = distutils
>  
>  PYTHON_PYCRYPTO_LICENSE = Public Domain, Python 2.2 License (HMAC.py, setup.py)
>  PYTHON_PYCRYPTO_LICENSE_FILES = COPYRIGHT LEGAL/copy/LICENSE.libtom \
> -		LEGAL/copy/LICENSE.orig LEGAL/copy/LICENSE.python-2.2
> +		LEGAL/copy/LICENSE.python-2.2

You remove LICENSE.orig from the list, but don't add LICENSE.original.

> +
> +# The pycrypto package contains a LICENSE.orig file, but our patching
> +# infrastrucure removes all .orig file, so we must rename that license
> +# file prior to patching, so it is still available to the legal-info
> +# infrastructure
> +define PYTHON_PYCRYPTO_RENAME_LICENSE
> +	mv $(@D)/LEGAL/copy/LICENSE.orig $(@D)/LEGAL/copy/LICENSE.original
> +endef
> +PYTHON_PYCRYPTO_POST_EXTRACT_HOOKS += PYTHON_PYCRYPTO_RENAME_LICENSE
> +PYTHON_PYCRYPTO_LICENSE_FILES += LEGAL/copy/LICENSE.original
>  
>  PYTHON_PYCRYPTO_DEPENDENCIES = gmp

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

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

* [Buildroot] [PATCH] package/python-pycrypto: fix legal-info
  2013-12-23 18:21 ` Baruch Siach
@ 2013-12-23 18:27   ` Yann E. MORIN
  0 siblings, 0 replies; 4+ messages in thread
From: Yann E. MORIN @ 2013-12-23 18:27 UTC (permalink / raw)
  To: buildroot

Baruch, All,

On 2013-12-23 20:21 +0200, Baruch Siach spake thusly:
> Hi Yann,
> 
> On Mon, Dec 23, 2013 at 06:39:48PM +0100, Yann E. MORIN wrote:
> > From: "Yann E. MORIN" <yann.morin.1998@free.fr>
> > 
> > The pycrypto package contains a LICENSE.orig file, but apply-patches.sh
> > removes all .orig file, so we can't list a .orig file asa license file,
> 
> as a

Indeed! ;-)

> > as it would have disapeared by the time 'make legal-info' sould be called.
> > 
> > Add a post-extract hook that renames this license file, so it is renamed
> > just before we apply patches and remove .orig files.
> > 
> > Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> > Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> > Cc: Ryan Barnett <rjbarnet@rockwellcollins.com>
> > ---
> >  package/python-pycrypto/python-pycrypto.mk | 12 +++++++++++-
> >  1 file changed, 11 insertions(+), 1 deletion(-)
> > 
> > diff --git a/package/python-pycrypto/python-pycrypto.mk b/package/python-pycrypto/python-pycrypto.mk
> > index eda48bd..f872ccc 100644
> > --- a/package/python-pycrypto/python-pycrypto.mk
> > +++ b/package/python-pycrypto/python-pycrypto.mk
> > @@ -11,7 +11,17 @@ PYTHON_PYCRYPTO_SETUP_TYPE = distutils
> >  
> >  PYTHON_PYCRYPTO_LICENSE = Public Domain, Python 2.2 License (HMAC.py, setup.py)
> >  PYTHON_PYCRYPTO_LICENSE_FILES = COPYRIGHT LEGAL/copy/LICENSE.libtom \
> > -		LEGAL/copy/LICENSE.orig LEGAL/copy/LICENSE.python-2.2
> > +		LEGAL/copy/LICENSE.python-2.2
> 
> You remove LICENSE.orig from the list, but don't add LICENSE.original.

Yes I do. See below...

> > +
> > +# The pycrypto package contains a LICENSE.orig file, but our patching
> > +# infrastrucure removes all .orig file, so we must rename that license
> > +# file prior to patching, so it is still available to the legal-info
> > +# infrastructure
> > +define PYTHON_PYCRYPTO_RENAME_LICENSE
> > +	mv $(@D)/LEGAL/copy/LICENSE.orig $(@D)/LEGAL/copy/LICENSE.original
> > +endef
> > +PYTHON_PYCRYPTO_POST_EXTRACT_HOOKS += PYTHON_PYCRYPTO_RENAME_LICENSE
> > +PYTHON_PYCRYPTO_LICENSE_FILES += LEGAL/copy/LICENSE.original
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
... here.

I did explicitly moved it down so it is obvious the license file we
install is the one we renamed.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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

* [Buildroot] [PATCH] package/python-pycrypto: fix legal-info
  2013-12-23 17:39 [Buildroot] [PATCH] package/python-pycrypto: fix legal-info Yann E. MORIN
  2013-12-23 18:21 ` Baruch Siach
@ 2013-12-25  9:09 ` Thomas Petazzoni
  1 sibling, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2013-12-25  9:09 UTC (permalink / raw)
  To: buildroot

Dear Yann E. MORIN,

On Mon, 23 Dec 2013 18:39:48 +0100, Yann E. MORIN wrote:
> From: "Yann E. MORIN" <yann.morin.1998@free.fr>
> 
> The pycrypto package contains a LICENSE.orig file, but apply-patches.sh
> removes all .orig file, so we can't list a .orig file asa license file,
> as it would have disapeared by the time 'make legal-info' sould be called.
> 
> Add a post-extract hook that renames this license file, so it is renamed
> just before we apply patches and remove .orig files.
> 
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> Cc: Ryan Barnett <rjbarnet@rockwellcollins.com>
> ---
>  package/python-pycrypto/python-pycrypto.mk | 12 +++++++++++-
>  1 file changed, 11 insertions(+), 1 deletion(-)

Applied, thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

end of thread, other threads:[~2013-12-25  9:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-23 17:39 [Buildroot] [PATCH] package/python-pycrypto: fix legal-info Yann E. MORIN
2013-12-23 18:21 ` Baruch Siach
2013-12-23 18:27   ` Yann E. MORIN
2013-12-25  9:09 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox