00/22] systemd rework
PATCH v2 1/1 00/22] systemd rework
V1 -> V2:
[2] do not check configuration variables for cross and nativesdk [3] rename systemd_package to systemd_generate_package_scripts [6] parse unit files to determine the files to pack [7] create warning if *-systemd package already rdepends
it's base package
added in V2:
[8]-[20] remove obsolet systemd code from recipes (these were used as
test cases)
[21] dhcp-(relay) test case for multiple systemd packages
[22] modified to start service
The following tests were performed:
* build from scratch with [1]-[7] / run test
* build from scratch / apply patches / build -> check buildhistory diff
* build from scratch w/o patches / build from scratch with patches -> check buildhistory diff
Additional patches were prepared for other recipes inheriting systemd. These are not yet send because they move systemd support from ${PN} to ${PN}-systemd which currently needs modifications on tasks/images. I'd be happy if a common accepted solution would be suggested/implemented (image-feature?).
This patch series can be pulled from:git://gitorious.org/schnitzeltony-oe-meta/meta-openembedded-systemd.git branch systemd2
Andreas Müller (22):
systemd-systemctl-native: add multiple services support systemd.bbclass: enhance checks for SYSTEMD_PACKAGES and
SYSTEMD_SERVICE
systemd.bbclass: cosmetics
systemd.bbclass: automatically create packages set in
SYSTEMD_PACKAGES
automatically install all *.service and *.socket supplied in recipe's
SRC_URI
systemd.bbclass: automatically extend FILES_* for systemd packages systemd.bbclass: automatically extend RDEPENDS for *-systemd packages
connman: remove unneeded systemd code
dropbear: remove unneeded systemd code
openssh: remove unneeded systemd code
elsa: remove unneeded systemd code
cronie: remove unneeded systemd code
xserver-nodm-init: remove unneeded systemd code
atftp: remove unneeded systemd code
udisks: remove unneeded systemd code
rsyslog: remove unneeded systemd code
syslog-ng: remove unneeded systemd code
dhcp: remove unneeded systemd code
gpsd: remove unneeded systemd code
busybox: remove unneeded systemd code
dhcp: add native systemd support for dhcp-relay
gpsd: use ${PN}.service instead ${PN}.socket in SYSTEMD_SERVICE to
enable service
meta-efl/recipes-efl/efl/elsa_svn.bb | 11 +-- meta-oe/classes/systemd.bbclass | 165 ++++++++++++++++++-- .../connman/connman_0.78.bbappend | 7 +- .../recipes-connectivity/dhcp/dhcp_4.2.0.bbappend | 18 +-- .../dhcp/files/dhcrelay.service | 10 ++ .../openssh/openssh_5.9p1.bbappend | 14 +-- .../recipes-core/busybox/busybox_1.19.3.bbappend | 8 +- .../dropbear/dropbear_2011.54.bbappend | 11 +-- .../systemd/systemd-systemctl-native/systemctl | 75 +++++---- meta-oe/recipes-extended/atftp/atftp_0.7.bb | 10 +- .../recipes-extended/cronie/cronie_1.4.8.bbappend | 12 +-- meta-oe/recipes-extended/rsyslog/rsyslog.inc | 7 +- .../xserver-nodm-init/xserver-nodm-init_2.0.bb | 10 +- meta-oe/recipes-navigation/gpsd/gpsd_2.96.bb | 14 +-- meta-oe/recipes-support/syslog-ng/syslog-ng.inc | 7 +- meta-oe/recipes-support/udisks/udisks_1.0.4.bb | 9 +- 16 files changed, 222 insertions(+), 166 deletions(-) create mode 100644 meta-oe/recipes-connectivity/dhcp/files/dhcrelay.service
Signature · 1 line
1.7.4.4
PATCH v2 1/1 01/22] systemd-systemctl-native: add multiple services support
Thanks to Otavio Salvador for helping hint [1]
[1] http://lists.linuxtogo.org/pipermail/openembedded-devel/2012-February/037856.html
--- .../systemd/systemd-systemctl-native/systemctl | 75 +++++++++++--------- 1 files changed, 42 insertions(+), 33 deletions(-)
meta-oe/recipes-core/systemd/systemd-systemctl-native/systemctl +42 -33
@@ -10,50 +10,59 @@ while [ $# != 0 ]; do enable) shift - service="$1" + services="$1" + in_enable="1" shift ;; --root=*) ROOT=${opt##--root=} + in_enable="0" shift ;; *) - echo "'$opt' is an unkown option; exiting with error" - exit 1 + if [ "$in_enable" = "1" ]; then + services="$services $opt" + shift + else + echo "'$opt' is an unkown option; exiting with error" + exit 1 + fi ;; esac done -# find service file -for p in $ROOT/etc/systemd/system \ - $ROOT/lib/systemd/system \ - $ROOT/usr/lib/systemd/system; do - if [ -e $p/$service ]; then - service_file=$p/$service - service_file=${service_file##$ROOT} +for service in "$services"; do + # find service file + for p in $ROOT/etc/systemd/system \ + $ROOT/lib/systemd/system \ + $ROOT/usr/lib/systemd/system; do + if [ -e $p/$service ]; then + service_file=$p/$service + service_file=${service_file##$ROOT} + fi + done + if [ -z "$service_file" ]; then + echo "'$service' couldn't be found; exiting with error" + exit 1 fi -done -if [ -z "$service_file" ]; then - echo "'$service' couldn't be found; exiting with error" - exit 1 -fi - -# create the required symbolic links -wanted_by=$(grep WantedBy $ROOT/$service_file \ - | sed 's,WantedBy=,,g' \ - | tr ',' '\n' \ - | grep '\.target$') - -for r in $wanted_by; do - mkdir -p $ROOT/etc/systemd/system/$r.wants - ln -s $service_file $ROOT/etc/systemd/system/$r.wants - echo "Enabled $service for $wanted_by." -done -# call us for the other required scripts -also=$(grep Also $ROOT/$service_file \ - | sed 's,Also=,,g' \ - | tr ',' '\n') -for a in $also; do - $0 --root=$ROOT enable $a + # create the required symbolic links + wanted_by=$(grep WantedBy $ROOT/$service_file \ + | sed 's,WantedBy=,,g' \ + | tr ',' '\n' \ + | grep '\.target$') + + for r in $wanted_by; do + mkdir -p $ROOT/etc/systemd/system/$r.wants + ln -s $service_file $ROOT/etc/systemd/system/$r.wants + echo "Enabled $service for $wanted_by." + done + + # call us for the other required scripts + also=$(grep Also $ROOT/$service_file \ + | sed 's,Also=,,g' \ + | tr ',' '\n') + for a in $also; do + $0 --root=$ROOT enable $a + done done
Signature · 1 line
1.7.4.4
PATCH v2 1/1 02/22] systemd.bbclass: enhance checks for SYSTEMD_PACKAGES and SYSTEMD_SERVICE
In reply to Andreas Müllerafter recipe parsing the following plausibilities are checked:
* ERROR if empty SYSTEMD_PACKAGES
* ERROR if SYSTEMD_PACKAGES entry does not contain '-systemd' AND package_name != ${PN}
* ERROR if SYSTEMD_PACKAGES entry contains '-systemd' but entry without '-systemd' (base pkg) does not exist
* WARNING if SYSTEMD_PACKAGES containing ${PN} to force package maintainers to split out systemd-specific files into *-systemd
* error if SYSTEMD_SERVICE(_<systemd-package>) is empty for one or more entries in SYSTEMD_PACKAGES
The code in populate_packages_prepend to set SYSTEMD_PACKAGES to ${PN} as default was removed.
V1 -> V2: Do not check configuration variables for cross and nativesdk
--- meta-oe/classes/systemd.bbclass | 47 ++++++++++++++++++++++++++++++++------ 1 files changed, 39 insertions(+), 8 deletions(-)
meta-oe/classes/systemd.bbclass +39 -8
@@ -25,9 +25,45 @@ systemctl disable ${SYSTEMD_SERVICE} } def systemd_after_parse(d): - if bb.data.getVar('SYSTEMD_PACKAGES', d) == None: - if bb.data.getVar('SYSTEMD_SERVICE', d) == None: - raise bb.build.FuncFailed, "%s inherits systemd but doesn't set SYSTEMD_SERVICE" % bb.data.getVar('FILE', d) + def systemd_check_vars(): + bpn = d.getVar('BPN', 1) + # not for native / only at parse time + if d.getVar('BB_WORKERCONTEXT', True) is None and \ + bpn + "-native" != d.getVar('PN', 1) and \ + bpn + "-cross" != d.getVar('PN', 1) and \ + bpn + "-nativesdk" != d.getVar('PN', 1): + bb_filename = d.getVar('FILE') + packages = d.getVar('PACKAGES', 1) + + # check SYSTEMD_PACKAGES + systemd_pkgs = d.getVar('SYSTEMD_PACKAGES', 1) or "" + if systemd_pkgs == "": + raise bb.build.FuncFailed, "\n\n%s inherits systemd but doesn't set SYSTEMD_PACKAGES" % bb_filename + for pkg_systemd in systemd_pkgs.split(): + if pkg_systemd.find("-systemd") == -1: + if pkg_systemd != d.getVar('PN', 1): + raise bb.build.FuncFailed, \ + "\n\n%s: %s in SYSTEMD_PACKAGES does not match <existing-package>-systemd or ${PN} (deprecated)" % \ + (bb_filename, pkg_systemd) + else: + bb.warn("%s: it is recommended to set SYSTEMD_PACKAGES as <existing-package>-systemd" % bb_filename) + else: + pkg_systemd_base = pkg_systemd.replace('-systemd', '') + if pkg_systemd_base not in packages: + raise bb.build.FuncFailed, \ + "\n\n%s: %s in SYSTEMD_PACKAGES does not match <existing-package>-systemd or ${PN} (deprecated)" % \ + ( bb_filename, pkg_systemd) + + # check SYSTEMD_SERVICE + for pkg_systemd in systemd_pkgs.split(): + service_pkg = 'SYSTEMD_SERVICE' + "_" + pkg_systemd + systemd_services = d.getVar(service_pkg, 1) or d.getVar('SYSTEMD_SERVICE', 1) or "" + if systemd_services == "": + raise bb.build.FuncFailed, "\n\n%s inherits systemd but doesn't set SYSTEMD_SERVICE / %s" % (bb_filename, service_pkg) + + + systemd_check_vars() + python __anonymous() { systemd_after_parse(d)
@@ -70,11 +106,6 @@ python populate_packages_prepend () { pkgs = bb.data.getVar('SYSTEMD_PACKAGES', d, 1) - if pkgs == None: - pkgs = bb.data.getVar('PN', d, 1) - packages = (bb.data.getVar('PACKAGES', d, 1) or "").split() - if not pkgs in packages and packages != []: - pkgs = packages[0] for pkg in pkgs.split(): systemd_package(pkg) }
Signature · 1 line
1.7.4.4
Re: [meta-oe][v2] 02/22] systemd.bbclass: enhance checks for SYSTEMD_PACKAGES and SYSTEMD_SERVICE
Quoted 5 lines · Andreas Müller
The code in
populate_packages_prependto setSYSTEMD_PACKAGESto ${PN} as default was removed.V1 -> V2: Do not check configuration variables for cross and nativesdk
Those notes ought to be removed in last send, prior merging.
Quoted 2 lines
Signed-off-by Andreas Müller <[email protected]>
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
Re: [meta-oe][v2] 02/22] systemd.bbclass: enhance checks for SYSTEMD_PACKAGES and SYSTEMD_SERVICE
Quoted 12 lines · Otavio Salvador
Quoted 5 lines · Andreas Müller
The code in
populate_packages_prependto setSYSTEMD_PACKAGESto ${PN} as default was removed.V1 -> V2: Do not check configuration variables for cross and nativesdk
Those notes ought to be removed in last send, prior merging.
Quoted 6 lines
Quoted 2 lines
Signed-off-by Andreas Müller <[email protected]>Acked-by Otavio Salvador <[email protected]>--
I'll wait a bit in case there are further comments and update the commit messages affected in V3.
Andreas
Re: [meta-oe][v2] 02/22] systemd.bbclass: enhance checks for SYSTEMD_PACKAGES and SYSTEMD_SERVICE
Quoted 2 lines · Andreas Müller
I'll wait a bit in case there are further comments and update the commit messages affected in V3.
I think you can do it on the 00/XX message and avoids another cycle to remove those from each patch.
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
PATCH v2 1/1 05/22] automatically install all *.service and *.socket supplied in recipe's SRC_URI
In reply to Andreas Müller--- meta-oe/classes/systemd.bbclass | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-)
meta-oe/classes/systemd.bbclass +11 -0
@@ -78,6 +78,17 @@ python __anonymous() { systemd_after_parse(d) } +# automatically install all *.service and *.socket supplied in recipe's SRC_URI +do_install_append() { + install -d ${D}${base_libdir}/systemd/system + for service in `find ${WORKDIR} -maxdepth 1 -name '*.service' -o -name '*.socket'` ; do + # ensure installing systemd-files only (e.g not avahi *.service) + if grep -q '\[Unit\]' $service ; then + install -m 644 $service ${D}${base_libdir}/systemd/system + fi + done +} + python populate_packages_prepend () { def systemd_generate_package_scripts(pkg): bb.debug(1, 'adding systemd calls to postinst/postrm for %s' % pkg)
Signature · 1 line
1.7.4.4
Re: [meta-oe][v2] 05/22] automatically install all *.service and *.socket supplied in recipe's SRC_URI
Quoted 2 lines · Andreas Müller
Signed-off-by Andreas Müller <[email protected]>Acked-by Otavio Salvador <[email protected]>
After reading today's gentoo systemd news:
We have decided to move our systemd installation into /usr prefix. After the upgrade, the main systemd executable will be installed as /usr/bin/systemd and the unit files will be installed to /usr/lib/systemd; however, systemd will still look for unit files in the /lib location.
I think we should abstract
${base_libdir}/systemd
to some variable inside systemd.bbclass, so if we ever decide to move it to /usr/lib too, then not only automatically installed *.service files from SRC_URI are installalled to right directory.
Cheers,
Quoted 34 lines
--- meta-oe/classes/systemd.bbclass | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-)meta-oe/classes/systemd.bbclass +11
-0@@ -78,6 +78,17 @@ python __anonymous() { systemd_after_parse(d) } +# automatically install all *.service and *.socket supplied in recipe's SRC_URI +do_install_append() { + install -d ${D}${base_libdir}/systemd/system + for service in `find ${WORKDIR} -maxdepth 1 -name '*.service' -o -name '*.socket'` ; do + # ensure installing systemd-files only (e.g not avahi *.service) + if grep -q '\[Unit\]' $service ; then + install -m 644 $service ${D}${base_libdir}/systemd/system + fi + done +} + python populate_packages_prepend () { def systemd_generate_package_scripts(pkg): bb.debug(1, 'adding systemd calls to postinst/postrm for %s' % pkg)Signature · 7 lines
1.7.4.4 _______________________________________________ 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]
Re: [meta-oe][v2] 05/22] automatically install all *.service and *.socket supplied in recipe's SRC_URI
Quoted 12 lines · Martin Jansa
Quoted 2 lines · Andreas Müller
Signed-off-by Andreas Müller <[email protected]>Acked-by Otavio Salvador <[email protected]>After reading today's gentoo systemd news:
We have decided to move our systemd installation into /usr prefix. After the upgrade, the main systemd executable will be installed as/usr/bin/systemdand the unit files will be installed to/usr/lib/systemd; however, systemd will still look for unit files in the /lib location.
Quoted 6 lines
I think we should abstract
${base_libdir}/systemd
to some variable inside systemd.bbclass, so if we ever decide to move it to/usr/libtoo, then not only automatically installed *.service files fromSRC_URIare installalled to right directory.
I would like to take this in for V3. To avoid further iterations:
* I the name 'systemd_unitdir' OK?
* Would it make sense to abstract "${base_libdir}/systemd/system" (too)
Andreas
Re: [meta-oe][v2] 05/22] automatically install all *.service and *.socket supplied in recipe's SRC_URI
Quoted 2 lines · Andreas Müller
* I the name '
systemd_unitdir' OK?
* Would it make sense to abstract "${base_libdir}/systemd/system" (too)
I think systemd_unitdir only is enough.
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
Re: [meta-oe][v2] 05/22] automatically install all *.service and *.socket supplied in recipe's SRC_URI
Quoted 8 lines · Otavio Salvador
Quoted 2 lines · Andreas Müller
* I the name '
systemd_unitdir' OK?
* Would it make sense to abstract "${base_libdir}/systemd/system" (too)I think
systemd_unitdironly is enough.
agreed
Cheers,
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
PATCH v2 1/1 03/22] systemd.bbclass: cosmetics
In reply to Andreas MüllerV1 -> V2: rename systemd_package to systemd_generate_package_scripts
--- meta-oe/classes/systemd.bbclass | 15 +++++++-------- 1 files changed, 7 insertions(+), 8 deletions(-)
meta-oe/classes/systemd.bbclass +7 -8
@@ -70,7 +70,7 @@ python __anonymous() { } python populate_packages_prepend () { - def systemd_package(pkg): + def systemd_generate_package_scripts(pkg): bb.debug(1, 'adding systemd calls to postinst/postrm for %s' % pkg) localdata = bb.data.createCopy(d) overrides = bb.data.getVar("OVERRIDES", localdata, 1)
@@ -94,10 +94,10 @@ python populate_packages_prepend () { prerm += bb.data.getVar('systemd_prerm', localdata, 1) bb.data.setVar('pkg_prerm_%s' % pkg, prerm, d) - postrm = bb.data.getVar('pkg_postrm', localdata, 1) - if not postrm: - postrm = '#!/bin/sh\n' - postrm += bb.data.getVar('systemd_postrm', localdata, 1) + postrm = bb.data.getVar('pkg_postrm', localdata, 1) + if not postrm: + postrm = '#!/bin/sh\n' + postrm += bb.data.getVar('systemd_postrm', localdata, 1) bb.data.setVar('pkg_postrm_%s' % pkg, postrm, d) rdepends = explode_deps(bb.data.getVar('RDEPENDS_' + pkg, d, 0) or bb.data.getVar('RDEPENDS', d, 0) or "")
@@ -105,7 +105,6 @@ python populate_packages_prepend () { bb.data.setVar('RDEPENDS_' + pkg, " " + " ".join(rdepends), d) - pkgs = bb.data.getVar('SYSTEMD_PACKAGES', d, 1) - for pkg in pkgs.split(): - systemd_package(pkg) + for pkg_systemd in d.getVar('SYSTEMD_PACKAGES', 1).split(): + systemd_generate_package_scripts(pkg_systemd) }
Signature · 1 line
1.7.4.4
Re: [meta-oe][v2] 03/22] systemd.bbclass: cosmetics
Quoted 2 lines · Andreas Müller
V1 -> V2: rename
systemd_packagetosystemd_generate_package_scripts
Drop.
Quoted 2 lines
Signed-off-by Andreas Müller <[email protected]>
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
PATCH v2 1/1 06/22] systemd.bbclass: automatically extend FILES_* for systemd packages
In reply to Andreas MüllerAdd files found in SYSTEMD_SERVICE and add service files found at 'Also=' recursively. In case a file set in SYSTEMD_SERVICE build is aborted with an error message.
For recipes with one *-systemd package and one service additional files are packed:
* all *@.service
* some recipes add links to /dev/null. These are found by parsing also for 'Conflicts='
--- meta-oe/classes/systemd.bbclass | 64 +++++++++++++++++++++++++++++++++++++++ 1 files changed, 64 insertions(+), 0 deletions(-)
meta-oe/classes/systemd.bbclass +64 -0
@@ -124,7 +124,71 @@ python populate_packages_prepend () { rdepends.append("systemd") bb.data.setVar('RDEPENDS_' + pkg, " " + " ".join(rdepends), d) + # add files to FILES_*-systemd if not already done + def systemd_append_file(pkg_systemd, file_append): + if os.path.exists(d.getVar('D', 1) + file_append): + var_name = "FILES_" + pkg_systemd + files = d.getVar(var_name, 0) or "" + d.setVar(var_name, "%s %s" % (files, file_append)) + else: + bb.debug(1, '%s is not appended to package %s' % (file_append, pkg_systemd)) + + # add systemd files to FILES_*-systemd, parse for Also= and follow recursive + def systemd_add_files_and_parse(pkg_systemd, path, service, keys): + systemd_append_file(pkg_systemd, path + service) + fullpath = d.getVar('D', 1) + path + service + for key in keys.split(): + # recurse all 'also' dependencies and add to files + cmd = "grep %s %s | sed 's,%s=,,g' | tr ',' '\\n'" % (key, fullpath, key) + pipe = os.popen(cmd, 'r') + line = pipe.readline() + while line: + line = line.replace('\n', '') + systemd_add_files_and_parse(pkg_systemd, path, line, keys) + line = pipe.readline() + pipe.close() + + # check service-files and call systemd_add_files_and_parse for each entry + def systemd_check_services(): + root = d.getVar('D', 1) + searchpaths = '/etc/systemd/system/ /lib/systemd/system/ /usr/lib/systemd/system/' + systemd_packages = d.getVar('SYSTEMD_PACKAGES', 1) + has_exactly_one_service = len(systemd_packages.split()) == 1 + if has_exactly_one_service: + systemd_services = d.getVar('SYSTEMD_SERVICE' + "_" + systemd_packages, 1) or d.getVar('SYSTEMD_SERVICE', 1) + has_exactly_one_service = len(systemd_services.split()) == 1 + + keys = 'Also' # Conflicts?? + # to match more cases, single service get's more + if has_exactly_one_service: + # single service gets also the /dev/null dummies + keys = 'Also Conflicts' + # parse *@.service files for recipes with one service + for path in searchpaths.split(): + cmd = "find ${D}/%s -maxdepth 1 -name '*@.service'" % path + pipe = os.popen(cmd, 'r') + line = pipe.readline() + while line: + line = os.path.basename(line.replace('\n', '')) + systemd_add_files_and_parse(systemd_packages, path, line, keys) + line = pipe.readline() + pipe.close() + # scan for all in SYSTEMD_SERVICE[] + for pkg_systemd in systemd_packages.split(): + systemd_services = d.getVar('SYSTEMD_SERVICE' + "_" + pkg_systemd, 1) or d.getVar('SYSTEMD_SERVICE', 1) + for service in systemd_services.split(): + path_found = '' + for path in searchpaths.split(): + if os.path.exists(root + path + service): + path_found = path + if path_found != '': + systemd_add_files_and_parse(pkg_systemd, path_found, service, keys) + else: + raise bb.build.FuncFailed, "\n\nFor package %s SYSTEMD_SERVICE-entry %s does not exist" % \ + (pkg_systemd, service) + for pkg_systemd in d.getVar('SYSTEMD_PACKAGES', 1).split(): systemd_generate_package_scripts(pkg_systemd) + systemd_check_services() }
Signature · 1 line
1.7.4.4
Re: [meta-oe][v2] 06/22] systemd.bbclass: automatically extend FILES_* for systemd packages
Quoted 4 lines · Andreas Müller
Add files found in
SYSTEMD_SERVICEand add service files found at 'Also=' recursively. In case a file set inSYSTEMD_SERVICEbuild is aborted with an error message.
Your message is wrong; You should say that if the file doesn't exists you abort with an error message.
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
PATCH v2 1/1 04/22] systemd.bbclass: automatically create packages set in SYSTEMD_PACKAGES
In reply to Andreas Müller--- meta-oe/classes/systemd.bbclass | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-)
meta-oe/classes/systemd.bbclass +9 -0
@@ -61,8 +61,17 @@ def systemd_after_parse(d): if systemd_services == "": raise bb.build.FuncFailed, "\n\n%s inherits systemd but doesn't set SYSTEMD_SERVICE / %s" % (bb_filename, service_pkg) + # prepend systemd-packages not already included + def systemd_create_package(pkg_systemd): + packages = d.getVar('PACKAGES', 1) + if not pkg_systemd in packages: + packages = "%s %s" % (pkg_systemd, packages) + d.setVar('PACKAGES', packages) + systemd_check_vars() + for pkg_systemd in d.getVar('SYSTEMD_PACKAGES', 1).split(): + systemd_create_package(pkg_systemd) python __anonymous() {
Signature · 1 line
1.7.4.4
PATCH v2 1/1 07/22] systemd.bbclass: automatically extend RDEPENDS for *-systemd packages
In reply to Andreas Müller* append systemd: functionalty moved into systemd_add_rdepends
* append base-pgk: create warning if *-systemd package already rdepends it's base package
--- meta-oe/classes/systemd.bbclass | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-)
meta-oe/classes/systemd.bbclass +19 -0
@@ -187,8 +187,27 @@ python populate_packages_prepend () { raise bb.build.FuncFailed, "\n\nFor package %s SYSTEMD_SERVICE-entry %s does not exist" % \ (pkg_systemd, service) + # *-systemd packages get RDEPENDS to systemd and their base package + def systemd_add_rdepends(pkg_systemd): + pn_pkg = d.getVar('PN', 1) + # RDEPENDS_${pkg_systemd} += pkg_systemd_base systemd + rdepends = explode_deps(d.getVar('RDEPENDS_' + pkg_systemd, 1) or "") + if not 'systemd' in rdepends: + rdepends.append('systemd') + pkg_systemd_base = pkg_systemd.replace('-systemd', '') + # not rdepending myself + if pkg_systemd != pn_pkg: + # avoid double entries + if not pkg_systemd_base in rdepends: + rdepends.append(pkg_systemd_base) + else: + bb.warn("%s: it is recommended to remove %s from RDEPENDS_%s since systemd.bbclass takes care" % \ + (d.getVar('FILE'), pkg_systemd_base, pkg_systemd)) + d.setVar('RDEPENDS_' + pkg_systemd, " " + " ".join(rdepends)) + for pkg_systemd in d.getVar('SYSTEMD_PACKAGES', 1).split(): systemd_generate_package_scripts(pkg_systemd) + systemd_add_rdepends(pkg_systemd) systemd_check_services() }
Signature · 1 line
1.7.4.4
Re: [meta-oe][v2] 07/22] systemd.bbclass: automatically extend RDEPENDS for *-systemd packages
Quoted 6 lines · Andreas Müller
* append systemd: functionalty moved into
systemd_add_rdepends
* append base-pgk: create warning if *-systemd package already rdepends it's base packageSigned-off-by Andreas Müller <[email protected]>
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
PATCH v2 1/1 08/22] connman: remove unneeded systemd code
In reply to Andreas Müller--- .../connman/connman_0.78.bbappend | 7 +------ 1 files changed, 1 insertions(+), 6 deletions(-)
meta-oe/recipes-connectivity/connman/connman_0.78.bbappend +1 -6
@@ -2,12 +2,7 @@ inherit systemd EXTRA_OECONF += "--with-systemdunitdir=${base_libdir}/systemd/system/" -PRINC := "${@int(PRINC) + 1}" +PRINC := "${@int(PRINC) + 2}" SYSTEMD_PACKAGES = "${PN}-systemd" SYSTEMD_SERVICE_${PN}-systemd = "connman.service" - -# systemd files -PACKAGES =+ "${PN}-systemd" -FILES_${PN}-systemd += "${base_libdir}/systemd" -RDEPENDS_${PN}-systemd += "${PN}"
Signature · 1 line
1.7.4.4
Re: [meta-oe][v2] 08/22] connman: remove unneeded systemd code
Quoted 34 lines · Andreas Müller
Signed-off-by Andreas Müller <[email protected]>--- .../connman/connman_0.78.bbappend | 7 +------ 1 files changed, 1 insertions(+), 6 deletions(-)meta-oe/recipes-connectivity/connman/connman_0.78.bbappend +1
-7@@ -2,12 +2,7 @@ inherit systemd EXTRA_OECONF += "--with-systemdunitdir=${base_libdir}/systemd/system/" -PRINC := "${@int(PRINC) + 1}" +PRINC := "${@int(PRINC) + 2}" SYSTEMD_PACKAGES = "${PN}-systemd" SYSTEMD_SERVICE_${PN}-systemd = "connman.service" - -# systemd files -PACKAGES =+ "${PN}-systemd" -FILES_${PN}-systemd += "${base_libdir}/systemd" -RDEPENDS_${PN}-systemd += "${PN}" --1.7.4.4
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
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
PATCH v2 1/1 09/22] dropbear: remove unneeded systemd code
In reply to Andreas Müller--- .../dropbear/dropbear_2011.54.bbappend | 11 +---------- 1 files changed, 1 insertions(+), 10 deletions(-)
meta-oe/recipes-core/dropbear/dropbear_2011.54.bbappend +1 -10
@@ -1,6 +1,6 @@ inherit systemd -PRINC := "${@int(PRINC) + 1}" +PRINC := "${@int(PRINC) + 2}" # look for files in the layer first FILESEXTRAPATHS := "${THISDIR}/${PN}"
@@ -13,14 +13,5 @@ SYSTEMD_PACKAGES = "${PN}-systemd" SYSTEMD_SERVICE_${PN}-systemd = "dropbear.socket" do_install_append() { - install -d ${D}${base_libdir}/systemd/system - install -m 0644 ${WORKDIR}/dropbearkey.service ${D}${base_libdir}/systemd/system/ - install -m 0644 ${WORKDIR}/[email protected] ${D}${base_libdir}/systemd/system/ - install -m 0644 ${WORKDIR}/dropbear.socket ${D}${base_libdir}/systemd/system/ ln -sf /dev/null ${D}${base_libdir}/systemd/system/dropbear.service } - -PACKAGES += "${PN}-systemd" - -RDEPENDS_${PN}-systemd += "dropbear" -FILES_${PN}-systemd = "${base_libdir}/systemd"
Signature · 1 line
1.7.4.4
Re: [meta-oe][v2] 09/22] dropbear: remove unneeded systemd code
Quoted 46 lines · Andreas Müller
Signed-off-by Andreas Müller <[email protected]>--- .../dropbear/dropbear_2011.54.bbappend | 11 +---------- 1 files changed, 1 insertions(+), 10 deletions(-)meta-oe/recipes-core/dropbear/dropbear_2011.54.bbappend +1
-3@@ -1,6 +1,6 @@ inherit systemd -PRINC := "${@int(PRINC) + 1}" +PRINC := "${@int(PRINC) + 2}" # look for files in the layer first FILESEXTRAPATHS := "${THISDIR}/${PN}"@@ -13,14 +13,5 @@ SYSTEMD_PACKAGES = "${PN}-systemd" SYSTEMD_SERVICE_${PN}-systemd = "dropbear.socket" do_install_append() { - install -d ${D}${base_libdir}/systemd/system - install -m 0644 ${WORKDIR}/dropbearkey.service${D}${base_libdir}/systemd/system/
- install -m 0644 ${WORKDIR}/[email protected]
${D}${base_libdir}/systemd/system/
- install -m 0644 ${WORKDIR}/dropbear.socket
${D}${base_libdir}/systemd/system/ln -sf /dev/null ${D}${base_libdir}/systemd/system/dropbear.service}
meta-oe/recipes-core/dropbear/dropbear_2011.54.bbappend +0
-6- -PACKAGES += "${PN}-systemd" - -RDEPENDS_${PN}-systemd += "dropbear" -FILES_${PN}-systemd = "${base_libdir}/systemd" --1.7.4.4
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
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
PATCH v2 1/1 10/22] openssh: remove unneeded systemd code
In reply to Andreas Müller--- .../openssh/openssh_5.9p1.bbappend | 14 +------------- 1 files changed, 1 insertions(+), 13 deletions(-)
meta-oe/recipes-connectivity/openssh/openssh_5.9p1.bbappend +1 -13
@@ -1,6 +1,6 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" -PRINC := "${@int(PRINC) + 1}" +PRINC := "${@int(PRINC) + 2}" SYSTEMD_PACKAGES = "openssh-sshd-systemd" SYSTEMD_SERVICE = "sshd.socket"
@@ -8,15 +8,3 @@ SYSTEMD_SERVICE = "sshd.socket" inherit systemd SRC_URI += "file://sshd.socket file://[email protected] file://sshdgenkeys.service" - -do_install_append() { - install -d ${D}${base_libdir}/systemd/system - install -m 644 ${WORKDIR}/sshd.socket ${D}${base_libdir}/systemd/system - install -m 644 ${WORKDIR}/[email protected] ${D}${base_libdir}/systemd/system - install -m 644 ${WORKDIR}/sshdgenkeys.service ${D}${base_libdir}/systemd/system -} - -PACKAGES =+ "openssh-sshd-systemd" - -FILES_openssh-sshd-systemd += "${base_libdir}/systemd" -RDEPENDS_openssh-sshd-systemd += "openssh-sshd"
Signature · 1 line
1.7.4.4
Re: [meta-oe][v2] 10/22] openssh: remove unneeded systemd code
Quoted 48 lines · Andreas Müller
Signed-off-by Andreas Müller <[email protected]>--- .../openssh/openssh_5.9p1.bbappend | 14 +------------- 1 files changed, 1 insertions(+), 13 deletions(-)meta-oe/recipes-connectivity/openssh/openssh_5.9p1.bbappend +1
-1@@ -1,6 +1,6 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" -PRINC := "${@int(PRINC) + 1}" +PRINC := "${@int(PRINC) + 2}" SYSTEMD_PACKAGES = "openssh-sshd-systemd" SYSTEMD_SERVICE = "sshd.socket"@@ -8,15 +8,3 @@ SYSTEMD_SERVICE = "sshd.socket" inherit systemd SRC_URI += "file://sshd.socket file://[email protected]file://sshdgenkeys.service"
meta-oe/recipes-connectivity/openssh/openssh_5.9p1.bbappend +0
-4- -do_install_append() { - install -d ${D}${base_libdir}/systemd/system - install -m 644 ${WORKDIR}/sshd.socket${D}${base_libdir}/systemd/system
- install -m 644 ${WORKDIR}/[email protected]
${D}${base_libdir}/systemd/system
- install -m 644 ${WORKDIR}/sshdgenkeys.service
${D}${base_libdir}/systemd/systemmeta-oe/recipes-connectivity/openssh/openssh_5.9p1.bbappend +0
-7-} - -PACKAGES =+ "openssh-sshd-systemd" - -FILES_openssh-sshd-systemd += "${base_libdir}/systemd" -RDEPENDS_openssh-sshd-systemd += "openssh-sshd" --1.7.4.4
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
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
PATCH v2 1/1 11/22] elsa: remove unneeded systemd code
In reply to Andreas Müller--- meta-efl/recipes-efl/efl/elsa_svn.bb | 11 +---------- 1 files changed, 1 insertions(+), 10 deletions(-)
meta-efl/recipes-efl/efl/elsa_svn.bb +1 -10
@@ -13,23 +13,14 @@ S = "${WORKDIR}/${SRCNAME}" EXTRA_OECONF = "--with-edje-cc=${STAGING_BINDIR_NATIVE}/edje_cc ${@base_contains('DISTRO_FEATURES', 'pam', '', '--disable-pam', d)}" -PR = "r4" +PR = "r5" PV = "0.0.4+svnr${SRCPV}" SRCREV = "${EFL_SRCREV}" -do_install_append() { - install -d ${D}${base_libdir}/systemd/system/ - install -m 0644 ${WORKDIR}/xserver-nodm.service ${D}${base_libdir}/systemd/system/xserver-nodm.service -} - inherit systemd SYSTEMD_PACKAGES = "${PN}-systemd" SYSTEMD_SERVICE = "xserver-nodm.service" -PACKAGES =+ "${PN}-systemd" -FILES_${PN}-systemd += "${base_libdir}/systemd" -RDEPENDS_${PN}-systemd += "${PN}" - RDEPENDS_${PN} += "${PN}-themes sessreg xauth" CONFFILES_${PN} += "${sysconfdir}/elsa.conf" RCONFLICTS_${PN} += "xserver-nodm-init"
Signature · 1 line
1.7.4.4
Re: [meta-oe][v2] 11/22] elsa: remove unneeded systemd code
Quoted 46 lines · Andreas Müller
Signed-off-by Andreas Müller <[email protected]>--- meta-efl/recipes-efl/efl/elsa_svn.bb | 11 +---------- 1 files changed, 1 insertions(+), 10 deletions(-)(quoted diff) +0
-0elsa_svn.bb
index a079ec0..70b56bd 100644meta-efl/recipes-efl/efl/elsa_svn.bb +0
-0@@ -13,23 +13,14 @@ S = "${WORKDIR}/${SRCNAME}" EXTRA_OECONF = "--with-edje-cc=${STAGING_BINDIR_NATIVE}/edje_cc${@base_contains('DISTRO_FEATURES', 'pam', '', '--disable-pam', d)}"
meta-efl/recipes-efl/efl/elsa_svn.bb +1
-4-PR = "r4" +PR = "r5" PV = "0.0.4+svnr${SRCPV}" SRCREV = "${EFL_SRCREV}" -do_install_append() { - install -d ${D}${base_libdir}/systemd/system/ - install -m 0644 ${WORKDIR}/xserver-nodm.service${D}${base_libdir}/systemd/system/xserver-nodm.service
meta-efl/recipes-efl/efl/elsa_svn.bb +0
-7-} - inherit systemd SYSTEMD_PACKAGES = "${PN}-systemd" SYSTEMD_SERVICE = "xserver-nodm.service" -PACKAGES =+ "${PN}-systemd" -FILES_${PN}-systemd += "${base_libdir}/systemd" -RDEPENDS_${PN}-systemd += "${PN}" - RDEPENDS_${PN} += "${PN}-themes sessreg xauth" CONFFILES_${PN} += "${sysconfdir}/elsa.conf" RCONFLICTS_${PN} += "xserver-nodm-init" --1.7.4.4
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
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
PATCH v2 1/1 12/22] cronie: remove unneeded systemd code
In reply to Andreas Müller--- .../recipes-extended/cronie/cronie_1.4.8.bbappend | 12 +----------- 1 files changed, 1 insertions(+), 11 deletions(-)
meta-oe/recipes-extended/cronie/cronie_1.4.8.bbappend +1 -11
@@ -1,7 +1,7 @@ # look for files in the layer first FILESEXTRAPATHS := "${THISDIR}/${PN}" -PRINC = "1" +PRINC = "2" inherit systemd
@@ -9,13 +9,3 @@ SYSTEMD_PACKAGES = "${PN}-systemd" SYSTEMD_SERVICE_${PN}-systemd = "crond.service" SRC_URI += "file://crond.service" - -do_install_append() { - install -d ${D}${base_libdir}/systemd/system - install -m 644 ${WORKDIR}/crond.service ${D}${base_libdir}/systemd/system -} - -PACKAGES =+ "${PN}-systemd" - -FILES_${PN}-systemd += "${base_libdir}/systemd" -RDEPENDS_${PN}-systemd = "${PN}"
Signature · 1 line
1.7.4.4
Re: [meta-oe][v2] 12/22] cronie: remove unneeded systemd code
Quoted 43 lines · Andreas Müller
Signed-off-by Andreas Müller <[email protected]>--- .../recipes-extended/cronie/cronie_1.4.8.bbappend | 12 +----------- 1 files changed, 1 insertions(+), 11 deletions(-)meta-oe/recipes-extended/cronie/cronie_1.4.8.bbappend +1
-5@@ -1,7 +1,7 @@ # look for files in the layer first FILESEXTRAPATHS := "${THISDIR}/${PN}" -PRINC = "1" +PRINC = "2" inherit systemd@@ -9,13 +9,3 @@ SYSTEMD_PACKAGES = "${PN}-systemd" SYSTEMD_SERVICE_${PN}-systemd = "crond.service" SRC_URI += "file://crond.service" - -do_install_append() { - install -d ${D}${base_libdir}/systemd/system - install -m 644 ${WORKDIR}/crond.service${D}${base_libdir}/systemd/system
meta-oe/recipes-extended/cronie/cronie_1.4.8.bbappend +0
-7-} - -PACKAGES =+ "${PN}-systemd" - -FILES_${PN}-systemd += "${base_libdir}/systemd" -RDEPENDS_${PN}-systemd = "${PN}" --1.7.4.4
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
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
PATCH v2 1/1 13/22] xserver-nodm-init: remove unneeded systemd code
In reply to Andreas Müller--- .../xserver-nodm-init/xserver-nodm-init_2.0.bb | 10 +--------- 1 files changed, 1 insertions(+), 9 deletions(-)
meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init_2.0.bb +1 -9
@@ -3,7 +3,7 @@ LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" SECTION = "x11" -PR = "r12" +PR = "r13" SRC_URI = "file://xserver-nodm \ file://xserver-nodm.service \
@@ -25,14 +25,6 @@ SYSTEMD_SERVICE_${PN}-systemd = "xserver-nodm.service" do_install() { install -d ${D}${sysconfdir}/init.d install xserver-nodm ${D}${sysconfdir}/init.d - - install -d ${D}${base_libdir}/systemd/system - install -m 0644 xserver-nodm.service ${D}${base_libdir}/systemd/system/ } -PACKAGES += "${PN}-systemd" - RDEPENDS_${PN} = "xserver-common (>= 1.30) xinit" - -FILES_${PN}-systemd += "${base_libdir}/systemd/system/" -RDEPENDS_${PN}-systemd += "xserver-common (>= 1.30) xinit"
Signature · 1 line
1.7.4.4
Re: [meta-oe][v2] 13/22] xserver-nodm-init: remove unneeded systemd code
Quoted 45 lines · Andreas Müller
Signed-off-by Andreas Müller <[email protected]>--- .../xserver-nodm-init/xserver-nodm-init_2.0.bb | 10 +--------- 1 files changed, 1 insertions(+), 9 deletions(-)(quoted diff) +0
-0xserver-nodm-init_2.0.bb b/meta-oe/recipes-graphics/xserver-nodm-init/ xserver-nodm-init_2.0.bb
index 2132eab..eec284e 100644meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init_2.0.bb +1
-4@@ -3,7 +3,7 @@ LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" SECTION = "x11" -PR = "r12" +PR = "r13" SRC_URI = "file://xserver-nodm \ file://xserver-nodm.service \@@ -25,14 +25,6 @@ SYSTEMD_SERVICE_${PN}-systemd = "xserver-nodm.service" do_install() { install -d ${D}${sysconfdir}/init.d install xserver-nodm ${D}${sysconfdir}/init.d - - install -d ${D}${base_libdir}/systemd/system - install -m 0644 xserver-nodm.service${D}${base_libdir}/systemd/system/
}meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init_2.0.bb +0
-6-PACKAGES += "${PN}-systemd" - RDEPENDS_${PN} = "xserver-common (>= 1.30) xinit" - -FILES_${PN}-systemd += "${base_libdir}/systemd/system/" -RDEPENDS_${PN}-systemd += "xserver-common (>= 1.30) xinit" --1.7.4.4
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
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
PATCH v2 1/1 14/22] atftp: remove unneeded systemd code
In reply to Andreas Müller--- meta-oe/recipes-extended/atftp/atftp_0.7.bb | 10 ++-------- 1 files changed, 2 insertions(+), 8 deletions(-)
meta-oe/recipes-extended/atftp/atftp_0.7.bb +2 -8
@@ -3,7 +3,7 @@ SECTION = "network" HOMEPAGE = "http://packages.debian.org/atftp" LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://LICENSE;md5=94d55d512a9ba36caa9b7df079bae19f" -PR = "r1" +PR = "r2" SRC_URI = "${DEBIAN_MIRROR}/main/a/atftp/atftp_${PV}.dfsg.orig.tar.gz;name=archive \ ${DEBIAN_MIRROR}/main/a/atftp/atftp_${PV}.dfsg-11.diff.gz;name=patch \
@@ -29,23 +29,17 @@ do_install_append() { install -d ${D}${sysconfdir}/init.d install -m 0755 ${WORKDIR}/atftpd.init ${D}${sysconfdir}/init.d/atftpd - install -d ${D}${base_libdir}/systemd/system - install -m 644 ${WORKDIR}/atftpd.service ${D}${base_libdir}/systemd/system - install -d ${D}/srv/tftp rm ${D}${sbindir}/in.tftpd } -PACKAGES =+ "atftpd-systemd atftpd" +PACKAGES =+ "atftpd" FILES_${PN} = "${bindir}/*" FILES_${PN}d = "${sbindir}/* ${sysconfdir}/init.d/* /srv/tftp" -FILES_atftpd-systemd += "${base_libdir}/systemd" -RDEPENDS_atftpd-systemd += "atftpd" - SRC_URI[archive.md5sum] = "aa269044a6f992eca78fee2f6119643c" SRC_URI[archive.sha256sum] = "18815f5b67290fac087c6b9da28dfa5e0feb722096f5c5de52e59b46026da559" SRC_URI[patch.md5sum] = "1636f199bf32c754a7bf34a5c647d138"
Signature · 1 line
1.7.4.4
Re: [meta-oe][v2] 14/22] atftp: remove unneeded systemd code
Quoted 57 lines · Andreas Müller
Signed-off-by Andreas Müller <[email protected]>--- meta-oe/recipes-extended/atftp/atftp_0.7.bb | 10 ++-------- 1 files changed, 2 insertions(+), 8 deletions(-)(quoted diff) +0
-0atftp_0.7.bb
index ab14a28..6bd44a0 100644meta-oe/recipes-extended/atftp/atftp_0.7.bb +1
-1@@ -3,7 +3,7 @@ SECTION = "network" HOMEPAGE = "http://packages.debian.org/atftp" LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://LICENSE;md5=94d55d512a9ba36caa9b7df079bae19f" -PR = "r1" +PR = "r2" SRC_URI = "${DEBIAN_MIRROR}/main/a/atftp/atftp_${PV}.dfsg.orig.tar.gz;name=archive \${DEBIAN_MIRROR}/main/a/atftp/atftp_${PV}.dfsg-11.diff.gz;name=patch \
meta-oe/recipes-extended/atftp/atftp_0.7.bb +0
-2@@ -29,23 +29,17 @@ do_install_append() { install -d ${D}${sysconfdir}/init.d install -m 0755 ${WORKDIR}/atftpd.init ${D}${sysconfdir}/init.d/atftpd - install -d ${D}${base_libdir}/systemd/system - install -m 644 ${WORKDIR}/atftpd.service${D}${base_libdir}/systemd/system
meta-oe/recipes-extended/atftp/atftp_0.7.bb +1
-5- install -d ${D}/srv/tftp rm ${D}${sbindir}/in.tftpd } -PACKAGES =+ "atftpd-systemd atftpd" +PACKAGES =+ "atftpd" FILES_${PN} = "${bindir}/*" FILES_${PN}d = "${sbindir}/* ${sysconfdir}/init.d/* /srv/tftp" -FILES_atftpd-systemd += "${base_libdir}/systemd" -RDEPENDS_atftpd-systemd += "atftpd" - SRC_URI[archive.md5sum] = "aa269044a6f992eca78fee2f6119643c" SRC_URI[archive.sha256sum] ="
18815f5b67290fac087c6b9da28dfa5e0feb722096f5c5de52e59b46026da559"
SRC_URI[patch.md5sum] = "1636f199bf32c754a7bf34a5c647d138"
--
1.7.4.4_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
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
PATCH v2 1/1 15/22] udisks: remove unneeded systemd code
In reply to Andreas Müller--- meta-oe/recipes-support/udisks/udisks_1.0.4.bb | 9 +-------- 1 files changed, 1 insertions(+), 8 deletions(-)
meta-oe/recipes-support/udisks/udisks_1.0.4.bb +1 -8
@@ -12,7 +12,7 @@ SRC_URI = "http://hal.freedesktop.org/releases/${BPN}-${PV}.tar.gz;name=${BPN} \ SRC_URI[udisks.md5sum] = "86c63b2b5484f2060499a052b5b6256b" SRC_URI[udisks.sha256sum] = "854b89368733b9c3a577101b761ad5397ae75a05110c8698ac5b29de9a8bf8f5" -PR = "r2" +PR = "r3" inherit autotools systemd
@@ -21,11 +21,6 @@ SYSTEMD_SERVICE_${PN}-systemd = "udisks-daemon.service" EXTRA_OECONF = "--disable-man-pages" -PACKAGES =+ "${PN}-systemd" - -FILES_${PN}-systemd = "${base_libdir}/systemd/system/" -RDEPENDS_${PN}-systemd = "${PN}" - FILES_${PN} += "${libdir}/polkit-1/extensions/*.so \ ${datadir}/dbus-1/ \ ${datadir}/polkit-1 \
@@ -33,5 +28,3 @@ FILES_${PN} += "${libdir}/polkit-1/extensions/*.so \ " FILES_${PN}-dbg += "${base_libdir}/udev/.debug" - -
Signature · 1 line
1.7.4.4
Re: [meta-oe][v2] 15/22] udisks: remove unneeded systemd code
Quoted 48 lines · Andreas Müller
Signed-off-by Andreas Müller <[email protected]>--- meta-oe/recipes-support/udisks/udisks_1.0.4.bb | 9 +-------- 1 files changed, 1 insertions(+), 8 deletions(-)(quoted diff) +0
-0udisks_1.0.4.bb
index 55b115e..96b6086 100644meta-oe/recipes-support/udisks/udisks_1.0.4.bb +0
-0@@ -12,7 +12,7 @@ SRC_URI = " http://hal.freedesktop.org/releases/${BPN}-${PV}.tar.gz;name=${BPN} \ SRC_URI[udisks.md5sum] = "86c63b2b5484f2060499a052b5b6256b" SRC_URI[udisks.sha256sum] ="
854b89368733b9c3a577101b761ad5397ae75a05110c8698ac5b29de9a8bf8f5"meta-oe/recipes-support/udisks/udisks_1.0.4.bb +1
-9-PR = "r2" +PR = "r3" inherit autotools systemd@@ -21,11 +21,6 @@ SYSTEMD_SERVICE_${PN}-systemd = "udisks-daemon.service" EXTRA_OECONF = "--disable-man-pages" -PACKAGES =+ "${PN}-systemd" - -FILES_${PN}-systemd = "${base_libdir}/systemd/system/" -RDEPENDS_${PN}-systemd = "${PN}" - FILES_${PN} += "${libdir}/polkit-1/extensions/*.so \ ${datadir}/dbus-1/ \ ${datadir}/polkit-1 \@@ -33,5 +28,3 @@ FILES_${PN} += "${libdir}/polkit-1/extensions/*.so \ " FILES_${PN}-dbg += "${base_libdir}/udev/.debug" - - --1.7.4.4
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
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
PATCH v2 1/1 16/22] rsyslog: remove unneeded systemd code
In reply to Andreas Müller--- meta-oe/recipes-extended/rsyslog/rsyslog.inc | 7 +------ 1 files changed, 1 insertions(+), 6 deletions(-)
meta-oe/recipes-extended/rsyslog/rsyslog.inc +1 -6
@@ -4,7 +4,7 @@ HOMEPAGE = "http://www.rsyslog.com/" LICENSE = "GPLv3" LIC_FILES_CHKSUM = "file://COPYING;md5=51d9635e646fb75e1b74c074f788e973" -INC_PR = "r2" +INC_PR = "r3" SRC_URI = "http://www.rsyslog.com/files/download/rsyslog/${PN}-${PV}.tar.gz \ file://rsyslog.conf"
@@ -20,9 +20,4 @@ do_install_append() { install ${WORKDIR}/rsyslog.conf ${D}${sysconfdir}/rsyslog.conf } -PACKAGES =+ "${PN}-systemd" - CONFFILES_${PN} = "${sysconfdir}/rsyslog.conf" - -FILES_${PN}-systemd += "${base_libdir}/systemd" -RDEPENDS_${PN}-systemd += "${PN}"
Signature · 1 line
1.7.4.4
Re: [meta-oe][v2] 16/22] rsyslog: remove unneeded systemd code
Quoted 40 lines · Andreas Müller
Signed-off-by Andreas Müller <[email protected]>--- meta-oe/recipes-extended/rsyslog/rsyslog.inc | 7 +------ 1 files changed, 1 insertions(+), 6 deletions(-)meta-oe/recipes-extended/rsyslog/rsyslog.inc +1
-1@@ -4,7 +4,7 @@ HOMEPAGE = "http://www.rsyslog.com/" LICENSE = "GPLv3" LIC_FILES_CHKSUM = "file://COPYING;md5=51d9635e646fb75e1b74c074f788e973" -INC_PR = "r2" +INC_PR = "r3" SRC_URI = " http://www.rsyslog.com/files/download/rsyslog/${PN}-${PV}.tar.gz \file://rsyslog.conf"
meta-oe/recipes-extended/rsyslog/rsyslog.inc +0
-6@@ -20,9 +20,4 @@ do_install_append() { install ${WORKDIR}/rsyslog.conf ${D}${sysconfdir}/rsyslog.conf } -PACKAGES =+ "${PN}-systemd" - CONFFILES_${PN} = "${sysconfdir}/rsyslog.conf" - -FILES_${PN}-systemd += "${base_libdir}/systemd" -RDEPENDS_${PN}-systemd += "${PN}" --1.7.4.4
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
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
PATCH v2 1/1 17/22] syslog-ng: remove unneeded systemd code
In reply to Andreas Müller--- meta-oe/recipes-support/syslog-ng/syslog-ng.inc | 7 +------ 1 files changed, 1 insertions(+), 6 deletions(-)
meta-oe/recipes-support/syslog-ng/syslog-ng.inc +1 -6
@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=7ec1bcc46f28b11f4722e20d9b7dd4d5" # update-rc.d and update-alternatives is important RDEPENDS_${PN} += " ${@base_conditional("ONLINE_PACKAGE_MANAGEMENT", "none", "", "update-rc.d", d)}" -INC_PR = "r6" +INC_PR = "r7" inherit autotools systemd
@@ -47,11 +47,6 @@ do_install_append() { SYSTEMD_PACKAGES = "${PN}-systemd" SYSTEMD_SERVICE = "${PN}.service" -PACKAGES =+ "${PN}-systemd" - -FILES_${PN}-systemd += "${base_libdir}/systemd" -RDEPENDS_${PN}-systemd += "${PN}" - FILES_${PN} = "${bindir}/* ${sbindir}/* ${libexecdir}/* ${libdir}/lib*${SOLIBS} \ ${sysconfdir} ${sharedstatedir} ${localstatedir} \ ${base_bindir}/* ${base_sbindir}/* \
Signature · 1 line
1.7.4.4
Re: [meta-oe][v2] 17/22] syslog-ng: remove unneeded systemd code
Quoted 43 lines · Andreas Müller
Signed-off-by Andreas Müller <[email protected]>--- meta-oe/recipes-support/syslog-ng/syslog-ng.inc | 7 +------ 1 files changed, 1 insertions(+), 6 deletions(-)meta-oe/recipes-support/syslog-ng/syslog-ng.inc +0
-0@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM ="file://COPYING;md5=7ec1bcc46f28b11f4722e20d9b7dd4d5"
# update-rc.d and update-alternatives is important RDEPENDS_${PN} += " ${@base_conditional("ONLINE_PACKAGE_MANAGEMENT", "none", "", "update-rc.d", d)}"meta-oe/recipes-support/syslog-ng/syslog-ng.inc +1
-6-INC_PR = "r6" +INC_PR = "r7" inherit autotools systemd@@ -47,11 +47,6 @@ do_install_append() { SYSTEMD_PACKAGES = "${PN}-systemd" SYSTEMD_SERVICE = "${PN}.service" -PACKAGES =+ "${PN}-systemd" - -FILES_${PN}-systemd += "${base_libdir}/systemd" -RDEPENDS_${PN}-systemd += "${PN}" - FILES_${PN} = "${bindir}/* ${sbindir}/* ${libexecdir}/* ${libdir}/lib*${SOLIBS} \ ${sysconfdir} ${sharedstatedir} ${localstatedir} \${base_bindir}/* ${base_sbindir}/* \--
1.7.4.4_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
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
PATCH v2 1/1 18/22] dhcp: remove unneeded systemd code
In reply to Andreas Müller--- .../recipes-connectivity/dhcp/dhcp_4.2.0.bbappend | 12 +----------- 1 files changed, 1 insertions(+), 11 deletions(-)
meta-oe/recipes-connectivity/dhcp/dhcp_4.2.0.bbappend +1 -11
@@ -3,19 +3,9 @@ FILESEXTRAPATHS := "${THISDIR}/files" inherit systemd -PRINC := "${@int(PRINC) + 1}" +PRINC := "${@int(PRINC) + 2}" SYSTEMD_PACKAGES = "dhcp-server-systemd" SYSTEMD_SERVICE_dhcp-server-systemd = "dhcpd.service" SRC_URI += "file://dhcpd.service" - -do_install_append() { - install -d ${D}${base_libdir}/systemd/system - install -m 644 ${WORKDIR}/dhcpd.service ${D}${base_libdir}/systemd/system -} - -PACKAGES =+ "dhcp-server-systemd" - -FILES_dhcp-server-systemd += "${base_libdir}/systemd" -RDEPENDS_dhcp-server-systemd += "dhcp-server"
Signature · 1 line
1.7.4.4
Re: [meta-oe][v2] 18/22] dhcp: remove unneeded systemd code
Quoted 42 lines · Andreas Müller
Signed-off-by Andreas Müller <[email protected]>--- .../recipes-connectivity/dhcp/dhcp_4.2.0.bbappend | 12 +----------- 1 files changed, 1 insertions(+), 11 deletions(-)meta-oe/recipes-connectivity/dhcp/dhcp_4.2.0.bbappend +1
-5@@ -3,19 +3,9 @@ FILESEXTRAPATHS := "${THISDIR}/files" inherit systemd -PRINC := "${@int(PRINC) + 1}" +PRINC := "${@int(PRINC) + 2}" SYSTEMD_PACKAGES = "dhcp-server-systemd" SYSTEMD_SERVICE_dhcp-server-systemd = "dhcpd.service" SRC_URI += "file://dhcpd.service" - -do_install_append() { - install -d ${D}${base_libdir}/systemd/system - install -m 644 ${WORKDIR}/dhcpd.service${D}${base_libdir}/systemd/system
meta-oe/recipes-connectivity/dhcp/dhcp_4.2.0.bbappend +0
-7-} - -PACKAGES =+ "dhcp-server-systemd" - -FILES_dhcp-server-systemd += "${base_libdir}/systemd" -RDEPENDS_dhcp-server-systemd += "dhcp-server" --1.7.4.4
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
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
PATCH v2 1/1 19/22] gpsd: remove unneeded systemd code
In reply to Andreas Müller--- meta-oe/recipes-navigation/gpsd/gpsd_2.96.bb | 12 ++---------- 1 files changed, 2 insertions(+), 10 deletions(-)
meta-oe/recipes-navigation/gpsd/gpsd_2.96.bb +2 -10
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d217a23f408e91c94359447735bc1800" DEPENDS = "dbus-glib ncurses python libusb1" PROVIDES = "virtual/gpsd" -PR = "r1" +PR = "r2" EXTRA_OECONF = "--x-includes=${STAGING_INCDIR}/X11 \ --x-libraries=${STAGING_LIBDIR} \
@@ -68,11 +68,6 @@ do_install_append() { install -m 0755 ${S}/gpsd.hotplug ${D}${base_libdir}/udev/ install -d ${D}${base_libdir}/udev/ install -m 0755 ${S}/gpsd.hotplug.wrapper ${D}${base_libdir}/udev/ - - #support for systemd - install -d ${D}${base_libdir}/systemd/system - install -m 644 ${WORKDIR}/${PN}.socket ${D}${base_libdir}/systemd/system - install -m 644 ${WORKDIR}/${PN}.service ${D}${base_libdir}/systemd/system } pkg_postinst_${PN}-conf() {
@@ -83,7 +78,7 @@ pkg_postrm_${PN}-conf() { update-alternatives --remove gpsd-defaults ${sysconfdir}/default/gpsd.default } -PACKAGES =+ "libgps libgpsd python-pygps-dbg python-pygps gpsd-udev gpsd-conf gpsd-gpsctl gps-utils ${PN}-systemd" +PACKAGES =+ "libgps libgpsd python-pygps-dbg python-pygps gpsd-udev gpsd-conf gpsd-gpsctl gps-utils" FILES_python-pygps-dbg += " ${libdir}/python*/site-packages/gps/.debug"
@@ -113,6 +108,3 @@ RDEPENDS_gps-utils = "python-pygps" DESCRIPTION_python-pygps = "Python bindings to gpsd" FILES_python-pygps = "${PYTHON_SITEPACKAGES_DIR}/*" RDEPENDS_python-pygps = "python-core python-curses gpsd python-json" - -FILES_${PN}-systemd += "${base_libdir}/systemd" -RDEPENDS_${PN}-systemd += "${PN}"
Signature · 1 line
1.7.4.4
Re: [meta-oe][v2] 19/22] gpsd: remove unneeded systemd code
Quoted 62 lines · Andreas Müller
Signed-off-by Andreas Müller <[email protected]>--- meta-oe/recipes-navigation/gpsd/gpsd_2.96.bb | 12 ++---------- 1 files changed, 2 insertions(+), 10 deletions(-)(quoted diff) +0
-0gpsd_2.96.bb
index ce2ab02..927107a 100644meta-oe/recipes-navigation/gpsd/gpsd_2.96.bb +0
-0@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM ="file://COPYING;md5=d217a23f408e91c94359447735bc1800"
DEPENDS = "dbus-glib ncurses python libusb1" PROVIDES = "virtual/gpsd"meta-oe/recipes-navigation/gpsd/gpsd_2.96.bb +1
-5-PR = "r1" +PR = "r2" EXTRA_OECONF = "--x-includes=${STAGING_INCDIR}/X11 \ --x-libraries=${STAGING_LIBDIR} \@@ -68,11 +68,6 @@ do_install_append() { install -m 0755 ${S}/gpsd.hotplug ${D}${base_libdir}/udev/ install -d ${D}${base_libdir}/udev/ install -m 0755 ${S}/gpsd.hotplug.wrapper ${D}${base_libdir}/udev/ - - #support for systemd - install -d ${D}${base_libdir}/systemd/system - install -m 644 ${WORKDIR}/${PN}.socket${D}${base_libdir}/systemd/system
- install -m 644 ${WORKDIR}/${PN}.service
${D}${base_libdir}/systemd/system
}pkg_postinst_${PN}-conf() {
meta-oe/recipes-navigation/gpsd/gpsd_2.96.bb +0
-0@@ -83,7 +78,7 @@ pkg_postrm_${PN}-conf() { update-alternatives --remove gpsd-defaults${sysconfdir}/default/gpsd.default
}-PACKAGES =+ "libgps libgpsd python-pygps-dbg python-pygps gpsd-udev gpsd-conf gpsd-gpsctl gps-utils ${PN}-systemd"
+PACKAGES =+ "libgps libgpsd python-pygps-dbg python-pygps gpsd-udev gpsd-conf gpsd-gpsctl gps-utils"FILES_python-pygps-dbg += " ${libdir}/python*/site-packages/gps/.debug"
meta-oe/recipes-navigation/gpsd/gpsd_2.96.bb +0
-4@@ -113,6 +108,3 @@ RDEPENDS_gps-utils = "python-pygps" DESCRIPTION_python-pygps = "Python bindings to gpsd" FILES_python-pygps = "${PYTHON_SITEPACKAGES_DIR}/*" RDEPENDS_python-pygps = "python-core python-curses gpsd python-json" - -FILES_${PN}-systemd += "${base_libdir}/systemd" -RDEPENDS_${PN}-systemd += "${PN}" --1.7.4.4
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
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
PATCH v2 1/1 20/22] busybox: remove unneeded systemd code
In reply to Andreas Müller--- .../recipes-core/busybox/busybox_1.19.3.bbappend | 8 ++------ 1 files changed, 2 insertions(+), 6 deletions(-)
meta-oe/recipes-core/busybox/busybox_1.19.3.bbappend +2 -6
@@ -1,6 +1,6 @@ inherit systemd -PRINC := "${@int(PRINC) + 2}" +PRINC := "${@int(PRINC) + 3}" # look for files in the layer first FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
@@ -15,7 +15,6 @@ SYSTEMD_SERVICE_${PN}-syslog-systemd = "busybox-syslog.service" do_install_append() { install -m 0644 ${WORKDIR}/busybox-syslog.default ${D}${sysconfdir}/default/busybox-syslog - install -d ${D}${base_libdir}/systemd/system sed 's,@base_sbindir@,${base_sbindir},g' < ${WORKDIR}/busybox-syslog.service.in \ > ${D}${base_libdir}/systemd/system/busybox-syslog.service sed 's,@base_sbindir@,${base_sbindir},g' < ${WORKDIR}/busybox-klogd.service.in \
@@ -24,7 +23,4 @@ do_install_append() { ln -sf /dev/null ${D}${base_libdir}/systemd/system/syslog.service } -PACKAGES += "${PN}-syslog-systemd" - -RDEPENDS_${PN}-syslog-systemd += "${PN}-syslog" -FILES_${PN}-syslog-systemd = "${base_libdir}/systemd" +FILES_${PN}-syslog-systemd += "${base_libdir}/systemd/system/syslog.service"
Signature · 1 line
1.7.4.4
Re: [meta-oe][v2] 20/22] busybox: remove unneeded systemd code
Quoted 49 lines · Andreas Müller
Signed-off-by Andreas Müller <[email protected]>--- .../recipes-core/busybox/busybox_1.19.3.bbappend | 8 ++------ 1 files changed, 2 insertions(+), 6 deletions(-)meta-oe/recipes-core/busybox/busybox_1.19.3.bbappend +1
-1@@ -1,6 +1,6 @@ inherit systemd -PRINC := "${@int(PRINC) + 2}" +PRINC := "${@int(PRINC) + 3}" # look for files in the layer first FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"@@ -15,7 +15,6 @@ SYSTEMD_SERVICE_${PN}-syslog-systemd ="busybox-syslog.service"
do_install_append() { install -m 0644 ${WORKDIR}/busybox-syslog.default${D}${sysconfdir}/default/busybox-syslog
- install -d ${D}${base_libdir}/systemd/system
sed 's,@base_sbindir@,${base_sbindir},g' < ${WORKDIR}/ busybox-syslog.service.in \ > ${D}${base_libdir}/systemd/system/busybox-syslog.service sed 's,@base_sbindir@,${base_sbindir},g' < ${WORKDIR}/busybox-klogd.service.in \
meta-oe/recipes-core/busybox/busybox_1.19.3.bbappend +1
-4@@ -24,7 +23,4 @@ do_install_append() { ln -sf /dev/null ${D}${base_libdir}/systemd/system/syslog.service } -PACKAGES += "${PN}-syslog-systemd" - -RDEPENDS_${PN}-syslog-systemd += "${PN}-syslog" -FILES_${PN}-syslog-systemd = "${base_libdir}/systemd" +FILES_${PN}-syslog-systemd +="${base_libdir}/systemd/system/syslog.service"
--
1.7.4.4_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
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
PATCH v2 1/1 21/22] dhcp: add native systemd support for dhcp-relay
In reply to Andreas Müller--- .../recipes-connectivity/dhcp/dhcp_4.2.0.bbappend | 8 +++++--- .../dhcp/files/dhcrelay.service | 10 ++++++++++ 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 meta-oe/recipes-connectivity/dhcp/files/dhcrelay.service
meta-oe/recipes-connectivity/dhcp/dhcp_4.2.0.bbappend +5 -3
@@ -3,9 +3,11 @@ FILESEXTRAPATHS := "${THISDIR}/files" inherit systemd -PRINC := "${@int(PRINC) + 2}" +PRINC := "${@int(PRINC) + 3}" -SYSTEMD_PACKAGES = "dhcp-server-systemd" +SYSTEMD_PACKAGES = "dhcp-server-systemd dhcp-relay-systemd" SYSTEMD_SERVICE_dhcp-server-systemd = "dhcpd.service" +SYSTEMD_SERVICE_dhcp-relay-systemd = "dhcrelay.service" -SRC_URI += "file://dhcpd.service" +SRC_URI += "file://dhcpd.service \ + file://dhcrelay.service"
meta-oe/recipes-connectivity/dhcp/files/dhcrelay.service new file +10 -0
@@ -0,0 +1,10 @@ +[Unit] +Description=DHCP Relay Agent Daemon +After=syslog.target network.target + +[Service] +EnvironmentFile=/etc/default/dhcp-relay +ExecStart=/usr/sbin/dhcrelay -d $DHCRELAYARGS + +[Install] +WantedBy=multi-user.target
Signature · 1 line
1.7.4.4
Re: [meta-oe][v2] 21/22] dhcp: add native systemd support for dhcp-relay
Quoted 55 lines · Andreas Müller
Signed-off-by Andreas Müller <[email protected]>--- .../recipes-connectivity/dhcp/dhcp_4.2.0.bbappend | 8 +++++--- .../dhcp/files/dhcrelay.service | 10 ++++++++++ 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644meta-oe/recipes-connectivity/dhcp/files/dhcrelay.service
meta-oe/recipes-connectivity/dhcp/dhcp_4.2.0.bbappend +5
-3@@ -3,9 +3,11 @@ FILESEXTRAPATHS := "${THISDIR}/files" inherit systemd -PRINC := "${@int(PRINC) + 2}" +PRINC := "${@int(PRINC) + 3}" -SYSTEMD_PACKAGES = "dhcp-server-systemd" +SYSTEMD_PACKAGES = "dhcp-server-systemd dhcp-relay-systemd" SYSTEMD_SERVICE_dhcp-server-systemd = "dhcpd.service" +SYSTEMD_SERVICE_dhcp-relay-systemd = "dhcrelay.service" -SRC_URI += "file://dhcpd.service" +SRC_URI += "file://dhcpd.service \ + file://dhcrelay.service"meta-oe/recipes-connectivity/dhcp/files/dhcrelay.service new file +10
-1@@ -0,0 +1,10 @@ +[Unit] +Description=DHCP Relay Agent Daemon +After=syslog.target network.target + +[Service] +EnvironmentFile=/etc/default/dhcp-relay +ExecStart=/usr/sbin/dhcrelay -d $DHCRELAYARGS + +[Install] +WantedBy=multi-user.target --1.7.4.4
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
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
PATCH v2 1/1 22/22] gpsd: use ${PN}.service instead ${PN}.socket in SYSTEMD_SERVICE to enable service
In reply to Andreas Müller--- meta-oe/recipes-navigation/gpsd/gpsd_2.96.bb | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
meta-oe/recipes-navigation/gpsd/gpsd_2.96.bb +2 -2
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d217a23f408e91c94359447735bc1800" DEPENDS = "dbus-glib ncurses python libusb1" PROVIDES = "virtual/gpsd" -PR = "r2" +PR = "r3" EXTRA_OECONF = "--x-includes=${STAGING_INCDIR}/X11 \ --x-libraries=${STAGING_LIBDIR} \
@@ -28,7 +28,7 @@ INITSCRIPT_NAME = "gpsd" INITSCRIPT_PARAMS = "defaults 35" SYSTEMD_PACKAGES = "${PN}-systemd" -SYSTEMD_SERVICE = "${PN}.socket" +SYSTEMD_SERVICE = "${PN}.service" LDFLAGS += "-L${STAGING_LIBDIR} -lm"
Signature · 1 line
1.7.4.4
Re: [meta-oe][v2] 22/22] gpsd: use ${PN}.service instead ${PN}.socket in SYSTEMD_SERVICE to enable service
meta-oe/recipes-navigation/gpsd/gpsd_2.96.bb INITSCRIPT_NAME = "gpsd" · line 31
Quoted 4 lines · Andreas Müller
SYSTEMD_PACKAGES= "${PN}-systemd"meta-oe/recipes-navigation/gpsd/gpsd_2.96.bb +1
-1-SYSTEMD_SERVICE = "${PN}.socket" +SYSTEMD_SERVICE = "${PN}.service"
Why?
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
Re: [meta-oe][v2] 22/22] gpsd: use ${PN}.service instead ${PN}.socket in SYSTEMD_SERVICE to enable service
Quoted 10 lines · Otavio Salvador
meta-oe/recipes-navigation/gpsd/gpsd_2.96.bb INITSCRIPT_NAME = "gpsd" · line 31
Quoted 4 lines · Andreas Müller
SYSTEMD_PACKAGES = "${PN}-systemd"
meta-oe/recipes-navigation/gpsd/gpsd_2.96.bb +1
-1-SYSTEMD_SERVICE = "${PN}.socket" +SYSTEMD_SERVICE = "${PN}.service"Why?
As far as I can see there is no link from *.socket to *.service ( *.service requires *.socket) - correct?. Interesting: This was highlighted by the systemd.bbclass modification: without this patch *.service is not installed. Is there something I have overseen?
Andreas
Re: [meta-oe][v2] 22/22] gpsd: use ${PN}.service instead ${PN}.socket in SYSTEMD_SERVICE to enable service
Quoted 4 lines · Andreas Müller
As far as I can see there is no link from *.socket to *.service ( *.service requires *.socket) - correct?. Interesting: This was highlighted by the systemd.bbclass modification: without this patch *.service is not installed. Is there something I have overseen?
As you can see at
http://www.freedesktop.org/software/systemd/man/systemd.socket.html if Accept is false, then a <service>.service needs to exist, if Accept is true, then <service>@.service needs to exist.
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
Re: [meta-oe][v2] 22/22] gpsd: use ${PN}.service instead ${PN}.socket in SYSTEMD_SERVICE to enable service
Quoted 9 lines · Otavio Salvador
Quoted 4 lines · Andreas Müller
As far as I can see there is no link from *.socket to *.service ( *.service requires *.socket) - correct?. Interesting: This was highlighted by the systemd.bbclass modification: without this patch *.service is not installed. Is there something I have overseen?
Quoted 6 lines
As you can see at
http://www.freedesktop.org/software/systemd/man/systemd.socket.html if Accept is false, then a <service>.service needs to exist, if Accept is true, then <service>@.service needs to exist.--
OK - but is it a problem to choose *.service? Will systemd-sysctl-native do the expected job?
Andreas
Re: [meta-oe][v2] 22/22] gpsd: use ${PN}.service instead ${PN}.socket in SYSTEMD_SERVICE to enable service
Quoted 2 lines · Andreas Müller
OK - but is it a problem to choose *.service? Will systemd-sysctl-native do the expected job?
Not really but it is a problem expect people will always choose .service file instead of .socket.
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
Re: [meta-oe][v2] 22/22] gpsd: use ${PN}.service instead ${PN}.socket in SYSTEMD_SERVICE to enable service
Quoted 10 lines · Otavio Salvador
Quoted 2 lines · Andreas Müller
OK - but is it a problem to choose *.service? Will systemd-sysctl-native do the expected job?
Not really but it is a problem expect people will always choose .service file instead of .socket.
This is not the case for many packets having *.socket files referencing *.service by 'Also'. But in gpsd.socket is nothing like that.
One question the other way round: What fallout do you expect by this patch?
Andreas
Re: [meta-oe][v2] 22/22] gpsd: use ${PN}.service instead ${PN}.socket in SYSTEMD_SERVICE to enable service
Quoted 5 lines · Andreas Müller
This is not the case for many packets having *.socket files referencing *.service by 'Also'. But in gpsd.socket is nothing like that.
One question the other way round: What fallout do you expect by this patch?
No fallout but I think we ought to support the specification to avoid needing to touch this code soon. As systemd explicitly say's that if a .socket is provided, a .service or a @.serivce needs to be available, we might support this case too.
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
Re: [meta-oe][v2] 22/22] gpsd: use ${PN}.service instead ${PN}.socket in SYSTEMD_SERVICE to enable service
Quoted 7 lines · Otavio Salvador
Quoted 4 lines · Andreas Müller
This is not the case for many packets having *.socket files referencing *.service by 'Also'. But in gpsd.socket is nothing like that.
Quoted 8 lines
Quoted 1 line
One question the other way round: What fallout do you expect by this patch?
No fallout but I think we ought to support the specification to avoid needing to touch this code soon. As systemd explicitly say's that if a .socket is provided, a .service or a @.serivce needs to be available, we might support this case too.
Agreed (previous mail went out too early): V3 will get it
Andreas
Quoted 8 lines · Andreas Müller
Additional patches were prepared for other recipes inheriting systemd. These are
not yet send because they move systemd support from ${PN} to ${PN}-systemd which
currently needs modifications on tasks/images. I'd be happy if a common accepted
solution would be suggested/implemented (image-feature?).
Personally I think we'll end doing both: DISTRO_FEATURE and IMAGE_FEATURE.
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
Quoted 11 lines · Andreas Müller
V1 -> V2:
[2] do not check configuration variables for cross and nativesdk [3] rename systemd_package to systemd_generate_package_scripts [6] parse unit files to determine the files to pack [7] create warning if *-systemd package already rdependsit's base package
added in V2:
[8]-[20] remove obsolet systemd code from recipes (these were used as
test cases)
[21] dhcp-(relay) test case for multiple systemd packages
[22] modified to start service
Whole series looks good to me sofar.
I'm not sure what's meant by this warning:
WARNING:
/OE/shr-core/meta-openembedded/meta-oe/recipes-connectivity/gateone/gateone_git.bb:
it is recommended to set SYSTEMD_PACKAGES as <existing-package>-systemd WARNING:
/OE/shr-core/meta-openembedded/meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb:
it is recommended to set SYSTEMD_PACKAGES as <existing-package>-systemd
I guess we should
-SYSTEMD_PACKAGES = "${PN}"
+SYSTEMD_PACKAGES = "${PN}-systemd"
with this patchset too and add ${PN}-systemd to task which pulls gateone/cloud9.
And I'm not sure if this change is intentional:
http://git.shr-project.org/git/?p=buildhistory.git;a=commitdiff;h=3d27d7267406bd0fb2ea2a48b108dbb8bc7c128f#patch18
as xserver-nodm-init-systemd doesn't really need xserver-nodm-init, but probably won't harm if xserver-nodm-init is used only to pull xinit+xserver-common dependency.
Cheers,
Quoted 70 lines
The following tests were performed:
* build from scratch with [1]-[7] / run test
* build from scratch / apply patches / build -> check buildhistory diff
* build from scratch w/o patches / build from scratch with patches -> check buildhistory diffAdditional patches were prepared for other recipes inheriting systemd. These are not yet send because they move systemd support from ${PN} to ${PN}-systemd which currently needs modifications on tasks/images. I'd be happy if a common accepted solution would be suggested/implemented (image-feature?).
This patch series can be pulled from:
git://gitorious.org/schnitzeltony-oe-meta/meta-openembedded-systemd.gitbranch systemd2Andreas Müller (22):
systemd-systemctl-native: add multiple services support systemd.bbclass: enhance checks forSYSTEMD_PACKAGESand
SYSTEMD_SERVICE
systemd.bbclass: cosmetics
systemd.bbclass: automatically create packages set in
SYSTEMD_PACKAGES
automatically install all *.service and *.socket supplied in recipe's
SRC_URI
systemd.bbclass: automatically extend FILES_* for systemd packages systemd.bbclass: automatically extend RDEPENDS for *-systemd packages
connman: remove unneeded systemd code
dropbear: remove unneeded systemd code
openssh: remove unneeded systemd code
elsa: remove unneeded systemd code
cronie: remove unneeded systemd code
xserver-nodm-init: remove unneeded systemd code
atftp: remove unneeded systemd code
udisks: remove unneeded systemd code
rsyslog: remove unneeded systemd code
syslog-ng: remove unneeded systemd code
dhcp: remove unneeded systemd code
gpsd: remove unneeded systemd code
busybox: remove unneeded systemd code
dhcp: add native systemd support for dhcp-relay
gpsd: use ${PN}.service instead ${PN}.socket inSYSTEMD_SERVICEto
enable servicemeta-efl/recipes-efl/efl/elsa_svn.bb | 11 +-- meta-oe/classes/systemd.bbclass | 165 ++++++++++++++++++-- .../connman/connman_0.78.bbappend | 7 +- .../recipes-connectivity/dhcp/dhcp_4.2.0.bbappend | 18 +-- .../dhcp/files/dhcrelay.service | 10 ++ .../openssh/openssh_5.9p1.bbappend | 14 +-- .../recipes-core/busybox/busybox_1.19.3.bbappend | 8 +- .../dropbear/dropbear_2011.54.bbappend | 11 +-- .../systemd/systemd-systemctl-native/systemctl | 75 +++++---- meta-oe/recipes-extended/atftp/atftp_0.7.bb | 10 +- .../recipes-extended/cronie/cronie_1.4.8.bbappend | 12 +-- meta-oe/recipes-extended/rsyslog/rsyslog.inc | 7 +- .../xserver-nodm-init/xserver-nodm-init_2.0.bb | 10 +- meta-oe/recipes-navigation/gpsd/gpsd_2.96.bb | 14 +-- meta-oe/recipes-support/syslog-ng/syslog-ng.inc | 7 +- meta-oe/recipes-support/udisks/udisks_1.0.4.bb | 9 +- 16 files changed, 222 insertions(+), 166 deletions(-) create mode 100644 meta-oe/recipes-connectivity/dhcp/files/dhcrelay.serviceSignature · 7 lines
1.7.4.4 _______________________________________________ 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]
Quoted 8 lines · Martin Jansa
And I'm not sure if this change is intentional:
as xserver-nodm-init-systemd doesn't really need xserver-nodm-init, but probably won't harm if xserver-nodm-init is used only to pull xinit+xserver-common dependency.
This is indeed wrong IMO.
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
Quoted 15 lines · Martin Jansa
Quoted 11 lines · Andreas Müller
V1 -> V2:
[2] do not check configuration variables for cross and nativesdk
[3] renamesystemd_packagetosystemd_generate_package_scripts
[6] parse unit files to determine the files to pack
[7] create warning if *-systemd package already rdepends it's base package
added in V2:
[8]-[20] remove obsolet systemd code from recipes (these were used as test cases)
[21] dhcp-(relay) test case for multiple systemd packages
[22] modified to start serviceWhole series looks good to me sofar.
Quoted 7 lines
I'm not sure what's meant by this warning:
WARNING:
/OE/shr-core/meta-openembedded/meta-oe/recipes-connectivity/gateone/gateone_git.bb:
it is recommended to setSYSTEMD_PACKAGESas <existing-package>-systemd WARNING:
/OE/shr-core/meta-openembedded/meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb:
it is recommended to setSYSTEMD_PACKAGESas <existing-package>-systemd
Suggestions for more descriptive message welcome
Quoted 5 lines
I guess we should
(quoted diff) +1
-1-SYSTEMD_PACKAGES = "${PN}" +SYSTEMD_PACKAGES = "${PN}-systemd"with this patchset too and add ${PN}-systemd to task which pulls gateone/cloud9.
I left these recipes out ( mentioned in 00/xx (*) ) to avoid changing many tasks/images and would like to wait until we have a decision/solution for *-FEATURES.
Quoted 7 lines
And I'm not sure if this change is intentional:
http://git.shr-project.org/git/?p=buildhistory.git;a=commitdiff;h=3d27d7267406bd0fb2ea2a48b108dbb8bc7c128f#patch18as xserver-nodm-init-systemd doesn't really need xserver-nodm-init, but probably won't harm if xserver-nodm-init is used only to pull xinit+xserver-common dependency.
Will take a look into this.
Quoted 14 lines
Cheers,
Quoted 11 lines
The following tests were performed:
* build from scratch with [1]-[7] / run test
* build from scratch / apply patches / build -> check buildhistory diff
* build from scratch w/o patches / build from scratch with patches -> check buildhistory diffAdditional patches were prepared for other recipes inheriting systemd. These are not yet send because they move systemd support from ${PN} to ${PN}-systemd which currently needs modifications on tasks/images. I'd be happy if a common accepted solution would be suggested/implemented (image-feature?).
(*)
Quoted 5 lines
Quoted 5 lines
This patch series can be pulled from:
git://gitorious.org/schnitzeltony-oe-meta/meta-openembedded-systemd.gitbranch systemd2Andreas Müller (22):
Andreas
Quoted 28 lines · Martin Jansa
Quoted 11 lines · Andreas Müller
V1 -> V2:
[2] do not check configuration variables for cross and nativesdk
[3] renamesystemd_packagetosystemd_generate_package_scripts
[6] parse unit files to determine the files to pack
[7] create warning if *-systemd package already rdepends it's base package
added in V2:
[8]-[20] remove obsolet systemd code from recipes (these were used as test cases)
[21] dhcp-(relay) test case for multiple systemd packages
[22] modified to start serviceWhole series looks good to me sofar.
I'm not sure what's meant by this warning:
WARNING:
/OE/shr-core/meta-openembedded/meta-oe/recipes-connectivity/gateone/gateone_git.bb:
it is recommended to setSYSTEMD_PACKAGESas <existing-package>-systemd WARNING:
/OE/shr-core/meta-openembedded/meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb:
it is recommended to setSYSTEMD_PACKAGESas <existing-package>-systemdI guess we should
(quoted diff) +1
-1-SYSTEMD_PACKAGES = "${PN}" +SYSTEMD_PACKAGES = "${PN}-systemd"with this patchset too and add ${PN}-systemd to task which pulls gateone/cloud9.
Quoted 7 lines
And I'm not sure if this change is intentional:
http://git.shr-project.org/git/?p=buildhistory.git;a=commitdiff;h=3d27d7267406bd0fb2ea2a48b108dbb8bc7c128f#patch18as xserver-nodm-init-systemd doesn't really need xserver-nodm-init, but probably won't harm if xserver-nodm-init is used only to pull xinit+xserver-common dependency.
The only 'clean' way out here I see is an additional variable overriding automatic rdepending. How about
SYSTEMD_RDEPENDS: If this variable is set with a list of packages, its contents are used for redepending (systemd is still added). It should be possible to set packages outside of recipe and of course the contents should be checked during parse. What do you think?
Andreas
Quoted 39 lines · Andreas Müller
Quoted 28 lines · Martin Jansa
Quoted 11 lines · Andreas Müller
V1 -> V2:
[2] do not check configuration variables for cross and nativesdk
[3] renamesystemd_packagetosystemd_generate_package_scripts
[6] parse unit files to determine the files to pack
[7] create warning if *-systemd package already rdepends it's base package
added in V2:
[8]-[20] remove obsolet systemd code from recipes (these were used as test cases)
[21] dhcp-(relay) test case for multiple systemd packages
[22] modified to start serviceWhole series looks good to me sofar.
I'm not sure what's meant by this warning:
WARNING:
/OE/shr-core/meta-openembedded/meta-oe/recipes-connectivity/gateone/gateone_git.bb:
it is recommended to setSYSTEMD_PACKAGESas <existing-package>-systemd WARNING:
/OE/shr-core/meta-openembedded/meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb:
it is recommended to setSYSTEMD_PACKAGESas <existing-package>-systemdI guess we should
(quoted diff) +1
-1-SYSTEMD_PACKAGES = "${PN}" +SYSTEMD_PACKAGES = "${PN}-systemd"with this patchset too and add ${PN}-systemd to task which pulls gateone/cloud9.
Quoted 7 lines
And I'm not sure if this change is intentional:
http://git.shr-project.org/git/?p=buildhistory.git;a=commitdiff;h=3d27d7267406bd0fb2ea2a48b108dbb8bc7c128f#patch18as xserver-nodm-init-systemd doesn't really need xserver-nodm-init, but probably won't harm if xserver-nodm-init is used only to pull xinit+xserver-common dependency.
The only 'clean' way out here I see is an additional variable overriding automatic rdepending. How about
Quoted 5 lines
SYSTEMD_RDEPENDS: If this variable is set with a list of packages, its contents are used for redepending (systemd is still added). It should be possible to set packages outside of recipe and of course the contents should be checked during parse. What do you think?
How about this: If systemd.bbclass detects, that RDEPENDS_${systemd-base-package} is not empty, it will only append 'systemd'. So the recipe can override the automatism easily and there is no need for another variable.
Andreas
Quoted 41 lines · Andreas Müller
Quoted 39 lines · Andreas Müller
Quoted 28 lines · Martin Jansa
Quoted 11 lines · Andreas Müller
V1 -> V2:
[2] do not check configuration variables for cross and nativesdk
[3] renamesystemd_packagetosystemd_generate_package_scripts
[6] parse unit files to determine the files to pack
[7] create warning if *-systemd package already rdepends it's base package
added in V2:
[8]-[20] remove obsolet systemd code from recipes (these were used as test cases)
[21] dhcp-(relay) test case for multiple systemd packages
[22] modified to start serviceWhole series looks good to me sofar.
I'm not sure what's meant by this warning:
WARNING:
/OE/shr-core/meta-openembedded/meta-oe/recipes-connectivity/gateone/gateone_git.bb:
it is recommended to setSYSTEMD_PACKAGESas <existing-package>-systemd WARNING:
/OE/shr-core/meta-openembedded/meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb:
it is recommended to setSYSTEMD_PACKAGESas <existing-package>-systemdI guess we should
(quoted diff) +1
-1-SYSTEMD_PACKAGES = "${PN}" +SYSTEMD_PACKAGES = "${PN}-systemd"with this patchset too and add ${PN}-systemd to task which pulls gateone/cloud9.
Quoted 7 lines
And I'm not sure if this change is intentional:
http://git.shr-project.org/git/?p=buildhistory.git;a=commitdiff;h=3d27d7267406bd0fb2ea2a48b108dbb8bc7c128f#patch18as xserver-nodm-init-systemd doesn't really need xserver-nodm-init, but probably won't harm if xserver-nodm-init is used only to pull xinit+xserver-common dependency.
The only 'clean' way out here I see is an additional variable overriding automatic rdepending. How about
Quoted 7 lines
Quoted 5 lines
SYSTEMD_RDEPENDS: If this variable is set with a list of packages, its contents are used for redepending (systemd is still added). It should be possible to set packages outside of recipe and of course the contents should be checked during parse. What do you think?How about this: If systemd.bbclass detects, that RDEPENDS_${systemd-base-package} is not empty, it will only append
sorry I meant RDEPENDS_${SYSTEMD_PACKAGES[]}
Quoted 4 lines
'systemd'. So the recipe can override the automatism easily and there is no need for another variable.
Andreas
Quoted 43 lines · Andreas Müller
Quoted 41 lines · Andreas Müller
Quoted 39 lines · Andreas Müller
Quoted 28 lines · Martin Jansa
Quoted 11 lines · Andreas Müller
V1 -> V2:
[2] do not check configuration variables for cross and nativesdk
[3] renamesystemd_packagetosystemd_generate_package_scripts
[6] parse unit files to determine the files to pack
[7] create warning if *-systemd package already rdepends it's base package
added in V2:
[8]-[20] remove obsolet systemd code from recipes (these were used as test cases)
[21] dhcp-(relay) test case for multiple systemd packages
[22] modified to start serviceWhole series looks good to me sofar.
I'm not sure what's meant by this warning:
WARNING:
/OE/shr-core/meta-openembedded/meta-oe/recipes-connectivity/gateone/gateone_git.bb:
it is recommended to setSYSTEMD_PACKAGESas <existing-package>-systemd WARNING:
/OE/shr-core/meta-openembedded/meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb:
it is recommended to setSYSTEMD_PACKAGESas <existing-package>-systemdI guess we should
(quoted diff) +1
-1-SYSTEMD_PACKAGES = "${PN}" +SYSTEMD_PACKAGES = "${PN}-systemd"with this patchset too and add ${PN}-systemd to task which pulls gateone/cloud9.
Quoted 7 lines
And I'm not sure if this change is intentional:
http://git.shr-project.org/git/?p=buildhistory.git;a=commitdiff;h=3d27d7267406bd0fb2ea2a48b108dbb8bc7c128f#patch18as xserver-nodm-init-systemd doesn't really need xserver-nodm-init, but probably won't harm if xserver-nodm-init is used only to pull xinit+xserver-common dependency.
The only 'clean' way out here I see is an additional variable overriding automatic rdepending. How about
Quoted 10 lines
Quoted 7 lines
Quoted 5 lines
SYSTEMD_RDEPENDS: If this variable is set with a list of packages, its contents are used for redepending (systemd is still added). It should be possible to set packages outside of recipe and of course the contents should be checked during parse. What do you think?How about this: If systemd.bbclass detects, that RDEPENDS_${systemd-base-package} is not empty, it will only append
sorry I meant RDEPENDS_${SYSTEMD_PACKAGES[]}
Quoted 2 lines
'systemd'. So the recipe can override the automatism easily and there is no need for another variable.
If it works even when RDEPENDS_${SYSTEMD_PACKAGES[]} is in recipe after inherit systemd then also OK.
Cheers,
Quoted 7 lines
Quoted 2 lines
Andreas
_______________________________________________
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]
Quoted 49 lines · Martin Jansa
Quoted 48 lines · Andreas Müller
Quoted 46 lines · Andreas Müller
Quoted 44 lines · Andreas Müller
Quoted 28 lines · Martin Jansa
Quoted 11 lines · Andreas Müller
V1 -> V2:
[2] do not check configuration variables for cross and nativesdk
[3] renamesystemd_packagetosystemd_generate_package_scripts
[6] parse unit files to determine the files to pack
[7] create warning if *-systemd package already rdepends it's base package
added in V2:
[8]-[20] remove obsolet systemd code from recipes (these were used as test cases)
[21] dhcp-(relay) test case for multiple systemd packages
[22] modified to start serviceWhole series looks good to me sofar.
I'm not sure what's meant by this warning:
WARNING:
/OE/shr-core/meta-openembedded/meta-oe/recipes-connectivity/gateone/gateone_git.bb:
it is recommended to setSYSTEMD_PACKAGESas <existing-package>-systemd WARNING:
/OE/shr-core/meta-openembedded/meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb:
it is recommended to setSYSTEMD_PACKAGESas <existing-package>-systemdI guess we should
(quoted diff) +1
-1-SYSTEMD_PACKAGES = "${PN}" +SYSTEMD_PACKAGES = "${PN}-systemd"with this patchset too and add ${PN}-systemd to task which pulls gateone/cloud9.
Quoted 7 lines
And I'm not sure if this change is intentional:
http://git.shr-project.org/git/?p=buildhistory.git;a=commitdiff;h=3d27d7267406bd0fb2ea2a48b108dbb8bc7c128f#patch18as xserver-nodm-init-systemd doesn't really need xserver-nodm-init, but probably won't harm if xserver-nodm-init is used only to pull xinit+xserver-common dependency.
The only 'clean' way out here I see is an additional variable overriding automatic rdepending. How about
SYSTEMD_RDEPENDS: If this variable is set with a list of packages, its contents are used for redepending (systemd is still added). It should be possible to set packages outside of recipe and of course the contents should be checked during parse. What do you think?
Quoted 9 lines
Quoted 5 lines
Quoted 2 lines
How about this: If systemd.bbclass detects, that RDEPENDS_${systemd-base-package} is not empty, it will only append
sorry I meant RDEPENDS_${SYSTEMD_PACKAGES[]}
Quoted 2 lines
'systemd'. So the recipe can override the automatism easily and there is no need for another variable.
If it works even when RDEPENDS_${SYSTEMD_PACKAGES[]} is in recipe after inherit systemd then also OK.
Should be no problem since automatic rdepending is done in populate_packages_prepend - but I will test different positions.
Andreas
Quoted 39 lines · Andreas Müller
Quoted 28 lines · Martin Jansa
Quoted 11 lines · Andreas Müller
V1 -> V2:
[2] do not check configuration variables for cross and nativesdk
[3] renamesystemd_packagetosystemd_generate_package_scripts
[6] parse unit files to determine the files to pack
[7] create warning if *-systemd package already rdepends it's base package
added in V2:
[8]-[20] remove obsolet systemd code from recipes (these were used as test cases)
[21] dhcp-(relay) test case for multiple systemd packages
[22] modified to start serviceWhole series looks good to me sofar.
I'm not sure what's meant by this warning:
WARNING:
/OE/shr-core/meta-openembedded/meta-oe/recipes-connectivity/gateone/gateone_git.bb:
it is recommended to setSYSTEMD_PACKAGESas <existing-package>-systemd WARNING:
/OE/shr-core/meta-openembedded/meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb:
it is recommended to setSYSTEMD_PACKAGESas <existing-package>-systemdI guess we should
(quoted diff) +1
-1-SYSTEMD_PACKAGES = "${PN}" +SYSTEMD_PACKAGES = "${PN}-systemd"with this patchset too and add ${PN}-systemd to task which pulls gateone/cloud9.
Quoted 7 lines
And I'm not sure if this change is intentional:
http://git.shr-project.org/git/?p=buildhistory.git;a=commitdiff;h=3d27d7267406bd0fb2ea2a48b108dbb8bc7c128f#patch18as xserver-nodm-init-systemd doesn't really need xserver-nodm-init, but probably won't harm if xserver-nodm-init is used only to pull xinit+xserver-common dependency.
The only 'clean' way out here I see is an additional variable overriding automatic rdepending. How about
Quoted 4 lines
SYSTEMD_RDEPENDS: If this variable is set with a list of packages, its contents are used for redepending (systemd is still added). It should be possible to set packages outside of recipe and of course the contents should be checked during parse. What do you think?
Looks good or evenSYSTEMD_PACKAGES_RDEPENDS
to be more clear where it will be applied.
Cheers,
Quoted 7 lines
Andreas
_______________________________________________
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]
Ышщыпжищащщщввцшшйкгкушукщщзу
17.02.2012 22:54 пользователь "Andreas Müller" <[email protected]> написал:
Quoted 56 lines
Quoted 13 lines · Martin Jansa
Quoted 11 lines · Andreas Müller
V1 -> V2:
[2] do not check configuration variables for cross and nativesdk [3] rename systemd_package to systemd_generate_package_scripts [6] parse unit files to determine the files to pack [7] create warning if *-systemd package already rdependsit's base package
added in V2:
[8]-[20] remove obsolet systemd code from recipes (these were used as
test cases)
[21] dhcp-(relay) test case for multiple systemd packages
[22] modified to start serviceQuoted 5 lines
Whole series looks good to me sofar.
I'm not sure what's meant by this warning:
WARNING:
/OE/shr-core/meta-openembedded/meta-oe/recipes-connectivity/gateone/gateone_git.bb:
Quoted 3 lines
it is recommended to set
SYSTEMD_PACKAGESas <existing-package>-systemd WARNING:
/OE/shr-core/meta-openembedded/meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb:
Quoted 6 lines
it is recommended to set
SYSTEMD_PACKAGESas <existing-package>-systemdI guess we should
(quoted diff) +1
-1-SYSTEMD_PACKAGES = "${PN}" +SYSTEMD_PACKAGES = "${PN}-systemd"with this patchset too and add ${PN}-systemd to task which pulls
gateone/cloud9.
Quoted 3 lines
And I'm not sure if this change is intentional:
Quoted 5 lines
as xserver-nodm-init-systemd doesn't really need xserver-nodm-init, but probably won't harm if xserver-nodm-init is used only to pull xinit+xserver-common dependency.
The only 'clean' way out here I see is an additional variable overriding automatic rdepending. How about
SYSTEMD_RDEPENDS: If this variable is set with a list of packages, its contents are used for redepending (systemd is still added). It should be possible to set packages outside of recipe and of course the contents should be checked during parse. What do you think?Andreas
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Quoted 18 lines · Andreas Müller
V1 -> V2:
[2] do not check configuration variables for cross and nativesdk [3] rename systemd_package to systemd_generate_package_scripts [6] parse unit files to determine the files to pack [7] create warning if *-systemd package already rdependsit's base package
added in V2:
[8]-[20] remove obsolet systemd code from recipes (these were used as
test cases)
[21] dhcp-(relay) test case for multiple systemd packages
[22] modified to start serviceThe following tests were performed:
* build from scratch with [1]-[7] / run test
* build from scratch / apply patches / build -> check buildhistory diff
* build from scratch w/o patches / build from scratch with patches -> check buildhistory diff
Quoted 4 lines
Additional patches were prepared for other recipes inheriting systemd. These are not yet send because they move systemd support from ${PN} to ${PN}-systemd which currently needs modifications on tasks/images. I'd be happy if a common accepted solution would be suggested/implemented (image-feature?).
Today I've noticed one more issue (not sure if it's caused by this patchset or not).
Some images are failing for me with:
For package xserver-nodm-init-systemd SYSTEMD_SERVICE-entry xserver-nodm.service does not exist from systemd.bbclass:populate_packages_prepend
I guess it's because sstate package:
sstate-xserver-nodm-init-all-oe-linux-2.0-r13-all-2-2ac030a94ddbd202f54b99c2e32c6312_package.tgz
has only
package/lib/systemd/system/xserver-nodm.service
but systemd.bbclass:populate_packages_prepend is looking only in ${D} (image directory).
Cheers,
Quoted 59 lines
This patch series can be pulled from:
git://gitorious.org/schnitzeltony-oe-meta/meta-openembedded-systemd.gitbranch systemd2Andreas Müller (22):
systemd-systemctl-native: add multiple services support systemd.bbclass: enhance checks forSYSTEMD_PACKAGESand
SYSTEMD_SERVICE
systemd.bbclass: cosmetics
systemd.bbclass: automatically create packages set in
SYSTEMD_PACKAGES
automatically install all *.service and *.socket supplied in recipe's
SRC_URI
systemd.bbclass: automatically extend FILES_* for systemd packages systemd.bbclass: automatically extend RDEPENDS for *-systemd packages
connman: remove unneeded systemd code
dropbear: remove unneeded systemd code
openssh: remove unneeded systemd code
elsa: remove unneeded systemd code
cronie: remove unneeded systemd code
xserver-nodm-init: remove unneeded systemd code
atftp: remove unneeded systemd code
udisks: remove unneeded systemd code
rsyslog: remove unneeded systemd code
syslog-ng: remove unneeded systemd code
dhcp: remove unneeded systemd code
gpsd: remove unneeded systemd code
busybox: remove unneeded systemd code
dhcp: add native systemd support for dhcp-relay
gpsd: use ${PN}.service instead ${PN}.socket inSYSTEMD_SERVICEto
enable servicemeta-efl/recipes-efl/efl/elsa_svn.bb | 11 +-- meta-oe/classes/systemd.bbclass | 165 ++++++++++++++++++-- .../connman/connman_0.78.bbappend | 7 +- .../recipes-connectivity/dhcp/dhcp_4.2.0.bbappend | 18 +-- .../dhcp/files/dhcrelay.service | 10 ++ .../openssh/openssh_5.9p1.bbappend | 14 +-- .../recipes-core/busybox/busybox_1.19.3.bbappend | 8 +- .../dropbear/dropbear_2011.54.bbappend | 11 +-- .../systemd/systemd-systemctl-native/systemctl | 75 +++++---- meta-oe/recipes-extended/atftp/atftp_0.7.bb | 10 +- .../recipes-extended/cronie/cronie_1.4.8.bbappend | 12 +-- meta-oe/recipes-extended/rsyslog/rsyslog.inc | 7 +- .../xserver-nodm-init/xserver-nodm-init_2.0.bb | 10 +- meta-oe/recipes-navigation/gpsd/gpsd_2.96.bb | 14 +-- meta-oe/recipes-support/syslog-ng/syslog-ng.inc | 7 +- meta-oe/recipes-support/udisks/udisks_1.0.4.bb | 9 +- 16 files changed, 222 insertions(+), 166 deletions(-) create mode 100644 meta-oe/recipes-connectivity/dhcp/files/dhcrelay.serviceSignature · 7 lines
1.7.4.4 _______________________________________________ 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]
Quoted 19 lines · Martin Jansa
Quoted 18 lines · Andreas Müller
V1 -> V2:
[2] do not check configuration variables for cross and nativesdk
[3] renamesystemd_packagetosystemd_generate_package_scripts
[6] parse unit files to determine the files to pack
[7] create warning if *-systemd package already rdepends it's base package
added in V2:
[8]-[20] remove obsolet systemd code from recipes (these were used as test cases)
[21] dhcp-(relay) test case for multiple systemd packages
[22] modified to start serviceThe following tests were performed:
* build from scratch with [1]-[7] / run test
* build from scratch / apply patches / build -> check buildhistory diff
* build from scratch w/o patches / build from scratch with patches -> check buildhistory diff
Quoted 7 lines
Quoted 4 lines
Additional patches were prepared for other recipes inheriting systemd. These are not yet send because they move systemd support from ${PN} to ${PN}-systemd which currently needs modifications on tasks/images. I'd be happy if a common accepted solution would be suggested/implemented (image-feature?).
Today I've noticed one more issue (not sure if it's caused by this patchset or not).
I think it is
Quoted 5 lines
Some images are failing for me with:
For package xserver-nodm-init-systemd SYSTEMD_SERVICE-entry xserver-nodm.service does not exist from systemd.bbclass:populate_packages_prepend
Quoted 9 lines
I guess it's because sstate package:
sstate-xserver-nodm-init-all-oe-linux-2.0-r13-all-2-2ac030a94ddbd202f54b99c2e32c6312_package.tgzhas only
package/lib/systemd/system/xserver-nodm.servicebut systemd.bbclass:populate_packages_prepend is looking only in ${D} (image directory).
I assume you are working with temp files deleted (don't know the exact config option now). To fix: Is there a variable pointing to package dir?
Andreas
Quoted 36 lines · Andreas Müller
Quoted 19 lines · Martin Jansa
Quoted 18 lines · Andreas Müller
V1 -> V2:
[2] do not check configuration variables for cross and nativesdk
[3] renamesystemd_packagetosystemd_generate_package_scripts
[6] parse unit files to determine the files to pack
[7] create warning if *-systemd package already rdepends it's base package
added in V2:
[8]-[20] remove obsolet systemd code from recipes (these were used as test cases)
[21] dhcp-(relay) test case for multiple systemd packages
[22] modified to start serviceThe following tests were performed:
* build from scratch with [1]-[7] / run test
* build from scratch / apply patches / build -> check buildhistory diff
* build from scratch w/o patches / build from scratch with patches -> check buildhistory diffQuoted 7 lines
Quoted 4 lines
Additional patches were prepared for other recipes inheriting systemd. These are not yet send because they move systemd support from ${PN} to ${PN}-systemd which currently needs modifications on tasks/images. I'd be happy if a common accepted solution would be suggested/implemented (image-feature?).
Today I've noticed one more issue (not sure if it's caused by this patchset or not).
I think it is
Quoted 8 lines
Some images are failing for me with:
For package xserver-nodm-init-systemd SYSTEMD_SERVICE-entry xserver-nodm.service does not exist from systemd.bbclass:populate_packages_prependI guess it's because sstate package:
sstate-xserver-nodm-init-all-oe-linux-2.0-r13-all-2-2ac030a94ddbd202f54b99c2e32c6312_package.tgz
Quoted 7 lines
Quoted 6 lines
has only
package/lib/systemd/system/xserver-nodm.servicebut systemd.bbclass:populate_packages_prepend is looking only in ${D} (image directory).
I assume you are working with temp files deleted (don't know the exact
Yes temp files were deleted (and inherit rm_work).
Quoted 2 lines
config option now). To fix: Is there a variable pointing to package dir?
classes/package.bbclass:PKGD = "${WORKDIR}/package"
should help
Quoted 7 lines
Andreas
_______________________________________________
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]
Quoted 45 lines · Martin Jansa
Quoted 36 lines · Andreas Müller
Quoted 19 lines · Martin Jansa
Quoted 18 lines · Andreas Müller
V1 -> V2:
[2] do not check configuration variables for cross and nativesdk
[3] renamesystemd_packagetosystemd_generate_package_scripts
[6] parse unit files to determine the files to pack
[7] create warning if *-systemd package already rdepends it's base package
added in V2:
[8]-[20] remove obsolet systemd code from recipes (these were used as test cases)
[21] dhcp-(relay) test case for multiple systemd packages
[22] modified to start serviceThe following tests were performed:
* build from scratch with [1]-[7] / run test
* build from scratch / apply patches / build -> check buildhistory diff
* build from scratch w/o patches / build from scratch with patches -> check buildhistory diffQuoted 7 lines
Quoted 4 lines
Additional patches were prepared for other recipes inheriting systemd. These are not yet send because they move systemd support from ${PN} to ${PN}-systemd which currently needs modifications on tasks/images. I'd be happy if a common accepted solution would be suggested/implemented (image-feature?).
Today I've noticed one more issue (not sure if it's caused by this patchset or not).
I think it is
Quoted 8 lines
Some images are failing for me with:
For package xserver-nodm-init-systemd SYSTEMD_SERVICE-entry xserver-nodm.service does not exist from systemd.bbclass:populate_packages_prependI guess it's because sstate package:
sstate-xserver-nodm-init-all-oe-linux-2.0-r13-all-2-2ac030a94ddbd202f54b99c2e32c6312_package.tgzQuoted 7 lines
Quoted 6 lines
has only
package/lib/systemd/system/xserver-nodm.servicebut systemd.bbclass:populate_packages_prepend is looking only in ${D} (image directory).
I assume you are working with temp files deleted (don't know the exact
Quoted 9 lines
Yes temp files were deleted (and inherit
rm_work).Quoted 2 lines
config option now). To fix: Is there a variable pointing to package dir?
classes/package.bbclass:PKGD = "${WORKDIR}/package"
should help
I am working on this and checked rm_work.bbclass. Seems that complete package contents are retained / respectively are recovered by sstate. Hence I have another question:
Will it cause problems to run the whole code in populate_packages_prepend only (once) in case ${D} exists? Any fallout to expect by this simple solution?
Please let me know if so because this would save me from long build tests.
Andreas
Quoted 55 lines · Andreas Müller
Quoted 45 lines · Martin Jansa
Quoted 36 lines · Andreas Müller
Quoted 19 lines · Martin Jansa
Quoted 18 lines · Andreas Müller
V1 -> V2:
[2] do not check configuration variables for cross and nativesdk
[3] renamesystemd_packagetosystemd_generate_package_scripts
[6] parse unit files to determine the files to pack
[7] create warning if *-systemd package already rdepends it's base package
added in V2:
[8]-[20] remove obsolet systemd code from recipes (these were used as test cases)
[21] dhcp-(relay) test case for multiple systemd packages
[22] modified to start serviceThe following tests were performed:
* build from scratch with [1]-[7] / run test
* build from scratch / apply patches / build -> check buildhistory diff
* build from scratch w/o patches / build from scratch with patches -> check buildhistory diffQuoted 7 lines
Quoted 4 lines
Additional patches were prepared for other recipes inheriting systemd. These are not yet send because they move systemd support from ${PN} to ${PN}-systemd which currently needs modifications on tasks/images. I'd be happy if a common accepted solution would be suggested/implemented (image-feature?).
Today I've noticed one more issue (not sure if it's caused by this patchset or not).
I think it is
Quoted 8 lines
Some images are failing for me with:
For package xserver-nodm-init-systemd SYSTEMD_SERVICE-entry xserver-nodm.service does not exist from systemd.bbclass:populate_packages_prependI guess it's because sstate package:
sstate-xserver-nodm-init-all-oe-linux-2.0-r13-all-2-2ac030a94ddbd202f54b99c2e32c6312_package.tgzQuoted 7 lines
Quoted 6 lines
has only
package/lib/systemd/system/xserver-nodm.servicebut systemd.bbclass:populate_packages_prepend is looking only in ${D} (image directory).
I assume you are working with temp files deleted (don't know the exact
Quoted 9 lines
Yes temp files were deleted (and inherit
rm_work).Quoted 2 lines
config option now). To fix: Is there a variable pointing to package dir?
classes/package.bbclass:PKGD = "${WORKDIR}/package"
should help
Quoted 7 lines
I am working on this and checked rm_work.bbclass. Seems that complete package contents are retained / respectively are recovered by sstate. Hence I have another question:
Will it cause problems to run the whole code in
populate_packages_prependonly (once) in case ${D} exists? Any fallout to expect by this simple solution?
If I understand you right, then looks good to me.
Quoted 1 line
Please let me know if so because this would save me from long build tests.
For me this whole series can go in as it is now and my comments can be implemented as followup patches (which will be easier to review then whole patchset again).
Maybe only add that variable for /lib/systemd/system so I can push my "systemd rework" patchset for meta-smartphone with this variable already.
Cheers,
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 68 lines · Martin Jansa
Quoted 55 lines · Andreas Müller
Quoted 45 lines · Martin Jansa
Quoted 36 lines · Andreas Müller
Quoted 19 lines · Martin Jansa
Quoted 18 lines · Andreas Müller
V1 -> V2:
[2] do not check configuration variables for cross and nativesdk
[3] renamesystemd_packagetosystemd_generate_package_scripts
[6] parse unit files to determine the files to pack
[7] create warning if *-systemd package already rdepends it's base package
added in V2:
[8]-[20] remove obsolet systemd code from recipes (these were used as test cases)
[21] dhcp-(relay) test case for multiple systemd packages
[22] modified to start serviceThe following tests were performed:
* build from scratch with [1]-[7] / run test
* build from scratch / apply patches / build -> check buildhistory diff
* build from scratch w/o patches / build from scratch with patches -> check buildhistory diffQuoted 7 lines
Quoted 4 lines
Additional patches were prepared for other recipes inheriting systemd. These are not yet send because they move systemd support from ${PN} to ${PN}-systemd which currently needs modifications on tasks/images. I'd be happy if a common accepted solution would be suggested/implemented (image-feature?).
Today I've noticed one more issue (not sure if it's caused by this patchset or not).
I think it is
Quoted 8 lines
Some images are failing for me with:
For package xserver-nodm-init-systemd SYSTEMD_SERVICE-entry xserver-nodm.service does not exist from systemd.bbclass:populate_packages_prependI guess it's because sstate package:
sstate-xserver-nodm-init-all-oe-linux-2.0-r13-all-2-2ac030a94ddbd202f54b99c2e32c6312_package.tgzQuoted 7 lines
Quoted 6 lines
has only
package/lib/systemd/system/xserver-nodm.servicebut systemd.bbclass:populate_packages_prepend is looking only in ${D} (image directory).
I assume you are working with temp files deleted (don't know the exact
Quoted 9 lines
Yes temp files were deleted (and inherit
rm_work).Quoted 2 lines
config option now). To fix: Is there a variable pointing to package dir?
classes/package.bbclass:PKGD = "${WORKDIR}/package"
should help
Quoted 7 lines
I am working on this and checked rm_work.bbclass. Seems that complete package contents are retained / respectively are recovered by sstate. Hence I have another question:
Will it cause problems to run the whole code in
populate_packages_prependonly (once) in case ${D} exists? Any fallout to expect by this simple solution?If I understand you right, then looks good to me.
Quoted 1 line
Please let me know if so because this would save me from long build tests.
Quoted 8 lines
For me this whole series can go in as it is now and my comments can be implemented as followup patches (which will be easier to review then whole patchset again).
Maybe only add that variable for
/lib/systemd/systemso I can push my "systemd rework" patchset for meta-smartphone with this variable already.
I am afraid I have embedded all comments already - will send a new version after test...
* the modifications will be documented
* commits untouched will remain Otavio's ack
so efforts for another review are few.
Cheers
Andreas
Quoted 4 lines · Martin Jansa
Maybe only add that variable for
/lib/systemd/systemso I can push my "systemd rework" patchset for meta-smartphone with this variable already.
Can you explain why you'd like to move those files?
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
Quoted 8 lines · Otavio Salvador
Quoted 4 lines · Martin Jansa
Maybe only add that variable for
/lib/systemd/systemso I can push my "systemd rework" patchset for meta-smartphone with this variable already.Can you explain why you'd like to move those files?
I don't want to move it.. just wanted to use systemd_unitdir variable as discussed here
http://www.mail-archive.com/[email protected]/msg23921.html
when I'm updating all recipes in meta-smartphone which are using systemd, see:
http://git.shr-project.org/git/?p=meta-smartphone.git;a=shortlog;h=refs/heads/jansa/test
Cheers,
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 31 lines · Martin Jansa
Quoted 18 lines · Andreas Müller
V1 -> V2:
[2] do not check configuration variables for cross and nativesdk
[3] renamesystemd_packagetosystemd_generate_package_scripts
[6] parse unit files to determine the files to pack
[7] create warning if *-systemd package already rdepends it's base package
added in V2:
[8]-[20] remove obsolet systemd code from recipes (these were used as test cases)
[21] dhcp-(relay) test case for multiple systemd packages
[22] modified to start serviceThe following tests were performed:
* build from scratch with [1]-[7] / run test
* build from scratch / apply patches / build -> check buildhistory diff
* build from scratch w/o patches / build from scratch with patches -> check buildhistory diffQuoted 4 lines
Additional patches were prepared for other recipes inheriting systemd. These are not yet send because they move systemd support from ${PN} to ${PN}-systemd which currently needs modifications on tasks/images. I'd be happy if a common accepted solution would be suggested/implemented (image-feature?).
Today I've noticed one more issue (not sure if it's caused by this patchset or not).
Some images are failing for me with:
For package xserver-nodm-init-systemd SYSTEMD_SERVICE-entry xserver-nodm.service does not exist from systemd.bbclass:populate_packages_prepend
Quoted 9 lines
I guess it's because sstate package:
sstate-xserver-nodm-init-all-oe-linux-2.0-r13-all-2-2ac030a94ddbd202f54b99c2e32c6312_package.tgzhas only
package/lib/systemd/system/xserver-nodm.servicebut systemd.bbclass:populate_packages_prepend is looking only in ${D} (image directory).
I prepared V3 and up to now all tests look good. Regarding this issue:
What is a test case to reproduce if the modification are OK?
Andreas
Quoted 35 lines · Andreas Müller
Quoted 34 lines · Martin Jansa
Quoted 18 lines · Andreas Müller
V1 -> V2:
[2] do not check configuration variables for cross and nativesdk
[3] renamesystemd_packagetosystemd_generate_package_scripts
[6] parse unit files to determine the files to pack
[7] create warning if *-systemd package already rdepends it's base package
added in V2:
[8]-[20] remove obsolet systemd code from recipes (these were used as test cases)
[21] dhcp-(relay) test case for multiple systemd packages
[22] modified to start serviceThe following tests were performed:
* build from scratch with [1]-[7] / run test
* build from scratch / apply patches / build -> check buildhistory diff
* build from scratch w/o patches / build from scratch with patches -> check buildhistory diffQuoted 4 lines
Additional patches were prepared for other recipes inheriting systemd. These are not yet send because they move systemd support from ${PN} to ${PN}-systemd which currently needs modifications on tasks/images. I'd be happy if a common accepted solution would be suggested/implemented (image-feature?).
Today I've noticed one more issue (not sure if it's caused by this patchset or not).
Some images are failing for me with:
For package xserver-nodm-init-systemd SYSTEMD_SERVICE-entry xserver-nodm.service does not exist from systemd.bbclass:populate_packages_prependI guess it's because sstate package:
sstate-xserver-nodm-init-all-oe-linux-2.0-r13-all-2-2ac030a94ddbd202f54b99c2e32c6312_package.tgz
Quoted 7 lines
Quoted 6 lines
has only
package/lib/systemd/system/xserver-nodm.servicebut systemd.bbclass:populate_packages_prepend is looking only in ${D} (image directory).
I prepared V3 and up to now all tests look good. Regarding this issue:
Great!
Quoted 1 line
What is a test case to reproduce if the modification are OK?
With clean tmpdir (and without rmwork) build xserver-nodm to populate sstate-cache, then delete tmpdir and build it again. If it reuses .ipk directly from sstate deploy-ipk.tgz, then it's a bit harder and you have to change checksum of some runtime dependency (so that do_package_write is reexecuted after unpacking package.tgz from sstate) this is usually triggered by change of MACHINE.
But if you don't manage to reproduce it then we can fix this in followup..
Cheers,
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]