`patch-add` doesn't add a `%patch` line, so the patch is silently skipped in hand-written-%patch specs

Aperta
#408 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 4 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go

Direzione di ricerca

Start by locating the patch-add implementation and its render-time handling of PatchN: tags; the issue names no files or tests. Check how explicit %patch lines are detected and how strip levels are represented, then compare the option that emits a line with the render-time warning alternative. Done means added patches are applied or produce a clear warning in hand-written %patch specs.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

When a spec applies its patches with explicit %patch lines (opensc, vim, alsa-lib, …), patch-add adds the PatchN: tag but nothing applies it. Render passes, the build passes, and the fix never actually goes in.

Right now we work around it with a spec-search-replace that inserts %patch -PN -p1 after the spec's last %patch. That means guessing the N azldev will pick, and it breaks as soon as the anchor line changes upstream.

Ask: an option on patch-add to emit the %patch line too (with a strip level), or at minimum a render-time warning when a patch is added but nothing applies it.

Lingua principale
Go
Stelle
18
Fork
30
Merge medio
3g 17h
PR unite (30g)
40

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/azure-linux-dev-tools

Tutte le issue di microsoft/azure-linux-dev-tools

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.