* [PATCH 0/3] Some fixes for LSB test
@ 2015-03-05 1:20 Kai Kang
2015-03-05 1:20 ` [PATCH 1/3] lsb: update init-functions and remove sendmail Kai Kang
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Kai Kang @ 2015-03-05 1:20 UTC (permalink / raw)
To: openembedded-core
The following changes since commit bef8558f0e1a73107743417d8b2b772744ed9c28:
README: expand the Where To Send Patches section (2015-03-04 17:07:37 +0000)
are available in the git repository at:
git://git.yoctoproject.org/poky-contrib kangkai/lsb-20150305
http://git.yoctoproject.org/cgit.cgi//log/?h=kangkai/lsb
Kai Kang (3):
lsb: update init-functions and remove sendmail
msmtp: add link file in /usr/lib
systemd: correct permission mode of /var/volatile/tmp
.../recipes-core/systemd/systemd/00-create-volatile.conf | 2 +-
meta/recipes-extended/lsb/lsb_4.1.bb | 16 +++-------------
meta/recipes-extended/msmtp/msmtp_1.6.1.bb | 5 +++++
3 files changed, 9 insertions(+), 14 deletions(-)
--
1.9.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/3] lsb: update init-functions and remove sendmail
2015-03-05 1:20 [PATCH 0/3] Some fixes for LSB test Kai Kang
@ 2015-03-05 1:20 ` Kai Kang
2015-03-05 1:20 ` [PATCH 2/3] msmtp: add link file in /usr/lib Kai Kang
2015-03-05 1:20 ` [PATCH 3/3] systemd: correct permission mode of /var/volatile/tmp Kai Kang
2 siblings, 0 replies; 5+ messages in thread
From: Kai Kang @ 2015-03-05 1:20 UTC (permalink / raw)
To: openembedded-core
According to LSB specification Ref1, LSB checks file
/lib/lsb/init-functions. But for 64 bits system it is installed in
/lib64. Install init-functions to /lib/lsb to conform with LSB
specification.
Link file /usr/lib/sendmail which points to /usr/sbin/sendmail is
required by LSB according to Linux FHS[Ref 2]. But it should be done by
packages which provides command sendmail such as msmtp, postfix and
esmtp etc.
Refs:
1 http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/iniscrptfunc.html
2 http://www.pathname.com/fhs/pub/fhs-2.3.html#SPECIFICOPTIONS13
Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
meta/recipes-extended/lsb/lsb_4.1.bb | 16 +++-------------
1 file changed, 3 insertions(+), 13 deletions(-)
diff --git a/meta/recipes-extended/lsb/lsb_4.1.bb b/meta/recipes-extended/lsb/lsb_4.1.bb
index b4ef98e..f05c30c 100644
--- a/meta/recipes-extended/lsb/lsb_4.1.bb
+++ b/meta/recipes-extended/lsb/lsb_4.1.bb
@@ -72,19 +72,18 @@ do_install(){
do_install_append(){
install -d ${D}${sysconfdir}/core-lsb
- install -d ${D}/${baselib}/lsb
for i in lsb_killproc lsb_log_message lsb_pidofproc lsb_start_daemon
do
install -m 0755 ${WORKDIR}/${i} ${D}${sysconfdir}/core-lsb
done
- install -m 0755 ${WORKDIR}/init-functions ${D}/${baselib}/lsb
+
+ install -d ${D}/lib/lsb
+ install -m 0755 ${WORKDIR}/init-functions ${D}/lib/lsb
# creat links for LSB test
install -d ${D}/usr/lib/lsb
ln -sf ${sbindir}/chkconfig ${D}/usr/lib/lsb/install_initd
ln -sf ${sbindir}/chkconfig ${D}/usr/lib/lsb/remove_initd
- install -d ${D}/${libdir}
- ln -sf ${sbindir}/sendmail ${D}/${libdir}/sendmail
if [ "${TARGET_ARCH}" = "x86_64" ];then
cd ${D}
@@ -119,13 +118,4 @@ do_install_append(){
FILES_${PN} += "/lib64 \
/usr/lib/lsb \
${base_libdir}/lsb/* \
- ${libdir}/sendmail \
"
-
-# The sysroot/${libdir}/sendmail conflicts with esmtp's, and it's a
-# symlink to ${sbindir}/sendmail which is meaningless for sysroot, so
-# remove it.
-SYSROOT_PREPROCESS_FUNCS += "remove_sysroot_sendmail"
-remove_sysroot_sendmail() {
- rm -r "${SYSROOT_DESTDIR}${libdir}/sendmail"
-}
--
1.9.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/3] msmtp: add link file in /usr/lib
2015-03-05 1:20 [PATCH 0/3] Some fixes for LSB test Kai Kang
2015-03-05 1:20 ` [PATCH 1/3] lsb: update init-functions and remove sendmail Kai Kang
@ 2015-03-05 1:20 ` Kai Kang
2015-03-05 2:36 ` Kang Kai
2015-03-05 1:20 ` [PATCH 3/3] systemd: correct permission mode of /var/volatile/tmp Kai Kang
2 siblings, 1 reply; 5+ messages in thread
From: Kai Kang @ 2015-03-05 1:20 UTC (permalink / raw)
To: openembedded-core
Link file /usr/lib/sendmail points to /usr/sbin/sendmail is required by
LSB core test according to Linux FHS.
Refs:
1 http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/normativerefs.html#STD.LSB
2 http://www.pathname.com/fhs/pub/fhs-2.3.html#SPECIFICOPTIONS13
Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
meta/recipes-extended/msmtp/msmtp_1.6.1.bb | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/meta/recipes-extended/msmtp/msmtp_1.6.1.bb b/meta/recipes-extended/msmtp/msmtp_1.6.1.bb
index c9ad1da..ba93600 100644
--- a/meta/recipes-extended/msmtp/msmtp_1.6.1.bb
+++ b/meta/recipes-extended/msmtp/msmtp_1.6.1.bb
@@ -23,3 +23,8 @@ ALTERNATIVE_${PN} = "sendmail"
ALTERNATIVE_TARGET[sendmail] = "${bindir}/msmtp"
ALTERNATIVE_LINK_NAME[sendmail] = "${sbindir}/sendmail"
ALTERNATIVE_PRIORITY = "100"
+
+pkg_postinst_${PN}_linuxstdbase () {
+ # /usr/lib is required by LSB rather than ${libdir}
+ [ ! -e /usr/lib/sendmail ] && ln -sf ${sbindir}/sendmail /usr/lib
+}
--
1.9.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 3/3] systemd: correct permission mode of /var/volatile/tmp
2015-03-05 1:20 [PATCH 0/3] Some fixes for LSB test Kai Kang
2015-03-05 1:20 ` [PATCH 1/3] lsb: update init-functions and remove sendmail Kai Kang
2015-03-05 1:20 ` [PATCH 2/3] msmtp: add link file in /usr/lib Kai Kang
@ 2015-03-05 1:20 ` Kai Kang
2 siblings, 0 replies; 5+ messages in thread
From: Kai Kang @ 2015-03-05 1:20 UTC (permalink / raw)
To: openembedded-core
Permission mode of directory /var/volatile/tmp should be 1777,
correct it.
Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
meta/recipes-core/systemd/systemd/00-create-volatile.conf | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/recipes-core/systemd/systemd/00-create-volatile.conf b/meta/recipes-core/systemd/systemd/00-create-volatile.conf
index 9ffa88e..87cbe1e 100644
--- a/meta/recipes-core/systemd/systemd/00-create-volatile.conf
+++ b/meta/recipes-core/systemd/systemd/00-create-volatile.conf
@@ -4,4 +4,4 @@
d /var/volatile/log - - - -
-d /var/volatile/tmp - - - -
+d /var/volatile/tmp 1777 - -
--
1.9.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 2/3] msmtp: add link file in /usr/lib
2015-03-05 1:20 ` [PATCH 2/3] msmtp: add link file in /usr/lib Kai Kang
@ 2015-03-05 2:36 ` Kang Kai
0 siblings, 0 replies; 5+ messages in thread
From: Kang Kai @ 2015-03-05 2:36 UTC (permalink / raw)
To: openembedded-core
On 2015年03月05日 09:20, Kai Kang wrote:
> Link file /usr/lib/sendmail points to /usr/sbin/sendmail is required by
> LSB core test according to Linux FHS.
>
> Refs:
> 1 http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/normativerefs.html#STD.LSB
> 2 http://www.pathname.com/fhs/pub/fhs-2.3.html#SPECIFICOPTIONS13
>
> Signed-off-by: Kai Kang <kai.kang@windriver.com>
> ---
> meta/recipes-extended/msmtp/msmtp_1.6.1.bb | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/meta/recipes-extended/msmtp/msmtp_1.6.1.bb b/meta/recipes-extended/msmtp/msmtp_1.6.1.bb
> index c9ad1da..ba93600 100644
> --- a/meta/recipes-extended/msmtp/msmtp_1.6.1.bb
> +++ b/meta/recipes-extended/msmtp/msmtp_1.6.1.bb
> @@ -23,3 +23,8 @@ ALTERNATIVE_${PN} = "sendmail"
> ALTERNATIVE_TARGET[sendmail] = "${bindir}/msmtp"
> ALTERNATIVE_LINK_NAME[sendmail] = "${sbindir}/sendmail"
> ALTERNATIVE_PRIORITY = "100"
> +
> +pkg_postinst_${PN}_linuxstdbase () {
> + # /usr/lib is required by LSB rather than ${libdir}
> + [ ! -e /usr/lib/sendmail ] && ln -sf ${sbindir}/sendmail /usr/lib
> +}
Retrieve it.
It should use ALTERNATIVES to deal the link files. I'll send V2.
Sorry for trouble.
--
Regards,
Neil | Kai Kang
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-03-05 2:36 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-05 1:20 [PATCH 0/3] Some fixes for LSB test Kai Kang
2015-03-05 1:20 ` [PATCH 1/3] lsb: update init-functions and remove sendmail Kai Kang
2015-03-05 1:20 ` [PATCH 2/3] msmtp: add link file in /usr/lib Kai Kang
2015-03-05 2:36 ` Kang Kai
2015-03-05 1:20 ` [PATCH 3/3] systemd: correct permission mode of /var/volatile/tmp Kai Kang
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.