Re: [yocto] [meta-security][PATCH 1/2] apparmor: add PRIVATE_LIBS for ptest package

2019-10-16 Thread akuster808


merged
On 10/10/19 4:22 AM, Alexander Kanavin wrote:
> Otherwise, the following occurs:
> ERROR: apparmor-2.13.3-r0 do_package: apparmor: Multiple shlib providers for 
> libapparmor.so.1: apparmor, apparmor-ptest (used by files: 
> /home/alexander/development/poky/build-metaoe/tmp/work/core2-32-poky-linux/apparmor/2.13.3-r0/packages-split/apparmor/usr/lib/perl5/vendor_perl/5.30.0/i686-linux/auto/LibAppArmor/LibAppArmor.so)
> ERROR: apparmor-2.13.3-r0 do_package: apparmor: Multiple shlib providers for 
> libapparmor.so.1: apparmor, apparmor-ptest (used by files: 
> /home/alexander/development/poky/build-metaoe/tmp/work/core2-32-poky-linux/apparmor/2.13.3-r0/packages-split/apparmor/usr/lib/python3.7/site-packages/LibAppArmor/_LibAppArmor.cpython-37m-i686-linux-gnu.so)
>
> Signed-off-by: Alexander Kanavin 
> ---
>  recipes-mac/AppArmor/apparmor_2.13.3.bb | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/recipes-mac/AppArmor/apparmor_2.13.3.bb 
> b/recipes-mac/AppArmor/apparmor_2.13.3.bb
> index 2e5d221..990d870 100644
> --- a/recipes-mac/AppArmor/apparmor_2.13.3.bb
> +++ b/recipes-mac/AppArmor/apparmor_2.13.3.bb
> @@ -165,3 +165,5 @@ RDEPENDS_${PN} += "bash"
>  RDEPENDS_${PN} += 
> "${@bb.utils.contains('PACKAGECONFIG','python','python3-core 
> python3-modules','', d)}"
>  RDEPENDS_${PN}_remove += 
> "${@bb.utils.contains('PACKAGECONFIG','perl','','perl', d)}"
>  RDEPENDS_${PN}-ptest += "perl coreutils dbus-lib bash"
> +
> +PRIVATE_LIBS_${PN}-ptest = "libapparmor.so*"

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [meta-security][PATCH 1/2] apparmor: add PRIVATE_LIBS for ptest package

2019-10-10 Thread Alexander Kanavin
Otherwise, the following occurs:
ERROR: apparmor-2.13.3-r0 do_package: apparmor: Multiple shlib providers for 
libapparmor.so.1: apparmor, apparmor-ptest (used by files: 
/home/alexander/development/poky/build-metaoe/tmp/work/core2-32-poky-linux/apparmor/2.13.3-r0/packages-split/apparmor/usr/lib/perl5/vendor_perl/5.30.0/i686-linux/auto/LibAppArmor/LibAppArmor.so)
ERROR: apparmor-2.13.3-r0 do_package: apparmor: Multiple shlib providers for 
libapparmor.so.1: apparmor, apparmor-ptest (used by files: 
/home/alexander/development/poky/build-metaoe/tmp/work/core2-32-poky-linux/apparmor/2.13.3-r0/packages-split/apparmor/usr/lib/python3.7/site-packages/LibAppArmor/_LibAppArmor.cpython-37m-i686-linux-gnu.so)

Signed-off-by: Alexander Kanavin 
---
 recipes-mac/AppArmor/apparmor_2.13.3.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/recipes-mac/AppArmor/apparmor_2.13.3.bb 
b/recipes-mac/AppArmor/apparmor_2.13.3.bb
index 2e5d221..990d870 100644
--- a/recipes-mac/AppArmor/apparmor_2.13.3.bb
+++ b/recipes-mac/AppArmor/apparmor_2.13.3.bb
@@ -165,3 +165,5 @@ RDEPENDS_${PN} += "bash"
 RDEPENDS_${PN} += "${@bb.utils.contains('PACKAGECONFIG','python','python3-core 
python3-modules','', d)}"
 RDEPENDS_${PN}_remove += 
"${@bb.utils.contains('PACKAGECONFIG','perl','','perl', d)}"
 RDEPENDS_${PN}-ptest += "perl coreutils dbus-lib bash"
+
+PRIVATE_LIBS_${PN}-ptest = "libapparmor.so*"
-- 
2.17.1

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto