[yocto] [meta-security][master][warrior][PATCH 3/3] python3-scapy: solved the conflict with python-scapy
Adrian Bunk
bunk at stusta.de
Mon Jun 10 01:09:30 PDT 2019
On Mon, Jun 10, 2019 at 03:24:24PM +0800, Zang Ruochen wrote:
> -Rename the following file to resolve the conflict with python-scapy:
> Rename /usr/bin/UTscapy to /usr/bin/UTscapy3
> Rename /usr/bin/scapy to /usr/bin/scapy3
>
> Signed-off-by: Zang Ruochen <zangrc.fnst at cn.fujitsu.com>
> ---
> recipes-security/scapy/python3-scapy_2.4.2.bb | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/recipes-security/scapy/python3-scapy_2.4.2.bb b/recipes-security/scapy/python3-scapy_2.4.2.bb
> index 83c79f4..abcaeeb 100644
> --- a/recipes-security/scapy/python3-scapy_2.4.2.bb
> +++ b/recipes-security/scapy/python3-scapy_2.4.2.bb
> @@ -3,3 +3,7 @@ require python-scapy.inc
>
> SRC_URI += "file://run-ptest"
>
> +do_install_append() {
> + mv ${D}${bindir}/scapy ${D}${bindir}/scapy3
> + mv ${D}${bindir}/UTscapy ${D}${bindir}/UTscapy3
> +}
A proper solution would require using alternatives so that installing
either the python2 or the python3 version would provide the binary.
But given that python2 is reaching end of life I would suggest to just
rename the python2 binaries and keep the python3 binaries that will stay
long-term at their upstream names.
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
More information about the yocto
mailing list