Skip to contentSkip to conversation

systemd: set the location of the kill binary

PATCH Superseded Ross Burton 3 participants 5 messages Feb 26, 2013

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 systemd: set the location of the kill binary

Otherwise systemd uses AC_PROG_PATH and finds it in the sysroot, which won't work on the target.

---
 meta/recipes-core/systemd/systemd_197.bb |    2 ++
 1 file changed, 2 insertions(+)
meta/recipes-core/systemd/systemd_197.bb +2 -0
index c765c18..44cd919 100644
@@ -48,6 +48,8 @@ PACKAGECONFIG[gcrypt] = "--enable-gcrypt,--disable-gcrypt,libgcrypt"
 # Compress the journal
 PACKAGECONFIG[xz] = "--enable-xz,--disable-xz,xz"
 
+export ac_cv_path_KILL="/bin/kill"
+
 # The gtk+ tools should get built as a separate recipe e.g. systemd-tools
 EXTRA_OECONF = " --with-rootprefix=${base_prefix} \
                  --with-rootlibdir=${base_libdir} \
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 13 lines · Ross Burton

Otherwise systemd uses AC_PROG_PATH and finds it in the sysroot, which won't work on the target.

---
 meta/recipes-core/systemd/systemd_197.bb |    2 ++
 1 file changed, 2 insertions(+)
meta/recipes-core/systemd/systemd_197.bb +0 -0
index c765c18..44cd919 100644

meta/recipes-core/systemd/systemd_197.bb PACKAGECONFIG[gcrypt] = "--enable-gcrypt,--disable-gcrypt,libgcrypt" · line 51

Quoted 4 lines
meta/recipes-core/systemd/systemd_197.bb +1 -0
@@ -48,6 +48,8 @@ PACKAGECONFIG[gcrypt] = "--enable-gcrypt,--disable-gcrypt,libgcrypt"
 # Compress the journal
 PACKAGECONFIG[xz] = "--enable-xz,--disable-xz,xz"
 
+export ac_cv_path_KILL="/bin/kill"

This can be given in EXTRA_OECONF IIRC. Did you try it?

Quoted 11 lines
meta/recipes-core/systemd/systemd_197.bb +0 -1
 # The gtk+ tools should get built as a separate recipe e.g. systemd-tools
 EXTRA_OECONF = " --with-rootprefix=${base_prefix} \
                  --with-rootlibdir=${base_libdir} \
--

1.7.10.4

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
#2 lore raw
Quoted 3 lines · Otavio Salvador
Quoted 1 line

+export ac_cv_path_KILL="/bin/kill"

This can be given in EXTRA_OECONF IIRC. Did you try it?

That would also work, yes. Is that the preferred style?

Ross

#3 lore raw
Quoted 6 lines · Ross
Quoted 3 lines · Otavio Salvador
Quoted 1 line

+export ac_cv_path_KILL="/bin/kill"

This can be given in EXTRA_OECONF IIRC. Did you try it?

That would also work, yes. Is that the preferred style?

At least for me it makes more sense as it is being passed to change configure behavior so makes sense to be there.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
#4 lore raw
In reply to Ross Burton
Quoted 13 lines · Ross Burton

Otherwise systemd uses AC_PROG_PATH and finds it in the sysroot, which won't work on the target.

---
 meta/recipes-core/systemd/systemd_197.bb |    2 ++
 1 file changed, 2 insertions(+)
meta/recipes-core/systemd/systemd_197.bb +0 -0
index c765c18..44cd919 100644

meta/recipes-core/systemd/systemd_197.bb PACKAGECONFIG[gcrypt] = "--enable-gcrypt,--disable-gcrypt,libgcrypt" · line 51

Quoted 4 lines
meta/recipes-core/systemd/systemd_197.bb +1 -0
@@ -48,6 +48,8 @@ PACKAGECONFIG[gcrypt] = "--enable-gcrypt,--disable-gcrypt,libgcrypt"
 # Compress the journal
 PACKAGECONFIG[xz] = "--enable-xz,--disable-xz,xz"
 
+export ac_cv_path_KILL="/bin/kill"

may be ac_cv_path_KILL="/usr/bin/env kill"