Skip to contentSkip to conversation

Otavio Salvador : systemd.bbclass: depends on systemd

oe-commits Martin Jansa 8 participants 12 messages Feb 3, 2012 – Feb 4, 2012 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 5 lines · On Wed, Feb 01, 2012 at 08:04:41AM +0000, [email protected] wrote:
Module: meta-openembedded.git
Branch: master
Commit: c029d4a268de1ac7076fbeb9e337e96fdb1b226d
URL:    http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=c029d4a268de1ac7076fbeb9e337e96fdb1b226d
Quoted 8 lines
Author: Otavio Salvador <[email protected]>
Date:   Tue Jan 31 17:38:57 2012 +0000

systemd.bbclass: depends on systemd

Packages that uses the systemd class need to have systemd build otherwise they might fail to detect systemd as available or fail to generate rootfs.

Can we move this only to packages which are really depending on systemd compiled?

I have use-case where
small cpio image has busybox
busybox depends on systemd just because of this systemd depends on kernel (because RRECOMMENDS on modules) kernel depends on that cpio image which is used as ramdisk

So in order to finish cpio.do_rootfs I have to finish kernel and kernel fails to build because doesn't have cpio available yet (DEPENDS = "cpio" is not enough because doesn't need do_rootfs to finish AFAIK).

Cheers,

Quoted 25 lines

---

 meta-oe/classes/systemd.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
meta-oe/classes/systemd.bbclass +1 -1
index 2ca7bfc..094a12c 100644
@@ -1,4 +1,4 @@
-DEPENDS_append = " systemd-systemctl-native"
+DEPENDS_append = " systemd systemd-systemctl-native"
 
 systemd_postinst() {
 OPTS=""

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

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#2 lore raw
Quoted 9 lines · Martin Jansa

Can we move this only to packages which are really depending on systemd compiled?

I have use-case where
small cpio image has busybox
busybox depends on systemd just because of this systemd depends on kernel (because RRECOMMENDS on modules) kernel depends on that cpio image which is used as ramdisk

Quoted 4 lines

So in order to finish cpio.do_rootfs I have to finish kernel and kernel fails to build because doesn't have cpio available yet (DEPENDS = "cpio" is not enough because doesn't need do_rootfs to finish AFAIK).

I understand your use case but it seems in this case you ought to override it in a bbappend. It doesn't seems right as this is the exception, not the rule. If we don't depends on it, we can end with the binaries being not available in case a rootfs generation.

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
#3 lore raw
Quoted 16 lines · Otavio Salvador
Quoted 9 lines · Martin Jansa

Can we move this only to packages which are really depending on systemd compiled?

I have use-case where
small cpio image has busybox
busybox depends on systemd just because of this systemd depends on kernel (because RRECOMMENDS on modules) kernel depends on that cpio image which is used as ramdisk

Quoted 4 lines

So in order to finish cpio.do_rootfs I have to finish kernel and kernel fails to build because doesn't have cpio available yet (DEPENDS = "cpio" is not enough because doesn't need do_rootfs to finish AFAIK).

Quoted 4 lines

I understand your use case but it seems in this case you ought to override it in a bbappend. It doesn't seems right as this is the exception, not the rule. If we don't depends on it, we can end with the binaries being not available in case a rootfs generation.

Which recipes really depend on systemd during build? I know about polkit, something else?

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#4 lore raw
Quoted 9 lines · Martin Jansa
Quoted 1 line

I understand your use case but it seems in this case you ought to

override

Quoted 1 line

it in a bbappend. It doesn't seems right as this is the exception, not

the

Quoted 2 lines

rule. If we don't depends on it, we can end with the binaries being not available in case a rootfs generation.

Which recipes really depend on systemd during build? I know about polkit, something else?

At this moment I know about polkit, I didn't check newer udev but I think it ought to depends on it as well.

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
#5 lore raw
Quoted 16 lines · Otavio Salvador
Quoted 9 lines · Martin Jansa
Quoted 1 line

I understand your use case but it seems in this case you ought to

override

Quoted 1 line

it in a bbappend. It doesn't seems right as this is the exception, not

the

Quoted 2 lines

rule. If we don't depends on it, we can end with the binaries being not available in case a rootfs generation.

Which recipes really depend on systemd during build? I know about polkit, something else?

At this moment I know about polkit, I didn't check newer udev but I think it ought to depends on it as well.

