See ocaml/opam#6937
Steps to reproduce:
$ git clone https://github.com/ocaml/opam-repository && cd opam-repository
$ git checkout 4e7f3a62e3e8654e6c3b146b76136959efbcb3f5
$ git clean -xfd
$ opatch -p 1 ../checkseum.patch
Fatal error: Patch "../checkseum.patch" does not apply cleanly
$ git reset --hard HEAD
$ git clean -xfd
$ patch -p 1 <../checkseum.patch
patching file packages/checkseum/checkseum.0.5.2/opam
patching file packages/checkseum/checkseum.0.5.3/opam (copied from packages/checkseum/checkseum.0.5.2/opam)
checkseum.patch
Looks like checkseum.0.5.2 is first patched, then copied, then attempted to get patched again.
See ocaml/opam#6937
Steps to reproduce:
checkseum.patch
Looks like checkseum.0.5.2 is first patched, then copied, then attempted to get patched again.