Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] Correct lsb commands install_initd/remove_initd install directory
@ 2013-11-13  8:27 Kai Kang
  2013-11-13  8:27 ` [PATCH 1/1] lsb: update directory of install_initd and remove_initd Kai Kang
  0 siblings, 1 reply; 5+ messages in thread
From: Kai Kang @ 2013-11-13  8:27 UTC (permalink / raw)
  To: openembedded-core

The following changes since commit ea92671d9823e3667d6ced7ac2af20f991da404d:

  bitbake: cooker: replace "w" file opening mode with "a" mode (2013-11-12 17:01:37 +0000)

are available in the git repository at:

  git://git.pokylinux.org/poky-contrib kangkai/lsb
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=kangkai/lsb

Kai Kang (1):
  lsb: update directory of install_initd and remove_initd

 meta/recipes-extended/lsb/lsb_4.1.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
1.8.1.2



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/1] lsb: update directory of install_initd and remove_initd
  2013-11-13  8:27 [PATCH 0/1] Correct lsb commands install_initd/remove_initd install directory Kai Kang
@ 2013-11-13  8:27 ` Kai Kang
  2013-11-18  5:26   ` Kang Kai
  2013-12-10 19:40   ` Saul Wold
  0 siblings, 2 replies; 5+ messages in thread
From: Kai Kang @ 2013-11-13  8:27 UTC (permalink / raw)
  To: openembedded-core

According to LSB specification:

http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/installinitd.html
http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/removeinitd.html

commands install_initd and remove_initd should under directory /usr/lib/lsb/.

lsb recipe creates these commands under directory ${libdir} which may
expand to /usr/lib64 when multilib is enabled on qemux86-64. That will
cause LSB command check for install_initd and remove_initd fail. So
correct it.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
 meta/recipes-extended/lsb/lsb_4.1.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-extended/lsb/lsb_4.1.bb b/meta/recipes-extended/lsb/lsb_4.1.bb
index c80ff59..8105e59 100644
--- a/meta/recipes-extended/lsb/lsb_4.1.bb
+++ b/meta/recipes-extended/lsb/lsb_4.1.bb
@@ -79,8 +79,8 @@ do_install_append(){
 
        # creat links for LSB test
        install -d ${D}/${libdir}/lsb
-       ln -sf ${sbindir}/chkconfig ${D}/${libdir}/lsb/install_initd
-       ln -sf ${sbindir}/chkconfig ${D}/${libdir}/lsb/remove_initd
+       ln -sf ${sbindir}/chkconfig ${D}/usr/lib/lsb/install_initd
+       ln -sf ${sbindir}/chkconfig ${D}/usr/lib/lsb/remove_initd
        ln -sf ${sbindir}/sendmail ${D}/${libdir}/sendmail
 
        if [ "${TARGET_ARCH}" = "x86_64" ];then
-- 
1.8.1.2



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/1] lsb: update directory of install_initd and remove_initd
  2013-11-13  8:27 ` [PATCH 1/1] lsb: update directory of install_initd and remove_initd Kai Kang
@ 2013-11-18  5:26   ` Kang Kai
  2013-12-10 19:40   ` Saul Wold
  1 sibling, 0 replies; 5+ messages in thread
From: Kang Kai @ 2013-11-18  5:26 UTC (permalink / raw)
  To: openembedded-core

On 2013年11月13日 16:27, Kai Kang wrote:

ping?

> According to LSB specification:
>
> http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/installinitd.html
> http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/removeinitd.html
>
> commands install_initd and remove_initd should under directory /usr/lib/lsb/.
>
> lsb recipe creates these commands under directory ${libdir} which may
> expand to /usr/lib64 when multilib is enabled on qemux86-64. That will
> cause LSB command check for install_initd and remove_initd fail. So
> correct it.
>
> Signed-off-by: Kai Kang <kai.kang@windriver.com>
> ---
>   meta/recipes-extended/lsb/lsb_4.1.bb | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta/recipes-extended/lsb/lsb_4.1.bb b/meta/recipes-extended/lsb/lsb_4.1.bb
> index c80ff59..8105e59 100644
> --- a/meta/recipes-extended/lsb/lsb_4.1.bb
> +++ b/meta/recipes-extended/lsb/lsb_4.1.bb
> @@ -79,8 +79,8 @@ do_install_append(){
>   
>          # creat links for LSB test
>          install -d ${D}/${libdir}/lsb
> -       ln -sf ${sbindir}/chkconfig ${D}/${libdir}/lsb/install_initd
> -       ln -sf ${sbindir}/chkconfig ${D}/${libdir}/lsb/remove_initd
> +       ln -sf ${sbindir}/chkconfig ${D}/usr/lib/lsb/install_initd
> +       ln -sf ${sbindir}/chkconfig ${D}/usr/lib/lsb/remove_initd
>          ln -sf ${sbindir}/sendmail ${D}/${libdir}/sendmail
>   
>          if [ "${TARGET_ARCH}" = "x86_64" ];then


-- 
Regards,
Neil | Kai Kang



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/1] lsb: update directory of install_initd and remove_initd
  2013-11-13  8:27 ` [PATCH 1/1] lsb: update directory of install_initd and remove_initd Kai Kang
  2013-11-18  5:26   ` Kang Kai
@ 2013-12-10 19:40   ` Saul Wold
  2013-12-11  1:54     ` Kang Kai
  1 sibling, 1 reply; 5+ messages in thread
From: Saul Wold @ 2013-12-10 19:40 UTC (permalink / raw)
  To: Kai Kang, openembedded-core

On 11/13/2013 12:27 AM, Kai Kang wrote:
> According to LSB specification:
>
> http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/installinitd.html
> http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/removeinitd.html
>
> commands install_initd and remove_initd should under directory /usr/lib/lsb/.
>
> lsb recipe creates these commands under directory ${libdir} which may
> expand to /usr/lib64 when multilib is enabled on qemux86-64. That will
> cause LSB command check for install_initd and remove_initd fail. So
> correct it.
>
> Signed-off-by: Kai Kang <kai.kang@windriver.com>
> ---
>   meta/recipes-extended/lsb/lsb_4.1.bb | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta/recipes-extended/lsb/lsb_4.1.bb b/meta/recipes-extended/lsb/lsb_4.1.bb
> index c80ff59..8105e59 100644
> --- a/meta/recipes-extended/lsb/lsb_4.1.bb
> +++ b/meta/recipes-extended/lsb/lsb_4.1.bb
> @@ -79,8 +79,8 @@ do_install_append(){
>
>          # creat links for LSB test
>          install -d ${D}/${libdir}/lsb
> -       ln -sf ${sbindir}/chkconfig ${D}/${libdir}/lsb/install_initd
> -       ln -sf ${sbindir}/chkconfig ${D}/${libdir}/lsb/remove_initd
> +       ln -sf ${sbindir}/chkconfig ${D}/usr/lib/lsb/install_initd
> +       ln -sf ${sbindir}/chkconfig ${D}/usr/lib/lsb/remove_initd
It's arguable that this should be ${prefix}/lib since there is a 
possibly case of libdir not being /usr/lib or /usr/lib64.  It also goes 
to LSB explictly requires /usr/lib/lsb so for an LSB machine /usr/lib 
will aways exist.

I will put this in the next C-Pull.

Sau!

>          ln -sf ${sbindir}/sendmail ${D}/${libdir}/sendmail
>
>          if [ "${TARGET_ARCH}" = "x86_64" ];then
>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/1] lsb: update directory of install_initd and remove_initd
  2013-12-10 19:40   ` Saul Wold
