mirror of
https://github.com/skeeto/w64devkit.git
synced 2026-10-23 06:08:56 +03:00
Move each component's patches from flat, prefixed file names into a per-component directory with a quilt series file, dropping the number prefixes: application order is now stated by series rather than enforced by lexicographic glob expansion. Outside the build, a queue is managed by our own quilt against an unpacked tarball from source/ with QUILT_PATCHES=/path/to/src/<component>. The shipped kit carries the same layout under $W64DEVKIT_HOME/src, consumable by the bundled quilt.exe the same way. Inside the build, apply queues with Debian's original quilt rather than a native build of src/quilt.cpp, whose amalgamation is Windows-only. This keeps battle-tested GNU patch as the engine, and makes every image build a conformance check: series semantics mean whatever the reference implementation says, and a queue our clone manages must be accepted by original quilt. The .pc state is removed after each push because source trees are never popped, and a stale .pc from one queue blocks pushing a second queue onto the same tree, which happens twice: gcc then crossgcc, mingw then gendef. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>