diff options
Diffstat (limited to 'content/it/slackware/mkhint')
| -rw-r--r-- | content/it/slackware/mkhint/index.md | 34 |
1 files changed, 30 insertions, 4 deletions
diff --git a/content/it/slackware/mkhint/index.md b/content/it/slackware/mkhint/index.md index 9e2eb55..9b1dd46 100644 --- a/content/it/slackware/mkhint/index.md +++ b/content/it/slackware/mkhint/index.md @@ -29,10 +29,18 @@ ripetitivo che dovrebbe spettare a uno script. - **Elenco** `-l`: stampa ogni hint con il suo `HintVer` (versione nell'hint) accanto al `SBOVer` (versione nel `.info` del repository), evidenziando le righe in cui i due valori coincidono byte per byte, così individui gli hint - ormai ridondanti rispetto all'upstream. + ormai ridondanti rispetto all'upstream. Passando dei nomi (`-l foo bar`) + salta la tabella e mostra ciascun hint indicato affiancato al suo `.info`. - **Revisione** `-R`: scorre solo gli hint evidenziati, mostrando ciascuno affiancato al suo `.info` (`git diff --no-index`, con ripiego su `diff -y`) e - chiedendo se tenere, cancellare o saltare. + chiedendo se tenere, cancellare o saltare. Passando dei nomi (`-R foo bar`) + rivede gli hint indicati a prescindere dalla corrispondenza di versione. +- **Fix -current** `-F`: scorre tutto il repository e, per ogni pacchetto il cui + `REQUIRES` nomina una dipendenza fantasma (inutile su slackware-current, + elencata una volta in `~/.config/mkhint/phantom-deps`), garantisce che l'hint + porti il relativo `DELREQUIRES`. È idempotente, quindi eseguilo dopo ogni + rigenerazione settimanale del repository. `-n` applica la stessa lista quando + crea un hint. - **Controllo** `-C [package...]`: interroga [nvchecker](https://github.com/lilydjwg/nvchecker) per l'ultima versione upstream di uno, alcuni o tutti gli hint; segnala cosa è obsoleto; aggiorna i @@ -52,8 +60,10 @@ Usage: ./mkhint --new FILE Create new hint file (no version) ./mkhint --hintfile FILE Update hint, suggest latest version via nvchecker ./mkhint --check [FILE...] Check all (or named) hints for upstream updates + ./mkhint --fix-current Sweep repo, add DELREQUIRES for -current phantom deps ./mkhint --list List hint files ./mkhint --review Review hints matching SBo version, keep/delete each + ./mkhint --review FILE... Review named hints (any version), keep/delete each ./mkhint --clean Remove .bak files from HINT_DIR ./mkhint --no-dl --hintfile FILE Update hint, skip downloads, add NODOWNLOAD=yes ./mkhint --no-dl --new FILE Create hint with NODOWNLOAD=yes @@ -63,10 +73,11 @@ Options: --version, -v VERSION New version string (required for --hintfile) --hintfile, -f FILE Path to existing hint file (required with --version) --new, -n FILE Create new hint file (required with --version or standalone) - --list, -l List all hint files in the default directory - --review, -R Review hints whose version matches the SBo .info; diff + keep/delete + --list, -l [FILE...] List all hint files; FILE... = side-by-side hint vs .info + --review, -R [FILE...] Review hints; no args = matched only, FILE... = named hints (any version) --clean, -c Remove all .bak files from HINT_DIR --check, -C [FILE...] Check hints for upstream updates via nvchecker, update interactively + --fix-current, -F Add/merge DELREQUIRES for -current phantom deps across the whole repo --delete, -d FILE Delete a hint file (and .bak if present) --no-dl, -N Skip downloads; add NODOWNLOAD=yes to hint file (use with -f or -n) --help, -h Show this help message @@ -92,6 +103,21 @@ mentre ogni URL di continuazione viene proposto in modo interattivo, così i sorgenti invariati conservano il checksum esistente invece di essere riscaricati inutilmente. +Una stringa di versione SlackBuild non può contenere `-` (romperebbe il parsing +di `PRGNAM`), quindi un rilascio upstream come `2026-06-02` viene pacchettizzato +come `2026_06_02`. mkhint normalizza le versioni upstream (`-` diventa `_`) prima +del confronto, così risultano la stessa versione e non viene proposto alcun +aggiornamento o downgrade spurio; è la forma con underscore a essere scritta +nell'hint. + +Sia lo sweep `-F` / `--fix-current` sia la gestione delle dipendenze fantasma in +`-n` leggono `~/.config/mkhint/phantom-deps`, una dipendenza per riga (commenti +con `#` ammessi). Copre le dipendenze che gli SlackBuild SBo richiedono su +Slackware stable ma non su slackware-current, dove il sistema le fornisce già, +per esempio `rust-opt` o `google-go-lang`. slackrepo rimuove una simile +dipendenza con `DELREQUIRES` nell'hint; mkhint scrive e unisce quella riga al +posto tuo. Una lista assente rende entrambe le funzioni inoperanti. + ## Perché esiste Mantenere un overlay SBo personale significa un flusso costante di aggiornamenti |
