Bug#739052: wheezy-pu: package anacron/2.3-19+deb7u1

2015-08-29 Thread Sébastien Villemot
Le samedi 29 août 2015 à 16:47 +0200, Julien Cristau a écrit :
 Control: tag -1 moreinfo
 
 On Sat, Feb 15, 2014 at 14:07:54 +0100, Sébastien Villemot wrote:
 
  Dear Release Team,
  
  Please find attached a proposed update for anacron. It fixes 
  #688665:
  basically, if anacron is installed while systemd is PID 1, then 
  daily cron jobs
  are never run (unless the machine is rebooted or 
  suspended/resumed).
  
  The proposed fix consists in adding a .service file (see #688665 
  log for the
  reasoning). Incidentally, note that this ensure that nothing is 
  broken for
  non-systemd users.
 
 Hi Sébastien,
 
 are you still interested in this update for wheezy?

Actually no… Feel free to close it.

-- 
 .''`.Sébastien Villemot
: :' :Debian Developer
`. `' http://sebastien.villemot.name
  `-  GPG Key: 4096R/381A7594




signature.asc
Description: This is a digitally signed message part


Processed: Re: Bug#739052: wheezy-pu: package anacron/2.3-19+deb7u1

2015-08-29 Thread Debian Bug Tracking System
Processing control commands:

 tag -1 moreinfo
Bug #739052 [release.debian.org] wheezy-pu: package anacron/2.3-19+deb7u1
Added tag(s) moreinfo.

-- 
739052: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=739052
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#739052: wheezy-pu: package anacron/2.3-19+deb7u1

2015-08-29 Thread Julien Cristau
Control: tag -1 moreinfo

On Sat, Feb 15, 2014 at 14:07:54 +0100, Sébastien Villemot wrote:

 Dear Release Team,
 
 Please find attached a proposed update for anacron. It fixes #688665:
 basically, if anacron is installed while systemd is PID 1, then daily cron 
 jobs
 are never run (unless the machine is rebooted or suspended/resumed).
 
 The proposed fix consists in adding a .service file (see #688665 log for the
 reasoning). Incidentally, note that this ensure that nothing is broken for
 non-systemd users.

Hi Sébastien,

are you still interested in this update for wheezy?

 diff -Nru anacron-2.3/debian/anacron.service 
 anacron-2.3/debian/anacron.service
 --- anacron-2.3/debian/anacron.service1970-01-01 00:00:00.0 
 +
 +++ anacron-2.3/debian/anacron.service2014-02-15 12:52:28.0 
 +
 @@ -0,0 +1,9 @@
 +[Unit]
 +Description=Run anacron jobs
 +After=time-sync.target
 +
 +[Service]
 +ExecStart=/usr/sbin/anacron -dsq
 +
 +[Install]
 +WantedBy=multi-user.target

In jessie, this uses ConditionACPower=true.  Is that not possible in
wheezy?

Cheers,
Julien


signature.asc
Description: Digital signature


Bug#739052: wheezy-pu: package anacron/2.3-19+deb7u1

2014-02-15 Thread Sébastien Villemot
Package: release.debian.org
Severity: normal
Tags: wheezy
User: release.debian@packages.debian.org
Usertags: pu
X-Debbugs-CC: anac...@packages.debian.org, mbi...@debian.org, bi...@debian.org

Dear Release Team,

Please find attached a proposed update for anacron. It fixes #688665:
basically, if anacron is installed while systemd is PID 1, then daily cron jobs
are never run (unless the machine is rebooted or suspended/resumed).

The proposed fix consists in adding a .service file (see #688665 log for the
reasoning). Incidentally, note that this ensure that nothing is broken for
non-systemd users.

Cheers,

-- 
 .''`.Sébastien Villemot
: :' :Debian Developer
`. `' http://www.dynare.org/sebastien
  `-  GPG Key: 4096R/381A7594
diff -Nru anacron-2.3/debian/anacron.service anacron-2.3/debian/anacron.service
--- anacron-2.3/debian/anacron.service	1970-01-01 00:00:00.0 +
+++ anacron-2.3/debian/anacron.service	2014-02-15 12:52:28.0 +
@@ -0,0 +1,9 @@
+[Unit]
+Description=Run anacron jobs
+After=time-sync.target
+
+[Service]
+ExecStart=/usr/sbin/anacron -dsq
+
+[Install]
+WantedBy=multi-user.target
diff -Nru anacron-2.3/debian/changelog anacron-2.3/debian/changelog
--- anacron-2.3/debian/changelog	2012-05-22 20:35:30.0 +
+++ anacron-2.3/debian/changelog	2014-02-15 12:52:28.0 +
@@ -1,3 +1,14 @@
+anacron (2.3-19+deb7u1) wheezy; urgency=low
+
+  * Non-maintainer upload.
+  * Add a systemd unit, so that daily jobs are run if systemd is PID 1
+(patch based on work by Shawn Landden and Laurent Bigonville)
+(closes: #688665)
+  * README.Debian: document that, under systemd, anacron cannot be
+disabled while on battery power.
+
+ -- Sébastien Villemot sebast...@debian.org  Thu, 13 Feb 2014 21:09:09 +0100
+
 anacron (2.3-19) unstable; urgency=low
 
   * Move source format to 3.0 (quilt) with single-debian-patch (adapted
diff -Nru anacron-2.3/debian/README.debian anacron-2.3/debian/README.debian
--- anacron-2.3/debian/README.debian	2012-03-21 18:32:11.0 +
+++ anacron-2.3/debian/README.debian	2014-02-15 12:52:28.0 +
@@ -12,5 +12,7 @@
 Anacron leaves messages in /var/log/syslog and /var/log/messages by
 default.
 
-By default, anacron does not run while on battery power.  See
-/etc/default/anacron to change that.
+By default, anacron does not run while on battery power, see
+/etc/default/anacron to change that. Note however that if you are using
+systemd, anacron will run even while on battery power, and the setting in
+/etc/default/anacron will be ignored.
diff -Nru anacron-2.3/debian/rules anacron-2.3/debian/rules
--- anacron-2.3/debian/rules	2012-05-21 18:48:57.0 +
+++ anacron-2.3/debian/rules	2014-02-15 12:52:28.0 +
@@ -11,6 +11,7 @@
 	install -D -m 755 debian/apm.d debian/anacron/etc/apm/event.d/anacron
 	install -D -m 755 debian/pm-utils.power.d debian/anacron/usr/lib/pm-utils/power.d/anacron
 	install -D -m 755 debian/pm-utils.sleep.d debian/anacron/usr/lib/pm-utils/sleep.d/95anacron
+	install -D -m 644 debian/anacron.service debian/anacron/lib/systemd/system/anacron.service
 
 override_dh_installcron:
 	dh_installcron


signature.asc
Description: Digital signature