From 64f419d7485cefee854c04c5b49e8adfc5e80531 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Sat, 4 Jul 2026 08:51:37 +0200 Subject: Add phantom-dep stripping for slackware-current SBo SlackBuilds target stable; some build deps (rust-opt, google-go-lang) are unneeded on -current. Auto-add DELREQUIRES for these instead of writing a hintfile per dependent by hand. - Read the phantom-dep list from ~/.config/mkhint/phantom-deps (one per line, # comments; missing file = no-op). - --fix-current / -F: sweep the repo, ensure every package whose REQUIRES contains a phantom dep carries the matching DELREQUIRES. Create a minimal hint if absent, back up and merge into an existing hint otherwise. Idempotent, no prompts, mutually exclusive with -v/-f/-n. - --new: auto-append DELREQUIRES for phantom deps found in the .info. - Tests T50-T56; docs and bash-completion updated. Co-Authored-By: Claude Opus 4.8 --- mkhint.bash-completion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mkhint.bash-completion') diff --git a/mkhint.bash-completion b/mkhint.bash-completion index 896e9a9..6d05ea3 100644 --- a/mkhint.bash-completion +++ b/mkhint.bash-completion @@ -8,7 +8,7 @@ _mkhintfile_completions() { repo_dir="/var/lib/sbopkg/SBo-danix" hint_dir="/etc/slackrepo/SBo-danix/hintfiles" - local all_flags="--version -v --hintfile -f --new -n --list -l --review -R --clean -c --check -C --delete -d --no-dl -N --help -h" + local all_flags="--version -v --hintfile -f --new -n --list -l --review -R --clean -c --check -C --fix-current -F --delete -d --no-dl -N --help -h" # -R/--review takes any number of hint names; complete them repeatedly. local w in_review="" -- cgit v1.2.3