Your message dated Mon, 11 Jul 2016 19:00:48 +0200
with message-id <b22eee4b-5d03-e184-a1e1-a5cb32949...@debian.org>
and subject line Re: dh-systemd: systemd2init always falls back to default 
values
has caused the Debian Bug report #824813,
regarding dh-systemd: systemd2init always falls back to default values
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
824813: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=824813
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: dh-systemd
Version: 1.33
Severity: normal
Tags: patch

Dear Maintainer,

The .init file produced by systemd2init always has default values for every
field, EG. DESC= and DAEMON=/usr/sbin/\$NAME

This appears to be caused by the script (via augtool) checking 2 non-existing
locations for the systemd unit file.

The attached patch fixes the issue for me, but I haven't tested it on a Redhat
machine (which the script also accommodates).



-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.5.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages dh-systemd depends on:
ii  debhelper  9.20160403
ii  perl       5.22.2-1

dh-systemd recommends no packages.

Versions of packages dh-systemd suggests:
ii  augeas-tools  1.2.0-0.3

-- no debconf information
--- a/systemd2init/systemd2init
+++ b/systemd2init/systemd2init
@@ -19,16 +19,14 @@
 
 lsconf() {
     RET=
-	aug_path="/files/lib/systemd/system//${SYSTEMD_SERVICE}${1}"
-	[ -f "$SYSTEMD_SERVICE" ] && aug_path="/files$(pwd)//${SYSTEMD_SERVICE}${1}"
-	augtool -r "$WORKINGDIR" -t "Systemd incl $(pwd)/$SYSTEMD_SERVICE" ls "$aug_path"
+	aug_path="/files/${SYSTEMD_SERVICE}${1}"
+	augtool -r "$WORKINGDIR" -t "Systemd incl $SYSTEMD_SERVICE" ls "$aug_path"
 }
 
 getconf() {
     RET=
-	aug_path="/files/lib/systemd/system/${SYSTEMD_SERVICE}${1}"
-	[ -f "$SYSTEMD_SERVICE" ] && aug_path="/files$(pwd)/${SYSTEMD_SERVICE}${1}"
-	augtool -r "$WORKINGDIR" -t "Systemd incl $(pwd)/$SYSTEMD_SERVICE" get "$aug_path" | \
+	aug_path="/files/${SYSTEMD_SERVICE}${1}"
+	augtool -r "$WORKINGDIR" -t "Systemd incl $SYSTEMD_SERVICE" get "$aug_path" | \
 		sed -e "s;^${aug_path}[[:space:]]*\((none)\|(o)\|= \)[[:space:]]*;;"
 }
 

--- End Message ---
--- Begin Message ---
Version: 1.38

Hi Phil

On Fri, 20 May 2016 11:31:43 +0800 Phil <phils...@phlexo.com> wrote:
> Package: dh-systemd
> Version: 1.33
> Severity: normal
> Tags: patch
> 
> Dear Maintainer,
> 
> The .init file produced by systemd2init always has default values for every
> field, EG. DESC= and DAEMON=/usr/sbin/\$NAME
> 
> This appears to be caused by the script (via augtool) checking 2 non-existing
> locations for the systemd unit file.
> 
> The attached patch fixes the issue for me, but I haven't tested it on a Redhat
> machine (which the script also accommodates).


Thanks you for the patch. With the upload of dh-systemd 1.38, the
systemd2init helper was removed, as dh_systemd_* was merged into
debhelper and dh-systemd turned into an empty, transitional package [1].
So far the future of systemd2init is unclear and whether it will
continue to be maintained as a separate package.

Regards,
Michael


[1]
https://anonscm.debian.org/cgit/collab-maint/init-system-helpers.git/commit/?id=47dda7fecde
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---
_______________________________________________
Pkg-systemd-maintainers mailing list
Pkg-systemd-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-systemd-maintainers

Reply via email to