Patchwork [2/2] dbus: move libdbus-1.so* to base_libdir

login
register
mail settings
Submitter jackie huang
Date June 20, 2013, 10:36 a.m.
Message ID <d3c4311cd7b6a3082fee8fe0fffb8dfadc061deb.1371724384.git.jackie.huang@windriver.com>
Download mbox | patch
Permalink /patch/52107/
State New
Headers show

Comments

jackie huang - June 20, 2013, 10:36 a.m.
From: Jackie Huang <jackie.huang@windriver.com>

move libdbus-1.so* to base_libdir to kill a warning:

    WARNING: QA Issue: lib32-consolekit: /lib/security/
    pam_ck_connector.so, installed in the base_prefix,
    requires a shared library under exec_prefix (/usr):
    libdbus-1.so.3 => /usr/lib/libdbus-1.so.3 (0xdead3000)

Signed-off-by: Roy.Li <rongqing.li@windriver.com>
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
---
 meta/recipes-core/dbus/dbus.inc |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
Ross Burton - June 20, 2013, 10:39 a.m.
On 20 June 2013 11:36,  <jackie.huang@windriver.com> wrote:
> From: Jackie Huang <jackie.huang@windriver.com>
>
> move libdbus-1.so* to base_libdir to kill a warning:
>
>     WARNING: QA Issue: lib32-consolekit: /lib/security/
>     pam_ck_connector.so, installed in the base_prefix,
>     requires a shared library under exec_prefix (/usr):
>     libdbus-1.so.3 => /usr/lib/libdbus-1.so.3 (0xdead3000)
>
> Signed-off-by: Roy.Li <rongqing.li@windriver.com>
> Signed-off-by: Jackie Huang <jackie.huang@windriver.com>

More and more and more libraries move.  Do we *really* need to support
split-usr?  Have you audited all of the udev helpers yet?

Ross
Richard Purdie - June 20, 2013, 11:14 a.m.
On Thu, 2013-06-20 at 11:39 +0100, Burton, Ross wrote:
> On 20 June 2013 11:36,  <jackie.huang@windriver.com> wrote:
> > From: Jackie Huang <jackie.huang@windriver.com>
> >
> > move libdbus-1.so* to base_libdir to kill a warning:
> >
> >     WARNING: QA Issue: lib32-consolekit: /lib/security/
> >     pam_ck_connector.so, installed in the base_prefix,
> >     requires a shared library under exec_prefix (/usr):
> >     libdbus-1.so.3 => /usr/lib/libdbus-1.so.3 (0xdead3000)
> >
> > Signed-off-by: Roy.Li <rongqing.li@windriver.com>
> > Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
> 
> More and more and more libraries move.  Do we *really* need to support
> split-usr?  Have you audited all of the udev helpers yet?

I have to admit I'm not happy with the piece by piece approach this is
taking. We're going to end up with nearly everything moving to
base_libdir at this rate. If we're going to do this, I want someone to
come up with a definitive list of what needs to move before any more of
these merge.

Cheers,

Richard
Ross Burton - June 20, 2013, 11:27 a.m.
On 20 June 2013 12:14, Richard Purdie
<richard.purdie@linuxfoundation.org> wrote:
> I have to admit I'm not happy with the piece by piece approach this is
> taking. We're going to end up with nearly everything moving to
> base_libdir at this rate. If we're going to do this, I want someone to
> come up with a definitive list of what needs to move before any more of
> these merge.

The "fun" is stuff like udev helpers, which can link to whatever they
want. If the hardware is probed before /usr is mounted, they'll fail
to run and the work they should have done won't have happened.

Stock oe-core doesn't ship any interesting helpers, but on my Debian
system there is mtp-probe linking to /usr/lib/libmtp.so, and
udev-configure-printer (CUPS hotplug support) linking to (deep breath)
libcups gnutls avahi kerberos p11-kit.  So, all of those (and their
dependencies) probably have to move to /lib, or you put in the
documentation that printers and cameras can't be attached at boot.