Quoted 8 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
_______________________________________________
Openembedded-devel mailing list [email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Unfortunately the patch has a bad side-effect:

http://paste.debian.net/154741/

(I removed /systemd to show the culprit)

Sadly enough freedesktop git is down, so I've been obliged to revert that patch.

Andrea

#6 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Op 04-02-12 01:15, Andrea Adami schreef:

Quoted 27 lines
Quoted 18 lines · Otavio Salvador
Quoted 10 lines · Martin Jansa
Quoted 1 line

I understand your use case but it seems in this case you ought to

override

Quoted 2 lines

it in a bbappend. It doesn't seems right as this is the exception, not

the

Quoted 2 lines

rule. If we don't depends on it, we can end with the binaries being not available in case a rootfs generation.

Which recipes really depend on systemd during build? I know about polkit, something else?

At this moment I know about polkit, I didn't check newer udev but I think it ought to depends on it as well.

Quoted 6 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
_______________________________________________ Openembedded-devel mailing list [email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Quoted 8 lines

Unfortunately the patch has a bad side-effect:

http://paste.debian.net/154741/

(I removed /systemd to show the culprit)

Sadly enough freedesktop git is down, so I've been obliged to revert that patch.

only cgit, not the actual git server
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: GPGTools - http://gpgtools.org

iEYEARECAAYFAk8sfH8ACgkQMkyGM64RGpFOKACgk2/B+ac8q6HOs2ctoJff3KrN D7cAn2w+6lseVIR15bhtOywS9gUvdUFd
=2BCI
-----END PGP SIGNATURE-----

#8 lore raw
Quoted 4 lines · Andreas Müller
Quoted 2 lines
Quoted 2 lines

Which recipes really depend on systemd during build? I know about polkit, something else?

udisks [1]

Yeah, but that might be a consequence of udisks depending on polkit. It was a libsystemd-login reference in a polkit .la file dependency that made me install that patch so I could get udisks to build.

Quoted 9 lines

[1] http://lists.linuxtogo.org/pipermail/openembedded-devel/2012-January/037230.html

Andreas

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

#11 lore raw
In reply to Andreas Müller
Quoted 2 lines · Andreas Müller
Quoted 2 lines
Quoted 2 lines

Which recipes really depend on systemd during build? I know about polkit, something else?

why not make it a globally selectable ?
so we can make sure that autoconf does not try to guess but we tell it if systemd features should {en|dis}abled explicitly and something like virtual/init-manager or something since I think it has to coexist with sysvinit or upstart whatever one chooses.

#9 lore raw
In reply to Peter Bigot
Quoted 10 lines · Peter Bigot
Quoted 4 lines · Andreas Müller
Quoted 2 lines
Quoted 2 lines

Which recipes really depend on systemd during build? I know about polkit, something else?

udisks [1]

Yeah, but that might be a consequence of udisks depending on polkit. It was a libsystemd-login reference in a polkit .la file dependency that made me install that patch so I could get udisks to build.

polkit should also become a distro feature FWIW

#12 lore raw
In reply to Khem Raj
Quoted 10 lines · Khem Raj
Quoted 2 lines · Andreas Müller
Quoted 2 lines
Quoted 2 lines

Which recipes really depend on systemd during build? I know about polkit, something else?

why not make it a globally selectable ?
so we can make sure that autoconf does not try to guess but we tell it if systemd features should {en|dis}abled explicitly and something like virtual/init-manager or something since I think it has to coexist with sysvinit or upstart whatever one chooses.

We should definitely do this, I've not had enough time to figure out. I think it's going to have to be a distro level thing as so far as I can tell we need to be able to:
o set the init system
o include certain packages
o potentially enable/disable configure flags

I've not had much opportunity to look into this yet but we need to be certain whichever mechanism we enable works for systemd, sysvinit, upstart, s6, whatever.

Cheers,
Joshua

Signature · 3 lines
Joshua Lock
        Yocto Project "Johannes factotum"
        Intel Open Source Technology Centre
#10 lore raw
In reply to Peter Bigot
Quoted 10 lines · Peter Bigot
Quoted 4 lines · Andreas Müller
Quoted 2 lines
Quoted 2 lines

Which recipes really depend on systemd during build? I know about polkit, something else?

udisks [1]

Yeah, but that might be a consequence of udisks depending on polkit. It was a libsystemd-login reference in a polkit .la file dependency that made me install that patch so I could get udisks to build.

OK, so I have 21 recipes which inherit systemd and 2 need build-time systemd dependency and the rest is fine with RDEPENDS, can we please move systemd from inherited DEPENDS to those 2 recipe (polkit and udisks)?

Cheers,

Quoted 15 lines
Quoted 10 lines

[1] http://lists.linuxtogo.org/pipermail/openembedded-devel/2012-January/037230.html

Andreas

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

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

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]