Package: debcraft
Version: 0.9.1
Severity: wishlist

Hi,

this morning I decided to try debcraft improve on my aide package. While 
it was running, I got preempted and ended up resetting my git repository 
to the state before debcraft improve was run.

In the afternoon, I came back to debcraft and aide and now the shell 
check part of debcraft errors out since it wants to apply a patch that 
was applied previously (which cannot be the case since I git reset 
the repo). Anyway, the run stalls with:

Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
2 out of 2 hunks ignored -- saving rejects to file debian/bin/buildcache.rej
DEBCRAFT ERROR: Unresolvable issues found - please read the output above 
carefully

The script is fine though, shellchecck debian/bin/buildcache doesn't 
show anything, buildcache.rej is empty, and the diff to 
debian/bin/buildcache is tiny any makes sense:
diff --git a/debian/bin/buildcache b/debian/bin/buildcache
index 5d8912e5..4131240c 100755
--- a/debian/bin/buildcache
+++ b/debian/bin/buildcache
@@ -32,9 +32,9 @@ set -C
 # TODO: parse DIR from configuration file
 DIR="/var/lib/aide"
 AIDEUSER="_aide"
-mkdir -p "$DIR"
-TEMPFILE=$(mktemp "$DIR/tmp.XXXXXX")
-CACHEFILE="$DIR/10_aide_rootrules_cache"
+mkdir -p "${DIR}"
+TEMPFILE=$(mktemp "${DIR}/tmp.XXXXXX")
+CACHEFILE="${DIR}/10_aide_rootrules_cache"

 NOW="$(date --iso-8601=seconds)"
 SCRIPT="/etc/aide/aide.conf.d/10_aide_lvm_needsroot"

Now, what is going wrong here?

Deleting the debcraft podman containers and ~/.cache/debcraft don't 
change that. I am attaching the shell log of the debcraft improve run. 
Am I holding it wrong?

Greetings
Marc


-- System Information:
Debian Release: forky/sid
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 
'oldstable-security'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), 
(500, 'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 7.0.10+deb14-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages debcraft depends on:
ii  podman          5.8.2+ds1-2
ii  sensible-utils  0.0.26

debcraft recommends no packages.

debcraft suggests no packages.

-- no debconf information

Reply via email to