python3-scons: Fix license file collision
PATCH 1/1 python3-scons: Fix license file collision
Downloading a file called "LICENSE" into DL_DIR is 'problematic' and collides with the file from other versions of the recipe at best.
Rename it to something more specific to avoid collision problems.
--- meta/recipes-devtools/python/python3-scons_3.1.2.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-devtools/python/python3-scons_3.1.2.bb +2 -2
@@ -1,10 +1,10 @@ SUMMARY = "Software Construction tool (make/autotools replacement)" SECTION = "devel/python" LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://${WORKDIR}/LICENSE;md5=e14e1b33428df24a40a782ae142785d0" +LIC_FILES_CHKSUM = "file://${WORKDIR}/LICENSE-python3-scons-${PV};md5=e14e1b33428df24a40a782ae142785d0" # pypi package does not have a valid license file -SRC_URI += "https://raw.githubusercontent.com/SCons/scons/${PV}/LICENSE;name=license" +SRC_URI += "https://raw.githubusercontent.com/SCons/scons/${PV}/LICENSE;downloadfilename=LICENSE-python3-scons-${PV};name=license" SRC_URI[md5sum] = "f9c4ad06dcf1427be95472eaf380c81a" SRC_URI[sha256sum] = "8aaa483c303efeb678e6f7c776c8444a482f8ddc3ad891f8b6cdd35264da9a1f"
Signature · 1 line
2.25.0
Thank you. It bothered me but I didn’t think if this rather simple solution.
Quoted 44 lines · Richard Purdie
Downloading a file called "LICENSE" into
DL_DIRis 'problematic' and collides with the
file from other versions of the recipe at best.Rename it to something more specific to avoid collision problems.
Signed-off-by Richard Purdie <[email protected]>--- meta/recipes-devtools/python/python3-scons_3.1.2.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)meta/recipes-devtools/python/python3-scons_3.1.2.bb +0
-1@@ -1,10 +1,10 @@ SUMMARY = "Software Construction tool (make/autotools replacement)" SECTION = "devel/python" LICENSE = "MIT" -LIC_FILES_CHKSUM ="file://${WORKDIR}/LICENSE;md5=e14e1b33428df24a40a782ae142785d0" +LIC_FILES_CHKSUM = "file://${WORKDIR}/LICENSE-python3-scons-${PV};md5=e14e1b33428df24a40a782ae142785d0"
# pypi package does not have a valid license file -SRC_URI += " https://raw.githubusercontent.com/SCons/scons/${PV}/LICENSE;name=license" +SRC_URI += " https://raw.githubusercontent.com/SCons/scons/${PV}/LICENSE;downloadfilename=LICENSE-python3-scons-${PV};name=license "SRC_URI[md5sum] = "
f9c4ad06dcf1427be95472eaf380c81a" SRC_URI[sha256sum] =
"8aaa483c303efeb678e6f7c776c8444a482f8ddc3ad891f8b6cdd35264da9a1f" --
2.25.0--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 21 lines
-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Richard Purdie
Sent: den 29 februari 2020 17:16
To: [email protected]
Subject: [OE-core] [PATCH] python3-scons: Fix license file collisionDownloading a file called "LICENSE" into
DL_DIRis 'problematic' and collides with the file from other versions of the recipe at best.Rename it to something more specific to avoid collision problems.
Signed-off-by Richard Purdie <[email protected]>--- meta/recipes-devtools/python/python3-scons_3.1.2.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)meta/recipes-devtools/python/python3-scons_3.1.2.bb +0
-0
meta/recipes-devtools/python/python3-scons_3.1.2.bb line 7
Quoted 9 lines
meta/recipes-devtools/python/python3-scons_3.1.2.bb +2
-2@@ -1,10 +1,10 @@ SUMMARY = "Software Construction tool (make/autotools replacement)" SECTION = "devel/python" LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://${WORKDIR}/LICENSE;md5=e14e1b33428df24a40a782ae142785d0" +LIC_FILES_CHKSUM = "file://${WORKDIR}/LICENSE-python3-scons-${PV};md5=e14e1b33428df24a40a782ae142785d0" # pypi package does not have a valid license file -SRC_URI += "https://raw.githubusercontent.com/SCons/scons/${PV}/LICENSE;name=license" +SRC_URI += "https://raw.githubusercontent.com/SCons/scons/${PV}/LICENSE;downloadfilename=LICENSE-python3-scons-${PV};name=license"
Any reason to not use "${BP}" instead of "python3-scons-${PV}" above? Or should I send a cleanup patch?
Quoted 5 lines
meta/recipes-devtools/python/python3-scons_3.1.2.bb +0
-1SRC_URI[md5sum] = "f9c4ad06dcf1427be95472eaf380c81a" SRC_URI[sha256sum] = "8aaa483c303efeb678e6f7c776c8444a482f8ddc3ad891f8b6cdd35264da9a1f" --2.25.0
//Peter
Quoted 6 lines · Peter Kjellerstedt
Quoted 6 lines
SUMMARY = "Software Construction tool (make/autotools replacement)" SECTION = "devel/python"
LICENSE = "MIT"meta/recipes-devtools/python/python3-scons_3.1.2.bb +1
-1-LIC_FILES_CHKSUM = "file://${WORKDIR}/LICENSE;md5=e14e1b33428df24a40a782ae142785d0" +LIC_FILES_CHKSUM = "file://${WORKDIR}/LICENSE-python3-scons-${PV};md5=e14e1b33428df24a40a782ae142785d0"
Quoted 6 lines
meta/recipes-devtools/python/python3-scons_3.1.2.bb line 7
Quoted 3 lines
# pypi package does not have a valid license filemeta/recipes-devtools/python/python3-scons_3.1.2.bb +1
-1-SRC_URI += "https://raw.githubusercontent.com/SCons/scons/${PV}/LICENSE;name=license" +SRC_URI += "https://raw.githubusercontent.com/SCons/scons/${PV}/LICENSE;downloadfilename=LICENSE-python3-scons-${PV};name=license"Any reason to not use "${BP}" instead of "python3-scons-${PV}" above? Or should I send a cleanup patch?
No reason. I tend to find BP a little harder to read I guess but its just a personal preference.
Cheers,
Richard