Repository navigation
Build Windows binaries using upstream MXE scripts - #459
Conversation
Rather than repackage existing Windows release binaries tied to the libvips release schedule, this approach allows more frequent releases that can include other upstream changes.
Ah, interesting. I had always assumed this would result in a different sha256sum for the final DLL, since it also changes the build directory into which libvips is cloned. But indeed, it looks like this would only change if libvips were configured with a different |
kleisauke
left a comment
There was a problem hiding this comment.
Great! This also saves you from having to wait until I've finished building all these Windows binaries, which still takes ~2 hours locally. 😅
|
The shasums are different for the resultant DLL as the |
Ah, I did some digging and found this interesting blog post: I applied those suggestions in commit libvips/build-win64-mxe@14daded (and opened PR libvips/libvips#5369). I now see: $ ./build.sh vips-web -t x86_64-w64-mingw32.static
$ ./build.sh vips-web -t x86_64-w64-mingw32.static -r v8.19.0
$ unzip packaging/vips-dev-x64-web-8.19.0-static.zip
$ unzip packaging/vips-dev-x64-web-1379056-static.zip
$ docker run --rm -t -w $(pwd) -v $(pwd):$(pwd):ro registry.salsa.debian.org/reproducible-builds/diffoscope --exclude-directory-metadata=yes vips-dev-8.19 vips-dev-1379056
--- vips-dev-8.19
+++ vips-dev-1379056
│ --- vips-dev-8.19/versions.json
├── +++ vips-dev-1379056/versions.json
│ ├── Pretty-printed
│ │┄ Similarity: 0.9821428571428571%
│ │┄ Differences: {"'vips'": "'1379056'"}
│ │ @@ -19,12 +19,12 @@
│ │ "pango": "1.58.2",
│ │ "pixman": "0.46.4",
│ │ "png": "1.6.59",
│ │ "proxy-libintl": "0.5",
│ │ "rsvg": "2.63.4",
│ │ "tiff": "4.7.2",
│ │ "uhdr": "2.0.2",
│ │ - "vips": "8.19.0",
│ │ + "vips": "1379056",
│ │ "webp": "1.6.0",
│ │ "xml2": "2.15.4",
│ │ "zlib-ng": "2.3.3"
│ │ }i.e. identical extracted content when building with |
This takes advantage of the OCI image files to cross-compile libvips within this repo rather than repackage existing Windows release binaries tied to the libvips release schedule.
This approach should allow more frequent releases that can include other upstream changes.
It currently takes ~23 minutes, which is faster than the macOS builds, and the resultant tarballs have the same contents as the previous build on the
mainbranch (the following correctly produces no output):/cc @kleisauke for "might be interesting" purposes