Ross
Saul Wold - June 20, 2013, 11:46 a.m.
On 06/20/2013 04:14 AM, Richard Purdie wrote:
> On Thu, 2013-06-20 at 11:39 +0100, Burton, Ross wrote:
>> On 20 June 2013 11:36,  <jackie.huang@windriver.com> wrote:
>>> From: Jackie Huang <jackie.huang@windriver.com>
>>>
>>> move libdbus-1.so* to base_libdir to kill a warning:
>>>
>>>      WARNING: QA Issue: lib32-consolekit: /lib/security/
>>>      pam_ck_connector.so, installed in the base_prefix,
>>>      requires a shared library under exec_prefix (/usr):
>>>      libdbus-1.so.3 => /usr/lib/libdbus-1.so.3 (0xdead3000)
>>>
>>> Signed-off-by: Roy.Li <rongqing.li@windriver.com>
>>> Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
>>
>> More and more and more libraries move.  Do we *really* need to support
>> split-usr?  Have you audited all of the udev helpers yet?
>
> I have to admit I'm not happy with the piece by piece approach this is
> taking. We're going to end up with nearly everything moving to
> base_libdir at this rate. If we're going to do this, I want someone to
> come up with a definitive list of what needs to move before any more of
> these merge.
>
And this should be checked with various DISTRO_FEATURES such as pam 
(enabled/disabled) and systemd (enabled/disabled), not just one 
variation, please be sure to list what your testing matrix is.

Thanks
    Sau!

> Cheers,
>
> Richard
>
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
>
jackie huang - June 21, 2013, 2:02 a.m.
On 6/20/2013 7:46 PM, Saul Wold wrote:
> On 06/20/2013 04:14 AM, Richard Purdie wrote:
>> On Thu, 2013-06-20 at 11:39 +0100, Burton, Ross wrote:
>>> On 20 June 2013 11:36,  <jackie.huang@windriver.com> wrote:
>>>> From: Jackie Huang <jackie.huang@windriver.com>
>>>>
>>>> move libdbus-1.so* to base_libdir to kill a warning:
>>>>
>>>>      WARNING: QA Issue: lib32-consolekit: /lib/security/
>>>>      pam_ck_connector.so, installed in the base_prefix,
>>>>      requires a shared library under exec_prefix (/usr):
>>>>      libdbus-1.so.3 => /usr/lib/libdbus-1.so.3 (0xdead3000)
>>>>
>>>> Signed-off-by: Roy.Li <rongqing.li@windriver.com>
>>>> Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
>>>
>>> More and more and more libraries move.  Do we *really* need to support
>>> split-usr?  Have you audited all of the udev helpers yet?
>>
>> I have to admit I'm not happy with the piece by piece approach this is
>> taking. We're going to end up with nearly everything moving to
>> base_libdir at this rate. If we're going to do this, I want someone to
>> come up with a definitive list of what needs to move before any more of
>> these merge.
>>
> And this should be checked with various DISTRO_FEATURES such as pam
> (enabled/disabled) and systemd (enabled/disabled), not just one
> variation, please be sure to list what your testing matrix is.

I tested with DISTRO_FEATURES 'pam' (enabled/disabled) and 'systemd' 
(enabled/disabled) and WARN_QA = "unsafe-references-in-binaries 
unsafe-references-in-scripts", and I have sent a v3. If you are agree to 
merge, please merge the v3 one, thanks!

Thanks,
Jackie

>
> Thanks
>     Sau!
>
>> Cheers,
>>
>> Richard
>>
>>
>>
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>>
>>
>
>
Richard Purdie - June 21, 2013, 12:36 p.m.
On Fri, 2013-06-21 at 10:02 +0800, jhuang0 wrote:
> 
> On 6/20/2013 7:46 PM, Saul Wold wrote:
> > On 06/20/2013 04:14 AM, Richard Purdie wrote:
> >> On Thu, 2013-06-20 at 11:39 +0100, Burton, Ross wrote:
> >>> On 20 June 2013 11:36,  <jackie.huang@windriver.com> wrote:
> >>>> From: Jackie Huang <jackie.huang@windriver.com>
> >>>>
> >>>> move libdbus-1.so* to base_libdir to kill a warning:
> >>>>
> >>>>      WARNING: QA Issue: lib32-consolekit: /lib/security/
> >>>>      pam_ck_connector.so, installed in the base_prefix,
> >>>>      requires a shared library under exec_prefix (/usr):
> >>>>      libdbus-1.so.3 => /usr/lib/libdbus-1.so.3 (0xdead3000)
> >>>>
> >>>> Signed-off-by: Roy.Li <rongqing.li@windriver.com>
> >>>> Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
> >>>
> >>> More and more and more libraries move.  Do we *really* need to support
> >>> split-usr?  Have you audited all of the udev helpers yet?
> >>
> >> I have to admit I'm not happy with the piece by piece approach this is
> >> taking. We're going to end up with nearly everything moving to
> >> base_libdir at this rate. If we're going to do this, I want someone to
> >> come up with a definitive list of what needs to move before any more of
> >> these merge.
> >>
> > And this should be checked with various DISTRO_FEATURES such as pam
> > (enabled/disabled) and systemd (enabled/disabled), not just one
> > variation, please be sure to list what your testing matrix is.
> 
> I tested with DISTRO_FEATURES 'pam' (enabled/disabled) and 'systemd' 
> (enabled/disabled) and WARN_QA = "unsafe-references-in-binaries 
> unsafe-references-in-scripts", and I have sent a v3. If you are agree to 
> merge, please merge the v3 one, thanks!

