Commit Graph

16 Commits

Author SHA1 Message Date
Khem Raj
0afa2a51d2 Delete systemd class.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-04-12 18:48:42 +02:00
Martin Jansa
3dcb4f293b systemd.bbclass: set INHIBIT_UPDATERCD_BBCLASS like oe-core does now 2013-04-04 08:14:21 +02:00
Enrico Scholz
38a5cf3fa0 systemd.bbclass: move disable operation into prerm() script
The 'systemctl disable' operation should not be done in postrm() because
the .service file does not exist anymore and the script will fail hence.

After moving this command into prerm(), postrm() becomes empty and can
be removed completely.

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-01-18 10:49:43 +01:00
Khem Raj
af1e1e3f55 systemd.bbclass: Fixes for living along with multilib
This essentially fixes two problems
1. We were ignoring systemd for multilibs now we dont
2. We were replacing '-systemd' string in PN which is
a problem whenre -systemd appears more than once
e.g. lib32-systemd-units-system it was removing both
essentially we should only chop the end of PN if it
ends with '-systemd'

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2013-01-08 09:31:51 -08:00
Khem Raj
69b0e85b41 systemd: Fix build when base_libdir is not /lib
we were carrying a wrong patch to fix rootlibdir
to adapt systemd to OE's notion of base_libdir
but thats not right and the units dont get initialised
properly when we have base_libdir which is not /lib

This patch fixes the use of base_libdir where
it should have been catering to notions of systemd/udev
for putting unit files and init scripts in /lib
and not in base_libdir

It also ignores the lib32-* packages so that systemd
build works for multilib enabled systems.

Adapt to nativesdk renaming

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2013-01-08 09:31:51 -08:00
Paul Eggleton
3a30c56238 Replace bb.data.* with d.*
Used sed expression given here:

http://lists.linuxtogo.org/pipermail/openembedded-core/2011-November/012373.html

Plus an additional expression for .expand. Full expression is:

sed \
-e 's:bb.data.\(setVar([^,]*,[^,]*\), \([^ )]*\) *):\2.\1):g' \
-e 's:bb.data.\(setVarFlag([^,]*,[^,]*,[^,]*\), \([^) ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,]*\), \([^, ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,]*,[^,]*\), \([^, ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,]*,[^,]*\), \([^) ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,]*\), \([^) ]*\) *):\2.\1):g' \
-e 's:bb.data.\(expand([^,]*\), \([^ )]*\) *):\2.\1):g' \
-i `grep -ril bb.data *`

Some minor correction in systemd.bbclass was needed for some expressions
that didn't quite match the regex in the desired way; additionally a few
instances were manually changed.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2012-10-28 14:32:06 +00:00
Koen Kooi
aff5f48fb8 Revert "systemd.bbclass: Dont check for multilib and change for nativesdk renaming"
This triggers:

ERROR: Nothing RPROVIDES 'connman-systemd' (but /OE/tentacle/sources/meta-angstrom/recipes-images/angstrom/systemd-image.bb RDEPENDS on or otherwise requires it)

This reverts commit cbac8756e8.
2012-10-09 11:16:04 +02:00
Khem Raj
cbac8756e8 systemd.bbclass: Dont check for multilib and change for nativesdk renaming
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-10-09 11:05:08 +02:00
Martin Jansa
e008cc8688 systemd.bbclass: add option to disable automatic RRECOMMENDS pkg-systemd_base -> pkg-systemd
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-08-20 10:02:09 +02:00
Khem Raj
980b338fb5 systemd: Upgrade to 187 tag
Dont inherit vala not needed anymore

Fix build for ppc64

Consider /lib64 and /usr/lib64

Some 64bit architectures chose lib64 instead of lib
for default library dirnames. So we dig this from metadata
vars base_libdir and libdir instead of hardcoding 'lib'

ppc64 in OE uses lib64 for default libdir
and this leaves lot of udev/systemd
files unpackaged since 'lib' was hardcoded

Additionally use --split-usr option since
in OE-Core now we want to treat /usr mounted
sepatately.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-08-08 09:02:30 +02:00
Khem Raj
ba9aae5594 gitpkgv.bbclass: Add a symlink from meta-oe
This is for systemd layer to be used with
out depending on meta-oe eventually gitpkgv
or similar solution should come out of OE-Core

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-08-07 12:21:24 +02:00
Koen Kooi
3770f2bbee systemd bbclass: replace all tabs with 4 spaces
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-07-19 16:26:15 +02:00
Andreas Müller
6e6bd9af71 systemd.bbclass: introduce SYSTEMD_AUTO_ENABLE variable
Currently all services introduced are enabled and started at installation. By
setting SYSTEMD_AUTO_ENABLE = "disable" the default behaviour can be
overridden.
2012-07-16 09:39:08 +02:00
Andreas Müller
8b774a53c0 systemd.bbclass: do not warn for systemd files are in ${PN}
Since we have our own layer there is no need to separate out systemd packages
2012-07-16 09:39:05 +02:00
Andreas Müller
264e5a44e1 systemd.bbclass: add *-systemd packages to RRECOMMENDS 2012-07-16 09:39:05 +02:00
Andreas Müller
5ed19733f5 systemd.bbclass: move to meta-systemd 2012-07-16 09:39:05 +02:00