Re: [yocto] [meta-security][PATCH 2/5] libldb: work around samba libldb packaging issues
On 3/28/19 11:50 PM, Adrian Bunk wrote: > On Thu, Mar 28, 2019 at 10:28:18PM -0700, Armin Kuster wrote: >> Samba and libldb overlap in a few places. This is the simplest fix for >> now. > Adding a quick hack for interaction problems between two packages > that are both in meta-openembedded by adding a .bbappend in > meta-security creates a technical debt while not even helping > users who are not using meta-security. > > The proper solution is likely to make samba use the external libldb > instead of an internal copy. > >> Signed-off-by: Armin Kuster >> --- >> recipes-support/libldb/libldb_%.bbappend | 22 ++ >> 1 file changed, 22 insertions(+) >> create mode 100644 recipes-support/libldb/libldb_%.bbappend >> >> diff --git a/recipes-support/libldb/libldb_%.bbappend >> b/recipes-support/libldb/libldb_%.bbappend >> new file mode 100644 >> index 000..2633a1e >> --- /dev/null >> +++ b/recipes-support/libldb/libldb_%.bbappend >> @@ -0,0 +1,22 @@ >> +# This fixes this issue: >> +#ERROR: sssd-1.16.3-r0 do_prepare_recipe_sysroot: The file >> /usr/lib/python2.7/site-packages/_ldb_text.py is installed by both libldb >> and samba, aborting >> + >> +EXTRA_OECONF += "--disable-python" >> ... > So just adding the meta-security layer will turn the pyldb* packages > into empty packages? I think I have a possible solution in libldb. patch out shortly. - armin > > cu > Adrian > -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] [meta-security][PATCH 2/5] libldb: work around samba libldb packaging issues
On Fri, Mar 29, 2019 at 08:50:14AM +0200, Adrian Bunk wrote: > On Thu, Mar 28, 2019 at 10:28:18PM -0700, Armin Kuster wrote: > > Samba and libldb overlap in a few places. This is the simplest fix for > > now. > > Adding a quick hack for interaction problems between two packages > that are both in meta-openembedded by adding a .bbappend in > meta-security creates a technical debt while not even helping > users who are not using meta-security. > > The proper solution is likely to make samba use the external libldb > instead of an internal copy. >... commit a001e465293b36c03d4ca4500857fe0a67d13e20 Date: Fri Jul 27 14:09:10 2018 -0700 samba: Update to 4.8.3 LDB 1.4.0 breaks Samba < 4.9 therefore use internal version So the root cause is that last summer LDB in meta-openembedded was updated to a version not compatible with with the Samba version in meta-openembedded. As workaround Samba was changed to use the internal version of the library. What is now proposed is a workaround to fix a regression caused by the first workaround. The best way forward would be to upgrade Samba to 4.9 or 4.10 and use the external LDB again. 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 -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] [meta-security][PATCH 2/5] libldb: work around samba libldb packaging issues
On Thu, Mar 28, 2019 at 10:28:18PM -0700, Armin Kuster wrote: > Samba and libldb overlap in a few places. This is the simplest fix for > now. Adding a quick hack for interaction problems between two packages that are both in meta-openembedded by adding a .bbappend in meta-security creates a technical debt while not even helping users who are not using meta-security. The proper solution is likely to make samba use the external libldb instead of an internal copy. > Signed-off-by: Armin Kuster > --- > recipes-support/libldb/libldb_%.bbappend | 22 ++ > 1 file changed, 22 insertions(+) > create mode 100644 recipes-support/libldb/libldb_%.bbappend > > diff --git a/recipes-support/libldb/libldb_%.bbappend > b/recipes-support/libldb/libldb_%.bbappend > new file mode 100644 > index 000..2633a1e > --- /dev/null > +++ b/recipes-support/libldb/libldb_%.bbappend > @@ -0,0 +1,22 @@ > +# This fixes this issue: > +#ERROR: sssd-1.16.3-r0 do_prepare_recipe_sysroot: The file > /usr/lib/python2.7/site-packages/_ldb_text.py is installed by both libldb and > samba, aborting > + > +EXTRA_OECONF += "--disable-python" >... So just adding the meta-security layer will turn the pyldb* packages into empty packages? 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 -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] [meta-security][PATCH 2/5] libldb: work around samba libldb packaging issues
Samba and libldb overlap in a few places. This is the simplest fix for now. Signed-off-by: Armin Kuster --- recipes-support/libldb/libldb_%.bbappend | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 recipes-support/libldb/libldb_%.bbappend diff --git a/recipes-support/libldb/libldb_%.bbappend b/recipes-support/libldb/libldb_%.bbappend new file mode 100644 index 000..2633a1e --- /dev/null +++ b/recipes-support/libldb/libldb_%.bbappend @@ -0,0 +1,22 @@ +# This fixes this issue: +#ERROR: sssd-1.16.3-r0 do_prepare_recipe_sysroot: The file /usr/lib/python2.7/site-packages/_ldb_text.py is installed by both libldb and samba, aborting + +EXTRA_OECONF += "--disable-python" + +#Error: Transaction check error: +# file /usr/bin/ldbadd conflicts between attempted installs of samba-4.8.4-r0.cortexa15t2hf_neon_vfpv4 and libldb-1.4.1-r0.cortexa15t2hf_neon_vfpv4 +# file /usr/bin/ldbdel conflicts between attempted installs of samba-4.8.4-r0.cortexa15t2hf_neon_vfpv4 and libldb-1.4.1-r0.cortexa15t2hf_neon_vfpv4 +# file /usr/bin/ldbedit conflicts between attempted installs of samba-4.8.4-r0.cortexa15t2hf_neon_vfpv4 and libldb-1.4.1-r0.cortexa15t2hf_neon_vfpv4 +# file /usr/bin/ldbmodify conflicts between attempted installs of samba-4.8.4-r0.cortexa15t2hf_neon_vfpv4 and libldb-1.4.1-r0.cortexa15t2hf_neon_vfpv4 +# file /usr/bin/ldbrename conflicts between attempted installs of samba-4.8.4-r0.cortexa15t2hf_neon_vfpv4 and libldb-1.4.1-r0.cortexa15t2hf_neon_vfpv4 +# file /usr/bin/ldbsearch conflicts between attempted installs of samba-4.8.4-r0.cortexa15t2hf_neon_vfpv4 and libldb-1.4.1-r0.cortexa15t2hf_neon_vfpv4 + +do_install_append() { + rm -f ${D}${bindir}/ldbadd + rm -f ${D}${bindir}/ldbdel + rm -f ${D}${bindir}/ldbedit + rm -f ${D}${bindir}/ldbmodify + rm -f ${D}${bindir}/ldbrename + rm -f ${D}${bindir}/ldbsearch + rmdir ${D}${bindir} +} -- 2.17.1 -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto