-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
fetchpatch silently strips binary sections #204320
Copy link
Copy link
Open
Labels
0.kind: bugSomething is brokenSomething is broken2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.mdhttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: fetchFetchers (e.g. fetchgit, fetchsvn, ...)Fetchers (e.g. fetchgit, fetchsvn, ...)
Metadata
Metadata
Assignees
Labels
0.kind: bugSomething is brokenSomething is broken2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.mdhttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: fetchFetchers (e.g. fetchgit, fetchsvn, ...)Fetchers (e.g. fetchgit, fetchsvn, ...)
Fields
Give feedbackNo fields configured for issues without a type.
Issue description
When applying a patch through
fetchpatchthat includes a Git binary hunk, that hunk is silently dropped. This can cause all kinds of funky behaviour, e.g. due to missing test artficacts (e.g. media, der certificates) and is not easily noticable.The issue stems from the fact that
patchutilsdoes not deal with that kind of hunk and ideally we don't want to introduce a dependency ongitMinimalinfetchpatch.Steps to reproduce
randombit/botan@c2faa88
What is missing after applying patchutils is the hunk for
src/tests/data/x509/ocsp/bdr-int-ocsp-resp.der.Proposed remediation
Simple and stupid:
possibly with an escape hatch, to ignore missing binaries.
Technical details
cc @vcunat @risicle