@ 2013-12-11  1:54     ` Kang Kai
  0 siblings, 0 replies; 5+ messages in thread
From: Kang Kai @ 2013-12-11  1:54 UTC (permalink / raw)
  To: Saul Wold; +Cc: openembedded-core

On 2013年12月11日 03:40, Saul Wold wrote:
> On 11/13/2013 12:27 AM, Kai Kang wrote:
>> According to LSB specification:
>>
>> http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/installinitd.html
>>
>> http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/removeinitd.html
>>
>>
>> commands install_initd and remove_initd should under directory
>> /usr/lib/lsb/.
>>
>> lsb recipe creates these commands under directory ${libdir} which may
>> expand to /usr/lib64 when multilib is enabled on qemux86-64. That will
>> cause LSB command check for install_initd and remove_initd fail. So
>> correct it.
>>
>> Signed-off-by: Kai Kang <kai.kang@windriver.com>
>> ---
>> meta/recipes-extended/lsb/lsb_4.1.bb | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/meta/recipes-extended/lsb/lsb_4.1.bb
>> b/meta/recipes-extended/lsb/lsb_4.1.bb
>> index c80ff59..8105e59 100644
>> --- a/meta/recipes-extended/lsb/lsb_4.1.bb
>> +++ b/meta/recipes-extended/lsb/lsb_4.1.bb
>> @@ -79,8 +79,8 @@ do_install_append(){
>>
>> # creat links for LSB test
>> install -d ${D}/${libdir}/lsb
>> - ln -sf ${sbindir}/chkconfig ${D}/${libdir}/lsb/install_initd
>> - ln -sf ${sbindir}/chkconfig ${D}/${libdir}/lsb/remove_initd
>> + ln -sf ${sbindir}/chkconfig ${D}/usr/lib/lsb/install_initd
>> + ln -sf ${sbindir}/chkconfig ${D}/usr/lib/lsb/remove_initd
> It's arguable that this should be ${prefix}/lib since there is a
> possibly case of libdir not being /usr/lib or /usr/lib64. It also goes
> to LSB explictly requires /usr/lib/lsb so for an LSB machine /usr/lib
> will aways exist.
>
> I will put this in the next C-Pull.

Hi Saul,

Sorry, please drop it for now and there is something wrong with this patch.
I intended to send a V2 version and with other changes for lsbtest.

Thanks,
Kai

>
> Sau!
>
>> ln -sf ${sbindir}/sendmail ${D}/${libdir}/sendmail
>>
>> if [ "${TARGET_ARCH}" = "x86_64" ];then
>>
>
>


-- 
Regards,
Neil | Kai Kang



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-12-11  1:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-13  8:27 [PATCH 0/1] Correct lsb commands install_initd/remove_initd install directory Kai Kang
2013-11-13  8:27 ` [PATCH 1/1] lsb: update directory of install_initd and remove_initd Kai Kang
2013-11-18  5:26   ` Kang Kai
2013-12-10 19:40   ` Saul Wold
2013-12-11  1:54     ` Kang Kai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox