Your message dated Thu, 06 Jun 2024 22:22:10 +0700
with message-id <9b78c7d9bfa98314a1cac87360276d03.arna...@kali.org>
and subject line 
has caused the Debian Bug report #806707,
regarding approx cronjob fails on kfreebsd and hurd
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.)


-- 
806707: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=806707
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: approx
Version: 5.5-1
Severity: normal
Control: tags -1 patch

Dear Maintainer,

I have an approx installation on a kfreebsd-amd64 machine. The cron job
emits the following error:

> /etc/cron.weekly/approx:
> nice: ionice: No such file or directory
> run-parts: /etc/cron.weekly/approx exited with return code 127

ionice is not available on kfreebsd-any nor on hurd-i386.

(See for example the build logs for util-linux for these ports:
https://buildd.debian.org/status/package.php?p=util-linux&suite=unstable)

It's probably easiest to check for ionice availabilty at runtime, I've
attached a patch.

Thanks,

leo

--- debian/approx.cron.weekly.orig	2015-11-30 11:06:55.784478675 +0100
+++ debian/approx.cron.weekly	2015-11-30 11:06:55.784478675 +0100
@@ -2,6 +2,12 @@
 
 # Garbage collect the approx(8) cache
 
+# only use ionice if available, kfreebsd and hurd lack it
+unset IONICE
+if [ -x /usr/bin/ionice ]; then
+    IONICE="ionice -c3"
+fi
+
 if [ -x /usr/sbin/approx-gc ]; then
-    nice -n19 ionice -c3 /usr/sbin/approx-gc --quiet
+    nice -n19 $IONICE /usr/sbin/approx-gc --quiet
 fi

--- End Message ---
--- Begin Message ---
This bug was fixed in version 5.7-1.

The cronjob doesn't use ionice anymore. Check commit 3af46a89 for more details.

--- End Message ---

Reply via email to