As I said, I'm not taking any more of these moves until there is a well
thought out analysis/plan. Sorry.

Cheers,

Richard
jackie huang - June 27, 2013, 3:36 a.m.
On 6/21/2013 8:36 PM, Richard Purdie wrote:
> On Fri, 2013-06-21 at 10:02 +0800, jhuang0 wrote:
>>
>> On 6/20/2013 7:46 PM, Saul Wold wrote:
>>> On 06/20/2013 04:14 AM, Richard Purdie wrote:
>>>> On Thu, 2013-06-20 at 11:39 +0100, Burton, Ross wrote:
>>>>> On 20 June 2013 11:36,  <jackie.huang@windriver.com> wrote:
>>>>>> From: Jackie Huang <jackie.huang@windriver.com>
>>>>>>
>>>>>> move libdbus-1.so* to base_libdir to kill a warning:
>>>>>>
>>>>>>       WARNING: QA Issue: lib32-consolekit: /lib/security/
>>>>>>       pam_ck_connector.so, installed in the base_prefix,
>>>>>>       requires a shared library under exec_prefix (/usr):
>>>>>>       libdbus-1.so.3 => /usr/lib/libdbus-1.so.3 (0xdead3000)
>>>>>>
>>>>>> Signed-off-by: Roy.Li <rongqing.li@windriver.com>
>>>>>> Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
>>>>>
>>>>> More and more and more libraries move.  Do we *really* need to support
>>>>> split-usr?  Have you audited all of the udev helpers yet?
>>>>
>>>> I have to admit I'm not happy with the piece by piece approach this is
>>>> taking. We're going to end up with nearly everything moving to
>>>> base_libdir at this rate. If we're going to do this, I want someone to
>>>> come up with a definitive list of what needs to move before any more of
>>>> these merge.
>>>>
>>> And this should be checked with various DISTRO_FEATURES such as pam
>>> (enabled/disabled) and systemd (enabled/disabled), not just one
>>> variation, please be sure to list what your testing matrix is.
>>
>> I tested with DISTRO_FEATURES 'pam' (enabled/disabled) and 'systemd'
>> (enabled/disabled) and WARN_QA = "unsafe-references-in-binaries
>> unsafe-references-in-scripts", and I have sent a v3. If you are agree to
>> merge, please merge the v3 one, thanks!
>
> As I said, I'm not taking any more of these moves until there is a well
> thought out analysis/plan. Sorry.

Hi Richard/Saul,

We sent these since we used bbappend approach to fix issues in our layer 
and now we want to minimize the usage of bbappend files, I admit that 
the piece by piece approach is not good so I undertand if it is not 
taken, we will analyze the issue and come out a plan sometime later.

Thanks,
Jackie

>
> Cheers,
>
> Richard
>
>

Patch

diff --git a/meta/recipes-core/dbus/dbus.inc b/meta/recipes-core/dbus/dbus.inc
index 8055824..919d17e 100644
--- a/meta/recipes-core/dbus/dbus.inc
+++ b/meta/recipes-core/dbus/dbus.inc
@@ -12,7 +12,7 @@  DEPENDS_class-nativesdk = "nativesdk-expat virtual/nativesdk-libintl"
 RDEPENDS_dbus = "${@base_contains('DISTRO_FEATURES', 'ptest', 'dbus-ptest-ptest', '', d)}"
 RDEPENDS_class-native = ""
 
-INC_PR = "r6"
+INC_PR = "r7"
 
 SRC_URI = "http://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.gz \
            file://tmpdir.patch; \
@@ -116,6 +116,14 @@  do_install() {
 
 	# Remove /var/run as it is created on startup
 	rm -rf ${D}${localstatedir}/run
+
+	# Move libdbus-1.so.3* to base_libdir
+	if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then
+	        mkdir -p ${D}/${base_libdir}/
+	        mv -f ${D}${libdir}/libdbus-1.so.3* ${D}${base_libdir}/
+	        rel_lib_prefix=${@os.path.relpath(d.getVar('base_libdir', True), d.getVar('libdir', True))}
+	        ln -sf ${rel_lib_prefix}/libdbus-1.so.3.7.2 ${D}${libdir}/libdbus-1.so
+	fi
 }
 
 do_install_class-native() {