├── mingw-w64-gtk2 ├── gtkrc ├── 0003-Fix-notebook-tab-state-change.mingw.patch ├── 0005-Fix-header-ref.all.patch ├── 0010-put-gtk-dll-into-path.mingw.patch ├── 0001-fix-m4-location.mingw.patch ├── 0006-Fix-unix-symbols-in-docs.mingw.patch ├── 0009-give-cc-to-gir-scanner.mingw.patch └── 0022-icontheme-win32-detect-SVG-files-by-extension.patch ├── mingw-w64-readline ├── readline80-001.sig └── readline80-001 ├── mingw-w64-libsystre └── systre-1.0.1.tar.xz ├── mingw-w64-boost ├── boost-1.50.0-fix-non-utf8-files.patch ├── boost-1.57.0-python-libpython_dep.patch ├── boost-1.58.0-address-model.patch ├── boost-include-intrin-h-on-mingw-w64.patch ├── boost-1.66.0-fix-qualifier.patch ├── boost-1.57.0-mpl-print.patch ├── msys2-mingw-folders-bootstrap.patch └── boost-1.61.0-fix-undefined-referense-to-codecvt.patch ├── mingw-w64-gdk-pixbuf2 ├── gdk-pixbuf2-UCRT64.install ├── gdk-pixbuf2-CLANG32.install ├── gdk-pixbuf2-CLANG64.install ├── gdk-pixbuf2-MINGW32.install ├── gdk-pixbuf2-MINGW64.install ├── gdk-pixbuf2-CLANGARM64.install ├── gdk-pixbuf-query-loaders.hook.in ├── 0003-fix-dllmain.patch └── fix-missing-meson-dep.patch ├── mingw-w64-openblas ├── openblas.install ├── 001-defaultlib-not-for-gcc.patch └── 002-lgfortran-requires-lquadmath.patch ├── mingw-w64-gcc ├── gdbinit ├── 0016-gcc-7-branch-disable-weak-refs-in-libstdc++.patch ├── 0150-libbacktrace-seh.patch └── 0005-Windows-Don-t-ignore-native-system-header-dir.patch ├── mingw-w64-libxml2 ├── 0029-xml2-config-win-paths.patch ├── 0030-pkgconfig-add-Cflags-private.patch ├── libxml2-UCRT64.install ├── libxml2-CLANG32.install ├── libxml2-CLANG64.install ├── libxml2-MINGW32.install ├── libxml2-MINGW64.install ├── libxml2-CLANGARM64.install ├── 0019-unused-flags.all.patch ├── 0015-fix-unused-parameters-warning.all.patch ├── libxml2-disable-version-script.patch ├── libxml2-2.9.2-catalog-revert.patch ├── 0020-fix-warnings.patch └── 0027-decoding-segfault.patch ├── mingw-w64-libxslt ├── 0010-xslt-config-win-paths.patch └── 0003-fix-concurrent-directory-creation.all.patch ├── mingw-w64-v8 ├── v8.pc ├── zlib.gn └── 0002-gn-ninja-deletes-objs-workaround.patch ├── mingw-w64-libiconv ├── iconv.pc ├── 0001-compile-relocatable-in-gnulib.mingw.patch └── 0002-fix-cr-for-awk-in-configure.all.patch ├── mingw-w64-libutf8proc └── libutf8proc.pc.in ├── ci-remove.sh ├── mingw-w64-libssh ├── 010-lld.patch ├── 001-install-static-lib.patch └── 002-libssh-fix-pkgconfig.patch ├── mingw-w64-zlib ├── 03-dont-put-sodir-into-L.mingw.patch ├── 012-Add-bzip2-library-to-pkg-config-file.patch ├── 011-Add-no-undefined-to-link-to-enable-build-shared-vers.patch └── 04-fix-largefile-support.patch ├── mingw-w64-libassuan ├── 0002-enable-silent-rules.mingw.patch ├── 0004-enable-gnu.mingw.patch ├── 0005-better-check-for-stpcpy.mingw.patch └── 0001-fix-def-files.mingw.patch ├── mingw-w64-libfreexl └── 01-fix-pkgconfig.patch ├── mingw-w64-lcms2 ├── 0001-fix-testcmd2.mingw.patch └── 0002-need-jconfig-before-jmoreconfig.mingw.patch ├── mingw-w64-gpgme ├── 0006-fix-building-docs.patch ├── 0007-mkdefsinc-use-CPPFLAGS.patch ├── 0008-no-py2.patch └── gpgme-fix-cpp-tests.patch ├── mingw-w64-glpk ├── fix-platform-check.patch └── timeval-64bit.patch ├── mingw-w64-libgpg-error ├── 02-fix-symbollist-on.mingw.patch ├── 05-w32-gen.all.patch ├── 10-gpg-error-static-linking.patch ├── 01-mingw32-fix-potomo.mingw.patch └── 07-windows-build.patch ├── mingw-w64-python3 ├── 3001-pathlib-path-sep.patch ├── 0810-remove_path_max.default.patch ├── 0570-mingw-add-BUILDIN_WIN32_MODULEs-time-msvcrt.patch ├── 2051-set-venv-activate-path-unix.patch ├── 0840-gdbm-module-includes.patch ├── 0430-MINGW-find-import-library.patch ├── 0990-MINGW-link-with-additional-library.patch ├── 1860-fix-isselectable.patch ├── 1701-disable-broken-gdbm-module.patch ├── 1810-3.7-mpdec-mingw.patch ├── 1010-install-msilib.patch ├── 1870-use-_wcsnicmp-instead-wcsncasecmp.patch ├── 2060-pass-gen-profile-ldflags.patch ├── 0720-mingw-pdcurses_ISPAD.patch ├── 1890-_xxsubinterpretersmodule.patch ├── 0640-mingw-x86_64-size_t-format-specifier-pid_t.patch ├── 0660-mingw-use-backslashes-in-compileall-py.patch ├── 0440-MINGW-setup-_ssl-module.patch ├── 0464-use-replace-instead-rename-to-avoid-failure-on-windo.patch ├── 2010-configure-have-inet-pton.patch ├── 3000-importlib-bootstrap-path-sep.patch ├── 0530-mingw-system-libffi.patch ├── 1850-disable-readline.patch ├── 1060-dont-include-system-ncurses-path.patch ├── 0830-ctypes-python-dll.patch ├── 0900-cygwinccompiler-dont-strip-modules-if-pydebug.patch ├── 1650-expose-sem_unlink.patch ├── 0650-cross-dont-add-multiarch-paths-if-cross-compiling.patch ├── 1630-build-winconsoleio.patch ├── 0350-MINGW-setup-_multiprocessing-module.patch ├── 0920-mingw-add-LIBPL-to-library-dirs.patch ├── 0470-MINGW-avoid-circular-dependency-from-time-module-dur.patch ├── 0910-fix-using-dllhandle-and-winver-mingw.patch ├── 1620-fix-signal-module-build.patch ├── 2080-pkg-config-windows-must-link-ext-with-python-lib.patch ├── 0760-msys-monkeypatch-os-system-via-sh-exe.patch ├── 0170-MINGW-add-srcdir-PC-to-CPPFLAGS.patch ├── 0110-MINGW-translate-gcc-internal-defines-to-python-platf.patch ├── 2030-fix-msvc9-import.patch ├── 0150-MINGW-configure-largefile-support-for-windows-builds.patch ├── 0740-grammar-fixes.patch ├── 0890-mingw-build-optimized-ext.patch ├── 0870-mingw-fix-ssl-dont-use-enum_certificates.patch ├── 0260-MINGW-compiler-enable-new-dtags.patch ├── 0970-Add-AMD64-to-sys-config-so-msvccompiler-get_build_version-works.patch ├── 0370-MINGW-setup-_ctypes-module-with-system-libffi.patch └── 0330-MINGW-ignore-main-program-for-frozen-scripts.patch ├── mingw-w64-lame ├── 0008-skip-termcap.patch ├── 0005-no-gtk.all.patch ├── 0006-dont-use-outdated-symbol-list.patch └── 0002-07-field-width-fix.all.patch ├── mingw-w64-expat └── 002-fix-tests.patch ├── mingw-w64-openjpeg2 ├── 0005-sock-jpip.all.patch ├── 0002-cmake-files-destination.patch └── 0004-mingw-disable-java.patch ├── .gitattributes ├── mingw-w64-libspatialite └── 01-fix-pkgconfig.patch ├── mingw-w64-libssh2 └── fix-pkgconfig.patch ├── mingw-w64-drmingw └── gcc-10.2.0.patch ├── mingw-w64-gn └── 002-add-missing-header.patch ├── mingw-w64-opencv ├── 0106-use-find-package-with-hdf5.patch ├── 0021-requires-vtk.patch ├── 0104-rgbd-module-missing-include.patch ├── 0014-python-install-path.patch ├── 0008-mingw-w64-cmake-lib-path.patch ├── 0015-windres-cant-handle-spaces-in-defines.patch └── 0004-generate-proper-pkg-config-file.patch ├── mingw-w64-quantlib └── no-undefined.patch ├── mingw-w64-libraw └── LibRaw_obsolete-macros.patch ├── mingw-w64-giflib └── giflib-5.0.4-include-stddef.patch ├── mingw-w64-isl └── isl-0.14.1-no-undefined.patch ├── mingw-w64-libjpeg-turbo ├── libjpeg-turbo-1.3.1-libmng-compatibility.patch └── 0001-header-compat.mingw.patch ├── mingw-w64-netcdf └── 0002-no-file.patch ├── mingw-w64-zstd └── install-pkgconfig.patch ├── mingw-w64-crt-git ├── mkgmtime.diff └── 0001-Allow-to-use-bessel-and-complex-functions-without-un.patch ├── mingw-w64-file ├── 0002-use-libsystre.patch └── 0001-file-5.38-mingw-build.patch ├── mingw-w64-nghttp2 ├── 002-versioned-dll.patch └── 001-fix-pc-prefix.patch ├── mingw-w64-cfitsio └── disable-curl-mingw.patch ├── mingw-w64-gettext ├── 05-always-use-libintl-vsnprintf.mingw.patch ├── 08-vs-compatible.patch └── 06-dont-include-ctype-after-gnulibs-wctype.mingw.patch ├── mingw-w64-gflags └── gflags-2.2.2.patch ├── mingw-w64-pkg-config ├── 1030-fix-stat.all.patch ├── 0001-fix-double-slash-in-test.patch ├── 1005-glib-send-log-messages-to-correct-stdout-and-stderr.patch ├── 1031-fix-glib-gettext-m4-error.patch └── 1024-return-actually-written-data-in-printf.all.patch ├── mingw-w64-tk ├── 007-mingw-w64-compatibility-fix.patch ├── 003-fix-forbidden-colon-in-paths.mingw.patch ├── 008-dont-link-shared-with--static-libgcc.patch └── 006-prevent-tclStubsPtr-segfault.patch ├── mingw-w64-raptor2 └── no-undefined.patch ├── mingw-w64-jq └── no-undefined.patch ├── mingw-w64-libvpx ├── 0005-fix-exports.mingw.patch └── 0003-cross-with-native-binutils.mingw.patch ├── mingw-w64-ncurses └── 001-use-libsystre.patch ├── mingw-w64-meson ├── install-man.patch ├── 0002-Default-to-sys.prefix-as-the-default-prefix.patch └── color-term.patch ├── mingw-w64-aws-sdk-cpp ├── BuildAwsChecksums.patch └── WinHttp-missing-flags.patch ├── mingw-w64-binutils ├── 0310-reproducible-import-libraries.patch └── 0001-enable-gold-on.mingw32.patch ├── mingw-w64-tktable └── 001-fix-detect-mingw.patch ├── mingw-w64-libmariadbclient ├── 003-gcc-fix-use_VA_ARGS.patch └── 002-fix-prototype.patch ├── mingw-w64-libyaml ├── 0001-Proper-mingw-YAML_DECLARE-definition.patch └── 0002-libyaml-no-undefined.patch ├── mingw-w64-libtre-git ├── 002-pointer-cast.patch └── 001-autotools.patch ├── mingw-w64-python-setuptools ├── 0001-mingw-python-fix.patch ├── 0005-execv-warning.patch ├── 0007-windows-arm64.patch ├── 0006-fix-tests-path.patch └── 0003-MinGW-w64-Look-in-same-dir-as-script-for-exe.patch ├── mingw-w64-json-c └── 001-install-private-header.patch ├── mingw-w64-z3 ├── 005-fix-clang.patch ├── 004-fix-python-bindings-install.patch └── 002-fix-dll-destination.patch ├── mingw-w64-libde265 ├── 003-fix-pkgconfig-provide-includedir.patch └── 001-fix-VPATH.patch ├── mingw-w64-libheif └── 001-fix-pkgconfig-provide-includedir.patch ├── mingw-w64-tcl ├── 002-fix-forbidden-colon-in-paths.mingw.patch ├── 001-fix-relocation.patch ├── 005-no-xc.mingw.patch └── 009-fix-using-gnu-print.patch ├── mingw-w64-make ├── make-linebuf-mingw.patch └── make-getopt.patch ├── mingw-w64-libwebp └── 0001-mingw-cmake-output.patch ├── mingw-w64-suitesparse ├── 0003-mingw-w64-no-CUDA.patch ├── 0007-suitesparse-5.8.1-remove-dependency-on-Metis.patch ├── 0006-suitesparse-5.8.1-fix-mp-link-order.patch └── 0001-mingw-w64-Use-a-not-lib-as-AR_TARGET-extension.patch ├── mingw-w64-jasper ├── jasper-static-fix.patch └── jasper-1.900.1-fix-filename-buffer-overflow.patch ├── mingw-w64-icu ├── 0009-fix-bindir-in-config.mingw.patch ├── 0004-move-to-bin.mingw.patch ├── 0008-data-install-dir.mingw.patch ├── 0021-mingw-static-libraries-without-s.patch └── 0020-workaround-missing-locale.patch ├── mingw-w64-szip ├── szip-default-import-suffix.patch └── szip-fix-install-docs.patch ├── mingw-w64-hdf5 ├── hdf5-default-import-suffix.patch └── hdf5-fix-install-docs.patch ├── mingw-w64-glib2 ├── 0001-disable-some-tests-when-static.patch └── vista.patch ├── mingw-w64-curl └── disable-cainfo-for-schannel.patch ├── gcc-bootstrap.sh ├── mingw-w64-librsvg └── 0005-hack-unixy-paths.patch ├── mingw-w64-freetype ├── freetype-2.5.1-enable-sph.patch ├── freetype-2.10.0-enable-spr.patch └── freetype-2.10.0-enable-valid.patch ├── mingw-w64-aom └── fix-lib-dest.patch ├── mingw-w64-libtool ├── 0006-Fix-strict-ansi-vs-posix.patch ├── 0007-fix-cr-for-awk-in-configure.all.patch └── 0005-Fix-seems-to-be-moved.patch ├── mingw-w64-cairo ├── 0009-standalone-headers.mingw.patch └── 0027-win32-print-fix-unbounded-surface-assertion.patch ├── mingw-w64-qpdf ├── 0002-enable-advapi32-mingw.patch └── 0001-fix-printf-on-mingw-w64.patch ├── mingw-w64-x264-git └── 0001-beautify-pc.all.patch ├── mingw-w64-gdb ├── gdb-perfomance.patch ├── python-configure-path-fixes.patch └── gdb-7.12-dynamic-libs.patch ├── mingw-w64-bwidget └── PKGBUILD ├── mingw-w64-cmake ├── legacy-mingw32.patch └── 0002-Do-not-install-Qt-bundle-in-cmake-gui.patch ├── mingw-w64-poppler-data └── PKGBUILD ├── mingw-w64-zeromq └── 002-unused.patch ├── mingw-w64-flatbuffers └── flatbuffers-1.9.0.patch ├── mingw-w64-nasm └── 0001-Remove-invalid-pure_func-qualifiers.patch ├── mingw-w64-headers-git └── 0001-Allow-to-use-bessel-and-complex-functions-without-un.patch ├── mingw-w64-libgit2 └── winlibs.patch ├── mingw-w64-c-ares └── 0003-fix-cmake-targets.patch ├── mingw-w64-rabbitmq-c └── 0001-librabbitmq-CMakeLists.txt.patch ├── mingw-w64-protobuf └── 0002-windres-invocation.patch ├── mingw-w64-windows-default-manifest └── PKGBUILD ├── mingw-w64-coinor-cbc └── PKGBUILD ├── mingw-w64-gsl └── PKGBUILD ├── mingw-w64-udunits └── PKGBUILD ├── mingw-w64-gdbm └── gdbm-1.10-zeroheaders.patch ├── fullindex.sh ├── mingw-w64-libvorbis └── PKGBUILD ├── mingw-w64-hiredis └── 01-cmake-static-libs.patch └── mingw-w64-gifski └── PKGBUILD /mingw-w64-gtk2/gtkrc: -------------------------------------------------------------------------------- 1 | gtk-icon-theme-name = "gnome" 2 | gtk-theme-name = "Adwaita" 3 | gtk-font-name = "Cantarell 11" 4 | -------------------------------------------------------------------------------- /mingw-w64-readline/readline80-001.sig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r-windows/rtools-packages/HEAD/mingw-w64-readline/readline80-001.sig -------------------------------------------------------------------------------- /mingw-w64-libsystre/systre-1.0.1.tar.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r-windows/rtools-packages/HEAD/mingw-w64-libsystre/systre-1.0.1.tar.xz -------------------------------------------------------------------------------- /mingw-w64-boost/boost-1.50.0-fix-non-utf8-files.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r-windows/rtools-packages/HEAD/mingw-w64-boost/boost-1.50.0-fix-non-utf8-files.patch -------------------------------------------------------------------------------- /mingw-w64-gdk-pixbuf2/gdk-pixbuf2-UCRT64.install: -------------------------------------------------------------------------------- 1 | MINGW_INSTALL=ucrt64 2 | 3 | pre_remove() { 4 | rm -f ${MINGW_INSTALL}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache 5 | } -------------------------------------------------------------------------------- /mingw-w64-gdk-pixbuf2/gdk-pixbuf2-CLANG32.install: -------------------------------------------------------------------------------- 1 | MINGW_INSTALL=clang32 2 | 3 | pre_remove() { 4 | rm -f ${MINGW_INSTALL}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache 5 | } -------------------------------------------------------------------------------- /mingw-w64-gdk-pixbuf2/gdk-pixbuf2-CLANG64.install: -------------------------------------------------------------------------------- 1 | MINGW_INSTALL=clang64 2 | 3 | pre_remove() { 4 | rm -f ${MINGW_INSTALL}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache 5 | } -------------------------------------------------------------------------------- /mingw-w64-gdk-pixbuf2/gdk-pixbuf2-MINGW32.install: -------------------------------------------------------------------------------- 1 | MINGW_INSTALL=mingw32 2 | 3 | pre_remove() { 4 | rm -f ${MINGW_INSTALL}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache 5 | } -------------------------------------------------------------------------------- /mingw-w64-gdk-pixbuf2/gdk-pixbuf2-MINGW64.install: -------------------------------------------------------------------------------- 1 | MINGW_INSTALL=mingw64 2 | 3 | pre_remove() { 4 | rm -f ${MINGW_INSTALL}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache 5 | } -------------------------------------------------------------------------------- /mingw-w64-openblas/openblas.install: -------------------------------------------------------------------------------- 1 | post_install() { 2 | echo "Set the environment variable OPENBLAS_NUM_THREADS to the" 3 | echo "number of threads to use." 4 | } 5 | -------------------------------------------------------------------------------- /mingw-w64-gdk-pixbuf2/gdk-pixbuf2-CLANGARM64.install: -------------------------------------------------------------------------------- 1 | MINGW_INSTALL=clangarm64 2 | 3 | pre_remove() { 4 | rm -f ${MINGW_INSTALL}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache 5 | } -------------------------------------------------------------------------------- /mingw-w64-gcc/gdbinit: -------------------------------------------------------------------------------- 1 | python 2 | import sys 3 | sys.path.insert(0, sys.path[0] + '/../../%GCC_NAME%/python') 4 | from libstdcxx.v6.printers import register_libstdcxx_printers 5 | end 6 | -------------------------------------------------------------------------------- /mingw-w64-libxml2/0029-xml2-config-win-paths.patch: -------------------------------------------------------------------------------- 1 | --- a/xml2-config.in 2 | +++ b/xml2-config.in 3 | @@ -1,6 +1,6 @@ 4 | #! /bin/sh 5 | 6 | -prefix=@prefix@ 7 | +prefix="$(cygpath -m "@prefix@")" 8 | exec_prefix=@exec_prefix@ 9 | includedir=@includedir@ 10 | libdir=@libdir@ 11 | -------------------------------------------------------------------------------- /mingw-w64-libxslt/0010-xslt-config-win-paths.patch: -------------------------------------------------------------------------------- 1 | --- a/xslt-config.in 2 | +++ b/xslt-config.in 3 | @@ -1,6 +1,6 @@ 4 | #! /bin/sh 5 | 6 | -prefix=@prefix@ 7 | +prefix="$(cygpath -m @prefix@)" 8 | exec_prefix=@exec_prefix@ 9 | exec_prefix_set=no 10 | includedir=@includedir@ 11 | -------------------------------------------------------------------------------- /mingw-w64-v8/v8.pc: -------------------------------------------------------------------------------- 1 | prefix= 2 | exec_prefix=${prefix} 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: v8 7 | Description: V8 JavaScript Engine 8 | Version: @VERSION@ 9 | Requires: zlib 10 | Libs: -L${libdir} -lv8_monolith 11 | Cflags: -I${includedir} @CFLAGS@ 12 | -------------------------------------------------------------------------------- /mingw-w64-libiconv/iconv.pc: -------------------------------------------------------------------------------- 1 | prefix=@PREFIX@ 2 | exec_prefix=${prefix} 3 | libdir=${exec_prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: iconv 7 | Description: libiconv 8 | URL: https://www.gnu.org/software/libiconv/ 9 | Version: @VERSION@ 10 | Libs: -L${libdir} -liconv 11 | Cflags: -I${includedir} -------------------------------------------------------------------------------- /mingw-w64-libutf8proc/libutf8proc.pc.in: -------------------------------------------------------------------------------- 1 | prefix=/usr 2 | exec_prefix=${prefix} 3 | libdir=${exec_prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: libutf8proc 7 | Description: UTF8 processing 8 | Version: @VERSION@ 9 | Libs: -L${libdir} -lutf8proc 10 | Cflags: -I${includedir} -DUTF8PROC_EXPORTS 11 | -------------------------------------------------------------------------------- /ci-remove.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | cd "$(dirname "$0")" 3 | source 'ci-library.sh' 4 | mkdir artifacts 5 | cd artifacts 6 | echo "REMOVING PACKAGE ${PACKAGE} from ${PACMAN_REPOSITORY}" 7 | execute 'Updating package index' remove_from_repository "${PACMAN_REPOSITORY}" "${PACKAGE}" 8 | success 'Package removal successful' 9 | exit 0 10 | -------------------------------------------------------------------------------- /mingw-w64-libssh/010-lld.patch: -------------------------------------------------------------------------------- 1 | --- a/src/CMakeLists.txt 2 | +++ b/src/CMakeLists.txt 3 | @@ -360,7 +360,6 @@ 4 | endif (WITH_VISIBILITY_HIDDEN) 5 | 6 | if (MINGW) 7 | - target_link_libraries(ssh PRIVATE "-Wl,--enable-stdcall-fixup") 8 | target_compile_definitions(ssh PRIVATE "_POSIX_SOURCE") 9 | endif () 10 | 11 | -------------------------------------------------------------------------------- /mingw-w64-zlib/03-dont-put-sodir-into-L.mingw.patch: -------------------------------------------------------------------------------- 1 | --- a/zlib-1.2.7/zlib.pc.in.orig 2013-03-31 22:30:40 +0400 2 | +++ b/zlib-1.2.7/zlib.pc.in 2013-04-03 02:06:26 +0400 3 | @@ -9,5 +9,5 @@ 4 | Version: @VERSION@ 5 | 6 | Requires: 7 | -Libs: -L${libdir} -L${sharedlibdir} -lz 8 | +Libs: -L${libdir} -lz 9 | Cflags: -I${includedir} 10 | -------------------------------------------------------------------------------- /mingw-w64-libxml2/0030-pkgconfig-add-Cflags-private.patch: -------------------------------------------------------------------------------- 1 | --- a/libxml-2.0.pc.in 2 | +++ b/libxml-2.0.pc.in 3 | @@ -11,3 +11,4 @@ 4 | Libs: -L${libdir} -lxml2 5 | Libs.private: @ICU_LIBS@ @THREAD_LIBS@ @Z_LIBS@ @LZMA_LIBS@ @ICONV_LIBS@ @M_LIBS@ @WIN32_EXTRA_LIBADD@ @LIBS@ 6 | Cflags: @XML_INCLUDEDIR@ @XML_CFLAGS@ 7 | +Cflags.private: -DLIBXML_STATIC 8 | -------------------------------------------------------------------------------- /mingw-w64-libassuan/0002-enable-silent-rules.mingw.patch: -------------------------------------------------------------------------------- 1 | --- libassuan-2.1.1/configure.ac.orig 2013-06-24 05:12:21.000000000 +0000 2 | +++ libassuan-2.1.1/configure.ac 2013-10-13 14:37:24.853594500 +0000 3 | @@ -77,6 +77,7 @@ 4 | AM_CONFIG_HEADER(config.h) 5 | AC_CANONICAL_HOST 6 | AB_INIT 7 | +AM_SILENT_RULES([yes]) 8 | 9 | AC_GNU_SOURCE 10 | 11 | -------------------------------------------------------------------------------- /mingw-w64-libxml2/libxml2-UCRT64.install: -------------------------------------------------------------------------------- 1 | MINGW_INSTALL=ucrt64 2 | 3 | post_install() { 4 | if test ! -f ${MINGW_INSTALL}/etc/xml/catalog; then 5 | usr/bin/mkdir -p ${MINGW_INSTALL}/etc/xml 6 | ${MINGW_INSTALL}/bin/xmlcatalog.exe --noout --create ${MINGW_INSTALL}/etc/xml/catalog 7 | fi 8 | } 9 | 10 | post_upgrade() { 11 | post_install 12 | } 13 | -------------------------------------------------------------------------------- /mingw-w64-libfreexl/01-fix-pkgconfig.patch: -------------------------------------------------------------------------------- 1 | --- a/freexl.pc.in 2014-10-28 12:36:32.764934500 +0300 2 | +++ b/freexl.pc.in 2014-10-28 12:36:49.427413200 +0300 3 | @@ -9,4 +9,5 @@ 4 | Description: a simple library extracting data from .xls (Excel BIFF) files 5 | Version: @VERSION@ 6 | Libs: -L${libdir} -lfreexl -lm 7 | +Libs.private: -liconv 8 | Cflags: -I${includedir} 9 | -------------------------------------------------------------------------------- /mingw-w64-libxml2/libxml2-CLANG32.install: -------------------------------------------------------------------------------- 1 | MINGW_INSTALL=clang32 2 | 3 | post_install() { 4 | if test ! -f ${MINGW_INSTALL}/etc/xml/catalog; then 5 | usr/bin/mkdir -p ${MINGW_INSTALL}/etc/xml 6 | ${MINGW_INSTALL}/bin/xmlcatalog.exe --noout --create ${MINGW_INSTALL}/etc/xml/catalog 7 | fi 8 | } 9 | 10 | post_upgrade() { 11 | post_install 12 | } 13 | -------------------------------------------------------------------------------- /mingw-w64-libxml2/libxml2-CLANG64.install: -------------------------------------------------------------------------------- 1 | MINGW_INSTALL=clang64 2 | 3 | post_install() { 4 | if test ! -f ${MINGW_INSTALL}/etc/xml/catalog; then 5 | usr/bin/mkdir -p ${MINGW_INSTALL}/etc/xml 6 | ${MINGW_INSTALL}/bin/xmlcatalog.exe --noout --create ${MINGW_INSTALL}/etc/xml/catalog 7 | fi 8 | } 9 | 10 | post_upgrade() { 11 | post_install 12 | } 13 | -------------------------------------------------------------------------------- /mingw-w64-libxml2/libxml2-MINGW32.install: -------------------------------------------------------------------------------- 1 | MINGW_INSTALL=mingw32 2 | 3 | post_install() { 4 | if test ! -f ${MINGW_INSTALL}/etc/xml/catalog; then 5 | usr/bin/mkdir -p ${MINGW_INSTALL}/etc/xml 6 | ${MINGW_INSTALL}/bin/xmlcatalog.exe --noout --create ${MINGW_INSTALL}/etc/xml/catalog 7 | fi 8 | } 9 | 10 | post_upgrade() { 11 | post_install 12 | } 13 | -------------------------------------------------------------------------------- /mingw-w64-libxml2/libxml2-MINGW64.install: -------------------------------------------------------------------------------- 1 | MINGW_INSTALL=mingw64 2 | 3 | post_install() { 4 | if test ! -f ${MINGW_INSTALL}/etc/xml/catalog; then 5 | usr/bin/mkdir -p ${MINGW_INSTALL}/etc/xml 6 | ${MINGW_INSTALL}/bin/xmlcatalog.exe --noout --create ${MINGW_INSTALL}/etc/xml/catalog 7 | fi 8 | } 9 | 10 | post_upgrade() { 11 | post_install 12 | } 13 | -------------------------------------------------------------------------------- /mingw-w64-lcms2/0001-fix-testcmd2.mingw.patch: -------------------------------------------------------------------------------- 1 | --- lcms2-2.4/testbed/testcms2.c.orig 2013-04-04 11:44:04 +0400 2 | +++ lcms2-2.4/testbed/testcms2.c 2013-04-04 11:47:22 +0400 3 | @@ -33,6 +33,8 @@ 4 | // On Visual Studio, use debug CRT 5 | #ifdef _MSC_VER 6 | # include "crtdbg.h" 7 | +#endif 8 | +#if defined (_WIN32) 9 | # include 10 | #endif 11 | 12 | -------------------------------------------------------------------------------- /mingw-w64-libxml2/libxml2-CLANGARM64.install: -------------------------------------------------------------------------------- 1 | MINGW_INSTALL=clangarm64 2 | 3 | post_install() { 4 | if test ! -f ${MINGW_INSTALL}/etc/xml/catalog; then 5 | usr/bin/mkdir -p ${MINGW_INSTALL}/etc/xml 6 | ${MINGW_INSTALL}/bin/xmlcatalog.exe --noout --create ${MINGW_INSTALL}/etc/xml/catalog 7 | fi 8 | } 9 | 10 | post_upgrade() { 11 | post_install 12 | } 13 | -------------------------------------------------------------------------------- /mingw-w64-gpgme/0006-fix-building-docs.patch: -------------------------------------------------------------------------------- 1 | --- gpgme-1.10.0/lang/qt/doc/Makefile.am.orig 2017-12-14 11:40:14.799638000 +0300 2 | +++ gpgme-1.10.0/lang/qt/doc/Makefile.am 2017-12-14 11:40:41.099142200 +0300 3 | @@ -21,6 +21,7 @@ 4 | 5 | if HAVE_DOXYGEN 6 | doxyfile.stamp: 7 | + mkdir -p $(abs_builddir)/generated 8 | $(DOXYGEN) Doxyfile 9 | touch doxyfile.stamp 10 | 11 | -------------------------------------------------------------------------------- /mingw-w64-libiconv/0001-compile-relocatable-in-gnulib.mingw.patch: -------------------------------------------------------------------------------- 1 | --- libiconv-1.14/configure.orig 2013-03-30 13:27:14 +0400 2 | +++ libiconv-1.14/configure 2013-03-30 13:39:32 +0400 3 | @@ -20326,7 +20326,7 @@ 4 | 5 | 6 | 7 | - gl_LIBOBJS="$gl_LIBOBJS progreloc.$ac_objext" 8 | + gl_LIBOBJS="$gl_LIBOBJS progreloc.$ac_objext relocatable.$ac_objext" 9 | 10 | fi 11 | 12 | -------------------------------------------------------------------------------- /mingw-w64-glpk/fix-platform-check.patch: -------------------------------------------------------------------------------- 1 | --- glpk-4.65/src/env/stdc.c.orig 2018-04-29 17:40:03.665385500 -0400 2 | +++ glpk-4.65/src/env/stdc.c 2018-04-29 17:40:08.229017800 -0400 3 | @@ -49,7 +49,7 @@ 4 | 5 | /* MS Windows version *************************************************/ 6 | 7 | -#elif defined(__WOE__) 8 | +#elif defined(_WIN32) 9 | 10 | #include "stdc.h" 11 | 12 | -------------------------------------------------------------------------------- /mingw-w64-libgpg-error/02-fix-symbollist-on.mingw.patch: -------------------------------------------------------------------------------- 1 | --- libgpg-error-1.10/src/gpg-error.def.in.orig 2012-12-21 13:48:57 +0400 2 | +++ libgpg-error-1.10/src/gpg-error.def.in 2012-12-21 15:37:31 +0400 3 | @@ -4,7 +4,6 @@ 4 | 5 | #include 6 | 7 | -EXPORTS 8 | gpg_strerror @1 9 | gpg_strerror_r @2 10 | gpg_strsource @3 11 | -------------------------------------------------------------------------------- /mingw-w64-python3/3001-pathlib-path-sep.patch: -------------------------------------------------------------------------------- 1 | --- Python-3.8.1/Lib/pathlib.py.orig 2019-12-18 18:21:23.000000000 +0100 2 | +++ Python-3.8.1/Lib/pathlib.py 2019-12-23 11:17:46.731915100 +0100 3 | @@ -122,6 +122,8 @@ 4 | 5 | sep = '\\' 6 | altsep = '/' 7 | + if 'MSYSTEM' in os.environ: 8 | + sep, altsep = altsep, sep 9 | has_drv = True 10 | pathmod = ntpath 11 | 12 | -------------------------------------------------------------------------------- /mingw-w64-gdk-pixbuf2/gdk-pixbuf-query-loaders.hook.in: -------------------------------------------------------------------------------- 1 | [Trigger] 2 | Type = Path 3 | Operation = Install 4 | Operation = Upgrade 5 | Operation = Remove 6 | Target = @MINGW_HOOK_TARGET_PREFIX@/lib/gdk-pixbuf-2.0/2.10.0/loaders/*.dll 7 | 8 | [Action] 9 | Description = Probing GDK-Pixbuf loader modules... 10 | When = PostTransaction 11 | Exec = @MINGW_PREFIX@/bin/gdk-pixbuf-query-loaders --update-cache 12 | -------------------------------------------------------------------------------- /mingw-w64-lame/0008-skip-termcap.patch: -------------------------------------------------------------------------------- 1 | --- lame-3.100/frontend/console.c.orig 2017-10-15 12:56:52 +0200 2 | +++ lame-3.100/frontend/console.c 2017-10-15 12:57:16 +0200 3 | @@ -145,7 +145,7 @@ 4 | 5 | strcpy(mfp->str_up, "\033[A"); 6 | 7 | -#ifdef HAVE_TERMCAP 8 | +#if defined(HAVE_TERMCAP) && !defined(_WIN32) 9 | apply_termcap_settings(mfp); 10 | #endif /* TERMCAP_AVAILABLE */ 11 | 12 | -------------------------------------------------------------------------------- /mingw-w64-libxml2/0019-unused-flags.all.patch: -------------------------------------------------------------------------------- 1 | --- libxml2-2.9.0/runtest.c.orig 2013-03-31 14:51:01 +0400 2 | +++ libxml2-2.9.0/runtest.c 2013-03-31 15:48:15 +0400 3 | @@ -147,6 +147,8 @@ 4 | char directory[500]; 5 | int len; 6 | 7 | + (void) flags; 8 | + (void) errfunc; 9 | if ((pattern == NULL) || (pglob == NULL)) return(-1); 10 | 11 | strncpy(directory, pattern, 499); 12 | -------------------------------------------------------------------------------- /mingw-w64-openblas/001-defaultlib-not-for-gcc.patch: -------------------------------------------------------------------------------- 1 | --- OpenBLAS-0.2.20/Makefile.system.orig 2018-02-21 15:28:47.391323200 +0300 2 | +++ OpenBLAS-0.2.20/Makefile.system 2018-02-21 15:29:24.936470600 +0300 3 | @@ -254,7 +254,7 @@ 4 | NEED_PIC = 0 5 | NO_EXPRECISION = 1 6 | 7 | -EXTRALIB += -defaultlib:advapi32 8 | +EXTRALIB += -ladvapi32 9 | 10 | SUFFIX = obj 11 | PSUFFIX = pobj 12 | -------------------------------------------------------------------------------- /mingw-w64-libgpg-error/05-w32-gen.all.patch: -------------------------------------------------------------------------------- 1 | --- libgpg-error-1.13/src/Makefile.am.orig 2014-05-02 23:33:18.692420700 +0000 2 | +++ libgpg-error-1.13/src/Makefile.am 2014-05-02 23:40:08.833001900 +0000 3 | @@ -119,6 +119,8 @@ 4 | libgpg_error_la_DEPENDENCIES = $(gpg_error_res) gpg-error.def 5 | intllibs = 6 | 7 | +CPPFLAGS += $(DEFS) $(DEFAULT_INCLUDES) 8 | + 9 | # 10 | # }}} End Windows part 11 | # 12 | -------------------------------------------------------------------------------- /mingw-w64-expat/002-fix-tests.patch: -------------------------------------------------------------------------------- 1 | --- expat-2.2.1/run.sh.in.orig 2017-06-26 02:47:32.339456800 -0400 2 | +++ expat-2.2.1/run.sh.in 2017-06-26 02:55:25.747253400 -0400 3 | @@ -4,7 +4,11 @@ 4 | 5 | case "@host@" in 6 | *-mingw*) 7 | - exec wine "$@" 8 | + if [ "$(uname -o)"=="Msys" ]; then 9 | + exec "$@" 10 | + else 11 | + exec wine "$@" 12 | + fi 13 | ;; 14 | *) 15 | exec "$@" 16 | -------------------------------------------------------------------------------- /mingw-w64-openjpeg2/0005-sock-jpip.all.patch: -------------------------------------------------------------------------------- 1 | --- openjpeg-2.3.1/src/lib/openjpip/sock_manager.c.orig 2019-04-04 03:29:40.223754700 -0400 2 | +++ openjpeg-2.3.1/src/lib/openjpip/sock_manager.c 2019-04-04 03:35:01.793021400 -0400 3 | @@ -29,6 +29,8 @@ 4 | */ 5 | 6 | #ifdef _WIN32 7 | +#include 8 | +#include 9 | #include 10 | #ifdef _MSC_VER 11 | typedef SSIZE_T ssize_t; 12 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Declare files that always have LF line endings on checkout 2 | * text eol=lf 3 | 4 | # Denote all files that are truly binary and should not be modified 5 | *.7z binary 6 | *.a binary 7 | *.bz2 binary 8 | *.dll binary 9 | *.exe binary 10 | *.gz binary 11 | *.lib binary 12 | *.lzma binary 13 | *.msi binary 14 | *.rar binary 15 | *.so binary 16 | *.tar binary 17 | *.tgz binary 18 | *.xz binary 19 | *.zip binary -------------------------------------------------------------------------------- /mingw-w64-lame/0005-no-gtk.all.patch: -------------------------------------------------------------------------------- 1 | --- lame-3.99.5/configure.in.orig 2014-04-30 16:21:08.328453700 +0000 2 | +++ lame-3.99.5/configure.in 2014-04-30 16:21:39.141366400 +0000 3 | @@ -392,7 +392,7 @@ 4 | 5 | dnl configure use of features 6 | 7 | -AM_PATH_GTK(1.2.0, HAVE_GTK="yes", HAVE_GTK="no") 8 | +AC_SUBST(GTK_CFLAGS,[]) 9 | 10 | dnl ElectricFence malloc debugging 11 | AC_MSG_CHECKING(use of ElectricFence malloc debugging) 12 | -------------------------------------------------------------------------------- /mingw-w64-libspatialite/01-fix-pkgconfig.patch: -------------------------------------------------------------------------------- 1 | --- a/spatialite.pc.in 2014-10-28 12:53:37.868503600 +0300 2 | +++ b/spatialite.pc.in 2014-10-28 12:56:36.391156800 +0300 3 | @@ -8,4 +8,5 @@ 4 | Description: Spatial SQL database engine based on SQLite 5 | Version: @VERSION@ 6 | Libs: -L${libdir} -lspatialite 7 | +Libs.private: -lproj -lgeos_c -lgeos -lsqlite3 -ljpeg -lfreexl -lstdc++ -lxml2 -liconv -lz -lm -lws2_32 8 | Cflags: -I${includedir} 9 | -------------------------------------------------------------------------------- /mingw-w64-libssh2/fix-pkgconfig.patch: -------------------------------------------------------------------------------- 1 | --- libssh2-1.9.0/libssh2.pc.in.orig 2020-06-09 11:09:01.167808300 +0300 2 | +++ libssh2-1.9.0/libssh2.pc.in 2020-06-09 11:09:05.525429400 +0300 3 | @@ -12,6 +12,6 @@ 4 | Description: Library for SSH-based communication 5 | Version: @LIBSSH2VER@ 6 | Requires.private: @LIBSREQUIRED@ 7 | -Libs: -L${libdir} -lssh2 @LIBS@ 8 | +Libs: -L${libdir} -lssh2 9 | Libs.private: @LIBS@ 10 | Cflags: -I${includedir} 11 | -------------------------------------------------------------------------------- /mingw-w64-python3/0810-remove_path_max.default.patch: -------------------------------------------------------------------------------- 1 | diff -Naur Python-3.8.0-orig/Include/osdefs.h Python-3.8.0/Include/osdefs.h 2 | --- Python-3.8.0-orig/Include/osdefs.h 2019-10-14 16:34:47.000000000 +0300 3 | +++ Python-3.8.0/Include/osdefs.h 2019-10-22 10:03:43.426629200 +0300 4 | @@ -10,7 +10,6 @@ 5 | #ifdef MS_WINDOWS 6 | #define SEP L'\\' 7 | #define ALTSEP L'/' 8 | -#define MAXPATHLEN 256 9 | #define DELIM L';' 10 | #endif 11 | 12 | -------------------------------------------------------------------------------- /mingw-w64-drmingw/gcc-10.2.0.patch: -------------------------------------------------------------------------------- 1 | diff -Naur drmingw-0.9.2.a/src/common/debugger.cpp drmingw-0.9.2.b/src/common/debugger.cpp 2 | --- drmingw-0.9.2.a/src/common/debugger.cpp 2019-07-29 23:10:07.000000000 +0200 3 | +++ drmingw-0.9.2.b/src/common/debugger.cpp 2020-12-01 08:21:29.355323100 +0100 4 | @@ -21,6 +21,7 @@ 5 | 6 | #include 7 | #include 8 | +#include 9 | 10 | #include 11 | #include 12 | -------------------------------------------------------------------------------- /mingw-w64-gn/002-add-missing-header.patch: -------------------------------------------------------------------------------- 1 | diff --git a/src/base/files/file_enumerator_win.cc b/src/base/files/file_enumerator_win.cc 2 | index aa884ea8..7b6b3a35 100644 3 | --- a/src/base/files/file_enumerator_win.cc 4 | +++ b/src/base/files/file_enumerator_win.cc 5 | @@ -7,6 +7,7 @@ 6 | #include 7 | #include 8 | #include 9 | +#include 10 | 11 | #include "base/logging.h" 12 | #include "base/win/win_util.h" 13 | -------------------------------------------------------------------------------- /mingw-w64-gtk2/0003-Fix-notebook-tab-state-change.mingw.patch: -------------------------------------------------------------------------------- 1 | --- gtk+-2.24.8/gtk/gtknotebook.c.orig 2011-11-10 21:38:03 +0400 2 | +++ gtk+-2.24.8/gtk/gtknotebook.c 2011-12-11 03:07:52 +0400 3 | @@ -6101,7 +6101,7 @@ 4 | gtk_notebook_update_tab_states (GtkNotebook *notebook) 5 | { 6 | GList *list; 7 | - 8 | + return; 9 | for (list = notebook->children; list != NULL; list = list->next) 10 | { 11 | GtkNotebookPage *page = list->data; 12 | -------------------------------------------------------------------------------- /mingw-w64-opencv/0106-use-find-package-with-hdf5.patch: -------------------------------------------------------------------------------- 1 | --- a/modules/hdf/CMakeLists.txt 2 | +++ b/modules/hdf/CMakeLists.txt 3 | @@ -1,6 +1,6 @@ 4 | set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}) 5 | 6 | -if(WIN32) 7 | +if(MSVC) 8 | # windows cmake internal lookups are broken for now 9 | # will lookup for headers and shared libs given HDF_DIR env 10 | find_path(HDF5_INCLUDE_DIRS hdf5.h HINTS "$ENV{HDF5_DIR}\\..\\include") 11 | -------------------------------------------------------------------------------- /mingw-w64-quantlib/no-undefined.patch: -------------------------------------------------------------------------------- 1 | --- QuantLib-1.6.2/ql/Makefile.am.orig 2015-09-22 13:03:34.307586400 +0300 2 | +++ QuantLib-1.6.2/ql/Makefile.am 2015-09-22 13:03:46.796337400 +0300 3 | @@ -79,7 +79,7 @@ 4 | timegrid.cpp 5 | 6 | lib_LTLIBRARIES = libQuantLib.la 7 | -libQuantLib_la_LDFLAGS = -version-info 0:0:0 8 | +libQuantLib_la_LDFLAGS = -no-undefined -version-info 0:0:0 9 | 10 | libQuantLib_la_LIBADD = \ 11 | cashflows/libCashFlows.la \ 12 | -------------------------------------------------------------------------------- /mingw-w64-libraw/LibRaw_obsolete-macros.patch: -------------------------------------------------------------------------------- 1 | diff -rupN LibRaw-0.15.4/configure.ac LibRaw-0.15.4-new/configure.ac 2 | --- LibRaw-0.15.4/configure.ac 2013-08-23 04:55:48.000000000 +0200 3 | +++ LibRaw-0.15.4-new/configure.ac 2014-01-13 17:32:09.891037432 +0100 4 | @@ -7,7 +7,7 @@ AC_CONFIG_MACRO_DIR([m4]) 5 | # Tools to use 6 | AC_PROG_CXX 7 | AC_PROG_CC 8 | -AC_PROG_LIBTOOL 9 | +LT_INIT 10 | AC_ENABLE_SHARED 11 | AC_ENABLE_STATIC 12 | AC_LIBTOOL_WIN32_DLL 13 | -------------------------------------------------------------------------------- /mingw-w64-giflib/giflib-5.0.4-include-stddef.patch: -------------------------------------------------------------------------------- 1 | diff -rupN a/lib/gif_lib.h b/lib/gif_lib.h 2 | --- a/lib/gif_lib.h 2013-01-06 07:29:57.000000000 +0100 3 | +++ b/lib/gif_lib.h 2013-07-30 10:52:47.611034000 +0200 4 | @@ -19,6 +19,7 @@ extern "C" { 5 | #define GIF_OK 1 6 | 7 | #include 8 | +#include 9 | 10 | #define GIF_STAMP "GIFVER" /* First chars in file - GIF stamp. */ 11 | #define GIF_STAMP_LEN sizeof(GIF_STAMP) - 1 12 | -------------------------------------------------------------------------------- /mingw-w64-isl/isl-0.14.1-no-undefined.patch: -------------------------------------------------------------------------------- 1 | --- isl-0.14.1/Makefile.am.orig 2015-06-09 00:57:27.063200000 +0400 2 | +++ isl-0.14.1/Makefile.am 2015-06-09 00:59:20.587200000 +0400 3 | @@ -164,7 +164,7 @@ 4 | isl_vertices_private.h \ 5 | isl_vertices.c 6 | libisl_la_LIBADD = @MP_LIBS@ 7 | -libisl_la_LDFLAGS = -version-info @versioninfo@ \ 8 | +libisl_la_LDFLAGS = -version-info @versioninfo@ -no-undefined \ 9 | @MP_LDFLAGS@ 10 | 11 | isl_test_LDFLAGS = @MP_LDFLAGS@ 12 | -------------------------------------------------------------------------------- /mingw-w64-libxml2/0015-fix-unused-parameters-warning.all.patch: -------------------------------------------------------------------------------- 1 | --- libxml2-2.9.0/threads.c.orig 2013-03-31 15:27:37 +0400 2 | +++ libxml2-2.9.0/threads.c 2013-03-31 15:29:58 +0400 3 | @@ -1007,6 +1007,9 @@ 4 | ATTRIBUTE_UNUSED LPVOID lpvReserved) 5 | #endif 6 | { 7 | + /* Unused */ 8 | + (void)(hinstDLL); 9 | + (void)(lpvReserved); 10 | switch (fdwReason) { 11 | case DLL_THREAD_DETACH: 12 | if (globalkey != TLS_OUT_OF_INDEXES) { 13 | -------------------------------------------------------------------------------- /mingw-w64-libjpeg-turbo/libjpeg-turbo-1.3.1-libmng-compatibility.patch: -------------------------------------------------------------------------------- 1 | diff -Naur libjpeg-turbo-1.3.1-orig/jpeglib.h libjpeg-turbo-1.3.1/jpeglib.h 2 | --- libjpeg-turbo-1.3.1-orig/jpeglib.h 2013-01-19 03:42:31.000000000 +0400 3 | +++ libjpeg-turbo-1.3.1/jpeglib.h 2014-06-28 15:36:12.956400000 +0400 4 | @@ -28,6 +28,7 @@ 5 | #endif 6 | #include "jmorecfg.h" /* seldom changed options */ 7 | 8 | +#include 9 | 10 | #ifdef __cplusplus 11 | #ifndef DONT_USE_EXTERN_C 12 | -------------------------------------------------------------------------------- /mingw-w64-gpgme/0007-mkdefsinc-use-CPPFLAGS.patch: -------------------------------------------------------------------------------- 1 | --- a/doc/Makefile.am 2016-08-10 20:19:02.000000000 +0600 2 | +++ b/doc/Makefile.am 2018-08-15 14:54:01.497955600 +0600 3 | @@ -34,7 +34,7 @@ 4 | 5 | mkdefsinc: mkdefsinc.c Makefile $(top_builddir)/conf/config.h 6 | $(CC_FOR_BUILD) -I. -I$(top_builddir)/conf -I$(srcdir) \ 7 | - $(AM_CPPFLAGS) -o $@ $(srcdir)/mkdefsinc.c 8 | + $(AM_CPPFLAGS) $(CPPFLAGS) -o $@ $(srcdir)/mkdefsinc.c 9 | 10 | dist-hook: defsincdate 11 | 12 | -------------------------------------------------------------------------------- /mingw-w64-netcdf/0002-no-file.patch: -------------------------------------------------------------------------------- 1 | diff -urN netcdf-c-4.9.0/libsrc/posixio.c.orig netcdf-c-4.9.0/libsrc/posixio.c 2 | --- netcdf-c-4.9.0/libsrc/posixio.c.orig 2022-06-23 18:56:53.650461800 +0200 3 | +++ netcdf-c-4.9.0/libsrc/posixio.c 2022-06-23 18:57:11.850400400 +0200 4 | @@ -1634,7 +1634,7 @@ 5 | #endif 6 | if(fd < 0) 7 | { 8 | - status = errno; 9 | + status = errno ? errno : ENOENT; 10 | goto unwind_new; 11 | } 12 | *((int *)&nciop->fd) = fd; /* cast away const */ 13 | -------------------------------------------------------------------------------- /mingw-w64-zstd/install-pkgconfig.patch: -------------------------------------------------------------------------------- 1 | --- zstd-1.3.8/build/cmake/lib/CMakeLists.txt.orig 2019-03-11 10:23:49.374227000 +0300 2 | +++ zstd-1.3.8/build/cmake/lib/CMakeLists.txt 2019-03-11 10:24:14.334270800 +0300 3 | @@ -165,7 +165,7 @@ 4 | OUTPUT_NAME ${STATIC_LIBRARY_BASE_NAME}) 5 | endif () 6 | 7 | -if (UNIX) 8 | +if (NOT MSVC) 9 | # pkg-config 10 | set(PREFIX "${CMAKE_INSTALL_PREFIX}") 11 | set(LIBDIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}") 12 | -------------------------------------------------------------------------------- /mingw-w64-crt-git/mkgmtime.diff: -------------------------------------------------------------------------------- 1 | diff -aurp mingw-w64-v5.0.4-orig/mingw-w64-crt/lib32/msvcrt.def.in mingw-w64-v5.0.4/mingw-w64-crt/lib32/msvcrt.def.in 2 | --- mingw-w64-v5.0.4-orig/mingw-w64-crt/lib32/msvcrt.def.in 2018-07-07 11:12:33.000000000 +0200 3 | +++ mingw-w64-v5.0.4/mingw-w64-crt/lib32/msvcrt.def.in 2018-07-07 11:14:21.000000000 +0200 4 | @@ -345,6 +345,8 @@ _mbsupr 5 | _memccpy 6 | _memicmp 7 | _mkdir 8 | +_mkgmtime 9 | +_mkgmtime32 10 | _mktemp 11 | _msize 12 | _nextafter 13 | -------------------------------------------------------------------------------- /mingw-w64-file/0002-use-libsystre.patch: -------------------------------------------------------------------------------- 1 | diff --git a/configure.ac b.configure.ac 2 | index 33ce2bc..g242ab1 100644 3 | --- a/configure.ac 4 | +++ b/configure.ac 5 | @@ -185,7 +185,7 @@ 6 | AC_CHECK_LIB(seccomp, seccomp_init) 7 | fi 8 | if test "$MINGW" = 1; then 9 | - AC_CHECK_LIB(gnurx,regexec,,AC_MSG_ERROR([libgnurx is required to build file(1) with MinGW])) 10 | + AC_CHECK_LIB(gnurx,regexec,,LIBS="$LIBS -ltre -lintl -liconv") 11 | fi 12 | 13 | dnl See if we are cross-compiling 14 | -------------------------------------------------------------------------------- /mingw-w64-gtk2/0005-Fix-header-ref.all.patch: -------------------------------------------------------------------------------- 1 | --- gtk+-2.24.10/docs/reference/gdk/Makefile.am.orig 2011-08-16 06:30:51 +0400 2 | +++ gtk+-2.24.10/docs/reference/gdk/Makefile.am 2012-04-27 00:01:49 +0400 3 | @@ -37,7 +37,7 @@ 4 | 5 | # Extra files to add when scanning (relative to $srcdir) 6 | EXTRA_HFILES= \ 7 | - ../../../gdk/x11/gdkx.h 8 | + $(top_srcdir)/gdk/x11/gdkx.h 9 | 10 | # CFLAGS and LDFLAGS for compiling scan program. Only needed 11 | # if $(DOC_MODULE).types is non-empty. 12 | -------------------------------------------------------------------------------- /mingw-w64-nghttp2/002-versioned-dll.patch: -------------------------------------------------------------------------------- 1 | --- nghttp2-1.50.0/lib/CMakeLists.txt.orig 2022-10-31 19:10:27 +0000 2 | +++ nghttp2-1.50.0/lib/CMakeLists.txt 2022-10-31 19:08:45 +0000 3 | @@ -44,6 +44,7 @@ 4 | set_target_properties(nghttp2 PROPERTIES 5 | COMPILE_FLAGS "${WARNCFLAGS}" 6 | VERSION ${LT_VERSION} SOVERSION ${LT_SOVERSION} 7 | + RUNTIME_OUTPUT_NAME "nghttp2-${LT_SOVERSION}" 8 | C_VISIBILITY_PRESET hidden 9 | ) 10 | target_include_directories(nghttp2 INTERFACE 11 | -------------------------------------------------------------------------------- /mingw-w64-v8/zlib.gn: -------------------------------------------------------------------------------- 1 | import("//build/config/linux/pkg_config.gni") 2 | 3 | pkg_config("system_zlib") { 4 | packages = [ "zlib" ] 5 | defines = [ "USE_SYSTEM_ZLIB=1" ] 6 | } 7 | 8 | config("zlib_config") { 9 | if(is_win && !is_mingw && !is_component_build) { 10 | ldflags = ["/ignore:4099"] # needed on VCPKG CI builds 11 | } 12 | configs = [ 13 | ":system_zlib", 14 | ] 15 | } 16 | 17 | source_set("zlib") { 18 | public_configs = [ 19 | ":system_zlib", 20 | ] 21 | } 22 | -------------------------------------------------------------------------------- /mingw-w64-cfitsio/disable-curl-mingw.patch: -------------------------------------------------------------------------------- 1 | --- cfitsio/CMakeLists.txt.orig 2018-05-16 11:30:59.475341100 +0300 2 | +++ cfitsio/CMakeLists.txt 2018-05-16 11:31:06.292553100 +0300 3 | @@ -72,7 +72,7 @@ 4 | ENDIF() 5 | 6 | # Support for remote file drivers is not implemented for native Windows: 7 | -IF (NOT MSVC) 8 | +IF (NOT WIN32) 9 | # Find library needed for gethostbyname: 10 | CHECK_FUNCTION_EXISTS("gethostbyname" CMAKE_HAVE_GETHOSTBYNAME) 11 | IF(NOT CMAKE_HAVE_GETHOSTBYNAME) 12 | -------------------------------------------------------------------------------- /mingw-w64-gettext/05-always-use-libintl-vsnprintf.mingw.patch: -------------------------------------------------------------------------------- 1 | --- gettext-runtime/intl/printf.c.orig 2012-09-22 16:23:24 +0400 2 | +++ gettext-runtime/intl/printf.c 2012-09-22 23:45:29 +0400 3 | @@ -209,7 +209,7 @@ 4 | int 5 | libintl_vsnprintf (char *resultbuf, size_t length, const char *format, va_list args) 6 | { 7 | - if (strchr (format, '$') == NULL) 8 | + if (0 && (strchr (format, '$') == NULL)) 9 | return system_vsnprintf (resultbuf, length, format, args); 10 | else 11 | { 12 | -------------------------------------------------------------------------------- /mingw-w64-gflags/gflags-2.2.2.patch: -------------------------------------------------------------------------------- 1 | --- gflags-2.2.2/CMakeLists.txt.orig 2018-11-12 00:21:00.000000000 +0300 2 | +++ gflags-2.2.2/CMakeLists.txt 2018-11-19 13:23:58.872932000 +0300 3 | @@ -413,7 +413,7 @@ 4 | 5 | # ---------------------------------------------------------------------------- 6 | # installation directories 7 | -if (OS_WINDOWS) 8 | +if (OS_WINDOWS AND NOT MINGW) 9 | set (RUNTIME_INSTALL_DIR "bin") 10 | set (LIBRARY_INSTALL_DIR "lib") 11 | set (INCLUDE_INSTALL_DIR "include") 12 | -------------------------------------------------------------------------------- /mingw-w64-libssh/001-install-static-lib.patch: -------------------------------------------------------------------------------- 1 | --- libssh-0.9.3/src/CMakeLists.txt.orig 2019-12-11 10:29:17.304555400 +0300 2 | +++ libssh-0.9.3/src/CMakeLists.txt 2019-12-11 10:30:17.910661800 +0300 3 | @@ -412,6 +412,7 @@ 4 | if (WIN32) 5 | target_compile_definitions(ssh-static PUBLIC "LIBSSH_STATIC") 6 | endif (WIN32) 7 | + install(TARGETS ssh-static DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT libraries) 8 | endif (BUILD_STATIC_LIB) 9 | 10 | message(STATUS "Threads_FOUND=${Threads_FOUND}") 11 | -------------------------------------------------------------------------------- /mingw-w64-pkg-config/1030-fix-stat.all.patch: -------------------------------------------------------------------------------- 1 | --- glib-2.39.3/glib/gstdio.h.orig 2013-12-09 01:30:33.000000000 +0000 2 | +++ glib-2.39.3/glib/gstdio.h 2014-01-23 16:01:09.254148700 +0000 3 | @@ -27,7 +27,7 @@ 4 | 5 | G_BEGIN_DECLS 6 | 7 | -#if defined (_MSC_VER) && !defined(_WIN64) 8 | +#if (defined (__MINGW32__) || defined (_MSC_VER)) && !defined(_WIN64) 9 | 10 | /* Make it clear that we mean the struct with 32-bit st_size and 11 | * 32-bit st_*time fields as that is how the 32-bit GLib DLL normally 12 | -------------------------------------------------------------------------------- /mingw-w64-gtk2/0010-put-gtk-dll-into-path.mingw.patch: -------------------------------------------------------------------------------- 1 | --- gtk+-2.24.20/gtk/Makefile.am.orig 2013-07-28 22:06:06.408145200 +0000 2 | +++ gtk+-2.24.20/gtk/Makefile.am 2013-07-28 23:02:09.899754400 +0000 3 | @@ -3,7 +3,8 @@ 4 | -include $(INTROSPECTION_MAKEFILE) 5 | INTROSPECTION_GIRS = 6 | INTROSPECTION_SCANNER_ENV = \ 7 | - CC="$(CC)" 8 | + CC="$(CC)" \ 9 | + PATH="$(builddir):$(builddir)/.libs:$${PATH}:" 10 | INTROSPECTION_SCANNER_ARGS = \ 11 | --add-include-path=../gdk 12 | INTROSPECTION_COMPILER_ARGS = \ 13 | -------------------------------------------------------------------------------- /mingw-w64-opencv/0021-requires-vtk.patch: -------------------------------------------------------------------------------- 1 | --- a/cmake/OpenCVDetectVTK.cmake 2 | +++ b/cmake/OpenCVDetectVTK.cmake 3 | @@ -2,7 +2,7 @@ 4 | find_package(VTK QUIET NAMES vtk VTK) 5 | if(VTK_FOUND) 6 | if(NOT (VTK_VERSION VERSION_LESS "9.0.0") AND (VTK_VERSION VERSION_LESS "10.0.0")) # VTK 9.x 7 | - find_package(VTK 9 QUIET NAMES vtk COMPONENTS 8 | + find_package(VTK 9 REQUIRED NAMES vtk COMPONENTS 9 | FiltersExtraction 10 | FiltersSources 11 | FiltersTexture 12 | -------------------------------------------------------------------------------- /mingw-w64-python3/0570-mingw-add-BUILDIN_WIN32_MODULEs-time-msvcrt.patch: -------------------------------------------------------------------------------- 1 | diff -Naur Python-3.8.0-orig/Modules/Setup.config.in Python-3.8.0/Modules/Setup.config.in 2 | --- Python-3.8.0-orig/Modules/Setup.config.in 2019-10-22 10:01:08.018156200 +0300 3 | +++ Python-3.8.0/Modules/Setup.config.in 2019-10-22 10:02:53.303741100 +0300 4 | @@ -11,4 +11,5 @@ 5 | 6 | # build-in modules for windows platform: 7 | @USE_WIN32_MODULE@winreg ../PC/winreg.c 8 | +@USE_WIN32_MODULE@msvcrt -DPy_BUILD_CORE ../PC/msvcrtmodule.c 9 | 10 | -------------------------------------------------------------------------------- /mingw-w64-tk/007-mingw-w64-compatibility-fix.patch: -------------------------------------------------------------------------------- 1 | diff -Naur tk8.6.5-orig/win/tkWin32Dll.c tk8.6.5/win/tkWin32Dll.c 2 | --- tk8.6.5-orig/win/tkWin32Dll.c 2014-02-10 23:03:05.000000000 +0400 3 | +++ tk8.6.5/win/tkWin32Dll.c 2016-03-03 09:21:53.742037200 +0300 4 | @@ -12,7 +12,7 @@ 5 | #include "tkWinInt.h" 6 | #ifndef STATIC_BUILD 7 | 8 | -#ifdef HAVE_NO_SEH 9 | +#if defined(HAVE_NO_SEH) && __MINGW64_VERSION_MAJOR < 3 10 | 11 | /* 12 | * Unlike Borland and Microsoft, we don't register exception handlers by 13 | -------------------------------------------------------------------------------- /mingw-w64-pkg-config/0001-fix-double-slash-in-test.patch: -------------------------------------------------------------------------------- 1 | --- pkg-config-0.29-orig/check/check-sysroot 2 | +++ pkg-config-0.29/check/check-sysroot 3 | @@ -9,7 +9,7 @@ 4 | # MSYS mangles / paths to its own root in windows format. This probably 5 | # means sysroot doesn't work there, but match what pkg-config passes 6 | # back anyway. 7 | -[ "$OSTYPE" = msys ] && root=$(cd / && pwd -W) || root= 8 | +[ "$OSTYPE" = msys ] && root=$(cd / && pwd -W) && root=${root%/} || root= 9 | 10 | RESULT="" 11 | run_test --cflags simple 12 | -------------------------------------------------------------------------------- /mingw-w64-raptor2/no-undefined.patch: -------------------------------------------------------------------------------- 1 | --- raptor2-2.0.15/src/Makefile.am.orig 2016-01-27 13:33:28.602246500 +0300 2 | +++ raptor2-2.0.15/src/Makefile.am 2016-01-27 13:33:37.351634000 +0300 3 | @@ -171,7 +171,7 @@ 4 | libraptor2_la_LIBADD += $(top_builddir)/librdfa/librdfa.la 5 | endif 6 | 7 | -libraptor2_la_LDFLAGS = -version-info @RAPTOR_LIBTOOL_VERSION@ \ 8 | +libraptor2_la_LDFLAGS = -version-info @RAPTOR_LIBTOOL_VERSION@ -no-undefined \ 9 | @RAPTOR_LDFLAGS@ $(MEM_LIBS) 10 | libraptor2_la_LIBADD += @LTLIBOBJS@ 11 | 12 | -------------------------------------------------------------------------------- /mingw-w64-jq/no-undefined.patch: -------------------------------------------------------------------------------- 1 | --- jq-1.5/Makefile.am.orig 2016-02-29 11:00:10.368042000 +0300 2 | +++ jq-1.5/Makefile.am 2016-02-29 11:00:19.805042000 +0300 3 | @@ -43,7 +43,7 @@ 4 | lib_LTLIBRARIES = libjq.la 5 | libjq_la_SOURCES = ${LIBJQ_SRC} 6 | libjq_la_LIBADD = -lm 7 | -libjq_la_LDFLAGS = $(onig_LDFLAGS) -export-symbols-regex '^j[qv]_' -version-info 1:4:0 8 | +libjq_la_LDFLAGS = $(onig_LDFLAGS) -export-symbols-regex '^j[qv]_' -version-info 1:4:0 -no-undefined 9 | 10 | if WIN32 11 | libjq_la_LIBADD += -lshlwapi 12 | -------------------------------------------------------------------------------- /mingw-w64-libgpg-error/10-gpg-error-static-linking.patch: -------------------------------------------------------------------------------- 1 | --- libgpg-error-1.37/src/gpg-error.pc.in.orig 2020-05-22 12:39:05.295785700 +0300 2 | +++ libgpg-error-1.37/src/gpg-error.pc.in 2020-05-22 12:40:43.406658300 +0300 3 | @@ -11,5 +11,5 @@ 4 | Version: @PACKAGE_VERSION@ 5 | Cflags: @GPG_ERROR_CONFIG_CFLAGS@ 6 | Libs: @GPG_ERROR_CONFIG_LIBS@ 7 | -Libs.private: @GPG_ERROR_CONFIG_LIBS_PRIVATE@ 8 | +Libs.private: @GPG_ERROR_CONFIG_LIBS_PRIVATE@ @LIBINTL@ @LIBICONV@ 9 | URL: https://www.gnupg.org/software/libgpg-error/index.html 10 | -------------------------------------------------------------------------------- /mingw-w64-libvpx/0005-fix-exports.mingw.patch: -------------------------------------------------------------------------------- 1 | diff -Naur libvpx-1.4.0-orig/vpx/exports_enc libvpx-1.4.0/vpx/exports_enc 2 | --- libvpx-1.4.0-orig/vpx/exports_enc 2015-04-03 21:49:19.000000000 +0300 3 | +++ libvpx-1.4.0/vpx/exports_enc 2015-04-07 09:41:36.904200000 +0300 4 | @@ -2,6 +2,7 @@ 5 | text vpx_codec_enc_config_set 6 | text vpx_codec_enc_init_multi_ver 7 | text vpx_codec_enc_init_ver 8 | +text vpx_codec_enc_init_multi_ver 9 | text vpx_codec_encode 10 | text vpx_codec_get_cx_data 11 | text vpx_codec_get_global_headers 12 | -------------------------------------------------------------------------------- /mingw-w64-ncurses/001-use-libsystre.patch: -------------------------------------------------------------------------------- 1 | --- ncurses-6.2/configure.orig 2020-02-17 11:53:12.221966500 +0200 2 | +++ ncurses-6.2/configure 2020-02-17 11:53:18.504338200 +0200 3 | @@ -17808,6 +17808,11 @@ 4 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then 5 | 6 | cf_add_libs="$LIBS" 7 | +case $host_os in #(vi 8 | +mingw*) 9 | + cf_add_libs="$cf_add_libs -ltre -lintl -liconv" 10 | + ;; 11 | +esac 12 | # reverse order 13 | cf_add_0lib= 14 | for cf_add_1lib in -l$cf_regex_lib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 15 | -------------------------------------------------------------------------------- /mingw-w64-meson/install-man.patch: -------------------------------------------------------------------------------- 1 | --- meson-0.48.0/setup.py.orig 2018-09-22 15:22:03.000000000 +0200 2 | +++ meson-0.48.0/setup.py 2018-09-23 13:48:10.509756600 +0200 3 | @@ -36,7 +36,7 @@ 4 | 'mesonbuild.scripts', 5 | 'mesonbuild.wrap'] 6 | data_files = [] 7 | -if sys.platform != 'win32': 8 | +if sys.platform != 'win32' or 1: 9 | # Only useful on UNIX-like systems 10 | data_files = [('share/man/man1', ['man/meson.1']), 11 | ('share/polkit-1/actions', ['data/com.mesonbuild.install.policy'])] 12 | -------------------------------------------------------------------------------- /mingw-w64-aws-sdk-cpp/BuildAwsChecksums.patch: -------------------------------------------------------------------------------- 1 | diff -aurp AwsChecksums/source/intel/cpuid.c AwsChecksums-orig/source/intel/cpuid.c 2 | --- AwsChecksums/source/intel/cpuid.c 2020-08-08 21:25:59.314437100 +0000 3 | +++ AwsChecksums-orig/source/intel/cpuid.c 2020-08-08 21:25:44.210636300 +0000 4 | @@ -40,4 +40,9 @@ int aws_checksums_do_cpu_id(int32_t *cpu 5 | 6 | +#else 7 | +int aws_checksums_do_cpu_id(int32_t *cpuid) { 8 | + (void)cpuid; 9 | + return 0; 10 | +} 11 | #endif /* defined(__x86_64__) && !(defined(__GNUC__) && defined(DEBUG_BUILD)) */ 12 | -------------------------------------------------------------------------------- /mingw-w64-binutils/0310-reproducible-import-libraries.patch: -------------------------------------------------------------------------------- 1 | Description: Make DLL import libraries reproducible 2 | Author: Benjamin Moody 3 | Bug-Debian: https://bugs.debian.org/915055 4 | 5 | --- a/upstream/ld/pe-dll.c 6 | +++ b/upstream/ld/pe-dll.c 7 | @@ -2844,6 +2844,7 @@ 8 | 9 | bfd_set_format (outarch, bfd_archive); 10 | outarch->has_armap = 1; 11 | + outarch->flags |= BFD_DETERMINISTIC_OUTPUT; 12 | 13 | /* Work out a reasonable size of things to put onto one line. */ 14 | ar_head = make_head (outarch); 15 | -------------------------------------------------------------------------------- /mingw-w64-boost/boost-1.57.0-python-libpython_dep.patch: -------------------------------------------------------------------------------- 1 | Index: boost_1_57_0/tools/build/src/tools/python.jam 2 | =================================================================== 3 | --- boost_1_57_0/tools/build/src/tools/python.jam (revision 50406) 4 | +++ boost_1_57_0/tools/build/src/tools/python.jam (working copy) 5 | @@ -994,7 +994,7 @@ 6 | else 7 | { 8 | alias python_for_extensions 9 | - : 10 | + : python 11 | : $(target-requirements) 12 | : 13 | : $(usage-requirements) 14 | -------------------------------------------------------------------------------- /mingw-w64-tktable/001-fix-detect-mingw.patch: -------------------------------------------------------------------------------- 1 | --- Tktable2.10/tclconfig/tcl.m4.orig 2015-07-29 09:08:46.206702700 +0300 2 | +++ Tktable2.10/tclconfig/tcl.m4 2015-07-29 09:08:53.774459400 +0300 3 | @@ -2952,7 +2952,7 @@ 4 | AC_MSG_RESULT([ok (TEA ${TEA_VERSION})]) 5 | fi 6 | case "`uname -s`" in 7 | - *win32*|*WIN32*|*CYGWIN_NT*|*CYGWIN_9*|*CYGWIN_ME*|*MINGW32_*) 8 | + *win32*|*WIN32*|*CYGWIN_NT*|*CYGWIN_9*|*CYGWIN_ME*|*MINGW*) 9 | AC_CHECK_PROG(CYGPATH, cygpath, cygpath -w, echo) 10 | EXEEXT=".exe" 11 | TEA_PLATFORM="windows" 12 | -------------------------------------------------------------------------------- /mingw-w64-libassuan/0004-enable-gnu.mingw.patch: -------------------------------------------------------------------------------- 1 | --- libassuan-2.1.1/configure.ac.orig 2013-10-16 13:39:08.255597600 +0000 2 | +++ libassuan-2.1.1/configure.ac 2013-10-16 13:45:42.764693900 +0000 3 | @@ -234,6 +234,11 @@ 4 | AM_CONDITIONAL(HAVE_W32CE_SYSTEM, test "$have_w32ce_system" = yes) 5 | AM_CONDITIONAL(HAVE_W64_SYSTEM, test "$have_w64_system" = yes) 6 | 7 | +case "${host}" in 8 | + *-w64-mingw32*) 9 | + AC_DEFINE(_GNU_SOURCE, 1, Activate GNU extensions for mingw-w64) 10 | + ;; 11 | +esac 12 | 13 | # 14 | # Provide information about the build. 15 | -------------------------------------------------------------------------------- /mingw-w64-meson/0002-Default-to-sys.prefix-as-the-default-prefix.patch: -------------------------------------------------------------------------------- 1 | diff -ur meson-0.57.0.orig/mesonbuild/utils/universal.py meson-0.57.0/mesonbuild/mesonlib/universal.py 2 | --- meson-0.57.0.orig/mesonbuild/utils/universal.py 2021-02-15 19:57:57.698044600 +0530 3 | +++ meson-0.57.0/mesonbuild/utils/universal.py 2021-02-15 20:04:07.519197200 +0530 4 | @@ -865,6 +865,8 @@ 5 | 6 | 7 | def default_prefix() -> str: 8 | + if is_windows() and 'MSYSTEM' in os.environ: 9 | + return sys.prefix 10 | return 'c:/' if is_windows() else '/usr/local' 11 | -------------------------------------------------------------------------------- /mingw-w64-libassuan/0005-better-check-for-stpcpy.mingw.patch: -------------------------------------------------------------------------------- 1 | --- libassuan-2.1.1/configure.ac.orig 2013-10-16 13:46:05.499080800 +0000 2 | +++ libassuan-2.1.1/configure.ac 2013-10-16 13:52:41.672888500 +0000 3 | @@ -380,7 +380,7 @@ 4 | AC_REPLACE_FUNCS(isascii) 5 | AC_REPLACE_FUNCS(putc_unlocked) 6 | AC_REPLACE_FUNCS(memrchr) 7 | -AC_REPLACE_FUNCS(stpcpy) 8 | +AC_CHECK_DECLS([stpcpy], [AC_DEFINE([HAVE_STPCPY], [1], [Define to 1 if stpcpy is available])], [AC_LIBOBJ(stpcpy)]) 9 | AC_CHECK_HEADERS(unistd.h) 10 | AC_REPLACE_FUNCS(setenv) 11 | AC_REPLACE_FUNCS(vasprintf) 12 | -------------------------------------------------------------------------------- /mingw-w64-libmariadbclient/003-gcc-fix-use_VA_ARGS.patch: -------------------------------------------------------------------------------- 1 | --- mariadb-connector-c-3.1.7-src/libmariadb/secure/schannel_certs.c.orig 2020-04-22 12:08:43.105188700 +0300 2 | +++ mariadb-connector-c-3.1.7-src/libmariadb/secure/schannel_certs.c 2020-04-22 12:34:03.471915300 +0300 3 | @@ -66,7 +66,7 @@ 4 | #define FAIL(...) \ 5 | do{\ 6 | status = get_last_error();\ 7 | - ma_format_win32_error(errmsg, errmsg_len, status, __VA_ARGS__);\ 8 | + ma_format_win32_error(errmsg, errmsg_len, status, ##__VA_ARGS__);\ 9 | goto cleanup;\ 10 | } while (0) 11 | 12 | -------------------------------------------------------------------------------- /mingw-w64-libyaml/0001-Proper-mingw-YAML_DECLARE-definition.patch: -------------------------------------------------------------------------------- 1 | diff -Naur libyaml-0.2.1.orig/include/yaml.h libyaml-0.2.1/include/yaml.h 2 | --- libyaml-0.2.1.orig/include/yaml.h 2018-08-11 22:56:41.072390100 -0400 3 | +++ libyaml-0.2.1/include/yaml.h 2018-08-11 23:21:03.942460800 -0400 4 | @@ -28,7 +28,7 @@ 5 | 6 | #if defined(__MINGW32__) 7 | # define YAML_DECLARE(type) type 8 | -#elif defined(_WIN32) 9 | +#elif defined(_MSC_VER) 10 | # if defined(YAML_DECLARE_STATIC) 11 | # define YAML_DECLARE(type) type 12 | # elif defined(YAML_DECLARE_EXPORT) 13 | -------------------------------------------------------------------------------- /mingw-w64-meson/color-term.patch: -------------------------------------------------------------------------------- 1 | --- meson-0.50.1/mesonbuild/mlog.py.orig 2019-03-06 21:48:10.000000000 +0100 2 | +++ meson-0.50.1/mesonbuild/mlog.py 2019-04-17 17:46:10.229092600 +0200 3 | @@ -31,7 +31,7 @@ 4 | stdout = kernel.GetStdHandle(-11) 5 | mode = DWORD() 6 | if not kernel.GetConsoleMode(stdout, byref(mode)): 7 | - return False 8 | + return os.isatty(sys.stdout.fileno()) 9 | # ENABLE_VIRTUAL_TERMINAL_PROCESSING == 0x4 10 | # If the call to enable VT processing fails (returns 0), we fallback to 11 | # original behavior 12 | -------------------------------------------------------------------------------- /mingw-w64-lame/0006-dont-use-outdated-symbol-list.patch: -------------------------------------------------------------------------------- 1 | --- lame-3.100/libmp3lame/Makefile.am.orig 2016-01-29 22:06:26.000000000 +0100 2 | +++ lame-3.100/libmp3lame/Makefile.am 2017-10-15 11:40:06.357621100 +0200 3 | @@ -22,7 +22,6 @@ 4 | libmp3lame_la_LIBADD = $(cpu_ldadd) $(vector_ldadd) $(decoder_ldadd) \ 5 | $(CONFIG_MATH_LIB) 6 | libmp3lame_la_LDFLAGS = -version-info @LIB_MAJOR_VERSION@:@LIB_MINOR_VERSION@ \ 7 | - -export-symbols $(top_srcdir)/include/libmp3lame.sym \ 8 | -no-undefined 9 | 10 | INCLUDES = @INCLUDES@ -I$(top_srcdir)/mpglib -I$(top_builddir) 11 | -------------------------------------------------------------------------------- /mingw-w64-python3/2051-set-venv-activate-path-unix.patch: -------------------------------------------------------------------------------- 1 | diff -Naur Python-3.8.0-orig/Lib/venv/scripts/common/activate Python-3.8.0/Lib/venv/scripts/common/activate 2 | --- Python-3.8.0-orig/Lib/venv/scripts/common/activate 2019-10-14 16:34:47.000000000 +0300 3 | +++ Python-3.8.0/Lib/venv/scripts/common/activate 2019-10-22 10:05:22.783203700 +0300 4 | @@ -37,7 +37,7 @@ 5 | # unset irrelevant variables 6 | deactivate nondestructive 7 | 8 | -VIRTUAL_ENV="__VENV_DIR__" 9 | +VIRTUAL_ENV=$(cygpath "__VENV_DIR__") 10 | export VIRTUAL_ENV 11 | 12 | _OLD_VIRTUAL_PATH="$PATH" 13 | -------------------------------------------------------------------------------- /mingw-w64-libtre-git/002-pointer-cast.patch: -------------------------------------------------------------------------------- 1 | --- libtre/lib/tre-internal.h.orig 2015-01-13 23:45:59.325000000 +0300 2 | +++ libtre/lib/tre-internal.h 2015-01-14 00:12:06.954200000 +0300 3 | @@ -127,8 +127,8 @@ 4 | /* Returns number of bytes to add to (char *)ptr to make it 5 | properly aligned for the type. */ 6 | #define ALIGN(ptr, type) \ 7 | - ((((long)ptr) % sizeof(type)) \ 8 | - ? (sizeof(type) - (((long)ptr) % sizeof(type))) \ 9 | + ((((intptr_t)ptr) % sizeof(type)) \ 10 | + ? (sizeof(type) - (((intptr_t)ptr) % sizeof(type))) \ 11 | : 0) 12 | 13 | #undef MAX 14 | -------------------------------------------------------------------------------- /mingw-w64-python-setuptools/0001-mingw-python-fix.patch: -------------------------------------------------------------------------------- 1 | --- setuptools-51.1.2/setuptools/command/easy_install.py.orig 2021-01-09 00:44:52.000000000 +0530 2 | +++ setuptools-51.1.2/setuptools/command/easy_install.py 2021-01-12 11:40:02.894168900 +0530 3 | @@ -1314,8 +1314,8 @@ 4 | ) 5 | 6 | DEFAULT_SCHEME = dict( 7 | - install_dir='$base/Lib/site-packages', 8 | - script_dir='$base/Scripts', 9 | + install_dir='$base/lib/python$py_version_short/site-packages', 10 | + script_dir='$base/bin', 11 | ) 12 | 13 | def _expand(self, *attrs): 14 | -------------------------------------------------------------------------------- /mingw-w64-python3/0840-gdbm-module-includes.patch: -------------------------------------------------------------------------------- 1 | diff -Naur Python-3.8.0-orig/Modules/_gdbmmodule.c Python-3.8.0/Modules/_gdbmmodule.c 2 | --- Python-3.8.0-orig/Modules/_gdbmmodule.c 2019-10-14 16:34:47.000000000 +0300 3 | +++ Python-3.8.0/Modules/_gdbmmodule.c 2019-10-22 10:03:53.161046300 +0300 4 | @@ -11,7 +11,7 @@ 5 | #include 6 | #include "gdbm.h" 7 | 8 | -#if defined(WIN32) && !defined(__CYGWIN__) 9 | +#if defined(WIN32) && !defined(__CYGWIN__) && !defined(__MINGW32__) 10 | #include "gdbmerrno.h" 11 | extern const char * gdbm_strerror(gdbm_error); 12 | #endif 13 | -------------------------------------------------------------------------------- /mingw-w64-json-c/001-install-private-header.patch: -------------------------------------------------------------------------------- 1 | --- json-c-json-c-0.13-20171207/Makefile.am.orig 2018-01-18 14:53:42.975721500 +0300 2 | +++ json-c-json-c-0.13-20171207/Makefile.am 2018-01-18 14:54:09.689408500 +0300 3 | @@ -26,6 +26,7 @@ 4 | json_inttypes.h \ 5 | json_object.h \ 6 | json_object_iterator.h \ 7 | + json_object_private.h \ 8 | json_pointer.h \ 9 | json_tokener.h \ 10 | json_util.h \ 11 | @@ -34,7 +35,6 @@ 12 | printbuf.h 13 | 14 | noinst_HEADERS=\ 15 | - json_object_private.h \ 16 | math_compat.h \ 17 | strdup_compat.h \ 18 | snprintf_compat.h \ 19 | -------------------------------------------------------------------------------- /mingw-w64-pkg-config/1005-glib-send-log-messages-to-correct-stdout-and-stderr.patch: -------------------------------------------------------------------------------- 1 | diff -Naur glib-2.46.0-orig/glib/gmessages.c glib-2.46.0/glib/gmessages.c 2 | --- glib-2.46.0-orig/glib/gmessages.c 2015-09-22 09:09:00.356212800 +0300 3 | +++ glib-2.46.0/glib/gmessages.c 2015-09-22 09:09:01.292110800 +0300 4 | @@ -932,7 +932,7 @@ 5 | if ((log_level & G_LOG_FLAG_FATAL) != 0 && !g_test_initialized ()) 6 | win32_keep_fatal_message = TRUE; 7 | #endif 8 | - return to_stdout ? 1 : 2; 9 | + return to_stdout ? fileno(stdout) : fileno(stderr); 10 | } 11 | 12 | typedef struct { 13 | -------------------------------------------------------------------------------- /mingw-w64-python-setuptools/0005-execv-warning.patch: -------------------------------------------------------------------------------- 1 | --- setuptools-51.1.2/launcher.c.orig 2021-01-12 11:59:21.949463100 +0530 2 | +++ setuptools-51.1.2/launcher.c 2021-01-12 12:05:36.267872900 +0530 3 | @@ -315,7 +315,11 @@ 4 | 5 | if (is_gui) { 6 | /* Use exec, we don't need to wait for the GUI to finish */ 7 | +#ifdef __MINGW32__ 8 | + _execv(ptr, (const char * const *)(newargs)); 9 | +#else 10 | execv(ptr, (const char * const *)(newargs)); 11 | +#endif 12 | return fail("Could not exec %s", ptr); /* shouldn't get here! */ 13 | } 14 | 15 | -------------------------------------------------------------------------------- /mingw-w64-libgpg-error/01-mingw32-fix-potomo.mingw.patch: -------------------------------------------------------------------------------- 1 | --- libgpg-error-1.10/potomo 2010-10-20 18:27:58 +0400 2 | +++ libgpg-error-1.10/potomo 2011-04-03 15:05:06 +0400 3 | @@ -57,7 +57,7 @@ 4 | ;; 5 | *) 6 | echo "potomo: '$infile' converting from $fromset to utf-8" >&2 7 | - iconv --silent --from-code=$fromset --to-code=utf-8 < "$infile" |\ 8 | + iconv -s --from-code=$fromset --to-code=utf-8 < "$infile" |\ 9 | sed "/^\"Content-Type:/ s/charset=[a-zA-Z0-9_-]*/charset=utf-8/"|\ 10 | msgfmt --output-file="$outfile" - 11 | ;; 12 | -------------------------------------------------------------------------------- /mingw-w64-z3/005-fix-clang.patch: -------------------------------------------------------------------------------- 1 | --- z3-z3-4.8.9/src/util/hwf.cpp.orig 2021-02-04 20:15:45.155087700 -0800 2 | +++ z3-z3-4.8.9/src/util/hwf.cpp 2021-02-04 20:16:28.030101000 -0800 3 | @@ -48,7 +48,7 @@ 4 | // clear to the compiler what instructions should be used. E.g., for sqrt(), the Windows compiler selects 5 | // the x87 FPU, even when /arch:SSE2 is on. 6 | // Luckily, these are kind of standardized, at least for Windows/Linux/macOS. 7 | -#if defined(__clang__) || defined(_M_ARM) && defined(_M_ARM64) 8 | +#if defined(_M_ARM) && defined(_M_ARM64) 9 | #undef USE_INTRINSICS 10 | #endif 11 | 12 | -------------------------------------------------------------------------------- /mingw-w64-gpgme/0008-no-py2.patch: -------------------------------------------------------------------------------- 1 | --- gpgme-1.14.0/configure.ac.orig 2020-09-05 15:02:43.720753300 +0200 2 | +++ gpgme-1.14.0/configure.ac 2020-09-05 15:03:38.558261200 +0200 3 | @@ -425,7 +425,7 @@ 4 | if test "$found_py" = "1" -o "$found_py3" = "1"; then 5 | # Reset everything, so that we can look for another Python. 6 | m4_foreach([mym4pythonver], 7 | - [[2.7],[3.4],[3.5],[3.6],[3.7],[3.8],[3.9],[all]], 8 | + [[3.4],[3.5],[3.6],[3.7],[3.8],[3.9],[all]], 9 | [unset PYTHON 10 | unset PYTHON_VERSION 11 | unset PYTHON_CPPFLAGS 12 | -------------------------------------------------------------------------------- /mingw-w64-libssh/002-libssh-fix-pkgconfig.patch: -------------------------------------------------------------------------------- 1 | diff -Naur libssh-0.8.1.orig/libssh.pc.cmake libssh-0.8.1/libssh.pc.cmake 2 | --- libssh-0.8.1.orig/libssh.pc.cmake 2018-08-21 08:30:18.361515500 -0400 3 | +++ libssh-0.8.1/libssh.pc.cmake 2018-08-21 08:37:17.353829600 -0400 4 | @@ -1,7 +1,7 @@ 5 | prefix=@CMAKE_INSTALL_PREFIX@ 6 | exec_prefix=${prefix} 7 | -libdir=@CMAKE_INSTALL_FULL_LIBDIR@ 8 | -includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@ 9 | +libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@ 10 | +includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@ 11 | 12 | Name: @PROJECT_NAME@ 13 | Description: The SSH Library 14 | -------------------------------------------------------------------------------- /mingw-w64-libde265/003-fix-pkgconfig-provide-includedir.patch: -------------------------------------------------------------------------------- 1 | --- libde265-1.0.3/libde265.pc.in.orig 2016-06-23 11:31:00.000000000 +0300 2 | +++ libde265-1.0.3/libde265.pc.in 2019-06-11 09:48:52.508268000 +0300 3 | @@ -1,7 +1,7 @@ 4 | prefix=@prefix@ 5 | exec_prefix=@exec_prefix@ 6 | libdir=@libdir@ 7 | -includedir=@includedir@ 8 | +includedir=@includedir@/@PACKAGE@ 9 | 10 | Name: libde265 11 | Description: H.265/HEVC video decoder. 12 | @@ -10,4 +10,4 @@ 13 | Requires: 14 | Libs: -lde265 -L@libdir@ 15 | Libs.private: @LIBS@ -lstdc++ 16 | -Cflags: -I@includedir@ 17 | +Cflags: -I@includedir@/@PACKAGE@ 18 | -------------------------------------------------------------------------------- /mingw-w64-python3/0430-MINGW-find-import-library.patch: -------------------------------------------------------------------------------- 1 | diff -Naur Python-3.8.0-orig/Lib/distutils/cygwinccompiler.py Python-3.8.0/Lib/distutils/cygwinccompiler.py 2 | --- Python-3.8.0-orig/Lib/distutils/cygwinccompiler.py 2019-10-22 10:02:00.856449000 +0300 3 | +++ Python-3.8.0/Lib/distutils/cygwinccompiler.py 2019-10-22 10:02:01.979651000 +0300 4 | @@ -93,6 +93,7 @@ 5 | obj_extension = ".o" 6 | static_lib_extension = ".a" 7 | shared_lib_extension = ".dll" 8 | + dylib_lib_extension = ".dll.a" 9 | static_lib_format = "lib%s%s" 10 | shared_lib_format = "%s%s" 11 | exe_extension = ".exe" 12 | -------------------------------------------------------------------------------- /mingw-w64-tk/003-fix-forbidden-colon-in-paths.mingw.patch: -------------------------------------------------------------------------------- 1 | diff -Naur tk8.6.5-orig/unix/installManPage tk8.6.5/unix/installManPage 2 | --- tk8.6.5-orig/unix/installManPage 2016-02-29 22:13:21.000000000 +0300 3 | +++ tk8.6.5/unix/installManPage 2016-03-03 09:21:52.517037200 +0300 4 | @@ -103,7 +103,7 @@ 5 | Target=$Target.$Section$Suffix 6 | rm -f $Dir/$Target $Dir/$Target.* 7 | if test -z "$First" ; then 8 | - First=$Target 9 | + First=$(echo $Target | sed -e 's/:/-/g') 10 | sed -e "/man\.macros/r $SrcDir/man.macros" -e "/man\.macros/d" \ 11 | $ManPage > $Dir/$First 12 | chmod 444 $Dir/$First 13 | -------------------------------------------------------------------------------- /mingw-w64-libheif/001-fix-pkgconfig-provide-includedir.patch: -------------------------------------------------------------------------------- 1 | --- libheif-1.4.0/libheif.pc.in.orig 2019-06-11 09:44:59.145657700 +0300 2 | +++ libheif-1.4.0/libheif.pc.in 2019-06-11 09:45:12.764481600 +0300 3 | @@ -1,7 +1,7 @@ 4 | prefix=@prefix@ 5 | exec_prefix=@exec_prefix@ 6 | libdir=@libdir@ 7 | -includedir=@includedir@ 8 | +includedir=@includedir@/@PACKAGE@ 9 | builtin_h265_decoder=@have_libde265@ 10 | builtin_h265_encoder=@have_x265@ 11 | 12 | @@ -12,4 +12,4 @@ 13 | Requires: 14 | Libs: -L@libdir@ -lheif 15 | Libs.private: @LIBS@ -lstdc++ 16 | -Cflags: -I@includedir@ 17 | +Cflags: -I@includedir@/@PACKAGE@ 18 | -------------------------------------------------------------------------------- /mingw-w64-python3/0990-MINGW-link-with-additional-library.patch: -------------------------------------------------------------------------------- 1 | diff -Naur Python-3.8.0-orig/configure.ac Python-3.8.0/configure.ac 2 | --- Python-3.8.0-orig/configure.ac 2019-10-22 10:03:48.434238000 +0300 3 | +++ Python-3.8.0/configure.ac 2019-10-22 10:04:20.273893900 +0300 4 | @@ -5668,6 +5668,15 @@ 5 | done 6 | AC_MSG_RESULT(done) 7 | 8 | +# For mingw build need additional library for linking 9 | +case $host in 10 | + *-*-mingw*) 11 | + LIBS="$LIBS -lversion -lshlwapi" 12 | + ;; 13 | + *) 14 | + ;; 15 | +esac 16 | + 17 | # Availability of -O2: 18 | AC_MSG_CHECKING(for -O2) 19 | saved_cflags="$CFLAGS" 20 | -------------------------------------------------------------------------------- /mingw-w64-python3/1860-fix-isselectable.patch: -------------------------------------------------------------------------------- 1 | diff -Naur Python-3.8.0-orig/Include/fileobject.h Python-3.8.0/Include/fileobject.h 2 | --- Python-3.8.0-orig/Include/fileobject.h 2019-10-14 16:34:47.000000000 +0300 3 | +++ Python-3.8.0/Include/fileobject.h 2019-10-22 10:05:02.627968300 +0300 4 | @@ -23,7 +23,7 @@ 5 | PyAPI_DATA(int) Py_HasFileSystemDefaultEncoding; 6 | 7 | /* A routine to check if a file descriptor can be select()-ed. */ 8 | -#ifdef _MSC_VER 9 | +#ifdef MS_WINDOWS 10 | /* On Windows, any socket fd can be select()-ed, no matter how high */ 11 | #define _PyIsSelectable_fd(FD) (1) 12 | #else 13 | -------------------------------------------------------------------------------- /mingw-w64-tcl/002-fix-forbidden-colon-in-paths.mingw.patch: -------------------------------------------------------------------------------- 1 | diff -Naur tcl8.6.5-orig/unix/installManPage tcl8.6.5/unix/installManPage 2 | --- tcl8.6.5-orig/unix/installManPage 2016-03-01 04:59:35.000000000 +0300 3 | +++ tcl8.6.5/unix/installManPage 2016-03-03 08:47:43.725911500 +0300 4 | @@ -103,7 +103,7 @@ 5 | Target=$Target.$Section$Suffix 6 | rm -f $Dir/$Target $Dir/$Target.* 7 | if test -z "$First" ; then 8 | - First=$Target 9 | + First=$(echo $Target | sed -e 's/:/-/g') 10 | sed -e "/man\.macros/r $SrcDir/man.macros" -e "/man\.macros/d" \ 11 | $ManPage > $Dir/$First 12 | chmod 444 $Dir/$First 13 | -------------------------------------------------------------------------------- /mingw-w64-make/make-linebuf-mingw.patch: -------------------------------------------------------------------------------- 1 | diff -Naur make-4.2.1/main.c make-4.2.1.new/main.c 2 | --- make-4.2.1/main.c 2016-05-31 09:17:26.000000000 +0200 3 | +++ make-4.2.1.new/main.c 2017-02-20 22:55:09.051617838 +0100 4 | @@ -1126,8 +1126,11 @@ 5 | 6 | #endif 7 | 8 | +/* setlocale interferes with line buffering if using parallel make on MinGW */ 9 | +#ifndef __MINGW32__ 10 | /* Set up gettext/internationalization support. */ 11 | setlocale (LC_ALL, ""); 12 | +#endif 13 | /* The cast to void shuts up compiler warnings on systems that 14 | disable NLS. */ 15 | (void)bindtextdomain (PACKAGE, LOCALEDIR); 16 | -------------------------------------------------------------------------------- /mingw-w64-python3/1701-disable-broken-gdbm-module.patch: -------------------------------------------------------------------------------- 1 | diff -Naur Python-3.8.0-orig/setup.py Python-3.8.0/setup.py 2 | --- Python-3.8.0-orig/setup.py 2019-10-22 10:04:16.342687000 +0300 3 | +++ Python-3.8.0/setup.py 2019-10-22 10:04:48.353943200 +0300 4 | @@ -1331,7 +1331,7 @@ 5 | if dbm_args: 6 | dbm_order = [arg.split('=')[-1] for arg in dbm_args][-1].split(":") 7 | else: 8 | - dbm_order = "ndbm:gdbm:bdb".split(":") 9 | + dbm_order = [] 10 | dbmext = None 11 | for cand in dbm_order: 12 | if cand == "ndbm": 13 | -------------------------------------------------------------------------------- /mingw-w64-python3/1810-3.7-mpdec-mingw.patch: -------------------------------------------------------------------------------- 1 | diff -Naur Python-3.8.0-orig/setup.py Python-3.8.0/setup.py 2 | --- Python-3.8.0-orig/setup.py 2019-10-22 10:04:50.085546300 +0300 3 | +++ Python-3.8.0/setup.py 2019-10-22 10:04:54.016753200 +0300 4 | @@ -2165,7 +2165,7 @@ 5 | undef_macros = [] 6 | if '--with-system-libmpdec' in sysconfig.get_config_var("CONFIG_ARGS"): 7 | include_dirs = [] 8 | - libraries = [':libmpdec.so.2'] 9 | + libraries = ['mpdec'] 10 | sources = ['_decimal/_decimal.c'] 11 | depends = ['_decimal/docstrings.h'] 12 | else: 13 | -------------------------------------------------------------------------------- /mingw-w64-python3/1010-install-msilib.patch: -------------------------------------------------------------------------------- 1 | diff -Naur Python-3.8.0-orig/Makefile.pre.in Python-3.8.0/Makefile.pre.in 2 | --- Python-3.8.0-orig/Makefile.pre.in 2019-10-22 10:03:33.473811700 +0300 3 | +++ Python-3.8.0/Makefile.pre.in 2019-10-22 10:04:23.315899200 +0300 4 | @@ -1404,6 +1404,7 @@ 5 | distutils distutils/command distutils/tests $(XMLLIBSUBDIRS) \ 6 | test/test_tools test/test_warnings test/test_warnings/data \ 7 | turtledemo \ 8 | + msilib \ 9 | multiprocessing multiprocessing/dummy \ 10 | unittest unittest/test unittest/test/testmock \ 11 | venv venv/scripts venv/scripts/common venv/scripts/posix \ 12 | -------------------------------------------------------------------------------- /mingw-w64-python3/1870-use-_wcsnicmp-instead-wcsncasecmp.patch: -------------------------------------------------------------------------------- 1 | diff -Naur Python-3.8.0-orig/Modules/getpath.c Python-3.8.0/Modules/getpath.c 2 | --- Python-3.8.0-orig/Modules/getpath.c 2019-10-22 10:02:51.821738500 +0300 3 | +++ Python-3.8.0/Modules/getpath.c 2019-10-22 10:05:05.467173300 +0300 4 | @@ -373,7 +373,7 @@ 5 | /* Check for already have an executable suffix */ 6 | size_t n = wcslen(progpath); 7 | size_t s = wcslen(EXE_SUFFIX); 8 | - if (wcsncasecmp(EXE_SUFFIX, progpath + n - s, s) == 0) { 9 | + if (_wcsnicmp(EXE_SUFFIX, progpath + n - s, s) == 0) { 10 | return _PyStatus_OK(); 11 | } 12 | 13 | -------------------------------------------------------------------------------- /mingw-w64-python3/2060-pass-gen-profile-ldflags.patch: -------------------------------------------------------------------------------- 1 | diff -Naur Python-3.8.0-orig/Makefile.pre.in Python-3.8.0/Makefile.pre.in 2 | --- Python-3.8.0-orig/Makefile.pre.in 2019-10-22 10:05:10.396781900 +0300 3 | +++ Python-3.8.0/Makefile.pre.in 2019-10-22 10:05:28.430413600 +0300 4 | @@ -699,7 +699,7 @@ 5 | $(DLLLIBRARY) libpython$(LDVERSION).dll.a: $(LIBRARY_OBJS) python_nt.o 6 | if test -n "$(DLLLIBRARY)"; then \ 7 | $(LDSHARED) -Wl,--out-implib=$@ -o $(DLLLIBRARY) $^ \ 8 | - $(LIBS) $(MODLIBS) $(SYSLIBS) python_nt.o; \ 9 | + $(LIBS) $(LDFLAGS_NODIST) $(MODLIBS) $(SYSLIBS) python_nt.o; \ 10 | else true; \ 11 | fi 12 | 13 | -------------------------------------------------------------------------------- /mingw-w64-boost/boost-1.58.0-address-model.patch: -------------------------------------------------------------------------------- 1 | --- boost_1_58_0/tools/build/src/tools/gcc.jam~ 2015-07-17 15:14:57.381636224 +0100 2 | +++ boost_1_58_0/tools/build/src/tools/gcc.jam 2015-07-27 17:35:29.122264048 +0100 3 | @@ -421,7 +421,9 @@ 4 | 5 | rule setup-address-model ( targets * : sources * : properties * ) 6 | { 7 | - local model = [ feature.get-values address-model : $(properties) ] ; 8 | + # For RPM builds the address model flag is passed in %{optflags}. 9 | + # local model = [ feature.get-values address-model : $(properties) ] ; 10 | + local model ; 11 | if $(model) 12 | { 13 | local option ; 14 | -------------------------------------------------------------------------------- /mingw-w64-python3/0720-mingw-pdcurses_ISPAD.patch: -------------------------------------------------------------------------------- 1 | diff -Naur Python-3.8.0-orig/Include/py_curses.h Python-3.8.0/Include/py_curses.h 2 | --- Python-3.8.0-orig/Include/py_curses.h 2019-10-14 16:34:47.000000000 +0300 3 | +++ Python-3.8.0/Include/py_curses.h 2019-10-22 10:03:25.689398000 +0300 4 | @@ -36,6 +36,13 @@ 5 | #include 6 | #endif 7 | 8 | +#if defined(__MINGW32__) 9 | +#include 10 | +#if !defined(_ISPAD) 11 | +#define _ISPAD 0x10 12 | +#endif 13 | +#endif 14 | + 15 | #ifdef HAVE_NCURSES_H 16 | /* configure was checking , but we will 17 | use , which has some or all these features. */ 18 | -------------------------------------------------------------------------------- /mingw-w64-python3/1890-_xxsubinterpretersmodule.patch: -------------------------------------------------------------------------------- 1 | --- Python-3.8.0/Modules/_xxsubinterpretersmodule.c.orig 2019-10-22 13:34:28.145872500 +0300 2 | +++ Python-3.8.0/Modules/_xxsubinterpretersmodule.c 2019-10-22 13:34:49.299509600 +0300 3 | @@ -1749,7 +1749,7 @@ 4 | "A channel ID identifies a channel and may be used as an int."); 5 | 6 | static PyTypeObject ChannelIDtype = { 7 | - PyVarObject_HEAD_INIT(&PyType_Type, 0) 8 | + PyVarObject_HEAD_INIT(NULL, 0) 9 | "_xxsubinterpreters.ChannelID", /* tp_name */ 10 | sizeof(channelid), /* tp_basicsize */ 11 | 0, /* tp_itemsize */ 12 | -------------------------------------------------------------------------------- /mingw-w64-libxml2/libxml2-disable-version-script.patch: -------------------------------------------------------------------------------- 1 | --- libxml2-2.9.10/configure.ac.orig 2021-01-19 18:13:14.649265300 -0800 2 | +++ libxml2-2.9.10/configure.ac 2021-01-19 22:34:30.711808300 -0800 3 | @@ -78,14 +78,6 @@ 4 | dnl then add it 5 | dnl 6 | VERSION_SCRIPT_FLAGS= 7 | -# lt_cv_prog_gnu_ld is from libtool 2.+ 8 | -if test "$lt_cv_prog_gnu_ld" = yes; then 9 | - VERSION_SCRIPT_FLAGS=-Wl,--version-script= 10 | -else 11 | - case $host in 12 | - *-*-sunos*) VERSION_SCRIPT_FLAGS="-Wl,-M -Wl,";; 13 | - esac 14 | -fi 15 | AC_SUBST(VERSION_SCRIPT_FLAGS) 16 | AM_CONDITIONAL([USE_VERSION_SCRIPT], [test -n "$VERSION_SCRIPT_FLAGS"]) 17 | 18 | -------------------------------------------------------------------------------- /mingw-w64-gpgme/gpgme-fix-cpp-tests.patch: -------------------------------------------------------------------------------- 1 | --- a/lang/cpp/tests/Makefile.am 2019-04-07 21:58:14.917535900 -0400 2 | +++ b/lang/cpp/tests/Makefile.am 2019-04-07 21:58:23.229581500 -0400 3 | @@ -24,7 +24,7 @@ 4 | ../../../src/libgpgme.la @GPG_ERROR_LIBS@ \ 5 | @LDADD_FOR_TESTS_KLUDGE@ -lstdc++ 6 | 7 | -AM_CPPFLAGS = -I$(top_srcdir)/lang/cpp/src -I$(top_builddir)/src \ 8 | +AM_CPPFLAGS = -I$(top_srcdir)/lang/cpp/src -I$(top_builddir)/lang/cpp/src -I$(top_builddir)/src \ 9 | @GPG_ERROR_CFLAGS@ @GPG_ERROR_CFLAGS@ \ 10 | @LIBASSUAN_CFLAGS@ -DBUILDING_GPGMEPP \ 11 | -DTOP_SRCDIR="$(top_srcdir)" 12 | -------------------------------------------------------------------------------- /mingw-w64-libwebp/0001-mingw-cmake-output.patch: -------------------------------------------------------------------------------- 1 | --- libwebp-1.3.0/CMakeLists.txt.orig 2023-01-13 12:49:52.571844700 +0100 2 | +++ libwebp-1.3.0/CMakeLists.txt 2023-01-13 12:52:53.077790900 +0100 3 | @@ -713,7 +713,7 @@ 4 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} 5 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} 6 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) 7 | -set(ConfigPackageLocation ${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME}/cmake/) 8 | +set(ConfigPackageLocation ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}/) 9 | install(EXPORT ${PROJECT_NAME}Targets NAMESPACE ${PROJECT_NAME}:: 10 | DESTINATION ${ConfigPackageLocation}) 11 | 12 | -------------------------------------------------------------------------------- /mingw-w64-python3/0640-mingw-x86_64-size_t-format-specifier-pid_t.patch: -------------------------------------------------------------------------------- 1 | diff -Naur Python-3.8.0-orig/Include/pyport.h Python-3.8.0/Include/pyport.h 2 | --- Python-3.8.0-orig/Include/pyport.h 2019-10-22 10:01:16.988171900 +0300 3 | +++ Python-3.8.0/Include/pyport.h 2019-10-22 10:03:09.574569700 +0300 4 | @@ -177,6 +177,8 @@ 5 | # define PY_FORMAT_SIZE_T "l" 6 | # elif defined(MS_WINDOWS) 7 | # define PY_FORMAT_SIZE_T "I" 8 | +# elif defined(__MINGW32__) && defined(__USE_MINGW_ANSI_STDIO) 9 | +# define PY_FORMAT_SIZE_T "z" 10 | # else 11 | # error "This platform's pyconfig.h needs to define PY_FORMAT_SIZE_T" 12 | # endif 13 | -------------------------------------------------------------------------------- /mingw-w64-suitesparse/0003-mingw-w64-no-CUDA.patch: -------------------------------------------------------------------------------- 1 | diff -urN SuiteSparse.orig/SuiteSparse_config/SuiteSparse_config.mk SuiteSparse/SuiteSparse_config/SuiteSparse_config.mk 2 | --- SuiteSparse.orig/SuiteSparse_config/SuiteSparse_config.mk 2017-10-03 20:02:09.070092300 +0800 3 | +++ SuiteSparse/SuiteSparse_config/SuiteSparse_config.mk 2017-10-03 20:23:32.245485700 +0800 4 | @@ -194,7 +195,7 @@ 5 | 6 | # CUDA is detected automatically, and used if found. To disable CUDA, 7 | # use CUDA=no 8 | - CUDA = auto 9 | + CUDA = no 10 | 11 | ifneq ($(CUDA),no) 12 | CUDA_PATH = $(shell which nvcc 2>/dev/null | sed "s/\/bin\/nvcc//") 13 | -------------------------------------------------------------------------------- /mingw-w64-pkg-config/1031-fix-glib-gettext-m4-error.patch: -------------------------------------------------------------------------------- 1 | --- glib/m4macros/glib-gettext.m4.orig 2016-08-30 17:11:06.937292400 +0200 2 | +++ glib/m4macros/glib-gettext.m4 2016-08-30 17:11:28.137412200 +0200 3 | @@ -36,8 +36,8 @@ 4 | dnl try to pull in the installed version of these macros 5 | dnl when running aclocal in the glib directory. 6 | dnl 7 | -m4_copy([AC_DEFUN],[glib_DEFUN]) 8 | -m4_copy([AC_REQUIRE],[glib_REQUIRE]) 9 | +m4_copy_force([AC_DEFUN],[glib_DEFUN]) 10 | +m4_copy_force([AC_REQUIRE],[glib_REQUIRE]) 11 | dnl 12 | dnl At the end, if we're not within glib, we'll define the public 13 | dnl definitions in terms of our private definitions. 14 | -------------------------------------------------------------------------------- /mingw-w64-tcl/001-fix-relocation.patch: -------------------------------------------------------------------------------- 1 | --- tcl8.6.7/win/tclWinInit.orig.c 2017-05-08 18:06:31.000000000 +0200 2 | +++ tcl8.6.7/win/tclWinInit.c 2017-11-29 00:00:42.764038800 +0100 3 | @@ -366,7 +366,7 @@ 4 | end = strrchr(name, '\\'); 5 | *end = '\0'; 6 | p = strrchr(name, '\\'); 7 | - if (p != NULL) { 8 | + if (p != NULL && !strcmp(p+1, "bin")) { 9 | end = p; 10 | } 11 | *end = '\\'; 12 | @@ -417,7 +417,7 @@ 13 | end = strrchr(name, '\\'); 14 | *end = '\0'; 15 | p = strrchr(name, '\\'); 16 | - if (p != NULL) { 17 | + if (p != NULL && !strcmp(p+1, "bin")) { 18 | end = p; 19 | } 20 | *end = '\\'; 21 | -------------------------------------------------------------------------------- /mingw-w64-jasper/jasper-static-fix.patch: -------------------------------------------------------------------------------- 1 | --- a/src/libjasper/include/jasper/jas_config.h.in 2 | +++ b/src/libjasper/include/jasper/jas_config.h.in 3 | @@ -0,6 +0,8 @@ 4 | #ifndef JAS_CONFIG_H 5 | #define JAS_CONFIG_H 6 | 7 | +#ifndef JAS_DLL 8 | #cmakedefine JAS_DLL 1 9 | +#endif 10 | 11 | #include 12 | 13 | --- a/src/libjasper/include/jasper/jas_dll.h 14 | +++ b/src/libjasper/include/jasper/jas_dll.h 15 | @@ -0,7 +0,7 @@ 16 | #ifndef JAS_DLL_H 17 | #define JAS_DLL_H 18 | 19 | -#if defined(JAS_DLL) 20 | +#if JAS_DLL 21 | #if defined(_WIN32) 22 | #if defined(JAS_BUILDING_DLL) 23 | #define JAS_DLLEXPORT __declspec(dllexport) 24 | -------------------------------------------------------------------------------- /mingw-w64-python3/0660-mingw-use-backslashes-in-compileall-py.patch: -------------------------------------------------------------------------------- 1 | diff -Naur Python-3.8.0-orig/Lib/compileall.py Python-3.8.0/Lib/compileall.py 2 | --- Python-3.8.0-orig/Lib/compileall.py 2019-10-14 16:34:47.000000000 +0300 3 | +++ Python-3.8.0/Lib/compileall.py 2019-10-22 10:03:15.206179600 +0300 4 | @@ -36,6 +36,8 @@ 5 | if name == '__pycache__': 6 | continue 7 | fullname = os.path.join(dir, name) 8 | + if sys.platform == "win32" and sys.version.find("GCC") >= 0: 9 | + fullname = fullname.replace('\\','/') 10 | if ddir is not None: 11 | dfile = os.path.join(ddir, name) 12 | else: 13 | -------------------------------------------------------------------------------- /mingw-w64-suitesparse/0007-suitesparse-5.8.1-remove-dependency-on-Metis.patch: -------------------------------------------------------------------------------- 1 | diff --git a/SuiteSparse_config/SuiteSparse_config.mk b/SuiteSparse_config/SuiteSparse_config.mk 2 | index 68cc0d3..01a4fbc 100644 3 | --- a/SuiteSparse_config/SuiteSparse_config.mk 4 | +++ b/SuiteSparse_config/SuiteSparse_config.mk 5 | @@ -328,6 +328,7 @@ SUITESPARSE_VERSION = 5.8.1 6 | # -DGPU_BLAS enable the use of the CUDA BLAS 7 | 8 | CHOLMOD_CONFIG ?= $(GPU_CONFIG) 9 | + CHOLMOD_CONFIG += -DNPARTITION 10 | 11 | #--------------------------------------------------------------------------- 12 | # SuiteSparseQR configuration: 13 | -- 14 | 2.28.0.windows.1 15 | 16 | -------------------------------------------------------------------------------- /mingw-w64-python3/0440-MINGW-setup-_ssl-module.patch: -------------------------------------------------------------------------------- 1 | diff -Naur Python-3.8.0-orig/setup.py Python-3.8.0/setup.py 2 | --- Python-3.8.0-orig/setup.py 2019-10-22 10:01:52.635234600 +0300 3 | +++ Python-3.8.0/setup.py 2019-10-22 10:02:04.772055900 +0300 4 | @@ -2257,6 +2257,8 @@ 5 | openssl_includes = split_var('OPENSSL_INCLUDES', '-I') 6 | openssl_libdirs = split_var('OPENSSL_LDFLAGS', '-L') 7 | openssl_libs = split_var('OPENSSL_LIBS', '-l') 8 | + if MS_WINDOWS: 9 | + openssl_libs += ['ws2_32'] 10 | if not openssl_libs: 11 | # libssl and libcrypto not found 12 | self.missing.extend(['_ssl', '_hashlib']) 13 | -------------------------------------------------------------------------------- /mingw-w64-tcl/005-no-xc.mingw.patch: -------------------------------------------------------------------------------- 1 | diff -Naur tcl8.6.5-orig/win/configure.in tcl8.6.5/win/configure.in 2 | --- tcl8.6.5-orig/win/configure.in 2016-03-03 08:47:47.861497900 +0300 3 | +++ tcl8.6.5/win/configure.in 2016-03-03 08:47:47.952488800 +0300 4 | @@ -105,15 +105,7 @@ 5 | 6 | SC_CONFIG_CFLAGS 7 | 8 | -# Cross-compiling 9 | -case ${host_alias} in 10 | -*mingw32*) 11 | - TCL_EXE="tclsh" 12 | - ;; 13 | -*) 14 | TCL_EXE="TCL_LIBRARY=\"\${LIBRARY_DIR}\"; export TCL_LIBRARY; ./\${TCLSH}" 15 | - ;; 16 | -esac 17 | 18 | #------------------------------------------------------------------------ 19 | # Add stuff for zlib; note that this is mostly done in the makefile now 20 | -------------------------------------------------------------------------------- /mingw-w64-icu/0009-fix-bindir-in-config.mingw.patch: -------------------------------------------------------------------------------- 1 | diff -Naur icu-orig/source/config/icu-config-bottom icu/source/config/icu-config-bottom 2 | --- icu-orig/source/config/icu-config-bottom 2016-09-10 00:28:18.000000000 +0300 3 | +++ icu/source/config/icu-config-bottom 2018-03-01 10:09:17.662623400 +0300 4 | @@ -5,7 +5,7 @@ 5 | ## Copyright (c) 2002-2013, International Business Machines Corporation and 6 | ## others. All Rights Reserved. 7 | 8 | -ICUUC_FILE="${libdir}/${ICULIBS_COMMON_LIB_NAME}" 9 | +ICUUC_FILE="${bindir}/${ICULIBS_COMMON_LIB_NAME}" 10 | ICUUC_FILE_A="${libdir}/${ICULIBS_COMMON_LIB_NAME_A}" 11 | 12 | # echo ENABLE RPATH $ENABLE_RPATH and RPATHLDFLAGS=${RPATH_LDFLAGS} 13 | -------------------------------------------------------------------------------- /mingw-w64-libyaml/0002-libyaml-no-undefined.patch: -------------------------------------------------------------------------------- 1 | diff -Naur libyaml-0.2.1.orig/src/Makefile.am libyaml-0.2.1/src/Makefile.am 2 | --- libyaml-0.2.1.orig/src/Makefile.am 2018-08-11 22:56:40.978639200 -0400 3 | +++ libyaml-0.2.1/src/Makefile.am 2018-08-11 22:58:12.897888900 -0400 4 | @@ -1,4 +1,4 @@ 5 | -AM_CPPFLAGS = -I$(top_srcdir)/include -Wall 6 | +AM_CPPFLAGS = -I$(top_srcdir)/include -Wall -DYAML_DECLARE_EXPORT 7 | lib_LTLIBRARIES = libyaml.la 8 | libyaml_la_SOURCES = yaml_private.h api.c reader.c scanner.c parser.c loader.c writer.c emitter.c dumper.c 9 | libyaml_la_LDFLAGS = -no-undefined -release $(YAML_LT_RELEASE) -version-info $(YAML_LT_CURRENT):$(YAML_LT_REVISION):$(YAML_LT_AGE) 10 | -------------------------------------------------------------------------------- /mingw-w64-openjpeg2/0002-cmake-files-destination.patch: -------------------------------------------------------------------------------- 1 | --- openjpeg-2.3.0/CMakeLists.txt.orig 2018-08-02 12:10:38.105864300 -0400 2 | +++ openjpeg-2.3.0/CMakeLists.txt 2018-08-02 12:12:33.009046900 -0400 3 | @@ -150,7 +150,7 @@ 4 | # We could install *.cmake files in share/ however those files contains 5 | # hardcoded path to libraries on a multi-arch system (fedora/debian) those 6 | # path will be different (lib/i386-linux-gnu vs lib/x86_64-linux-gnu) 7 | - set(OPENJPEG_INSTALL_PACKAGE_DIR "${OPENJPEG_INSTALL_LIB_DIR}/${OPENJPEG_INSTALL_SUBDIR}") 8 | + set(OPENJPEG_INSTALL_PACKAGE_DIR "${OPENJPEG_INSTALL_LIB_DIR}/cmake/${OPENJPEG_INSTALL_SUBDIR}") 9 | endif() 10 | 11 | if (APPLE) 12 | -------------------------------------------------------------------------------- /mingw-w64-szip/szip-default-import-suffix.patch: -------------------------------------------------------------------------------- 1 | diff -ur hdf5-1.8.12.orig/config/cmake/HDFMacros.cmake hdf5-1.8.12/config/cmake/HDFMacros.cmake 2 | --- szip-2.1.orig/config/cmake/SZIPMacros.cmake 2013-11-22 22:35:38.454236491 +0100 3 | +++ szip-2.1/config/cmake/SZIPMacros.cmake 2013-11-22 22:37:27.717130034 +0100 4 | @@ -163,13 +163,4 @@ 5 | endif () 6 | endif () 7 | 8 | - #----- Use MSVC Naming conventions for Shared Libraries 9 | - if (MINGW AND ${libtype} MATCHES "SHARED") 10 | - set_target_properties (${libtarget} 11 | - PROPERTIES 12 | - IMPORT_SUFFIX ".lib" 13 | - IMPORT_PREFIX "" 14 | - PREFIX "" 15 | - ) 16 | - endif () 17 | endmacro () 18 | -------------------------------------------------------------------------------- /mingw-w64-hdf5/hdf5-default-import-suffix.patch: -------------------------------------------------------------------------------- 1 | --- hdf5-1.8.19.orig/config/cmake_ext_mod/HDFMacros.cmake 2017-07-28 16:47:51.434642000 +0200 2 | +++ hdf5-1.8.19/config/cmake_ext_mod/HDFMacros.cmake 2017-07-28 16:55:55.588824300 +0200 3 | @@ -126,15 +126,6 @@ 4 | endif () 5 | endif () 6 | 7 | - #----- Use MSVC Naming conventions for Shared Libraries 8 | - if (MINGW AND ${libtype} MATCHES "SHARED") 9 | - set_target_properties (${libtarget} 10 | - PROPERTIES 11 | - IMPORT_SUFFIX ".lib" 12 | - IMPORT_PREFIX "" 13 | - PREFIX "" 14 | - ) 15 | - endif () 16 | endmacro () 17 | 18 | #------------------------------------------------------------------------------- 19 | -------------------------------------------------------------------------------- /mingw-w64-python3/0464-use-replace-instead-rename-to-avoid-failure-on-windo.patch: -------------------------------------------------------------------------------- 1 | diff -Naur Python-3.8.0-orig/setup.py Python-3.8.0/setup.py 2 | --- Python-3.8.0-orig/setup.py 2019-10-22 10:02:06.503658900 +0300 3 | +++ Python-3.8.0/setup.py 2019-10-22 10:02:13.258470800 +0300 4 | @@ -2434,7 +2434,7 @@ 5 | else: 6 | newfilename = filename + minoronly 7 | log.info('renaming %s to %s', filename, newfilename) 8 | - os.rename(filename, newfilename) 9 | + os.replace(filename, newfilename) 10 | newoutfiles.append(newfilename) 11 | if filename in updated_files: 12 | newupdated_files.append(newfilename) 13 | -------------------------------------------------------------------------------- /mingw-w64-glib2/0001-disable-some-tests-when-static.patch: -------------------------------------------------------------------------------- 1 | diff --git a/gio/tests/meson.build b/gio/tests/meson.build 2 | index dca33bd44..47a95b7b3 100644 3 | --- a/gio/tests/meson.build 4 | +++ b/gio/tests/meson.build 5 | @@ -406,7 +406,8 @@ if installed_tests_enabled 6 | install_subdir('cert-tests', install_dir : installed_tests_execdir) 7 | endif 8 | 9 | -if not meson.is_cross_build() or meson.has_exe_wrapper() 10 | +windows_static = host_system == 'windows' and get_option('default_library') == 'static' 11 | +if (not meson.is_cross_build() or meson.has_exe_wrapper()) and not windows_static 12 | 13 | plugin_resources_c = custom_target('plugin-resources.c', 14 | input : 'test4.gresource.xml', 15 | -------------------------------------------------------------------------------- /mingw-w64-python3/2010-configure-have-inet-pton.patch: -------------------------------------------------------------------------------- 1 | diff -Naur Python-3.8.0-orig/configure.ac Python-3.8.0/configure.ac 2 | --- Python-3.8.0-orig/configure.ac 2019-10-22 10:04:27.917907300 +0300 3 | +++ Python-3.8.0/configure.ac 2019-10-22 10:05:14.312388800 +0300 4 | @@ -4110,10 +4110,14 @@ 5 | 6 | AC_MSG_CHECKING(for inet_pton) 7 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ 8 | +#ifdef _WIN32 9 | +#include 10 | +#else 11 | #include 12 | #include 13 | #include 14 | #include 15 | +#endif 16 | ]], [[void* p = inet_pton]])], 17 | [AC_DEFINE(HAVE_INET_PTON, 1, Define if you have the 'inet_pton' function.) 18 | AC_MSG_RESULT(yes)], 19 | -------------------------------------------------------------------------------- /mingw-w64-python3/3000-importlib-bootstrap-path-sep.patch: -------------------------------------------------------------------------------- 1 | --- Python-3.8.0/Lib/importlib/_bootstrap_external.py.orig 2019-12-21 14:31:23.806479400 +0100 2 | +++ Python-3.8.0/Lib/importlib/_bootstrap_external.py 2019-12-21 14:34:37.093867400 +0100 3 | @@ -1603,6 +1603,11 @@ 4 | continue 5 | else: 6 | raise ImportError('importlib requires posix or nt') 7 | + 8 | + if 'MSYSTEM' in os_module.environ: 9 | + path_separators = path_separators[::-1] 10 | + path_sep = path_separators[0] 11 | + 12 | setattr(self_module, '_os', os_module) 13 | setattr(self_module, 'path_sep', path_sep) 14 | setattr(self_module, 'path_separators', ''.join(path_separators)) 15 | -------------------------------------------------------------------------------- /mingw-w64-z3/004-fix-python-bindings-install.patch: -------------------------------------------------------------------------------- 1 | --- z3-z3-4.7.1/src/api/python/CMakeLists.txt.orig 2018-06-06 07:41:30.619809100 +0300 2 | +++ z3-z3-4.7.1/src/api/python/CMakeLists.txt 2018-06-06 07:42:00.540851100 +0300 3 | @@ -99,7 +99,7 @@ 4 | message(STATUS "CMAKE_INSTALL_PYTHON_PKG_DIR not set. Trying to guess") 5 | execute_process( 6 | COMMAND "${PYTHON_EXECUTABLE}" "-c" 7 | - "import distutils.sysconfig; print(distutils.sysconfig.get_python_lib())" 8 | + "import distutils.sysconfig; print(distutils.sysconfig.get_python_lib(prefix=''))" 9 | RESULT_VARIABLE exit_code 10 | OUTPUT_VARIABLE CMAKE_INSTALL_PYTHON_PKG_DIR 11 | OUTPUT_STRIP_TRAILING_WHITESPACE 12 | -------------------------------------------------------------------------------- /mingw-w64-curl/disable-cainfo-for-schannel.patch: -------------------------------------------------------------------------------- 1 | diff -aurp curl-7.83.1-orig/lib/vtls/schannel.c curl-7.83.1/lib/vtls/schannel.c 2 | --- curl-7.83.1-orig/lib/vtls/schannel.c 2022-10-17 20:57:44.000000000 +0200 3 | +++ curl-7.83.1/lib/vtls/schannel.c 2022-10-17 20:59:16.000000000 +0200 4 | @@ -1129,7 +1129,7 @@ schannel_connect_step1(struct Curl_easy 5 | #endif 6 | #else 7 | #ifdef HAS_MANUAL_VERIFY_API 8 | - if(conn_config->CAfile || conn_config->ca_info_blob) { 9 | + if(0) { /* disabled by jeroen: does not work well */ 10 | if(curlx_verify_windows_version(6, 1, 0, PLATFORM_WINNT, 11 | VERSION_GREATER_THAN_EQUAL)) { 12 | backend->use_manual_cred_validation = true; 13 | -------------------------------------------------------------------------------- /mingw-w64-python3/0530-mingw-system-libffi.patch: -------------------------------------------------------------------------------- 1 | diff -Naur Python-3.8.0-orig/setup.py Python-3.8.0/setup.py 2 | --- Python-3.8.0-orig/setup.py 2019-10-22 10:02:14.974473800 +0300 3 | +++ Python-3.8.0/setup.py 2019-10-22 10:02:33.866107000 +0300 4 | @@ -2030,6 +2030,10 @@ 5 | return True 6 | 7 | def configure_ctypes(self, ext): 8 | + if MS_WINDOWS: 9 | + ext.libraries.extend(['ole32', 'oleaut32', 'uuid']) 10 | + ext.export_symbols.extend(['DllGetClassObject PRIVATE', 11 | + 'DllCanUnloadNow PRIVATE']) 12 | if not self.use_system_libffi: 13 | if MACOS: 14 | return self.configure_ctypes_darwin(ext) 15 | -------------------------------------------------------------------------------- /gcc-bootstrap.sh: -------------------------------------------------------------------------------- 1 | # Bootstrap some external compilers 2 | mkdir -p /compilers 3 | cd /compilers 4 | curl -OL --connect-timeout 10 --max-time 60 --retry 5 "https://cloud.r-project.org/bin/windows/Rtools/i686-810-posix-dwarf-rt_v5-s.7z" 5 | curl -OL --connect-timeout 10 --max-time 60 --retry 5 "https://cloud.r-project.org/bin/windows/Rtools/x86_64-810-posix-seh-rt_v5-s.7z" 6 | 7z x i686-810-posix-dwarf-rt_v5-s.7z 7 | 7z x x86_64-810-posix-seh-rt_v5-s.7z 8 | cd - 9 | export PATH="/compilers/${MINGW_INSTALLS}/bin:${PATH}" 10 | export CC="/compilers/${MINGW_INSTALLS}/bin/gcc" 11 | export CXX="/compilers/${MINGW_INSTALLS}/bin/g++" 12 | echo "PATH: $PATH" 13 | ls -ltr "/compilers/${MINGW_INSTALLS}/bin" 14 | which gcc 15 | gcc --version 16 | -------------------------------------------------------------------------------- /mingw-w64-librsvg/0005-hack-unixy-paths.patch: -------------------------------------------------------------------------------- 1 | --- librsvg-2.40.4/configure.ac.orig 2014-09-24 12:24:57.276600000 +0500 2 | +++ librsvg-2.40.4/configure.ac 2014-09-24 12:25:51.939000000 +0500 3 | @@ -165,6 +165,9 @@ 4 | gdk_pixbuf_binarydir="`$PKG_CONFIG --variable=gdk_pixbuf_binarydir gdk-pixbuf-2.0`" 5 | gdk_pixbuf_moduledir=`$PKG_CONFIG --variable gdk_pixbuf_moduledir gdk-pixbuf-2.0` 6 | gdk_pixbuf_cache_file=`$PKG_CONFIG --variable gdk_pixbuf_cache_file gdk-pixbuf-2.0` 7 | + gdk_pixbuf_binarydir=`cygpath -u $gdk_pixbuf_binarydir` 8 | + gdk_pixbuf_moduledir=`cygpath -u $gdk_pixbuf_moduledir` 9 | + gdk_pixbuf_cache_file=`cygpath -u $gdk_pixbuf_cache_file` 10 | fi 11 | 12 | AC_SUBST([gdk_pixbuf_binary_version]) 13 | -------------------------------------------------------------------------------- /mingw-w64-libxslt/0003-fix-concurrent-directory-creation.all.patch: -------------------------------------------------------------------------------- 1 | --- libxslt-1.1.29/libxslt/security.c.orig 2013-04-01 02:31:05 +0400 2 | +++ libxslt-1.1.29/libxslt/security.c 2013-04-01 02:32:21 +0400 3 | @@ -342,8 +342,16 @@ 4 | } 5 | } 6 | ret = xsltCheckWritePath(sec, ctxt, directory); 7 | - if (ret == 1) 8 | + if (ret == 1) { 9 | ret = mkdir(directory, 0755); 10 | + if (ret == -1 && errno == EEXIST) { 11 | + struct stat buf; 12 | + ret = stat(directory, &buf); 13 | + if (ret == 0) { 14 | + ret = S_ISDIR(buf.st_mode) ? 0 : -1; 15 | + } 16 | + } 17 | + } 18 | } 19 | xmlFree(directory); 20 | if (ret < 0) 21 | -------------------------------------------------------------------------------- /mingw-w64-python3/1850-disable-readline.patch: -------------------------------------------------------------------------------- 1 | diff -Naur Python-3.8.0-orig/setup.py Python-3.8.0/setup.py 2 | --- Python-3.8.0-orig/setup.py 2019-10-22 10:04:55.763956200 +0300 3 | +++ Python-3.8.0/setup.py 2019-10-22 10:04:59.804363300 +0300 4 | @@ -911,7 +911,10 @@ 5 | 6 | def detect_readline_curses(self): 7 | # readline 8 | - do_readline = self.compiler.find_library_file(self.lib_dirs, 'readline') 9 | + if not MS_WINDOWS: 10 | + do_readline = self.compiler.find_library_file(self.lib_dirs, 'readline') 11 | + else: 12 | + do_readline = False 13 | readline_termcap_library = "" 14 | curses_library = "" 15 | # Cannot use os.popen here in py3k. 16 | -------------------------------------------------------------------------------- /mingw-w64-suitesparse/0006-suitesparse-5.8.1-fix-mp-link-order.patch: -------------------------------------------------------------------------------- 1 | diff -urN SuiteSparse-5.8.1.orig/SLIP_LU/Lib/Makefile SuiteSparse-5.8.1/SLIP_LU/Lib/Makefile 2 | --- SuiteSparse-5.8.1.orig/SLIP_LU/Lib/Makefile 2020-07-15 04:04:44.000000000 +0500 3 | +++ SuiteSparse-5.8.1/SLIP_LU/Lib/Makefile 2020-12-22 19:10:14.936075900 +0500 4 | @@ -20,7 +20,7 @@ 5 | # CFLAGS += -Wall -Wextra -Wpedantic -Werror 6 | 7 | # SLIP_LU depends on SuiteSparse_config, AMD, COLAMD, M, GMP, and MPFR 8 | -LDLIBS += -lsuitesparseconfig -lamd -lcolamd -lm -lgmp -lmpfr 9 | +LDLIBS += -lsuitesparseconfig -lamd -lcolamd -lm -lmpfr -lgmp 10 | 11 | C = $(CC) $(CF) -I../Include -I../../COLAMD/Include -I../../AMD/Include -I../../SuiteSparse_config 12 | 13 | -------------------------------------------------------------------------------- /mingw-w64-boost/boost-include-intrin-h-on-mingw-w64.patch: -------------------------------------------------------------------------------- 1 | --- boost/detail/interlocked.hpp.interlocked 2012-12-11 15:42:26.000000000 +0100 2 | +++ boost/detail/interlocked.hpp 2013-07-21 15:22:56.082346444 +0200 3 | @@ -92,9 +92,9 @@ 4 | # define BOOST_INTERLOCKED_EXCHANGE_POINTER(dest,exchange) \ 5 | ((void*)BOOST_INTERLOCKED_EXCHANGE((long*)(dest),(long)(exchange))) 6 | 7 | -#elif defined( BOOST_MSVC ) || defined( BOOST_INTEL_WIN ) 8 | +#elif defined( BOOST_MSVC ) || defined( BOOST_INTEL_WIN ) || defined( __MINGW64_VERSION_MAJOR ) 9 | 10 | -#if defined( BOOST_MSVC ) && BOOST_MSVC >= 1400 11 | +#if ( defined( BOOST_MSVC ) && BOOST_MSVC >= 1400 ) || defined( __MINGW64_VERSION_MAJOR ) 12 | 13 | #include 14 | 15 | -------------------------------------------------------------------------------- /mingw-w64-libgpg-error/07-windows-build.patch: -------------------------------------------------------------------------------- 1 | --- libgpg-error-1.16/src/Makefile.am.orig 2014-09-23 23:35:27.832600000 +0500 2 | +++ libgpg-error-1.16/src/Makefile.am 2014-09-24 00:08:20.985200000 +0500 3 | @@ -268,10 +268,15 @@ 4 | mkheader_opts = 5 | parts_of_gpg_error_h += ./lock-obj-pub.native.h 6 | 7 | +if HAVE_W32_SYSTEM 8 | +./lock-obj-pub.native.h: Makefile gen-w32-lock-obj$(EXEEXT) w32-lock-obj.h 9 | + ./gen-w32-lock-obj >$@ 10 | +else 11 | ./lock-obj-pub.native.h: Makefile gen-posix-lock-obj$(EXEEXT) posix-lock-obj.h 12 | ./gen-posix-lock-obj >$@ 13 | endif 14 | endif 15 | +endif 16 | 17 | # We also depend on versioninfo.rc because that is build by 18 | # config.status and thus has up-to-date version numbers. 19 | -------------------------------------------------------------------------------- /mingw-w64-freetype/freetype-2.5.1-enable-sph.patch: -------------------------------------------------------------------------------- 1 | diff --git i/include/freetype/config/ftoption.h w/include/freetype/config/ftoption.h 2 | index fe2ba15..1ab4226 100644 3 | --- i/include/freetype/config/ftoption.h 4 | +++ w/include/freetype/config/ftoption.h 5 | @@ -591,7 +591,7 @@ FT_BEGIN_HEADER 6 | /* This option requires TT_CONFIG_OPTION_BYTECODE_INTERPRETER to be */ 7 | /* defined. */ 8 | /* */ 9 | -/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING */ 10 | +#define TT_CONFIG_OPTION_SUBPIXEL_HINTING 11 | 12 | 13 | /*************************************************************************/ 14 | -------------------------------------------------------------------------------- /mingw-w64-python-setuptools/0007-windows-arm64.patch: -------------------------------------------------------------------------------- 1 | --- setuptools-54.1.1/setuptools/command/easy_install.py.orig 2021-03-10 14:19:23.791845300 -0800 2 | +++ setuptools-54.1.1/setuptools/command/easy_install.py 2021-03-10 14:22:46.433526300 -0800 3 | @@ -2263,7 +2263,10 @@ 4 | """ 5 | launcher_fn = '%s.exe' % type 6 | if is_64bit(): 7 | - launcher_fn = launcher_fn.replace(".", "-64.") 8 | + if '(arm64)' in sys.version.lower(): 9 | + launcher_fn = launcher_fn.replace(".", "-arm64.") 10 | + else: 11 | + launcher_fn = launcher_fn.replace(".", "-64.") 12 | else: 13 | launcher_fn = launcher_fn.replace(".", "-32.") 14 | return resource_string('setuptools', launcher_fn) 15 | -------------------------------------------------------------------------------- /mingw-w64-freetype/freetype-2.10.0-enable-spr.patch: -------------------------------------------------------------------------------- 1 | diff -Naur freetype-2.10.0.orig/include/freetype/config/ftoption.h freetype-2.10.0/include/freetype/config/ftoption.h 2 | --- freetype-2.10.0.orig/include/freetype/config/ftoption.h 2019-03-15 18:09:32.842668200 -0400 3 | +++ freetype-2.10.0/include/freetype/config/ftoption.h 2019-03-15 18:20:57.389665500 -0400 4 | @@ -126,7 +126,7 @@ 5 | * macro is not defined, FreeType offers alternative LCD rendering 6 | * technology that produces excellent output without LCD filtering. 7 | */ 8 | -/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */ 9 | +#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING 10 | 11 | 12 | /************************************************************************** 13 | -------------------------------------------------------------------------------- /mingw-w64-python3/1060-dont-include-system-ncurses-path.patch: -------------------------------------------------------------------------------- 1 | diff -Naur Python-3.8.0-orig/configure.ac Python-3.8.0/configure.ac 2 | --- Python-3.8.0-orig/configure.ac 2019-10-22 10:04:22.223897300 +0300 3 | +++ Python-3.8.0/configure.ac 2019-10-22 10:04:26.170704200 +0300 4 | @@ -5293,9 +5293,15 @@ 5 | 6 | # first curses header check 7 | ac_save_cppflags="$CPPFLAGS" 8 | -if test "$cross_compiling" = no; then 9 | - CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" 10 | -fi 11 | +case $host_os in 12 | + mingw*) 13 | + ;; 14 | + *) 15 | + if test "$cross_compiling" = no; then 16 | + CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" 17 | + fi 18 | + ;; 19 | +esac 20 | 21 | AC_CHECK_HEADERS(curses.h ncurses.h) 22 | 23 | -------------------------------------------------------------------------------- /mingw-w64-gettext/08-vs-compatible.patch: -------------------------------------------------------------------------------- 1 | --- gettext-runtime/intl/libgnuintl.in.h.old 2015-06-15 10:40:11.594942600 +0200 2 | +++ gettext-runtime/intl/libgnuintl.in.h 2015-06-15 10:40:50.579345400 +0200 3 | @@ -336,7 +336,7 @@ extern int vfprintf (FILE *, const char 4 | 5 | #if !(defined printf && defined _GL_STDIO_H) /* don't override gnulib */ 6 | #undef printf 7 | -#if defined __NetBSD__ || defined __BEOS__ || defined __CYGWIN__ || defined __MINGW32__ 8 | +#if defined __NetBSD__ || defined __BEOS__ || defined __CYGWIN__ || defined __MINGW32__ || defined _MSC_VER 9 | /* Don't break __attribute__((format(printf,M,N))). 10 | This redefinition is only possible because the libc in NetBSD, Cygwin, 11 | mingw does not have a function __printf__. 12 | -------------------------------------------------------------------------------- /mingw-w64-z3/002-fix-dll-destination.patch: -------------------------------------------------------------------------------- 1 | --- z3-z3-4.7.1/src/CMakeLists.txt.orig 2018-06-05 22:04:30.104092400 +0300 2 | +++ z3-z3-4.7.1/src/CMakeLists.txt 2018-06-05 22:04:37.057490100 +0300 3 | @@ -177,7 +177,7 @@ 4 | EXPORT Z3_EXPORTED_TARGETS 5 | LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" 6 | ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}" # On Windows this installs ``libz3.lib`` which CMake calls the "corresponding import library". Do we want this installed? 7 | - RUNTIME DESTINATION "${CMAKE_INSTALL_LIBDIR}" # For Windows. DLLs are runtime targets for CMake 8 | + RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" # For Windows. DLLs are runtime targets for CMake 9 | PUBLIC_HEADER DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}" 10 | ) 11 | 12 | -------------------------------------------------------------------------------- /mingw-w64-freetype/freetype-2.10.0-enable-valid.patch: -------------------------------------------------------------------------------- 1 | diff -Naur freetype-2.10.0.orig/modules.cfg freetype-2.10.0/modules.cfg 2 | --- freetype-2.10.0.orig/modules.cfg 2019-03-15 18:09:32.780172700 -0400 3 | +++ freetype-2.10.0/modules.cfg 2019-03-15 18:10:26.450039100 -0400 4 | @@ -111,7 +111,7 @@ 5 | 6 | # TrueType GX/AAT table validation. Needs `ftgxval.c' below. 7 | # 8 | -# AUX_MODULES += gxvalid 9 | +AUX_MODULES += gxvalid 10 | 11 | # Support for streams compressed with gzip (files with suffix .gz). 12 | # 13 | @@ -130,7 +130,7 @@ 14 | 15 | # OpenType table validation. Needs `ftotval.c' below. 16 | # 17 | -# AUX_MODULES += otvalid 18 | +AUX_MODULES += otvalid 19 | 20 | # Auxiliary PostScript driver component to share common code. 21 | # 22 | -------------------------------------------------------------------------------- /mingw-w64-libvpx/0003-cross-with-native-binutils.mingw.patch: -------------------------------------------------------------------------------- 1 | --- libvpx-1.6.1/build/make/configure.sh.orig 2017-04-18 07:55:35.521235500 -0400 2 | +++ libvpx-1.6.1/build/make/configure.sh 2017-04-18 08:03:57.773345200 -0400 3 | @@ -636,13 +636,13 @@ post_process_cmdline() { 4 | } 5 | 6 | setup_gnu_toolchain() { 7 | - CC=${CC:-${CROSS}gcc} 8 | - CXX=${CXX:-${CROSS}g++} 9 | - AR=${AR:-${CROSS}ar} 10 | - LD=${LD:-${CROSS}${link_with_cc:-ld}} 11 | - AS=${AS:-${CROSS}as} 12 | - STRIP=${STRIP:-${CROSS}strip} 13 | - NM=${NM:-${CROSS}nm} 14 | + CC=${CC:-gcc} 15 | + CXX=${CXX:-g++} 16 | + AR=${AR:-ar} 17 | + LD=${LD:-${link_with_cc:-ld}} 18 | + AS=${AS:-as} 19 | + STRIP=${STRIP:-strip} 20 | + NM=${NM:-nm} 21 | AS_SFX=.S 22 | EXE_SFX= 23 | } 24 | -------------------------------------------------------------------------------- /mingw-w64-glpk/timeval-64bit.patch: -------------------------------------------------------------------------------- 1 | diff -Naur glpk-4.65.orig/src/env/time.c glpk-4.65/src/env/time.c 2 | --- glpk-4.65.orig/src/env/time.c 2018-04-29 17:19:55.861485500 -0400 3 | +++ glpk-4.65/src/env/time.c 2018-04-29 17:22:26.023473000 -0400 4 | @@ -55,13 +55,15 @@ 5 | double glp_time(void) 6 | { struct timeval tv; 7 | struct tm *tm; 8 | + time_t sec; 9 | int j; 10 | double t; 11 | + sec = tv.tv_sec; 12 | gettimeofday(&tv, NULL); 13 | #if 0 /* 29/I-2017 */ 14 | - tm = gmtime(&tv.tv_sec); 15 | + tm = gmtime(&sec); 16 | #else 17 | - tm = xgmtime(&tv.tv_sec); 18 | + tm = xgmtime(&sec); 19 | #endif 20 | j = jday(tm->tm_mday, tm->tm_mon + 1, 1900 + tm->tm_year); 21 | xassert(j >= 0); 22 | -------------------------------------------------------------------------------- /mingw-w64-icu/0004-move-to-bin.mingw.patch: -------------------------------------------------------------------------------- 1 | diff -Naur icu-orig/source/tools/genren/Makefile icu/source/tools/genren/Makefile 2 | --- icu-orig/source/tools/genren/Makefile 2016-09-21 09:07:26.000000000 +0300 3 | +++ icu/source/tools/genren/Makefile 2018-03-01 10:09:05.338601800 +0300 4 | @@ -32,11 +32,11 @@ 5 | include $(BUILDDIR)/icudefs.mk 6 | endif 7 | 8 | -COM=$(ICUDIR)/lib/libicuuc.$(SO) 9 | -I18=$(ICUDIR)/lib/libicui18n.$(SO) 10 | -LEX=$(ICUDIR)/lib/libiculx.$(SO) 11 | +COM=$(ICUDIR)/bin/libicuuc.$(SO) 12 | +I18=$(ICUDIR)/bin/libicui18n.$(SO) 13 | +LEX=$(ICUDIR)/bin/libiculx.$(SO) 14 | DAT=$(ICUDIR)/stubdata/libicudata.$(SO) 15 | -UIO=$(ICUDIR)/lib/libicuio.$(SO) 16 | +UIO=$(ICUDIR)/bin/libicuio.$(SO) 17 | 18 | LIBS=$(COM) $(I18) $(LEX) $(UIO) 19 | 20 | -------------------------------------------------------------------------------- /mingw-w64-zlib/012-Add-bzip2-library-to-pkg-config-file.patch: -------------------------------------------------------------------------------- 1 | From d6c5f14af2f9368032efbcfd0928b73d98379c92 Mon Sep 17 00:00:00 2001 2 | From: Alexey Pavlov 3 | Date: Tue, 28 Oct 2014 14:15:56 +0300 4 | Subject: [PATCH 3/3] Add bzip2 library to pkg-config file. 5 | 6 | --- 7 | minizip.pc.in | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/minizip.pc.in b/minizip.pc.in 11 | index 69b5b7f..2cc4787 100644 12 | --- a/minizip.pc.in 13 | +++ b/minizip.pc.in 14 | @@ -8,5 +8,5 @@ Description: Minizip zip file manipulation library 15 | Requires: 16 | Version: @PACKAGE_VERSION@ 17 | Libs: -L${libdir} -lminizip 18 | -Libs.private: -lz 19 | +Libs.private: -lz -lbz2 20 | Cflags: -I${includedir} 21 | -- 22 | 2.1.2 23 | 24 | -------------------------------------------------------------------------------- /mingw-w64-opencv/0104-rgbd-module-missing-include.patch: -------------------------------------------------------------------------------- 1 | From 8f4740a5cc88711d06becd87a33fd0b7fe4155f4 Mon Sep 17 00:00:00 2001 2 | From: "FeRD (Frank Dana)" 3 | Date: Wed, 21 Apr 2021 14:05:23 -0400 4 | Subject: [PATCH 2/2] rgbd-module-missing-include 5 | 6 | --- 7 | modules/rgbd/src/dynafu.cpp | 1 + 8 | 1 file changed, 1 insertion(+) 9 | 10 | diff --git a/modules/rgbd/src/dynafu.cpp b/modules/rgbd/src/dynafu.cpp 11 | index 002be7b..45e55ff 100644 12 | --- a/modules/rgbd/src/dynafu.cpp 13 | +++ b/modules/rgbd/src/dynafu.cpp 14 | @@ -24,6 +24,7 @@ 15 | # include 16 | #endif 17 | # include 18 | +# include 19 | #endif 20 | 21 | // GL Extention definitions missing from standard Win32 gl.h 22 | -- 23 | 2.31.1 24 | 25 | -------------------------------------------------------------------------------- /mingw-w64-python3/0830-ctypes-python-dll.patch: -------------------------------------------------------------------------------- 1 | diff -Naur Python-3.8.0-orig/Lib/ctypes/__init__.py Python-3.8.0/Lib/ctypes/__init__.py 2 | --- Python-3.8.0-orig/Lib/ctypes/__init__.py 2019-10-14 16:34:47.000000000 +0300 3 | +++ Python-3.8.0/Lib/ctypes/__init__.py 2019-10-22 10:03:49.931840600 +0300 4 | @@ -449,7 +449,9 @@ 5 | cdll = LibraryLoader(CDLL) 6 | pydll = LibraryLoader(PyDLL) 7 | 8 | -if _os.name == "nt": 9 | +if _os.name == "nt" and _sys.version.find('GCC') >= 0: 10 | + pythonapi = PyDLL("libpython%d.%d%s.dll" % (_sys.version_info[:2] + (_sys.abiflags,)), None) 11 | +elif _os.name == "nt": 12 | pythonapi = PyDLL("python dll", None, _sys.dllhandle) 13 | elif _sys.platform == "cygwin": 14 | pythonapi = PyDLL("libpython%d.%d.dll" % _sys.version_info[:2]) 15 | -------------------------------------------------------------------------------- /mingw-w64-tk/008-dont-link-shared-with--static-libgcc.patch: -------------------------------------------------------------------------------- 1 | diff -Naur tk8.6.5-orig/win/tcl.m4 tk8.6.5/win/tcl.m4 2 | --- tk8.6.5-orig/win/tcl.m4 2016-03-03 09:21:52.442037200 +0300 3 | +++ tk8.6.5/win/tcl.m4 2016-03-03 09:21:54.114037200 +0300 4 | @@ -635,7 +635,6 @@ 5 | 6 | if test "${GCC}" = "yes" ; then 7 | extra_cflags="-pipe" 8 | - extra_ldflags="-pipe -static-libgcc" 9 | AC_CACHE_CHECK(for mingw32 version of gcc, 10 | ac_cv_win32, 11 | AC_TRY_COMPILE([ 12 | @@ -691,6 +690,7 @@ 13 | if test "${SHARED_BUILD}" = "0" ; then 14 | # static 15 | AC_MSG_RESULT([using static flags]) 16 | + extra_ldflags="-pipe -static-libgcc" 17 | runtime= 18 | LIBRARIES="\${STATIC_LIBRARIES}" 19 | EXESUFFIX="s\${DBGX}.exe" 20 | -------------------------------------------------------------------------------- /mingw-w64-python3/0900-cygwinccompiler-dont-strip-modules-if-pydebug.patch: -------------------------------------------------------------------------------- 1 | diff -Naur Python-3.8.0-orig/Lib/distutils/cygwinccompiler.py Python-3.8.0/Lib/distutils/cygwinccompiler.py 2 | --- Python-3.8.0-orig/Lib/distutils/cygwinccompiler.py 2019-10-22 10:04:05.048267100 +0300 3 | +++ Python-3.8.0/Lib/distutils/cygwinccompiler.py 2019-10-22 10:04:06.140269100 +0300 4 | @@ -238,7 +238,7 @@ 5 | # (On my machine: 10KiB < stripped_file < ??100KiB 6 | # unstripped_file = stripped_file + XXX KiB 7 | # ( XXX=254 for a typical python extension)) 8 | - if not debug: 9 | + if not debug and not hasattr(sys, 'gettotalrefcount'): 10 | extra_preargs.append("-s") 11 | 12 | UnixCCompiler.link(self, target_desc, objects, output_filename, 13 | -------------------------------------------------------------------------------- /mingw-w64-python3/1650-expose-sem_unlink.patch: -------------------------------------------------------------------------------- 1 | diff -Naur Python-3.8.0-orig/Modules/_multiprocessing/multiprocessing.c Python-3.8.0/Modules/_multiprocessing/multiprocessing.c 2 | --- Python-3.8.0-orig/Modules/_multiprocessing/multiprocessing.c 2019-10-14 16:34:47.000000000 +0300 3 | +++ Python-3.8.0/Modules/_multiprocessing/multiprocessing.c 2019-10-22 10:04:35.437120500 +0300 4 | @@ -128,7 +128,7 @@ 5 | {"recv", multiprocessing_recv, METH_VARARGS, ""}, 6 | {"send", multiprocessing_send, METH_VARARGS, ""}, 7 | #endif 8 | -#if !defined(POSIX_SEMAPHORES_NOT_ENABLED) && !defined(__ANDROID__) 9 | +#if defined(MS_WINDOWS) || (!defined(POSIX_SEMAPHORES_NOT_ENABLED) && !defined(__ANDROID__)) 10 | {"sem_unlink", _PyMp_sem_unlink, METH_VARARGS, ""}, 11 | #endif 12 | {NULL} 13 | -------------------------------------------------------------------------------- /mingw-w64-tk/006-prevent-tclStubsPtr-segfault.patch: -------------------------------------------------------------------------------- 1 | diff -Naur tk8.6.5-orig/generic/tkEvent.c tk8.6.5/generic/tkEvent.c 2 | --- tk8.6.5-orig/generic/tkEvent.c 2016-02-16 21:21:01.000000000 +0300 3 | +++ tk8.6.5/generic/tkEvent.c 2016-03-03 09:21:53.281037200 +0300 4 | @@ -2045,7 +2045,16 @@ 5 | } 6 | #endif 7 | 8 | - Tcl_DeleteExitHandler(TkFinalize, NULL); 9 | + /* There's no guarantee that Tcl_InitStubs 10 | + * has been called before exit; tclStubsPtr 11 | + * is NULL in this case. 12 | + */ 13 | +#if defined(USE_TCL_STUBS) 14 | + if (tclStubsPtr == NULL) 15 | + return; 16 | +#endif 17 | + 18 | + Tcl_DeleteExitHandler(TkFinalize, NULL); 19 | 20 | Tcl_MutexLock(&exitMutex); 21 | for (exitPtr = firstExitPtr; exitPtr != NULL; exitPtr = firstExitPtr) { 22 | -------------------------------------------------------------------------------- /mingw-w64-aom/fix-lib-dest.patch: -------------------------------------------------------------------------------- 1 | diff --git a/build/cmake/aom_install.cmake b/build/cmake/aom_install.cmake 2 | index cd40fe4245..71d625fb27 100644 3 | --- a/build/cmake/aom_install.cmake 4 | +++ b/build/cmake/aom_install.cmake 5 | @@ -86,7 +86,8 @@ macro(setup_aom_install_targets) 6 | FILES "${AOM_PKG_CONFIG_FILE}" 7 | DESTINATION "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/pkgconfig") 8 | install(TARGETS ${AOM_INSTALL_LIBS} DESTINATION 9 | - "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}") 10 | + "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}" 11 | + RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR}") 12 | 13 | if(ENABLE_EXAMPLES) 14 | install(TARGETS ${AOM_INSTALL_BINS} DESTINATION 15 | -------------------------------------------------------------------------------- /mingw-w64-gtk2/0001-fix-m4-location.mingw.patch: -------------------------------------------------------------------------------- 1 | --- gtk+-2.24.21/configure.ac.orig 2013-10-01 22:58:24.317348700 +0000 2 | +++ gtk+-2.24.21/configure.ac 2013-10-01 22:58:30.028574000 +0000 3 | @@ -45,7 +45,7 @@ 4 | 5 | AC_CONFIG_SRCDIR([gdk/gdktypes.h]) 6 | AC_CONFIG_HEADERS([config.h]) 7 | -AC_CONFIG_MACRO_DIR([m4]) 8 | +AC_CONFIG_MACRO_DIR([m4macros]) 9 | 10 | # Save this value here, since automake will set cflags later 11 | cflags_set=${CFLAGS+set} 12 | --- gtk+-2.24.21/Makefile.am.orig 2011-08-16 02:30:51.000000000 +0000 13 | +++ gtk+-2.24.21/Makefile.am 2013-10-01 23:00:55.162503600 +0000 14 | @@ -6,7 +6,7 @@ 15 | 16 | # require automake 1.4 17 | AUTOMAKE_OPTIONS = 1.7 18 | -ACLOCAL_AMFLAGS = -I m4 19 | +ACLOCAL_AMFLAGS = -I m4macros 20 | 21 | EXTRA_DIST += \ 22 | HACKING \ 23 | -------------------------------------------------------------------------------- /mingw-w64-lcms2/0002-need-jconfig-before-jmoreconfig.mingw.patch: -------------------------------------------------------------------------------- 1 | --- lcms2-2.5/configure.ac.orig 2013-06-27 16:01:28.000000000 +0000 2 | +++ lcms2-2.5/configure.ac 2013-07-28 06:17:38.507957900 +0000 3 | @@ -122,7 +122,7 @@ 4 | passed=0; 5 | AC_CHECK_HEADER(jconfig.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`) 6 | AC_CHECK_HEADER(jerror.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`) 7 | - AC_CHECK_HEADER(jmorecfg.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`) 8 | + AC_CHECK_HEADER(jmorecfg.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`,[#include ]) 9 | AC_CHECK_HEADER(jpeglib.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`) 10 | AC_CHECK_LIB(jpeg,jpeg_read_header,passed=`expr $passed + 1`,failed=`expr $failed + 1`,) 11 | 12 | -------------------------------------------------------------------------------- /mingw-w64-libtool/0006-Fix-strict-ansi-vs-posix.patch: -------------------------------------------------------------------------------- 1 | [PATCH 6/6] Fix STRICT_ANSI vs POSIX 2 | * build-aux/ltmain.in (func_mode_link): Also check for _POSIX 3 | as well as __STRICT_ANSI__ to avoid re-definitions. 4 | --- 5 | build-aux/ltmain.in | 4 +++- 6 | 1 files changed, 1 insertions(+), 1 deletions(-) 7 | 8 | diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in 9 | index af46cb8..244bb5b 100644 10 | --- a/build-aux/ltmain.in 11 | +++ b/build-aux/ltmain.in 12 | @@ -3382,7 +3382,7 @@ 13 | 14 | /* declarations of non-ANSI functions */ 15 | #if defined __MINGW32__ 16 | -# ifdef __STRICT_ANSI__ 17 | +# if defined(__STRICT_ANSI__) && !defined(__MINGW64_VERSION_MAJOR) || defined(_POSIX_) 18 | int _putenv (const char *); 19 | # endif 20 | #elif defined __CYGWIN__ 21 | -- 22 | 1.7.0.2.msysgit.0 -------------------------------------------------------------------------------- /mingw-w64-openjpeg2/0004-mingw-disable-java.patch: -------------------------------------------------------------------------------- 1 | --- openjpeg-2.3.1/src/bin/jpip/CMakeLists.txt.orig 2019-04-04 03:43:35.698890000 -0400 2 | +++ openjpeg-2.3.1/src/bin/jpip/CMakeLists.txt 2019-04-04 03:47:36.921116900 -0400 3 | @@ -68,6 +68,7 @@ if(NOT DEFINED JAVA_TARGET_VERSION) 4 | endif() 5 | 6 | # Only build the java viewer if dev is found: 7 | +if(NOT MINGW) 8 | if(Java_Development_FOUND AND Java_JAVAC_EXECUTABLE) 9 | set(jflags $ENV{JFLAGS}) 10 | # search for package org.apache.xerces.parsers 11 | @@ -159,3 +160,6 @@ if(Java_Development_FOUND AND Java_JAVAC 12 | else() 13 | message(WARNING "No java compiler found. Wont be able to build java viewer") 14 | endif() 15 | +else() 16 | + message(WARNING "MINGW does NOT support JAVA. Will NOT build java viewer") 17 | +endif(NOT MINGW) 18 | -------------------------------------------------------------------------------- /mingw-w64-suitesparse/0001-mingw-w64-Use-a-not-lib-as-AR_TARGET-extension.patch: -------------------------------------------------------------------------------- 1 | diff -urN SuiteSparse.orig/SuiteSparse_config/SuiteSparse_config.mk SuiteSparse/SuiteSparse_config/SuiteSparse_config.mk 2 | --- SuiteSparse.orig/SuiteSparse_config/SuiteSparse_config.mk 2017-04-30 19:09:25.629000800 +0100 3 | +++ SuiteSparse/SuiteSparse_config/SuiteSparse_config.mk 2017-04-30 19:09:52.490907400 +0100 4 | @@ -429,10 +429,8 @@ 5 | 6 | ifeq ($(UNAME),Windows) 7 | # Cygwin Make on Windows (untested) 8 | - AR_TARGET = $(LIBRARY).lib 9 | - SO_PLAIN = $(LIBRARY).dll 10 | - SO_MAIN = $(LIBRARY).$(SO_VERSION).dll 11 | - SO_TARGET = $(LIBRARY).$(VERSION).dll 12 | + AR_TARGET = $(LIBRARY).a 13 | + SO_TARGET = $(LIBRARY).dll 14 | SO_INSTALL_NAME = echo 15 | else 16 | # Mac or Linux/Unix -------------------------------------------------------------------------------- /mingw-w64-icu/0008-data-install-dir.mingw.patch: -------------------------------------------------------------------------------- 1 | diff -Naur icu-orig/source/data/Makefile.in icu/source/data/Makefile.in 2 | --- icu-orig/source/data/Makefile.in 2016-06-15 21:58:17.000000000 +0300 3 | +++ icu/source/data/Makefile.in 2018-03-01 10:09:15.837420200 +0300 4 | @@ -213,7 +213,7 @@ 5 | endif 6 | ifneq ($(ENABLE_STATIC),) 7 | ifeq ($(PKGDATA_MODE),dll) 8 | - $(PKGDATA_INVOKE) $(PKGDATA) -m static -e $(ICUDATA_ENTRY_POINT) -T $(OUTTMPDIR) -s $(BUILDDIR) -p $(ICUDATA_NAME) $(PKGDATA_LIBSTATICNAME) $(PKGDATA_LIST) -I $(ICUPKGDATA_INSTALL_LIBDIR) 9 | + $(PKGDATA_INVOKE) $(PKGDATA) -m static -e $(ICUDATA_ENTRY_POINT) -T $(OUTTMPDIR) -s $(BUILDDIR) -p $(ICUDATA_NAME) $(PKGDATA_LIBSTATICNAME) $(PKGDATA_LIST) -I $(DESTDIR)$(bindir) 10 | endif 11 | endif 12 | ifneq ($(ICUDATA_SOURCE_IS_NATIVE_TARGET),YES) 13 | -------------------------------------------------------------------------------- /mingw-w64-cairo/0009-standalone-headers.mingw.patch: -------------------------------------------------------------------------------- 1 | --- cairo-1.12.10/src/Makefile.am.analysis.orig 2013-01-19 16:35:36 +0400 2 | +++ cairo-1.12.10/src/Makefile.am.analysis 2013-01-19 17:16:51 +0400 3 | @@ -24,7 +24,7 @@ 4 | @echo Checking that enabled public/private headers can be compiled standalone 5 | @status=true; for f in $(enabled_cairo_headers) $(enabled_cairo_private); do \ 6 | echo " CHECK $$f"; \ 7 | - echo "#include \"$(srcdir)/$$f\"" > headers-standalone-tmp.c; \ 8 | + echo "#include \"$(shell cd $(srcdir) ; pwd -W)/$$f\"" > headers-standalone-tmp.c; \ 9 | echo "int main(int argc, char * argv[]) { return 0; }" >> headers-standalone-tmp.c; \ 10 | $(COMPILE) -o headers-standalone-tmp headers-standalone-tmp.c || status=false; \ 11 | $(RM) headers-standalone-tmp headers-standalone-tmp.c; \ 12 | -------------------------------------------------------------------------------- /mingw-w64-gtk2/0006-Fix-unix-symbols-in-docs.mingw.patch: -------------------------------------------------------------------------------- 1 | --- gtk+-2.24.10/docs/reference/gtk/gtk2.types.orig 2012-02-06 20:26:50 +0400 2 | +++ gtk+-2.24.10/docs/reference/gtk/gtk2.types 2012-04-27 00:56:27 +0400 3 | @@ -110,19 +110,15 @@ 4 | gtk_option_menu_get_type 5 | gtk_orientable_get_type 6 | gtk_page_setup_get_type 7 | -gtk_page_setup_unix_dialog_get_type 8 | gtk_paned_get_type 9 | gtk_paper_size_get_type 10 | gtk_pixmap_get_type 11 | gtk_plug_get_type 12 | gtk_preview_get_type 13 | -gtk_printer_get_type 14 | gtk_print_context_get_type 15 | -gtk_print_job_get_type 16 | gtk_print_operation_get_type 17 | gtk_print_operation_preview_get_type 18 | gtk_print_settings_get_type 19 | -gtk_print_unix_dialog_get_type 20 | gtk_progress_bar_get_type 21 | gtk_progress_get_type 22 | gtk_radio_action_get_type 23 | -------------------------------------------------------------------------------- /mingw-w64-python3/0650-cross-dont-add-multiarch-paths-if-cross-compiling.patch: -------------------------------------------------------------------------------- 1 | diff -Naur Python-3.8.0-orig/setup.py Python-3.8.0/setup.py 2 | --- Python-3.8.0-orig/setup.py 2019-10-22 10:03:08.498167800 +0300 3 | +++ Python-3.8.0/setup.py 2019-10-22 10:03:12.382574600 +0300 4 | @@ -654,10 +654,10 @@ 5 | if not CROSS_COMPILING: 6 | add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') 7 | add_dir_to_list(self.compiler.include_dirs, '/usr/local/include') 8 | + self.add_multiarch_paths() 9 | # only change this for cross builds for 3.3, issues on Mageia 10 | if CROSS_COMPILING: 11 | self.add_cross_compiling_paths() 12 | - self.add_multiarch_paths() 13 | self.add_ldflags_cppflags() 14 | 15 | def init_inc_lib_dirs(self): 16 | -------------------------------------------------------------------------------- /mingw-w64-szip/szip-fix-install-docs.patch: -------------------------------------------------------------------------------- 1 | --- szip-2.1/CMakeLists.txt.orig 2014-04-30 11:39:23.387800000 +0400 2 | +++ szip-2.1/CMakeLists.txt 2014-04-30 11:39:41.983000000 +0400 3 | @@ -39,7 +39,7 @@ 4 | set (SZIP_INSTALL_INCLUDE_DIR include) 5 | endif () 6 | if (NOT SZIP_INSTALL_DATA_DIR) 7 | - if (NOT WIN32) 8 | + if (NOT MSVC) 9 | if (APPLE) 10 | option (SZIP_BUILD_FRAMEWORKS "Create a Mac OSX Framework" OFF) 11 | set (SZIP_INSTALL_FWRK_DIR ${CMAKE_INSTALL_FRAMEWORK_PREFIX}) 12 | @@ -333,7 +333,7 @@ 13 | ${SZIP_SOURCE_DIR}/README 14 | ${SZIP_SOURCE_DIR}/INSTALL 15 | ${SZIP_SOURCE_DIR}/RELEASE.txt 16 | - DESTINATION ${SZIP_INSTALL_DATA_DIR} 17 | + DESTINATION ${SZIP_INSTALL_DATA_DIR}/doc/szip 18 | COMPONENT documents 19 | ) 20 | endif () 21 | -------------------------------------------------------------------------------- /mingw-w64-qpdf/0002-enable-advapi32-mingw.patch: -------------------------------------------------------------------------------- 1 | diff -Naur qpdf-7.1.0-orig/configure.ac qpdf-7.1.0/configure.ac 2 | --- qpdf-7.1.0-orig/configure.ac 2018-01-15 04:09:20.000000000 +0300 3 | +++ qpdf-7.1.0/configure.ac 2018-01-15 09:20:00.149735600 +0300 4 | @@ -122,7 +122,7 @@ 5 | 6 | if test "x$qpdf_OS_SECURE_RANDOM" = "x1"; then 7 | OLIBS=$LIBS 8 | - LIBS="$LIBS Advapi32.lib" 9 | + LIBS="$LIBS -ladvapi32" 10 | AC_MSG_CHECKING(for Advapi32 library) 11 | AC_LINK_IFELSE([AC_LANG_PROGRAM( 12 | [[#pragma comment(lib, "crypt32.lib") 13 | @@ -132,7 +132,7 @@ 14 | [CryptAcquireContext(&cp, NULL, NULL, PROV_RSA_FULL, 0);] 15 | )], 16 | [AC_MSG_RESULT(yes) 17 | - LIBS="$OLIBS -lAdvapi32"], 18 | + LIBS="$OLIBS -ladvapi32"], 19 | [AC_MSG_RESULT(no) 20 | LIBS=$OLIBS]) 21 | fi 22 | -------------------------------------------------------------------------------- /mingw-w64-x264-git/0001-beautify-pc.all.patch: -------------------------------------------------------------------------------- 1 | --- x264/configure.orig 2020-01-16 21:08:21.000000000 +0100 2 | +++ x264/configure 2020-01-16 21:09:16.000000000 +0100 3 | @@ -1571,9 +1571,9 @@ includedir=$includedir 4 | Name: x264 5 | Description: H.264 (MPEG4 AVC) encoder library 6 | Version: $(grep POINTVER < x264_config.h | sed -e 's/.* "//; s/".*//; s/ .*//') 7 | -Libs: -L$libdir -lx264 $([ "$shared" = "yes" ] || echo $libpthread $libm $libdl) 8 | +Libs: -L\${libdir} -lx264 $([ "$shared" = "yes" ] || echo $libpthread $libm $libdl) 9 | Libs.private: $([ "$shared" = "yes" ] && echo $libpthread $libm $libdl) 10 | -Cflags: -I$includedir $([ "$shared" = "yes" ] && echo "-DX264_API_IMPORTS") 11 | +Cflags: -I\${includedir} $([ "$shared" = "yes" ] && echo "-DX264_API_IMPORTS") 12 | EOF 13 | 14 | filters="crop select_every" 15 | -------------------------------------------------------------------------------- /mingw-w64-gdb/gdb-perfomance.patch: -------------------------------------------------------------------------------- 1 | From 6bae5cab05d22b5eb933e198b0034112fed2f65d Mon Sep 17 00:00:00 2001 2 | From: Orgad Shaneh 3 | Date: Thu, 13 Feb 2020 09:33:39 +0200 4 | Subject: [PATCH] As DJE said, the workaround looks like below 5 | 6 | --- 7 | gdb/typeprint.c | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/gdb/typeprint.c b/gdb/typeprint.c 11 | index effc511e5b..32918ff0cd 100644 12 | --- a/gdb/typeprint.c 13 | +++ b/gdb/typeprint.c 14 | @@ -54,7 +54,7 @@ const struct type_print_options type_print_raw_options = 15 | 16 | static struct type_print_options default_ptype_flags = 17 | { 18 | - 0, /* raw */ 19 | + 1, /* raw */ 20 | 1, /* print_methods */ 21 | 1, /* print_typedefs */ 22 | 0, /* print_offsets */ 23 | -- 24 | 2.25.0.windows.1 25 | 26 | -------------------------------------------------------------------------------- /mingw-w64-python3/1630-build-winconsoleio.patch: -------------------------------------------------------------------------------- 1 | diff -Naur Python-3.8.0-orig/Modules/Setup Python-3.8.0/Modules/Setup 2 | --- Python-3.8.0-orig/Modules/Setup 2019-10-22 10:04:31.147113000 +0300 3 | +++ Python-3.8.0/Modules/Setup 2019-10-22 10:04:32.223514900 +0300 4 | @@ -120,7 +120,7 @@ 5 | _locale -DPy_BUILD_CORE_BUILTIN _localemodule.c # -lintl 6 | 7 | # Standard I/O baseline 8 | -_io -DPy_BUILD_CORE_BUILTIN -I$(srcdir)/Include/internal -I$(srcdir)/Modules/_io _io/_iomodule.c _io/iobase.c _io/fileio.c _io/bytesio.c _io/bufferedio.c _io/textio.c _io/stringio.c 9 | +_io -DPy_BUILD_CORE_BUILTIN -I$(srcdir)/Include/internal -I$(srcdir)/Modules/_io _io/_iomodule.c _io/iobase.c _io/fileio.c _io/bytesio.c _io/bufferedio.c _io/textio.c _io/stringio.c _io/winconsoleio.c 10 | 11 | # faulthandler module 12 | faulthandler faulthandler.c 13 | -------------------------------------------------------------------------------- /mingw-w64-bwidget/PKGBUILD: -------------------------------------------------------------------------------- 1 | # Based on Arch's PKGBUILD 2 | 3 | _realname=bwidget 4 | pkgbase=mingw-w64-${_realname} 5 | pkgname=${MINGW_PACKAGE_PREFIX}-${_realname} 6 | pkgver=1.9.12 7 | pkgrel=1 8 | pkgdesc='A companion to Tcllib, for Tk related packages (mingw-w64)' 9 | arch=('any') 10 | url='https://core.tcl.tk/bwidget/home' 11 | license=('BSD') 12 | depends=("${MINGW_PACKAGE_PREFIX}-tk") 13 | source=("https://downloads.sourceforge.net/project/tcllib/BWidget/${pkgver}/bwidget-${pkgver}.tar.gz") 14 | sha256sums=('2f682da93e07ff8cadd6c0580e7d4de3c8828134eab662dbe3d0e6ffc9443263') 15 | 16 | package() { 17 | _dest=${pkgdir}/${MINGW_PREFIX}/lib 18 | mkdir -p ${_dest} 19 | cd ${srcdir} 20 | cp -r bwidget-${pkgver} "${_dest}" 21 | _bwdir=${_dest}/bwidget-${pkgver} 22 | cd ${_bwdir} 23 | rm -rf .fslckout Changelog tests demo 24 | } 25 | -------------------------------------------------------------------------------- /mingw-w64-cmake/legacy-mingw32.patch: -------------------------------------------------------------------------------- 1 | From 060b1ffdcc1b5bfd6e1a7bae939854568d4a69f2 Mon Sep 17 00:00:00 2001 2 | From: Jeroen Ooms 3 | Date: Sun, 25 Apr 2021 23:49:55 +0200 4 | Subject: [PATCH] Update cmThirdPartyChecks.cmake 5 | 6 | --- 7 | Utilities/cmThirdPartyChecks.cmake | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/Utilities/cmThirdPartyChecks.cmake b/Utilities/cmThirdPartyChecks.cmake 11 | index 4ccfdfc7251..fd38bfb31e9 100644 12 | --- a/Utilities/cmThirdPartyChecks.cmake 13 | +++ b/Utilities/cmThirdPartyChecks.cmake 14 | @@ -131,7 +131,7 @@ if(WIN32) 15 | set(HAVE_MEMORY_H 1) 16 | set(HAVE_MKDIR 1) 17 | set(HAVE_MKFIFO 0) 18 | - set(HAVE__MKGMTIME64 1) 19 | + set(HAVE__MKGMTIME64 0) 20 | set(HAVE_MKNOD 0) 21 | set(HAVE_MMAP 0) 22 | set(HAVE_MSG_NOSIGNAL 0) 23 | -------------------------------------------------------------------------------- /mingw-w64-nghttp2/001-fix-pc-prefix.patch: -------------------------------------------------------------------------------- 1 | --- nghttp2-1.50.0/CMakeLists.txt.orig 2022-10-29 12:52:40 +0000 2 | +++ nghttp2-1.50.0/CMakeLists.txt 2022-10-29 12:52:25 +0000 3 | @@ -457,9 +457,9 @@ 4 | set(abs_top_builddir "${CMAKE_CURRENT_BINARY_DIR}") 5 | # libnghttp2.pc (pkg-config file) 6 | set(prefix "${CMAKE_INSTALL_PREFIX}") 7 | -set(exec_prefix "${CMAKE_INSTALL_PREFIX}") 8 | -set(libdir "${CMAKE_INSTALL_FULL_LIBDIR}") 9 | -set(includedir "${CMAKE_INSTALL_FULL_INCLUDEDIR}") 10 | +set(exec_prefix "\${prefix}") 11 | +set(libdir "\${exec_prefix}/${CMAKE_INSTALL_LIBDIR}") 12 | +set(includedir "\${prefix}/${CMAKE_INSTALL_INCLUDEDIR}") 13 | set(VERSION "${PACKAGE_VERSION}") 14 | # For init scripts and systemd service file (in contrib/) 15 | set(bindir "${CMAKE_INSTALL_FULL_BINDIR}") 16 | -------------------------------------------------------------------------------- /mingw-w64-opencv/0014-python-install-path.patch: -------------------------------------------------------------------------------- 1 | From 9a9feb4b496a92318e6d0ef2594793a0bb063165 Mon Sep 17 00:00:00 2001 2 | From: "FeRD (Frank Dana)" 3 | Date: Wed, 21 Apr 2021 13:31:50 -0400 4 | Subject: [PATCH 7/8] python-install-path 5 | 6 | --- 7 | modules/python/common.cmake | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/modules/python/common.cmake b/modules/python/common.cmake 11 | index 6a438fd..080bec8 100644 12 | --- a/modules/python/common.cmake 13 | +++ b/modules/python/common.cmake 14 | @@ -128,7 +128,7 @@ else() 15 | set(PYTHON_INSTALL_CONFIGURATIONS "") 16 | endif() 17 | 18 | -if(WIN32) 19 | +if(MSVC) 20 | set(PYTHON_INSTALL_ARCHIVE "") 21 | else() 22 | set(PYTHON_INSTALL_ARCHIVE ARCHIVE DESTINATION ${${PYTHON}_PACKAGES_PATH} COMPONENT python) 23 | -- 24 | 2.31.1 25 | 26 | -------------------------------------------------------------------------------- /mingw-w64-python3/0350-MINGW-setup-_multiprocessing-module.patch: -------------------------------------------------------------------------------- 1 | diff -Naur Python-3.8.0-orig/setup.py Python-3.8.0/setup.py 2 | --- Python-3.8.0-orig/setup.py 2019-10-22 10:01:17.378172600 +0300 3 | +++ Python-3.8.0/setup.py 2019-10-22 10:01:29.904994600 +0300 4 | @@ -1667,7 +1667,12 @@ 5 | libraries=libs, 6 | include_dirs=["Modules/_multiprocessing"])) 7 | 8 | + multiprocessing_libs = [] 9 | + if MS_WINDOWS: 10 | + multiprocessing_libs += ['ws2_32'] 11 | self.add(Extension('_multiprocessing', multiprocessing_srcs, 12 | + define_macros={}, 13 | + libraries=multiprocessing_libs, 14 | include_dirs=["Modules/_multiprocessing"])) 15 | 16 | def detect_uuid(self): 17 | -------------------------------------------------------------------------------- /mingw-w64-qpdf/0001-fix-printf-on-mingw-w64.patch: -------------------------------------------------------------------------------- 1 | From 4bcf004fc5dd31476ba83dcd99bee07071ac9e72 Mon Sep 17 00:00:00 2001 2 | From: oltolm 3 | Date: Thu, 2 Apr 2015 11:14:27 +0200 4 | Subject: [PATCH] fix printf on mingw-w64 5 | 6 | --- 7 | qpdf/qpdf-ctest.c | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/qpdf/qpdf-ctest.c b/qpdf/qpdf-ctest.c 11 | index 3c13836..b6efcf3 100644 12 | --- a/qpdf/qpdf-ctest.c 13 | +++ b/qpdf/qpdf-ctest.c 14 | @@ -36,7 +36,7 @@ static FILE* safe_fopen(char const* filename, char const* mode) 15 | 16 | static void report_errors() 17 | { 18 | -#ifdef _WIN32 19 | +#if defined _WIN32 && !defined(__USE_MINGW_ANSI_STDIO) 20 | # define POS_FMT " pos : %I64d\n" 21 | #else 22 | /* If your compiler doesn't support lld, change to ld and lose 23 | -- 24 | 2.3.4 25 | 26 | -------------------------------------------------------------------------------- /mingw-w64-opencv/0008-mingw-w64-cmake-lib-path.patch: -------------------------------------------------------------------------------- 1 | --- opencv-3.4.2/cmake/templates/OpenCVConfig.root-WIN32.cmake.in.orig 2018-08-07 08:36:12.076932700 +0300 2 | +++ opencv-3.4.2/cmake/templates/OpenCVConfig.root-WIN32.cmake.in 2018-08-07 08:38:01.530193100 +0300 3 | @@ -63,6 +63,7 @@ 4 | return() 5 | endif() 6 | set(candidates) 7 | + if(MSVC) 8 | if(OpenCV_STATIC) 9 | list(APPEND candidates "${OpenCV_ARCH}/${OpenCV_RUNTIME}/staticlib") 10 | endif() 11 | @@ -73,6 +74,9 @@ 12 | list(APPEND candidates "gpu/${OpenCV_ARCH}/${OpenCV_RUNTIME}/staticlib") 13 | endif() 14 | list(APPEND candidates "${OpenCV_ARCH}/${OpenCV_RUNTIME}/lib") 15 | + else() 16 | + list(APPEND candidates "lib") 17 | + endif() 18 | foreach(c ${candidates}) 19 | set(p "${OpenCV_CONFIG_PATH}/${c}") 20 | if(EXISTS "${p}/OpenCVConfig.cmake") 21 | -------------------------------------------------------------------------------- /mingw-w64-libtool/0007-fix-cr-for-awk-in-configure.all.patch: -------------------------------------------------------------------------------- 1 | --- libtool-2.4.2/configure.orig 2011-10-17 10:18:58.000000000 +0000 2 | +++ libtool-2.4.2/configure 2013-08-04 19:01:30.220494400 +0000 3 | @@ -28825,7 +28825,7 @@ 4 | fi 5 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` 6 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 7 | - ac_cs_awk_cr='\\r' 8 | + ac_cs_awk_cr='\r' 9 | else 10 | ac_cs_awk_cr=$ac_cr 11 | fi 12 | --- libtool-2.4.2/libltdl/configure.orig 2011-10-17 10:19:47.000000000 +0000 13 | +++ libtool-2.4.2/libltdl/configure 2013-08-05 11:49:24.990792500 +0000 14 | @@ -13574,7 +13574,7 @@ 15 | fi 16 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` 17 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18 | - ac_cs_awk_cr='\\r' 19 | + ac_cs_awk_cr='\r' 20 | else 21 | ac_cs_awk_cr=$ac_cr 22 | fi 23 | -------------------------------------------------------------------------------- /mingw-w64-python3/0920-mingw-add-LIBPL-to-library-dirs.patch: -------------------------------------------------------------------------------- 1 | diff -Naur Python-3.8.0-orig/Lib/distutils/command/build_ext.py Python-3.8.0/Lib/distutils/command/build_ext.py 2 | --- Python-3.8.0-orig/Lib/distutils/command/build_ext.py 2019-10-22 10:03:03.194158500 +0300 3 | +++ Python-3.8.0/Lib/distutils/command/build_ext.py 2019-10-22 10:04:11.803079000 +0300 4 | @@ -218,7 +218,7 @@ 5 | 6 | # For extensions under Cygwin, Python's library directory must be 7 | # appended to library_dirs 8 | - if sys.platform[:6] == 'cygwin': 9 | + if sys.platform[:6] == 'cygwin' or self.plat_name.startswith(('mingw')): 10 | if sys.executable.startswith(os.path.join(sys.exec_prefix, "bin")): 11 | # building third party extensions 12 | config_dir_name = os.path.basename(sysconfig.get_config_var('LIBPL')) 13 | -------------------------------------------------------------------------------- /mingw-w64-file/0001-file-5.38-mingw-build.patch: -------------------------------------------------------------------------------- 1 | # this is an advanced patch to fix building v5.38 2 | # see for details 3 | # this patch should be removed with the next version 4 | diff --git a/src/compress.c b/src/compress.c 5 | index 33ce2bc..f172eda 100644 6 | --- a/src/compress.c 7 | +++ b/src/compress.c 8 | @@ -378,7 +378,7 @@ 9 | sread(int fd, void *buf, size_t n, int canbepipe __attribute__((__unused__))) 10 | { 11 | ssize_t rv; 12 | -#ifdef FIONREAD 13 | +#if defined(FIONREAD) && !defined(__MINGW32__) && !defined(WIN32) 14 | int t = 0; 15 | #endif 16 | size_t rn = n; 17 | @@ -386,7 +386,7 @@ 18 | if (fd == STDIN_FILENO) 19 | goto nocheck; 20 | 21 | -#ifdef FIONREAD 22 | +#if defined(FIONREAD) && !defined(__MINGW32__) && !defined(WIN32) 23 | if (canbepipe && (ioctl(fd, FIONREAD, &t) == -1 || t == 0)) { 24 | #ifdef FD_ZERO 25 | ssize_t cnt; 26 | -------------------------------------------------------------------------------- /mingw-w64-libiconv/0002-fix-cr-for-awk-in-configure.all.patch: -------------------------------------------------------------------------------- 1 | --- libiconv-1.14/configure.orig 2013-08-04 19:13:45.059307100 +0000 2 | +++ libiconv-1.14/configure 2013-08-04 19:14:09.009348300 +0000 3 | @@ -22903,7 +22903,7 @@ 4 | fi 5 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` 6 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 7 | - ac_cs_awk_cr='\\r' 8 | + ac_cs_awk_cr='\r' 9 | else 10 | ac_cs_awk_cr=$ac_cr 11 | fi 12 | --- libiconv-1.14/libcharset/configure.orig 2011-08-07 17:49:19.000000000 +0000 13 | +++ libiconv-1.14/libcharset/configure 2013-08-04 19:14:51.014182300 +0000 14 | @@ -12364,7 +12364,7 @@ 15 | fi 16 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` 17 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18 | - ac_cs_awk_cr='\\r' 19 | + ac_cs_awk_cr='\r' 20 | else 21 | ac_cs_awk_cr=$ac_cr 22 | fi 23 | -------------------------------------------------------------------------------- /mingw-w64-pkg-config/1024-return-actually-written-data-in-printf.all.patch: -------------------------------------------------------------------------------- 1 | diff -Naur glib-2.46.0-orig/glib/gnulib/printf.c glib-2.46.0/glib/gnulib/printf.c 2 | --- glib-2.46.0-orig/glib/gnulib/printf.c 2014-12-20 00:49:48.000000000 +0300 3 | +++ glib-2.46.0/glib/gnulib/printf.c 2015-09-22 09:09:03.834633700 +0300 4 | @@ -88,16 +88,16 @@ 5 | int _g_gnulib_vfprintf (FILE *file, char const *format, va_list args) 6 | { 7 | char *result; 8 | - size_t length; 9 | + size_t length, rlength; 10 | 11 | result = vasnprintf (NULL, &length, format, args); 12 | if (result == NULL) 13 | return -1; 14 | 15 | - fwrite (result, 1, length, file); 16 | + rlength = fwrite (result, 1, length, file); 17 | free (result); 18 | 19 | - return length; 20 | + return rlength; 21 | } 22 | 23 | int _g_gnulib_vsprintf (char *string, char const *format, va_list args) 24 | -------------------------------------------------------------------------------- /mingw-w64-poppler-data/PKGBUILD: -------------------------------------------------------------------------------- 1 | # Maintainer: Alexey Pavlov 2 | 3 | _realname=poppler-data 4 | pkgbase=mingw-w64-${_realname} 5 | pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" 6 | pkgver=0.4.11 7 | pkgrel=1 8 | pkgdesc="Encoding data for the poppler PDF rendering library" 9 | arch=('any') 10 | license=('custom' 'GPL2') 11 | url="https://poppler.freedesktop.org/" 12 | source=(https://poppler.freedesktop.org/${_realname}-${pkgver}.tar.gz) 13 | sha256sums=('2cec05cd1bb03af98a8b06a1e22f6e6e1a65b1e2f3816cb3069bb0874825f08c') 14 | 15 | package() { 16 | cd "${srcdir}/${_realname}-${pkgver}" 17 | make prefix=${MINGW_PREFIX} DESTDIR="${pkgdir}" install 18 | 19 | install -m755 -d "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}" 20 | install -m644 COPYING COPYING.adobe \ 21 | "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/" 22 | } 23 | -------------------------------------------------------------------------------- /mingw-w64-python3/0470-MINGW-avoid-circular-dependency-from-time-module-dur.patch: -------------------------------------------------------------------------------- 1 | diff -Naur Python-3.8.0-orig/Lib/distutils/cygwinccompiler.py Python-3.8.0/Lib/distutils/cygwinccompiler.py 2 | --- Python-3.8.0-orig/Lib/distutils/cygwinccompiler.py 2019-10-22 10:02:03.680054000 +0300 3 | +++ Python-3.8.0/Lib/distutils/cygwinccompiler.py 2019-10-22 10:02:16.066475700 +0300 4 | @@ -48,7 +48,6 @@ 5 | import os 6 | import sys 7 | import copy 8 | -from subprocess import Popen, PIPE, check_output 9 | import re 10 | 11 | from distutils.ccompiler import gen_preprocess_options, gen_lib_options 12 | @@ -385,6 +384,7 @@ 13 | executable = cmd.split()[0] 14 | if find_executable(executable) is None: 15 | return None 16 | + from subprocess import Popen, PIPE 17 | out = Popen(cmd, shell=True, stdout=PIPE).stdout 18 | try: 19 | out_string = out.read() 20 | -------------------------------------------------------------------------------- /mingw-w64-v8/0002-gn-ninja-deletes-objs-workaround.patch: -------------------------------------------------------------------------------- 1 | From 32c7b1cd351061bb4baa2af4f480b1e68997bd9c Mon Sep 17 00:00:00 2001 2 | From: Biswapriyo Nath 3 | Date: Fri, 14 Aug 2020 09:34:44 +0530 4 | Subject: [PATCH 3/3] Do not remove output file after compilation 5 | 6 | Signed-off-by: Biswapriyo Nath 7 | --- 8 | build/build_linux.ninja.template | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/build/build_linux.ninja.template b/build/build_linux.ninja.template 12 | index ab117fb..27339a7 100644 13 | --- a/build/build_linux.ninja.template 14 | +++ b/build/build_linux.ninja.template 15 | @@ -5,7 +5,7 @@ rule cxx 16 | deps = gcc 17 | 18 | rule alink_thin 19 | - command = rm -f $out && $ar rcsT $out $in 20 | + command = $ar rcsT $out $in 21 | description = AR $out 22 | 23 | rule link 24 | -- 25 | 2.27.0 26 | 27 | -------------------------------------------------------------------------------- /mingw-w64-zlib/011-Add-no-undefined-to-link-to-enable-build-shared-vers.patch: -------------------------------------------------------------------------------- 1 | From 6fcaf7683d06488f451107fe0466ec8f91572096 Mon Sep 17 00:00:00 2001 2 | From: Alexpux 3 | Date: Mon, 13 Oct 2014 07:23:44 +0400 4 | Subject: [PATCH 2/3] Add -no-undefined to link to enable build shared version 5 | with mingw. 6 | 7 | --- 8 | Makefile.am | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/Makefile.am b/Makefile.am 12 | index e2958e6..9a6ab44 100644 13 | --- a/Makefile.am 14 | +++ b/Makefile.am 15 | @@ -22,7 +22,7 @@ libminizip_la_SOURCES = \ 16 | ioapi_mem.c \ 17 | ${iowin32_src} 18 | 19 | -libminizip_la_LDFLAGS = $(AM_LDFLAGS) -version-info 1:0:0 -lz 20 | +libminizip_la_LDFLAGS = $(AM_LDFLAGS) -version-info 1:0:0 -no-undefined -lz 21 | 22 | minizip_includedir = $(includedir)/minizip 23 | minizip_include_HEADERS = \ 24 | -- 25 | 2.1.2 26 | 27 | -------------------------------------------------------------------------------- /mingw-w64-boost/boost-1.66.0-fix-qualifier.patch: -------------------------------------------------------------------------------- 1 | From fdbdb94db64e888fce90fe519be23c2a4396a82e Mon Sep 17 00:00:00 2001 2 | From: pradeep 3 | Date: Tue, 8 May 2018 14:53:38 +0530 4 | Subject: [PATCH 1/2] Fix return var qualifier in svm_ptr::get_context 5 | 6 | Lack of `const` qualifier is throwing errors with GCC 8.1 7 | --- 8 | include/boost/compute/memory/svm_ptr.hpp | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/include/boost/compute/memory/svm_ptr.hpp b/include/boost/compute/memory/svm_ptr.hpp 12 | index c8753f5b..56cf1268 100644 13 | --- a/boost/compute/memory/svm_ptr.hpp 14 | +++ b/boost/compute/memory/svm_ptr.hpp 15 | @@ -126,7 +126,7 @@ class svm_ptr 16 | return m_ptr - other.m_ptr; 17 | } 18 | 19 | - context& get_context() const 20 | + const context& get_context() const 21 | { 22 | return m_context; 23 | } 24 | -------------------------------------------------------------------------------- /mingw-w64-gtk2/0009-give-cc-to-gir-scanner.mingw.patch: -------------------------------------------------------------------------------- 1 | --- gtk+-2.24.20/gdk/Makefile.am.orig 2013-07-28 21:56:07.983654900 +0000 2 | +++ gtk+-2.24.20/gdk/Makefile.am 2013-07-28 22:00:08.786733000 +0000 3 | @@ -2,6 +2,8 @@ 4 | include $(top_srcdir)/Makefile.decl 5 | -include $(INTROSPECTION_MAKEFILE) 6 | INTROSPECTION_GIRS = 7 | +INTROSPECTION_SCANNER_ENV = \ 8 | + CC="$(CC)" 9 | INTROSPECTION_SCANNER_ARGS = \ 10 | --add-include-path=../gdk 11 | INTROSPECTION_COMPILER_ARGS = \ 12 | --- gtk+-2.24.20/gtk/Makefile.am.orig 2013-02-03 20:54:15.000000000 +0000 13 | +++ gtk+-2.24.20/gtk/Makefile.am 2013-07-28 22:06:06.408145200 +0000 14 | @@ -2,6 +2,8 @@ 15 | include $(top_srcdir)/Makefile.decl 16 | -include $(INTROSPECTION_MAKEFILE) 17 | INTROSPECTION_GIRS = 18 | +INTROSPECTION_SCANNER_ENV = \ 19 | + CC="$(CC)" 20 | INTROSPECTION_SCANNER_ARGS = \ 21 | --add-include-path=../gdk 22 | INTROSPECTION_COMPILER_ARGS = \ 23 | -------------------------------------------------------------------------------- /mingw-w64-binutils/0001-enable-gold-on.mingw32.patch: -------------------------------------------------------------------------------- 1 | --- binutils-2.23.1/configure.orig 2013-03-24 23:12:45 +0400 2 | +++ binutils-2.23.1/configure 2013-03-24 23:30:06 +0400 3 | @@ -2865,6 +2865,7 @@ 4 | yes|default) 5 | # Check for ELF target. 6 | is_elf=no 7 | + is_pe=no 8 | case "${target}" in 9 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ 10 | | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ 11 | @@ -2876,10 +2877,12 @@ 12 | *) 13 | is_elf=yes 14 | ;; 15 | - esac 16 | + esac;; 17 | + *-*-mingw*) 18 | + is_pe=yes;; 19 | esac 20 | 21 | - if test "$is_elf" = "yes"; then 22 | + if test "$is_elf" = "yes" -o "$is_pe" = "yes"; then 23 | # Check for target supported by gold. 24 | case "${target}" in 25 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*) 26 | -------------------------------------------------------------------------------- /mingw-w64-gcc/0016-gcc-7-branch-disable-weak-refs-in-libstdc++.patch: -------------------------------------------------------------------------------- 1 | From 0a6396581fa85fe4629a77d61e25ad085ea5576e Mon Sep 17 00:00:00 2001 2 | From: lhmouse 3 | Date: Sat, 24 Sep 2016 23:11:58 +0800 4 | Subject: [PATCH] Port ba282a67e971e045131291fd0f21ef786b82b1b1 from 5 | mingw-w64-gcc by @wiiaboo . 6 | 7 | --- 8 | libstdc++-v3/config/os/mingw32-w64/os_defines.h | 1 + 9 | 1 file changed, 1 insertion(+) 10 | 11 | diff --git a/libstdc++-v3/config/os/mingw32-w64/os_defines.h b/libstdc++-v3/config/os/mingw32-w64/os_defines.h 12 | index 43c400b..a3a315d 100644 13 | --- a/libstdc++-v3/config/os/mingw32-w64/os_defines.h 14 | +++ b/libstdc++-v3/config/os/mingw32-w64/os_defines.h 15 | @@ -76,6 +76,7 @@ 16 | 17 | #ifdef __x86_64__ 18 | #define _GLIBCXX_LLP64 1 19 | +#define _GLIBCXX_USE_WEAK_REF 0 20 | #endif 21 | 22 | // Enable use of GetModuleHandleEx (requires Windows XP/2003) in 23 | -- 24 | 2.9.1 25 | 26 | -------------------------------------------------------------------------------- /mingw-w64-hdf5/hdf5-fix-install-docs.patch: -------------------------------------------------------------------------------- 1 | --- hdf5-1.8.12/CMakeInstallation.cmake.orig 2013-11-21 19:14:04.000000000 +0400 2 | +++ hdf5-1.8.12/CMakeInstallation.cmake 2014-04-30 12:23:14.248200000 +0400 3 | @@ -144,7 +144,7 @@ 4 | install ( 5 | FILES 6 | ${HDF5_SOURCE_DIR}/COPYING 7 | - DESTINATION ${HDF5_INSTALL_DATA_DIR} 8 | + DESTINATION ${HDF5_INSTALL_DATA_DIR}/doc/hdf5 9 | COMPONENT hdfdocuments 10 | ) 11 | if (EXISTS "${HDF5_SOURCE_DIR}/release_docs" AND IS_DIRECTORY "${HDF5_SOURCE_DIR}/release_docs") 12 | @@ -188,7 +188,7 @@ 13 | endif (HDF5_PACK_INSTALL_DOCS) 14 | install ( 15 | FILES ${release_files} 16 | - DESTINATION ${HDF5_INSTALL_DATA_DIR} 17 | + DESTINATION ${HDF5_INSTALL_DATA_DIR}/doc/hdf5 18 | COMPONENT hdfdocuments 19 | ) 20 | endif (EXISTS "${HDF5_SOURCE_DIR}/release_docs" AND IS_DIRECTORY "${HDF5_SOURCE_DIR}/release_docs") 21 | -------------------------------------------------------------------------------- /mingw-w64-python3/0910-fix-using-dllhandle-and-winver-mingw.patch: -------------------------------------------------------------------------------- 1 | diff -Naur Python-3.8.0-orig/Python/sysmodule.c Python-3.8.0/Python/sysmodule.c 2 | --- Python-3.8.0-orig/Python/sysmodule.c 2019-10-14 16:34:47.000000000 +0300 3 | +++ Python-3.8.0/Python/sysmodule.c 2019-10-22 10:04:08.995074100 +0300 4 | @@ -34,7 +34,7 @@ 5 | #include 6 | #endif /* MS_WINDOWS */ 7 | 8 | -#ifdef MS_COREDLL 9 | +#if defined(MS_WINDOWS) && defined(Py_ENABLE_SHARED) 10 | extern void *PyWin_DLLhModule; 11 | /* A string loaded from the DLL at startup: */ 12 | extern const char *PyWin_DLLVersionString; 13 | @@ -2694,7 +2694,7 @@ 14 | PyUnicode_FromString("little")); 15 | #endif 16 | 17 | -#ifdef MS_COREDLL 18 | +#if defined(MS_WINDOWS) && defined(Py_ENABLE_SHARED) 19 | SET_SYS_FROM_STRING("dllhandle", 20 | PyLong_FromVoidPtr(PyWin_DLLhModule)); 21 | SET_SYS_FROM_STRING("winver", 22 | -------------------------------------------------------------------------------- /mingw-w64-python3/1620-fix-signal-module-build.patch: -------------------------------------------------------------------------------- 1 | diff -Naur Python-3.8.0-orig/Modules/Setup Python-3.8.0/Modules/Setup 2 | --- Python-3.8.0-orig/Modules/Setup 2019-10-22 10:01:07.612555400 +0300 3 | +++ Python-3.8.0/Modules/Setup 2019-10-22 10:04:29.009909200 +0300 4 | @@ -111,7 +111,7 @@ 5 | _abc _abc.c # Abstract base classes 6 | itertools itertoolsmodule.c # Functions creating iterators for efficient looping 7 | atexit atexitmodule.c # Register functions to be run at interpreter-shutdown 8 | -_signal -DPy_BUILD_CORE_BUILTIN -I$(srcdir)/Include/internal signalmodule.c 9 | +_signal -DPy_BUILD_CORE_BUILTIN -I$(srcdir)/Include/internal signalmodule.c -lws2_32 10 | _stat _stat.c # stat.h interface 11 | time -DPy_BUILD_CORE_BUILTIN -I$(srcdir)/Include/internal timemodule.c # -lm # time operations and variables 12 | _thread -DPy_BUILD_CORE_BUILTIN -I$(srcdir)/Include/internal _threadmodule.c # low-level threading interface 13 | -------------------------------------------------------------------------------- /mingw-w64-gcc/0150-libbacktrace-seh.patch: -------------------------------------------------------------------------------- 1 | libgcc/Changelog: 2 | * unwind-seh.c (_Unwind_Backtrace): Set the ra and cfa pointers 3 | before calling the callback. 4 | --- 5 | libgcc/unwind-seh.c | 5 +++++ 6 | 1 file changed, 5 insertions(+) 7 | 8 | diff --git a/libgcc/unwind-seh.c b/libgcc/unwind-seh.c 9 | index 1a70180cfaa..275d782903a 100644 10 | --- a/libgcc/unwind-seh.c 11 | +++ b/libgcc/unwind-seh.c 12 | @@ -466,6 +466,11 @@ _Unwind_Backtrace(_Unwind_Trace_Fn trace, 13 | &gcc_context.disp->HandlerData, 14 | &gcc_context.disp->EstablisherFrame, NULL); 15 | 16 | + /* Set values that the callback can inspect via _Unwind_GetIP 17 | + * and _Unwind_GetCFA. */ 18 | + gcc_context.ra = ms_context.Rip; 19 | + gcc_context.cfa = ms_context.Rsp; 20 | + 21 | /* Call trace function. */ 22 | if (trace (&gcc_context, trace_argument) != _URC_NO_REASON) 23 | return _URC_FATAL_PHASE1_ERROR; 24 | -------------------------------------------------------------------------------- /mingw-w64-python3/2080-pkg-config-windows-must-link-ext-with-python-lib.patch: -------------------------------------------------------------------------------- 1 | --- Python-3.8.0/configure.ac.orig 2019-10-24 13:55:46.684382200 +0300 2 | +++ Python-3.8.0/configure.ac 2019-10-24 13:55:55.334394400 +0300 3 | @@ -4990,7 +4990,7 @@ 4 | 5 | # On Android and Cygwin the shared libraries must be linked with libpython. 6 | AC_SUBST(LIBPYTHON) 7 | -if test -n "$ANDROID_API_LEVEL" -o "$MACHDEP" = "cygwin"; then 8 | +if test -n "$ANDROID_API_LEVEL" -o "$MACHDEP" = "cygwin" -o "$MACHDEP" = "win"; then 9 | LIBPYTHON="-lpython${VERSION}${ABIFLAGS}" 10 | else 11 | LIBPYTHON='' 12 | --- Python-3.8.0/Misc/python.pc.in.orig 2019-10-24 13:55:46.684382200 +0300 13 | +++ Python-3.8.0/Misc/python.pc.in 2019-10-24 13:55:55.334394400 +0300 14 | @@ -9,5 +9,5 @@ 15 | Requires: 16 | Version: @VERSION@ 17 | Libs.private: @LIBS@ 18 | -Libs: 19 | +Libs: -L${libdir} -lpython@VERSION@@ABIFLAGS@ 20 | Cflags: -I${includedir}/python@VERSION@@ABIFLAGS@ 21 | -------------------------------------------------------------------------------- /mingw-w64-zeromq/002-unused.patch: -------------------------------------------------------------------------------- 1 | From a02cbd0646175a44edb1d636911eb8dae12ec13f Mon Sep 17 00:00:00 2001 2 | From: Rosen Penev 3 | Date: Sun, 2 May 2021 16:49:27 -0700 4 | Subject: [PATCH] fix unused variables under windows 5 | 6 | Fixes compilation as -Werror is passed. 7 | --- 8 | src/clock.cpp | 4 +++- 9 | 1 file changed, 3 insertions(+), 1 deletion(-) 10 | 11 | diff --git a/src/clock.cpp b/src/clock.cpp 12 | index 79522ad38..93da90a8e 100644 13 | --- a/src/clock.cpp 14 | +++ b/src/clock.cpp 15 | @@ -126,9 +126,11 @@ static f_compatible_get_tick_count64 my_get_tick_count64 = 16 | init_compatible_get_tick_count64 (); 17 | #endif 18 | 19 | +#ifndef ZMQ_HAVE_WINDOWS 20 | const uint64_t usecs_per_msec = 1000; 21 | -const uint64_t usecs_per_sec = 1000000; 22 | const uint64_t nsecs_per_usec = 1000; 23 | +#endif 24 | +const uint64_t usecs_per_sec = 1000000; 25 | 26 | zmq::clock_t::clock_t () : 27 | _last_tsc (rdtsc ()), 28 | -------------------------------------------------------------------------------- /mingw-w64-libxml2/libxml2-2.9.2-catalog-revert.patch: -------------------------------------------------------------------------------- 1 | From 0e6659ec960734b0b01aad196d4bdb4a3800b493 Mon Sep 17 00:00:00 2001 2 | From: Lubomir Rintel 3 | Date: Thu, 16 Oct 2014 19:10:59 +0200 4 | Subject: [PATCH] Revert "Missing initialization for the catalog module" 5 | 6 | It's not correct to always load the default catalog. 7 | https://bugzilla.redhat.com/show_bug.cgi?id=1153753 8 | 9 | This reverts commit 054c716ea1bf001544127a4ab4f4346d1b9947e7. 10 | 11 | --- 12 | parser.c | 3 --- 13 | 1 file changed, 3 deletions(-) 14 | 15 | diff --git a/parser.c b/parser.c 16 | index 1d93967..67c9dfd 100644 17 | --- a/parser.c 18 | +++ b/parser.c 19 | @@ -14830,9 +14830,6 @@ xmlInitParser(void) { 20 | #ifdef LIBXML_XPATH_ENABLED 21 | xmlXPathInit(); 22 | #endif 23 | -#ifdef LIBXML_CATALOG_ENABLED 24 | - xmlInitializeCatalog(); 25 | -#endif 26 | xmlParserInitialized = 1; 27 | #ifdef LIBXML_THREAD_ENABLED 28 | } 29 | -- 30 | 1.9.3 31 | -------------------------------------------------------------------------------- /mingw-w64-flatbuffers/flatbuffers-1.9.0.patch: -------------------------------------------------------------------------------- 1 | --- flatbuffers-1.9.0/CMakeLists.txt.orig 2018-05-30 16:30:33.267884600 -0400 2 | +++ flatbuffers-1.9.0/CMakeLists.txt 2018-05-30 16:32:22.419530500 -0400 3 | @@ -309,14 +309,14 @@ 4 | install( 5 | TARGETS flatbuffers_shared EXPORT FlatbuffersSharedTargets 6 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} 7 | - RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR} 8 | + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} 9 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} 10 | ) 11 | else() 12 | install( 13 | TARGETS flatbuffers_shared EXPORT FlatbuffersSharedTargets 14 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} 15 | - RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR} 16 | + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} 17 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} 18 | INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} 19 | ) 20 | -------------------------------------------------------------------------------- /mingw-w64-gdb/python-configure-path-fixes.patch: -------------------------------------------------------------------------------- 1 | From 42c791d0d2e21b80aff0dbdb4402c6d633a5002a Mon Sep 17 00:00:00 2001 2 | From: Orgad Shaneh 3 | Date: Thu, 13 Feb 2020 09:25:04 +0200 4 | Subject: [PATCH] Python: Configure path fixes 5 | 6 | --- 7 | gdb/configure | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/gdb/configure b/gdb/configure 11 | index b572d414ca..2c8df2616e 100755 12 | --- a/gdb/configure 13 | +++ b/gdb/configure 14 | @@ -10488,7 +10488,7 @@ fi 15 | as_fn_error $? "failure running python-config --ldflags" "$LINENO" 5 16 | fi 17 | fi 18 | - python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix` 19 | + python_prefix=`cygpath -u "$(${python_prog} ${srcdir}/python/python-config.py --exec-prefix)"` 20 | if test $? != 0; then 21 | have_python_config=failed 22 | if test "${with_python}" != auto; then 23 | -- 24 | 2.25.0.windows.1 25 | 26 | -------------------------------------------------------------------------------- /mingw-w64-python3/0760-msys-monkeypatch-os-system-via-sh-exe.patch: -------------------------------------------------------------------------------- 1 | diff -Naur Python-3.8.0-orig/setup.py Python-3.8.0/setup.py 2 | --- Python-3.8.0-orig/setup.py 2019-10-22 10:03:24.597396100 +0300 3 | +++ Python-3.8.0/setup.py 2019-10-22 10:03:35.002614400 +0300 4 | @@ -38,6 +38,17 @@ 5 | return sys.platform 6 | 7 | 8 | +# On MSYS, os.system needs to be wrapped with sh.exe 9 | +# as otherwise all the io redirection will fail. 10 | +# Arguably, this could happen inside the real os.system 11 | +# rather than this monkey patch. 12 | +if sys.platform == "win32" and "MSYSTEM" in os.environ: 13 | + os_system = os.system 14 | + def msys_system(command): 15 | + command_in_sh = 'sh.exe -c "%s"' % command.replace("\\", "\\\\") 16 | + return os_system(command_in_sh) 17 | + os.system = msys_system 18 | + 19 | CROSS_COMPILING = ("_PYTHON_HOST_PLATFORM" in os.environ) 20 | HOST_PLATFORM = get_platform() 21 | MS_WINDOWS = (HOST_PLATFORM == 'win32') 22 | -------------------------------------------------------------------------------- /mingw-w64-nasm/0001-Remove-invalid-pure_func-qualifiers.patch: -------------------------------------------------------------------------------- 1 | From d0dabb46a821b2506681f882af0d5696d2c2bade Mon Sep 17 00:00:00 2001 2 | From: Michael Simacek 3 | Date: Thu, 8 Feb 2018 14:47:08 +0100 4 | Subject: [PATCH] Remove invalid pure_func qualifiers 5 | 6 | --- 7 | include/nasmlib.h | 4 ++-- 8 | 1 file changed, 2 insertions(+), 2 deletions(-) 9 | 10 | diff --git a/include/nasmlib.h b/include/nasmlib.h 11 | index 79e866b..c93cef0 100644 12 | --- a/include/nasmlib.h 13 | +++ b/include/nasmlib.h 14 | @@ -191,8 +191,8 @@ int64_t readstrnum(char *str, int length, bool *warn); 15 | * seg_init: Initialise the segment-number allocator. 16 | * seg_alloc: allocate a hitherto unused segment number. 17 | */ 18 | -void pure_func seg_init(void); 19 | -int32_t pure_func seg_alloc(void); 20 | +void seg_init(void); 21 | +int32_t seg_alloc(void); 22 | 23 | /* 24 | * many output formats will be able to make use of this: a standard 25 | -- 26 | 2.14.3 27 | 28 | -------------------------------------------------------------------------------- /mingw-w64-boost/boost-1.57.0-mpl-print.patch: -------------------------------------------------------------------------------- 1 | diff -up boost_1_57_0/boost/mpl/print.hpp\~ boost_1_57_0/boost/mpl/print.hpp 2 | --- boost_1_57_0/boost/mpl/print.hpp~ 2014-07-09 23:12:31.000000000 +0200 3 | +++ boost_1_57_0/boost/mpl/print.hpp 2015-01-20 12:44:59.621400948 +0100 4 | @@ -52,16 +52,15 @@ struct print 5 | enum { n = sizeof(T) + -1 }; 6 | #elif defined(__MWERKS__) 7 | void f(int); 8 | -#else 9 | - enum { 10 | - n = 11 | -# if defined(__EDG_VERSION__) 12 | - aux::dependent_unsigned::value > -1 13 | -# else 14 | - sizeof(T) > -1 15 | -# endif 16 | - }; 17 | -#endif 18 | +#elif defined(__EDG_VERSION__) 19 | + enum { n = aux::dependent_unsigned::value > -1 }; 20 | +#elif defined(BOOST_GCC) 21 | + enum { n1 }; 22 | + enum { n2 }; 23 | + enum { n = n1 != n2 }; 24 | +#else 25 | + enum { n = sizeof(T) > -1 }; 26 | +#endif 27 | }; 28 | 29 | #if defined(BOOST_MSVC) 30 | 31 | Diff finished. Tue Jan 20 12:45:03 2015 32 | -------------------------------------------------------------------------------- /mingw-w64-python3/0170-MINGW-add-srcdir-PC-to-CPPFLAGS.patch: -------------------------------------------------------------------------------- 1 | diff -Naur Python-3.8.0-orig/configure.ac Python-3.8.0/configure.ac 2 | --- Python-3.8.0-orig/configure.ac 2019-10-22 10:00:49.172323000 +0300 3 | +++ Python-3.8.0/configure.ac 2019-10-22 10:00:50.295525000 +0300 4 | @@ -5450,8 +5450,21 @@ 5 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" 6 | done 7 | 8 | +case $host in 9 | + *-*-mingw*) 10 | + dnl Required for windows builds as Objects/exceptions.c require 11 | + dnl "errmap.h" from $srcdir/PC. 12 | + dnl Note we cannot use BASECPPFLAGS as autogenerated pyconfig.h 13 | + dnl has to be before customized located in ../PC. 14 | + CPPFLAGS="-I\$(srcdir)/PC $CPPFLAGS" 15 | + ;; 16 | +esac 17 | + 18 | AC_SUBST(SRCDIRS) 19 | SRCDIRS="Parser Objects Python Modules Modules/_io Programs" 20 | +case $host in 21 | + *-*-mingw*) SRCDIRS="$SRCDIRS PC";; 22 | +esac 23 | AC_MSG_CHECKING(for build directories) 24 | for dir in $SRCDIRS; do 25 | if test ! -d $dir; then 26 | -------------------------------------------------------------------------------- /mingw-w64-icu/0021-mingw-static-libraries-without-s.patch: -------------------------------------------------------------------------------- 1 | diff -Naur icu-orig/source/config/mh-mingw icu/source/config/mh-mingw 2 | --- icu-orig/source/config/mh-mingw 2018-03-01 10:09:30.907046700 +0300 3 | +++ icu/source/config/mh-mingw 2018-03-01 10:19:05.831438700 +0300 4 | @@ -62,6 +62,9 @@ 5 | SO_TARGET_VERSION_SUFFIX = 6 | endif 7 | 8 | +STATIC_PREFIX_WHEN_USED = 9 | +STATIC_PREFIX = 10 | + 11 | # Static library prefix and file extension 12 | LIBSICU = $(LIBPREFIX)$(STATIC_PREFIX)$(ICUPREFIX) 13 | A = a 14 | diff -Naur icu-orig/source/config/mh-mingw64 icu/source/config/mh-mingw64 15 | --- icu-orig/source/config/mh-mingw64 2018-03-01 10:09:30.907046700 +0300 16 | +++ icu/source/config/mh-mingw64 2018-03-01 10:19:13.118855500 +0300 17 | @@ -62,6 +62,9 @@ 18 | SO_TARGET_VERSION_SUFFIX = 19 | endif 20 | 21 | +STATIC_PREFIX_WHEN_USED = 22 | +STATIC_PREFIX = 23 | + 24 | # Static library prefix and file extension 25 | LIBSICU = $(LIBPREFIX)$(STATIC_PREFIX)$(ICUPREFIX) 26 | A = a 27 | -------------------------------------------------------------------------------- /mingw-w64-libtool/0005-Fix-seems-to-be-moved.patch: -------------------------------------------------------------------------------- 1 | [PATCH 5/6] Fix "seems to be moved" 2 | * build-aux/ltmain.in (func_mode_link): Compare files by inode 3 | to fix "seems to be moved" warning. 4 | --- 5 | build-aux/ltmain.in | 4 +++- 6 | 1 files changed, 3 insertions(+), 1 deletions(-) 7 | 8 | diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in 9 | index af46cb8..244bb5b 100644 10 | --- a/build-aux/ltmain.in 11 | +++ b/build-aux/ltmain.in 12 | @@ -6283,7 +6283,9 @@ func_mode_link () 13 | eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` 14 | test -z "$libdir" && \ 15 | func_fatal_error "'$deplib' is not a valid libtool archive" 16 | - test "$absdir" != "$libdir" && \ 17 | + abs_inode=`ls -i "$deplib" | awk '{print $1}'` 18 | + lib_inode=`ls -i "$libdir/$(basename $deplib)" | awk '{print $1}'` 19 | + test "$abs_inode" != "$lib_inode" && \ 20 | func_warning "'$deplib' seems to be moved" 21 | 22 | path=-L$absdir 23 | -- 24 | 1.7.0.2.msysgit.0 -------------------------------------------------------------------------------- /mingw-w64-boost/msys2-mingw-folders-bootstrap.patch: -------------------------------------------------------------------------------- 1 | --- a/tools/build/src/engine/build.sh 2015-07-07 09:46:25.813659600 +0300 2 | +++ b/tools/build/src/engine/build.sh 2015-07-07 09:47:50.111229000 +0300 3 | @@ -58,11 +58,24 @@ 4 | test `uname` = $* 5 | fi 6 | } 7 | + 8 | +test_msystem () 9 | +{ 10 | + if [ -n $MSYSTEM ]; then 11 | + test "$MSYSTEM" = "$*" 12 | + fi 13 | +} 14 | 15 | # Try and guess the toolset to bootstrap the build with... 16 | Guess_Toolset () 17 | { 18 | if test_uname Darwin ; then BOOST_JAM_TOOLSET=darwin 19 | + elif test_msystem MINGW32 ; then 20 | + BOOST_JAM_TOOLSET=gcc 21 | + BOOST_JAM_TOOLSET_ROOT=/mingw32/ 22 | + elif test_msystem MINGW64 ; then 23 | + BOOST_JAM_TOOLSET=gcc 24 | + BOOST_JAM_TOOLSET_ROOT=/mingw64/ 25 | elif test_uname IRIX ; then BOOST_JAM_TOOLSET=mipspro 26 | elif test_uname IRIX64 ; then BOOST_JAM_TOOLSET=mipspro 27 | elif test_uname OSF1 ; then BOOST_JAM_TOOLSET=tru64cxx 28 | -------------------------------------------------------------------------------- /mingw-w64-crt-git/0001-Allow-to-use-bessel-and-complex-functions-without-un.patch: -------------------------------------------------------------------------------- 1 | From 58ff03526ba9a0e5ebe2e318b54fdbe993d5abbd Mon Sep 17 00:00:00 2001 2 | From: Alexey Pavlov 3 | Date: Thu, 14 Sep 2017 11:13:45 +0300 4 | Subject: [PATCH 1/3] Allow to use bessel and complex functions without 5 | undefining 6 | 7 | --- 8 | mingw-w64-headers/crt/math.h | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/mingw-w64-headers/crt/math.h b/mingw-w64-headers/crt/math.h 12 | index 658abc80..7d5a26da 100644 13 | --- a/mingw-w64-headers/crt/math.h 14 | +++ b/mingw-w64-headers/crt/math.h 15 | @@ -263,7 +263,7 @@ extern "C" { 16 | #define EDOM 33 17 | #define ERANGE 34 18 | 19 | -#ifndef __STRICT_ANSI__ 20 | +#if !defined(__STRICT_ANSI__) || defined(_POSIX_C_SOURCE) || defined(_POSIX_SOURCE) || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) 21 | 22 | #ifndef _COMPLEX_DEFINED 23 | #define _COMPLEX_DEFINED 24 | -- 25 | 2.14.1 26 | 27 | -------------------------------------------------------------------------------- /mingw-w64-libde265/001-fix-VPATH.patch: -------------------------------------------------------------------------------- 1 | diff -Naur libde265-1.0.3.orig/sherlock265/Makefile.am libde265-1.0.3/sherlock265/Makefile.am 2 | --- libde265-1.0.3.orig/sherlock265/Makefile.am 2016-06-23 03:31:00.000000000 -0500 3 | +++ libde265-1.0.3/sherlock265/Makefile.am 2018-07-16 05:31:16.578125000 -0500 4 | @@ -37,13 +37,13 @@ 5 | endif 6 | 7 | moc_VideoWidget.cpp: VideoWidget.hh 8 | - $(QTMOC) $(DEFINES) $(INCPATH) VideoWidget.hh -o moc_VideoWidget.cpp 9 | + $(QTMOC) $(DEFINES) $(INCPATH) $(srcdir)/VideoWidget.hh -o moc_VideoWidget.cpp 10 | 11 | moc_VideoPlayer.cpp: VideoPlayer.hh 12 | - $(QTMOC) $(DEFINES) $(INCPATH) VideoPlayer.hh -o moc_VideoPlayer.cpp 13 | + $(QTMOC) $(DEFINES) $(INCPATH) $(srcdir)/VideoPlayer.hh -o moc_VideoPlayer.cpp 14 | 15 | moc_VideoDecoder.cpp: VideoDecoder.hh 16 | - $(QTMOC) $(DEFINES) $(INCPATH) VideoDecoder.hh -o moc_VideoDecoder.cpp 17 | + $(QTMOC) $(DEFINES) $(INCPATH) $(srcdir)/VideoDecoder.hh -o moc_VideoDecoder.cpp 18 | 19 | EXTRA_DIST = \ 20 | README 21 | -------------------------------------------------------------------------------- /mingw-w64-headers-git/0001-Allow-to-use-bessel-and-complex-functions-without-un.patch: -------------------------------------------------------------------------------- 1 | From 58ff03526ba9a0e5ebe2e318b54fdbe993d5abbd Mon Sep 17 00:00:00 2001 2 | From: Alexey Pavlov 3 | Date: Thu, 14 Sep 2017 11:13:45 +0300 4 | Subject: [PATCH 1/3] Allow to use bessel and complex functions without 5 | undefining 6 | 7 | --- 8 | mingw-w64-headers/crt/math.h | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/mingw-w64-headers/crt/math.h b/mingw-w64-headers/crt/math.h 12 | index 658abc80..7d5a26da 100644 13 | --- a/mingw-w64-headers/crt/math.h 14 | +++ b/mingw-w64-headers/crt/math.h 15 | @@ -263,7 +263,7 @@ extern "C" { 16 | #define EDOM 33 17 | #define ERANGE 34 18 | 19 | -#ifndef __STRICT_ANSI__ 20 | +#if !defined(__STRICT_ANSI__) || defined(_POSIX_C_SOURCE) || defined(_POSIX_SOURCE) || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) 21 | 22 | #ifndef _COMPLEX_DEFINED 23 | #define _COMPLEX_DEFINED 24 | -- 25 | 2.14.1 26 | 27 | -------------------------------------------------------------------------------- /mingw-w64-python3/0110-MINGW-translate-gcc-internal-defines-to-python-platf.patch: -------------------------------------------------------------------------------- 1 | diff -Naur Python-3.8.0-orig/Include/pyport.h Python-3.8.0/Include/pyport.h 2 | --- Python-3.8.0-orig/Include/pyport.h 2019-10-14 16:34:47.000000000 +0300 3 | +++ Python-3.8.0/Include/pyport.h 2019-10-22 10:00:36.224300300 +0300 4 | @@ -26,6 +26,21 @@ 5 | #endif 6 | 7 | 8 | +#ifdef __MINGW32__ 9 | +/* Translate GCC[mingw*] platform specific defines to those 10 | + * used in python code. 11 | + */ 12 | +#if !defined(MS_WIN64) && defined(_WIN64) 13 | +# define MS_WIN64 14 | +#endif 15 | +#if !defined(MS_WIN32) && defined(_WIN32) 16 | +# define MS_WIN32 17 | +#endif 18 | +#if !defined(MS_WINDOWS) && defined(MS_WIN32) 19 | +# define MS_WINDOWS 20 | +#endif 21 | +#endif /* __MINGW32__*/ 22 | + 23 | /************************************************************************** 24 | Symbols and macros to supply platform-independent interfaces to basic 25 | C language & library operations whose spellings vary across platforms. 26 | -------------------------------------------------------------------------------- /mingw-w64-libgit2/winlibs.patch: -------------------------------------------------------------------------------- 1 | diff --git a/cmake/FindPkgLibraries.cmake b/cmake/FindPkgLibraries.cmake 2 | index 220bb2ce2..39f74a8bc 100644 3 | --- a/cmake/FindPkgLibraries.cmake 4 | +++ b/cmake/FindPkgLibraries.cmake 5 | @@ -14,13 +14,13 @@ function(FIND_PKGLIBRARIES prefix package) 6 | foreach(LIBRARY ${${prefix}_LIBRARIES}) 7 | find_library(${LIBRARY}_RESOLVED ${LIBRARY} PATHS ${${prefix}_LIBRARY_DIRS}) 8 | if(${${LIBRARY}_RESOLVED} STREQUAL "${LIBRARY}_RESOLVED-NOTFOUND") 9 | - message(FATAL_ERROR "could not resolve ${LIBRARY}") 10 | + message(WARNING "could not resolve ${LIBRARY}") 11 | endif() 12 | list(APPEND RESOLVED_LIBRARIES ${${LIBRARY}_RESOLVED}) 13 | endforeach() 14 | 15 | set(${prefix}_FOUND 1 PARENT_SCOPE) 16 | - set(${prefix}_LIBRARIES ${RESOLVED_LIBRARIES} PARENT_SCOPE) 17 | + set(${prefix}_LIBRARIES ${${prefix}_LIBRARIES} PARENT_SCOPE) 18 | set(${prefix}_INCLUDE_DIRS ${${prefix}_INCLUDE_DIRS} PARENT_SCOPE) 19 | set(${prefix}_LDFLAGS ${${prefix}_LDFLAGS} PARENT_SCOPE) 20 | 21 | -------------------------------------------------------------------------------- /mingw-w64-c-ares/0003-fix-cmake-targets.patch: -------------------------------------------------------------------------------- 1 | --- c-ares-cares-1_13_0/CMakeLists.txt.orig 2017-11-14 10:37:45.399929800 +0300 2 | +++ c-ares-cares-1_13_0/CMakeLists.txt 2017-11-14 10:40:39.555223600 +0300 3 | @@ -545,6 +545,7 @@ 4 | COMPILE_PDB_OUTPUT_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY} 5 | SOVERSION ${CARES_LIB_VERSION_MAJOR} 6 | VERSION "${CARES_LIB_VERSION_MAJOR}.${CARES_LIB_VERSION_MINOR}.${CARES_LIB_VERSION_RELEASE}" 7 | + RUNTIME_OUTPUT_NAME cares-${CARES_LIB_VERSION_AGE} 8 | ) 9 | 10 | TARGET_INCLUDE_DIRECTORIES (${PROJECT_NAME} PUBLIC "$") 11 | @@ -574,7 +575,7 @@ 12 | 13 | SET_TARGET_PROPERTIES (${LIBNAME} PROPERTIES 14 | EXPORT_NAME cares${STATIC_SUFFIX} 15 | - OUTPUT_NAME cares${STATIC_SUFFIX} 16 | + OUTPUT_NAME cares 17 | COMPILE_PDB_NAME cares${STATIC_SUFFIX} 18 | COMPILE_PDB_OUTPUT_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY} 19 | ) 20 | -------------------------------------------------------------------------------- /mingw-w64-rabbitmq-c/0001-librabbitmq-CMakeLists.txt.patch: -------------------------------------------------------------------------------- 1 | --- origsrc/rabbitmq-c/librabbitmq/CMakeLists.txt 2016-04-10 07:03:24.000000000 +0200 2 | +++ src/rabbitmq-c/librabbitmq/CMakeLists.txt 2016-07-30 20:36:58.954149900 +0200 3 | @@ -125,7 +125,7 @@ 4 | target_link_libraries(rabbitmq ${RMQ_LIBRARIES}) 5 | 6 | if (WIN32) 7 | - set_target_properties(rabbitmq PROPERTIES VERSION ${RMQ_VERSION} OUTPUT_NAME rabbitmq.${RMQ_SOVERSION}) 8 | + set_target_properties(rabbitmq PROPERTIES VERSION ${RMQ_VERSION} OUTPUT_NAME rabbitmq) 9 | else (WIN32) 10 | set_target_properties(rabbitmq PROPERTIES VERSION ${RMQ_VERSION} SOVERSION ${RMQ_SOVERSION}) 11 | endif (WIN32) 12 | @@ -152,7 +152,7 @@ 13 | if (WIN32) 14 | set_target_properties(rabbitmq-static PROPERTIES 15 | VERSION ${RMQ_VERSION} 16 | - OUTPUT_NAME librabbitmq.${RMQ_SOVERSION}) 17 | + OUTPUT_NAME rabbitmq) 18 | 19 | if(MSVC) 20 | set_target_properties(rabbitmq-static PROPERTIES -------------------------------------------------------------------------------- /mingw-w64-python3/2030-fix-msvc9-import.patch: -------------------------------------------------------------------------------- 1 | diff -Naur Python-3.8.0-orig/Lib/distutils/msvc9compiler.py Python-3.8.0/Lib/distutils/msvc9compiler.py 2 | --- Python-3.8.0-orig/Lib/distutils/msvc9compiler.py 2019-10-14 16:34:47.000000000 +0300 3 | +++ Python-3.8.0/Lib/distutils/msvc9compiler.py 2019-10-22 10:05:17.120393700 +0300 4 | @@ -292,8 +292,6 @@ 5 | 6 | # More globals 7 | VERSION = get_build_version() 8 | -if VERSION < 8.0: 9 | - raise DistutilsPlatformError("VC %0.1f is not supported by this module" % VERSION) 10 | # MACROS = MacroExpander(VERSION) 11 | 12 | class MSVCCompiler(CCompiler) : 13 | @@ -328,6 +326,8 @@ 14 | 15 | def __init__(self, verbose=0, dry_run=0, force=0): 16 | CCompiler.__init__ (self, verbose, dry_run, force) 17 | + if VERSION < 8.0: 18 | + raise DistutilsPlatformError("VC %0.1f is not supported by this module" % VERSION) 19 | self.__version = VERSION 20 | self.__root = r"Software\Microsoft\VisualStudio" 21 | # self.__macros = MACROS 22 | -------------------------------------------------------------------------------- /mingw-w64-boost/boost-1.61.0-fix-undefined-referense-to-codecvt.patch: -------------------------------------------------------------------------------- 1 | From aab8477eb1456896bf7311e913fb9b20b5f5e335 Mon Sep 17 00:00:00 2001 2 | From: xantares 3 | Date: Sat, 14 May 2016 16:16:51 +0200 4 | Subject: [PATCH] Fix undefined reference to codecvt_null 5 | 6 | See https://svn.boost.org/trac/boost/ticket/12205 7 | --- 8 | libs/serialization/build/Jamfile.v2 | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/libs/serialization/build/Jamfile.v2 b/libs/serialization/build/Jamfile.v2 12 | index 8fd92e6..cb17dd5 100644 13 | --- a/libs/serialization/build/Jamfile.v2 14 | +++ b/libs/serialization/build/Jamfile.v2 15 | @@ -80,7 +80,6 @@ SOURCES = 16 | xml_iarchive 17 | xml_oarchive 18 | xml_archive_exception 19 | - codecvt_null 20 | utf8_codecvt_facet 21 | singleton 22 | ; 23 | @@ -93,6 +92,7 @@ WSOURCES = 24 | xml_wgrammar 25 | xml_wiarchive 26 | xml_woarchive 27 | + codecvt_null 28 | ; 29 | 30 | lib boost_serialization 31 | -------------------------------------------------------------------------------- /mingw-w64-python-setuptools/0006-fix-tests-path.patch: -------------------------------------------------------------------------------- 1 | diff --git a/setuptools/tests/test_install_scripts.py b/setuptools/tests/test_install_scripts.py 2 | index 4338c79..3afaf0b 100644 3 | --- a/setuptools/tests/test_install_scripts.py 4 | +++ b/setuptools/tests/test_install_scripts.py 5 | @@ -9,7 +9,7 @@ import pytest 6 | from setuptools.command.install_scripts import install_scripts 7 | from setuptools.dist import Distribution 8 | from . import contexts 9 | - 10 | +from pathlib import Path 11 | 12 | class TestInstallScripts: 13 | settings = dict( 14 | @@ -19,7 +19,7 @@ class TestInstallScripts: 15 | ) 16 | unix_exe = '/usr/dummy-test-path/local/bin/python' 17 | unix_spaces_exe = '/usr/bin/env dummy-test-python' 18 | - win32_exe = 'C:\\Dummy Test Path\\Program Files\\Python 3.6\\python.exe' 19 | + win32_exe = str(Path('C:\\Dummy Test Path\\Program Files\\Python 3.6\\python.exe')) 20 | 21 | def _run_install_scripts(self, install_dir, executable=None): 22 | dist = Distribution(self.settings) 23 | -------------------------------------------------------------------------------- /mingw-w64-python3/0150-MINGW-configure-largefile-support-for-windows-builds.patch: -------------------------------------------------------------------------------- 1 | diff -Naur Python-3.8.0-orig/configure.ac Python-3.8.0/configure.ac 2 | --- Python-3.8.0-orig/configure.ac 2019-10-22 10:00:45.568716700 +0300 3 | +++ Python-3.8.0/configure.ac 2019-10-22 10:00:47.456320000 +0300 4 | @@ -2407,8 +2407,20 @@ 5 | ]) 6 | 7 | AC_MSG_CHECKING(whether to enable large file support) 8 | +have_largefile_support=no 9 | if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ 10 | "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then 11 | + have_largefile_support=yes 12 | +else 13 | + case $host in 14 | + *-*-mingw*) 15 | + dnl Activate on windows platforms (32&64-bit) where off_t(4) < fpos_t(8) 16 | + have_largefile_support=yes 17 | + ;; 18 | + esac 19 | +fi 20 | + 21 | +if test $have_largefile_support = yes ; then 22 | AC_DEFINE(HAVE_LARGEFILE_SUPPORT, 1, 23 | [Defined to enable large file support when an off_t is bigger than a long 24 | and long long is at least as big as an off_t. You may need 25 | -------------------------------------------------------------------------------- /mingw-w64-python3/0740-grammar-fixes.patch: -------------------------------------------------------------------------------- 1 | diff -Naur Python-3.8.0-orig/Python/graminit.c Python-3.8.0/Python/graminit.c 2 | --- Python-3.8.0-orig/Python/graminit.c 2019-10-14 16:34:47.000000000 +0300 3 | +++ Python-3.8.0/Python/graminit.c 2019-10-22 10:03:28.497403000 +0300 4 | @@ -1,7 +1,8 @@ 5 | /* Generated by Parser/pgen */ 6 | 7 | #include "grammar.h" 8 | -grammar _PyParser_Grammar; 9 | +#include "pyport.h" 10 | +PyAPI_DATA(grammar) _PyParser_Grammar; 11 | static const arc arcs_0_0[3] = { 12 | {2, 1}, 13 | {3, 2}, 14 | diff -Naur Python-3.8.0-orig/Modules/parsermodule.c Python-3.8.0/Modules/parsermodule.c 15 | --- Python-3.8.0-orig/Modules/parsermodule.c 2019-10-14 16:34:47.000000000 +0300 16 | +++ Python-3.8.0/Modules/parsermodule.c 2019-10-22 10:03:28.497403000 +0300 17 | @@ -38,7 +38,7 @@ 18 | #include "grammar.h" 19 | #include "parsetok.h" 20 | 21 | -extern grammar _PyParser_Grammar; /* From graminit.c */ 22 | +PyAPI_DATA(grammar) _PyParser_Grammar; /* From graminit.c */ 23 | 24 | #ifdef lint 25 | #include 26 | -------------------------------------------------------------------------------- /mingw-w64-aws-sdk-cpp/WinHttp-missing-flags.patch: -------------------------------------------------------------------------------- 1 | diff -aurp aws-sdk-cpp-1.7.365-orig/aws-cpp-sdk-core/source/http/windows/WinHttpSyncHttpClient.cpp aws-sdk-cpp-1.7.365/aws-cpp-sdk-core/source/http/windows/WinHttpSyncHttpClient.cpp 2 | --- aws-sdk-cpp-1.7.365-orig/aws-cpp-sdk-core/source/http/windows/WinHttpSyncHttpClient.cpp 2020-08-08 19:54:09.998144200 +0000 3 | +++ aws-sdk-cpp-1.7.365/aws-cpp-sdk-core/source/http/windows/WinHttpSyncHttpClient.cpp 2020-08-08 19:58:40.273220200 +0000 4 | @@ -22,6 +22,16 @@ 5 | #include 6 | #include 7 | 8 | +#ifndef WINHTTP_OPTION_WEB_SOCKET_KEEPALIVE_INTERVAL 9 | +#define WINHTTP_OPTION_WEB_SOCKET_KEEPALIVE_INTERVAL 116 10 | +#endif 11 | +#ifndef WINHTTP_FLAG_SECURE_PROTOCOL_TLS1_1 12 | +#define WINHTTP_FLAG_SECURE_PROTOCOL_TLS1_1 0x00000200 13 | +#endif 14 | +#ifndef WINHTTP_FLAG_SECURE_PROTOCOL_TLS1_2 15 | +#define WINHTTP_FLAG_SECURE_PROTOCOL_TLS1_2 0x00000800 16 | +#endif 17 | + 18 | using namespace Aws::Client; 19 | using namespace Aws::Http; 20 | using namespace Aws::Http::Standard; 21 | -------------------------------------------------------------------------------- /mingw-w64-python3/0890-mingw-build-optimized-ext.patch: -------------------------------------------------------------------------------- 1 | diff -Naur Python-3.8.0-orig/Lib/distutils/cygwinccompiler.py Python-3.8.0/Lib/distutils/cygwinccompiler.py 2 | --- Python-3.8.0-orig/Lib/distutils/cygwinccompiler.py 2019-10-22 10:03:07.686966400 +0300 3 | +++ Python-3.8.0/Lib/distutils/cygwinccompiler.py 2019-10-22 10:04:03.316664100 +0300 4 | @@ -305,9 +305,9 @@ 5 | raise CCompilerError( 6 | 'Cygwin gcc cannot be used with --compiler=mingw32') 7 | 8 | - self.set_executables(compiler='gcc -O -Wall', 9 | - compiler_so='gcc -mdll -O -Wall', 10 | - compiler_cxx='g++ -O -Wall', 11 | + self.set_executables(compiler='gcc -O2 -Wall', 12 | + compiler_so='gcc -mdll -O2 -Wall', 13 | + compiler_cxx='g++ -O2 -Wall', 14 | linker_exe='gcc', 15 | linker_so='%s %s %s' 16 | % (self.linker_dll, shared_option, 17 | -------------------------------------------------------------------------------- /mingw-w64-python3/0870-mingw-fix-ssl-dont-use-enum_certificates.patch: -------------------------------------------------------------------------------- 1 | diff -Naur Python-3.8.0-orig/Lib/ssl.py Python-3.8.0/Lib/ssl.py 2 | --- Python-3.8.0-orig/Lib/ssl.py 2019-10-14 16:34:47.000000000 +0300 3 | +++ Python-3.8.0/Lib/ssl.py 2019-10-22 10:04:00.493059100 +0300 4 | @@ -249,7 +249,7 @@ 5 | CHANGE_CIPHER_SPEC = 0x0101 6 | 7 | 8 | -if sys.platform == "win32": 9 | +if sys.platform == "win32" and sys.version.find("GCC") == -1: 10 | from _ssl import enum_certificates, enum_crls 11 | 12 | from socket import socket, AF_INET, SOCK_STREAM, create_connection 13 | @@ -569,7 +569,7 @@ 14 | def load_default_certs(self, purpose=Purpose.SERVER_AUTH): 15 | if not isinstance(purpose, _ASN1Object): 16 | raise TypeError(purpose) 17 | - if sys.platform == "win32": 18 | + if sys.platform == "win32" and sys.version.find("GCC") == -1: 19 | for storename in self._windows_cert_stores: 20 | self._load_windows_store_certs(storename, purpose) 21 | self.set_default_verify_paths() 22 | -------------------------------------------------------------------------------- /mingw-w64-jasper/jasper-1.900.1-fix-filename-buffer-overflow.patch: -------------------------------------------------------------------------------- 1 | Description: Filename buffer overflow fix 2 | This patch fixes a security hole by a bad buffer size handling. 3 | Author: Roland Stigge 4 | Bug-Debian: http://bugs.debian.org/645118 5 | 6 | --- a/src/libjasper/include/jasper/jas_stream.h 7 | +++ b/src/libjasper/include/jasper/jas_stream.h 8 | @@ -77,6 +77,7 @@ 9 | #include 10 | 11 | #include 12 | +#include 13 | #if defined(JAS_HAVE_FCNTL_H) 14 | #include 15 | #endif 16 | @@ -99,6 +100,12 @@ extern "C" { 17 | #define O_BINARY 0 18 | #endif 19 | 20 | +#ifdef PATH_MAX 21 | +#define JAS_PATH_MAX PATH_MAX 22 | +#else 23 | +#define JAS_PATH_MAX 4096 24 | +#endif 25 | + 26 | /* 27 | * Stream open flags. 28 | */ 29 | @@ -251,7 +258,7 @@ typedef struct { 30 | typedef struct { 31 | int fd; 32 | int flags; 33 | - char pathname[L_tmpnam + 1]; 34 | + char pathname[JAS_PATH_MAX + 1]; 35 | } jas_stream_fileobj_t; 36 | 37 | #define JAS_STREAM_FILEOBJ_DELONCLOSE 0x01 38 | -------------------------------------------------------------------------------- /mingw-w64-libxml2/0020-fix-warnings.patch: -------------------------------------------------------------------------------- 1 | --- libxml2-2.9.5/xmlmemory.c.orig 2017-09-25 22:45:17.523292500 -0400 2 | +++ libxml2-2.9.5/xmlmemory.c 2017-09-25 22:57:31.306998000 -0400 3 | @@ -43,6 +43,10 @@ 4 | #endif 5 | #endif 6 | 7 | +#ifdef __MINGW32__ 8 | +#include /* might be a good idea for other platforms */ 9 | +#endif 10 | + 11 | #include /* must come before xmlmemory.h */ 12 | #include 13 | #include 14 | --- libxml2-2.9.5/timsort.h.orig 2017-09-26 00:19:41.192760300 -0400 15 | +++ libxml2-2.9.5/timsort.h 2017-09-26 00:26:28.440138000 -0400 16 | @@ -402,7 +402,7 @@ static int TIM_SORT_COLLAPSE(SORT_TYPE * 17 | } 18 | 19 | /* if this is the last merge, just do it */ 20 | - if ((stack_curr == 2) && (stack[0].length + stack[1].length == size)) { 21 | + if ((stack_curr == 2) && ((size_t)(stack[0].length + stack[1].length) == size)) { 22 | TIM_SORT_MERGE(dst, stack, stack_curr, store); 23 | stack[0].length += stack[1].length; 24 | stack_curr--; 25 | -------------------------------------------------------------------------------- /mingw-w64-libxml2/0027-decoding-segfault.patch: -------------------------------------------------------------------------------- 1 | From 07b1c4c8a736a31ac4b8ae13ea25d50793dfea83 Mon Sep 17 00:00:00 2001 2 | From: Mike Gorse 3 | Date: Fri, 25 Jan 2019 12:55:52 -0600 4 | Subject: [PATCH] python: return None if PY_IMPORT_STRING returns NULL 5 | 6 | PY_IMPORT_STRING might return NULL on python 3 if, ie, a string can't be 7 | encoded. We should check for this and return None, rather than returning 8 | NULL. Fixes a NULL pointer dereference when reporting an error with an 9 | invalid string. 10 | --- 11 | python/types.c | 4 ++++ 12 | 1 file changed, 4 insertions(+) 13 | 14 | diff --git a/python/types.c b/python/types.c 15 | index 124af565..50951ba3 100644 16 | --- a/python/types.c 17 | +++ b/python/types.c 18 | @@ -150,6 +150,10 @@ libxml_charPtrConstWrap(const char *str) 19 | return (Py_None); 20 | } 21 | ret = PY_IMPORT_STRING(str); 22 | + if (ret == NULL) { 23 | + Py_INCREF(Py_None); 24 | + return (Py_None); 25 | + } 26 | return (ret); 27 | } 28 | 29 | -- 30 | GitLab 31 | 32 | -------------------------------------------------------------------------------- /mingw-w64-tcl/009-fix-using-gnu-print.patch: -------------------------------------------------------------------------------- 1 | diff -Naur tcl8.6.5-orig/generic/tcl.h tcl8.6.5/generic/tcl.h 2 | --- tcl8.6.5-orig/generic/tcl.h 2016-02-29 22:09:35.000000000 +0300 3 | +++ tcl8.6.5/generic/tcl.h 2016-03-03 08:47:51.104173600 +0300 4 | @@ -389,7 +389,7 @@ 5 | */ 6 | 7 | #if !defined(TCL_WIDE_INT_TYPE)&&!defined(TCL_WIDE_INT_IS_LONG) 8 | -# if defined(_WIN32) 9 | +# if defined(_WIN32) && !defined(__USE_MINGW_ANSI_STDIO) 10 | # define TCL_WIDE_INT_TYPE __int64 11 | # ifdef __BORLANDC__ 12 | # define TCL_LL_MODIFIER "L" 13 | diff -Naur tcl8.6.5-orig/win/tclWinInt.h tcl8.6.5/win/tclWinInt.h 14 | --- tcl8.6.5-orig/win/tclWinInt.h 2016-02-25 23:12:38.000000000 +0300 15 | +++ tcl8.6.5/win/tclWinInt.h 2016-03-03 08:47:51.129171100 +0300 16 | @@ -45,7 +45,11 @@ 17 | #endif 18 | 19 | #ifdef _WIN64 20 | +# ifdef __USE_MINGW_ANSI_STDIO 21 | +# define TCL_I_MODIFIER "z" 22 | +# else 23 | # define TCL_I_MODIFIER "I" 24 | +# endif 25 | #else 26 | # define TCL_I_MODIFIER "" 27 | #endif 28 | -------------------------------------------------------------------------------- /mingw-w64-libmariadbclient/002-fix-prototype.patch: -------------------------------------------------------------------------------- 1 | --- mariadb-connector-c-3.1.7-src/include/mysql.h.orig 2020-04-25 18:52:37.817258900 +0300 2 | +++ mariadb-connector-c-3.1.7-src/include/mysql.h 2020-04-25 18:52:43.342827200 +0300 3 | @@ -444,7 +444,7 @@ 4 | MYSQL_CLIENT_PLUGIN_HEADER 5 | }; 6 | 7 | -struct st_mysql_client_plugin * 8 | +struct st_mysql_client_plugin * STDCALL 9 | mysql_load_plugin(struct st_mysql *mysql, const char *name, int type, 10 | int argc, ...); 11 | struct st_mysql_client_plugin * STDCALL 12 | --- mariadb-connector-c-3.1.7-src/include/mysql/client_plugin.h.orig 2020-04-25 18:51:10.870443800 +0300 13 | +++ mariadb-connector-c-3.1.7-src/include/mysql/client_plugin.h 2020-04-25 18:51:14.620895400 +0300 14 | @@ -180,7 +180,7 @@ 15 | @retval 16 | a pointer to the loaded plugin, or NULL in case of a failure 17 | */ 18 | -struct st_mysql_client_plugin * 19 | +struct st_mysql_client_plugin * STDCALL 20 | mysql_load_plugin(struct st_mysql *mysql, const char *name, int type, 21 | int argc, ...); 22 | 23 | -------------------------------------------------------------------------------- /mingw-w64-libassuan/0001-fix-def-files.mingw.patch: -------------------------------------------------------------------------------- 1 | --- libassuan-2.1.1/src/gpgcedev.def.orig 2010-12-23 11:32:06.000000000 +0000 2 | +++ libassuan-2.1.1/src/gpgcedev.def 2013-10-13 14:35:12.990850100 +0000 3 | @@ -1,3 +1,4 @@ 4 | +EXPORTS 5 | ; gpgcedev.def - List of symbols to export for gpgcedev. 6 | ; Copyright (C) 2010 Free Software Foundation, Inc. 7 | ; 8 | @@ -17,7 +18,6 @@ 9 | ; License along with this program; if not, see . 10 | 11 | 12 | -EXPORTS 13 | GPG_Init 14 | GPG_Deinit 15 | GPG_Open 16 | --- libassuan-2.1.1/src/libassuan.def.orig 2013-02-22 16:53:36.000000000 +0000 17 | +++ libassuan-2.1.1/src/libassuan.def 2013-10-13 14:35:20.012741800 +0000 18 | @@ -1,3 +1,4 @@ 19 | +EXPORTS 20 | ; assuan.def - List of symbols to export. 21 | ; Copyright (C) 2005, 2009 g10 Code GmbH 22 | ; 23 | @@ -18,7 +19,6 @@ 24 | ; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 25 | 26 | 27 | -EXPORTS 28 | assuan_accept @1 29 | assuan_begin_confidential @2 30 | assuan_close_input_fd @3 31 | -------------------------------------------------------------------------------- /mingw-w64-gcc/0005-Windows-Don-t-ignore-native-system-header-dir.patch: -------------------------------------------------------------------------------- 1 | From a2bc77d0e198659e72c9addb89a993007de99fe7 Mon Sep 17 00:00:00 2001 2 | From: Ray Donnelly 3 | Date: Wed, 5 Aug 2015 23:36:11 +0100 4 | Subject: [PATCH 05/15] Windows: Don't ignore native system header dir 5 | 6 | --- 7 | gcc/config.gcc | 5 ++++- 8 | 1 file changed, 4 insertions(+), 1 deletion(-) 9 | 10 | diff --git a/gcc/config.gcc b/gcc/config.gcc 11 | index c835734..4638567 100644 12 | --- a/gcc/config.gcc 13 | +++ b/gcc/config.gcc 14 | @@ -1699,7 +1699,10 @@ i[34567]86-*-mingw* | x86_64-*-mingw*) 15 | tmake_file="${tmake_file} i386/t-mingw-w32" 16 | ;; 17 | esac 18 | - native_system_header_dir=/mingw/include 19 | + # Don't ignore values passed in to configure via --native-system-header-dir 20 | + if test x$native_system_header_dir = x ; then 21 | + native_system_header_dir=/mingw/include 22 | + fi 23 | target_gtfiles="\$(srcdir)/config/i386/winnt.c" 24 | extra_options="${extra_options} i386/cygming.opt i386/mingw.opt" 25 | case ${target} in 26 | -- 27 | 2.8.1 28 | 29 | -------------------------------------------------------------------------------- /mingw-w64-protobuf/0002-windres-invocation.patch: -------------------------------------------------------------------------------- 1 | --- a/CMakeLists.txt 2 | +++ b/CMakeLists.txt 3 | @@ -286,7 +286,21 @@ 4 | 5 | # Add the "lib" prefix for generated .lib outputs. 6 | set(LIB_PREFIX lib) 7 | -else (MSVC) 8 | +elseif (MINGW) 9 | + # Allow big object 10 | + add_definitions("-Wa,-mbig-obj") 11 | + string(REPLACE "/" "\\" PROTOBUF_SOURCE_WIN32_PATH ${protobuf_SOURCE_DIR}) 12 | + string(REPLACE "/" "\\" PROTOBUF_BINARY_WIN32_PATH ${protobuf_BINARY_DIR}) 13 | + string(REPLACE "." "," protobuf_RC_FILEVERSION "${protobuf_VERSION}") 14 | + # Configure Resource Compiler 15 | + set(CMAKE_RC_COMPILER_INIT windres) 16 | + enable_language(RC) 17 | + # fix rc.exe invocations because of usage of add_definitions() 18 | + set(CMAKE_RC_COMPILE_OBJECT " -O coff -i -o ") 19 | + 20 | + configure_file(${protobuf_SOURCE_DIR}/cmake/version.rc.in ${CMAKE_CURRENT_BINARY_DIR}/version.rc @ONLY) 21 | + set(protobuf_version_rc_file ${CMAKE_CURRENT_BINARY_DIR}/version.rc) 22 | +else () 23 | # No version.rc file. 24 | set(protobuf_version_rc_file) 25 | 26 | -------------------------------------------------------------------------------- /mingw-w64-glib2/vista.patch: -------------------------------------------------------------------------------- 1 | diff -aurp glib-2.58.3/gmodule/gmodule-win32.c glib-2.58.3-patched/gmodule/gmodule-win32.c 2 | --- glib-2.58.3/gmodule/gmodule-win32.c 2019-01-21 13:38:50.000000000 +0000 3 | +++ glib-2.58.3-patched/gmodule/gmodule-win32.c 2020-05-11 13:16:31.343776400 +0000 4 | @@ -71,7 +71,6 @@ _g_module_open (const gchar *file_name, 5 | HINSTANCE handle; 6 | wchar_t *wfilename; 7 | DWORD old_mode; 8 | - BOOL success; 9 | #ifdef G_WITH_CYGWIN 10 | gchar tmp[MAX_PATH]; 11 | 12 | @@ -81,12 +80,9 @@ _g_module_open (const gchar *file_name, 13 | wfilename = g_utf8_to_utf16 (file_name, -1, NULL, NULL, NULL); 14 | 15 | /* suppress error dialog */ 16 | - success = SetThreadErrorMode (SEM_NOOPENFILEERRORBOX | SEM_FAILCRITICALERRORS, &old_mode); 17 | - if (!success) 18 | - set_error (""); 19 | + old_mode = SetErrorMode (SEM_NOOPENFILEERRORBOX | SEM_FAILCRITICALERRORS); 20 | handle = LoadLibraryW (wfilename); 21 | - if (success) 22 | - SetThreadErrorMode (old_mode, NULL); 23 | + SetErrorMode (old_mode); 24 | g_free (wfilename); 25 | 26 | if (!handle) 27 | -------------------------------------------------------------------------------- /mingw-w64-cmake/0002-Do-not-install-Qt-bundle-in-cmake-gui.patch: -------------------------------------------------------------------------------- 1 | From 9cdab52b3019f0da3467a6c0d4e410a4df94f9d8 Mon Sep 17 00:00:00 2001 2 | From: Ray Donnelly 3 | Date: Tue, 14 Feb 2017 09:30:36 -0600 4 | Subject: [PATCH 2/4] Do not install Qt bundle in cmake-gui 5 | 6 | --- 7 | Source/QtDialog/CMakeLists.txt | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/Source/QtDialog/CMakeLists.txt b/Source/QtDialog/CMakeLists.txt 11 | index 0c263bb751..21f354c13e 100644 12 | --- a/Source/QtDialog/CMakeLists.txt 13 | +++ b/Source/QtDialog/CMakeLists.txt 14 | @@ -333,7 +333,7 @@ if(APPLE) 15 | " ${COMPONENT}) 16 | endif() 17 | 18 | -if(CMake_INSTALL_DEPENDENCIES AND (APPLE OR WIN32)) 19 | +if(CMake_INSTALL_DEPENDENCIES AND (APPLE OR WIN32) AND NOT MINGW) 20 | # install rules for including 3rd party libs such as Qt 21 | # if a system Qt is used (e.g. installed in /usr/lib/), it will not be included in the installation 22 | set(fixup_exe "\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/bin/cmake-gui${CMAKE_EXECUTABLE_SUFFIX}") 23 | -- 24 | 2.31.0.windows.1 25 | 26 | -------------------------------------------------------------------------------- /mingw-w64-opencv/0015-windres-cant-handle-spaces-in-defines.patch: -------------------------------------------------------------------------------- 1 | From c5861878c330edfc806c31d164bf14801e613403 Mon Sep 17 00:00:00 2001 2 | From: "FeRD (Frank Dana)" 3 | Date: Wed, 21 Apr 2021 13:32:43 -0400 4 | Subject: [PATCH 8/8] windres-cant-handle-spaces-in-defines 5 | 6 | --- 7 | modules/core/CMakeLists.txt | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/modules/core/CMakeLists.txt b/modules/core/CMakeLists.txt 11 | index b2797ab..794b2e8 100644 12 | --- a/modules/core/CMakeLists.txt 13 | +++ b/modules/core/CMakeLists.txt 14 | @@ -127,7 +127,7 @@ elseif(HAVE_CXX11 OR DEFINED OPENCV_ALLOCATOR_STATS_COUNTER_TYPE) 15 | endif() 16 | if(DEFINED OPENCV_ALLOCATOR_STATS_COUNTER_TYPE) 17 | message(STATUS "Allocator metrics storage type: '${OPENCV_ALLOCATOR_STATS_COUNTER_TYPE}'") 18 | - add_definitions("-DOPENCV_ALLOCATOR_STATS_COUNTER_TYPE=${OPENCV_ALLOCATOR_STATS_COUNTER_TYPE}") 19 | + # add_definitions("-DOPENCV_ALLOCATOR_STATS_COUNTER_TYPE=\"${OPENCV_ALLOCATOR_STATS_COUNTER_TYPE}\"") 20 | endif() 21 | endif() 22 | 23 | -- 24 | 2.31.1 25 | 26 | -------------------------------------------------------------------------------- /mingw-w64-readline/readline80-001: -------------------------------------------------------------------------------- 1 | READLINE PATCH REPORT 2 | ===================== 3 | 4 | Readline-Release: 8.0 5 | Patch-ID: readline80-001 6 | 7 | Bug-Reported-by: chet.ramey@case.edu 8 | Bug-Reference-ID: 9 | Bug-Reference-URL: 10 | 11 | Bug-Description: 12 | 13 | The history file reading code doesn't close the file descriptor open to 14 | the history file when it encounters a zero-length file. 15 | 16 | Patch (apply with `patch -p0'): 17 | 18 | *** ../readline-8.0-patched/histfile.c 2018-06-11 09:14:52.000000000 -0400 19 | --- histfile.c 2019-05-16 15:55:57.000000000 -0400 20 | *************** 21 | *** 306,309 **** 22 | --- 312,316 ---- 23 | { 24 | free (input); 25 | + close (file); 26 | return 0; /* don't waste time if we don't have to */ 27 | } 28 | *** ../readline-8.0/patchlevel 2013-11-15 08:11:11.000000000 -0500 29 | --- patchlevel 2014-03-21 08:28:40.000000000 -0400 30 | *************** 31 | *** 1,3 **** 32 | # Do not edit -- exists only for use by patch 33 | 34 | ! 0 35 | --- 1,3 ---- 36 | # Do not edit -- exists only for use by patch 37 | 38 | ! 1 39 | -------------------------------------------------------------------------------- /mingw-w64-windows-default-manifest/PKGBUILD: -------------------------------------------------------------------------------- 1 | # Maintainer: Alexey Pavlov 2 | # Rtools: Jeroen Ooms 3 | 4 | _realname=windows-default-manifest 5 | pkgbase=mingw-w64-${_realname} 6 | pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" 7 | pkgver=6.4 8 | pkgrel=9500 9 | pkgdesc='Default Windows application manifest (mingw-w64)' 10 | url='https://cygwin.com/' 11 | arch=('any') 12 | license=('BSD') 13 | makedepends=('git' "${MINGW_PACKAGE_PREFIX}-gcc") 14 | _GIT_TAG="release-6_4" 15 | source=("git://sourceware.org/git/cygwin-apps/${_realname}.git#tag=${_GIT_TAG}") 16 | sha256sums=('SKIP') 17 | 18 | build() { 19 | [[ -d ${srcdir}/build-${MINGW_CHOST} ]] && rm -rf ${srcdir}/build-${MINGW_CHOST} 20 | cp -rf ${srcdir}/${_realname} ${srcdir}/build-${MINGW_CHOST} 21 | cd ${srcdir}/build-${MINGW_CHOST} 22 | ./configure \ 23 | --prefix=${MINGW_PREFIX}/${MINGW_CHOST} \ 24 | --build=${MINGW_CHOST} \ 25 | --host=${MINGW_CHOST} \ 26 | --target=${MINGW_CHOST} 27 | make 28 | } 29 | 30 | package() { 31 | cd ${srcdir}/build-${MINGW_CHOST} 32 | make DESTDIR=${pkgdir} install 33 | } 34 | -------------------------------------------------------------------------------- /mingw-w64-zlib/04-fix-largefile-support.patch: -------------------------------------------------------------------------------- 1 | diff -Naur zlib-1.2.11-pure/zconf.h.in zlib-1.2.11/zconf.h.in 2 | --- zlib-1.2.11-pure/zconf.h.in 2013-04-28 23:57:11.000000000 +0100 3 | +++ zlib-1.2.11/zconf.h.in 2015-03-15 22:45:37.900299300 +0000 4 | @@ -481,7 +481,7 @@ 5 | # define z_off_t long 6 | #endif 7 | 8 | -#if !defined(_WIN32) && defined(Z_LARGE64) 9 | +#if (defined(_WIN32) && defined(__GNUC__) && defined(_LARGEFILE64_SOURCE)) || defined(Z_LARGE64) 10 | # define z_off64_t off64_t 11 | #else 12 | # if defined(_WIN32) && !defined(__GNUC__) && !defined(Z_SOLO) 13 | diff -Naur zlib-1.2.11-pure/zconf.h.cmakein zlib-1.2.11/zconf.h.cmakein 14 | --- zlib-1.2.11-pure/zconf.h.cmakein 2013-04-28 23:57:11.000000000 +0100 15 | +++ zlib-1.2.11/zconf.h.cmakein 2015-03-15 22:45:37.900299300 +0000 16 | @@ -481,7 +481,7 @@ 17 | # define z_off_t long 18 | #endif 19 | 20 | -#if !defined(_WIN32) && defined(Z_LARGE64) 21 | +#if (defined(_WIN32) && defined(__GNUC__) && defined(_LARGEFILE64_SOURCE)) || defined(Z_LARGE64) 22 | # define z_off64_t off64_t 23 | #else 24 | # if defined(_WIN32) && !defined(__GNUC__) && !defined(Z_SOLO) 25 | -------------------------------------------------------------------------------- /mingw-w64-icu/0020-workaround-missing-locale.patch: -------------------------------------------------------------------------------- 1 | diff -Naur icu-orig/source/i18n/digitlst.cpp icu/source/i18n/digitlst.cpp 2 | --- icu-orig/source/i18n/digitlst.cpp 2016-10-27 04:37:56.000000000 +0300 3 | +++ icu/source/i18n/digitlst.cpp 2018-03-01 10:09:31.297047400 +0300 4 | @@ -489,7 +489,20 @@ 5 | 6 | #if U_USE_STRTOD_L && U_PLATFORM_USES_ONLY_WIN32_API 7 | # define locale_t _locale_t 8 | +// Stubs 9 | +#if defined(__MINGW32__) 10 | +inline locale_t createlocale(int _Category,const char *_Locale) { 11 | + locale_t loc; 12 | + return loc; 13 | +} 14 | + 15 | +inline void freelocale(locale_t _Locale) { 16 | + 17 | +} 18 | +#else 19 | # define freelocale _free_locale 20 | +# define createlocale _create_locale 21 | +#endif 22 | # define strtod_l _strtod_l 23 | #endif 24 | 25 | @@ -514,7 +527,7 @@ 26 | ucln_i18n_registerCleanup(UCLN_I18N_DIGITLIST, digitList_cleanup); 27 | #if U_USE_STRTOD_L 28 | # if U_PLATFORM_USES_ONLY_WIN32_API 29 | - gCLocale = _create_locale(LC_ALL, "C"); 30 | + gCLocale = createlocale(LC_ALL, "C"); 31 | # else 32 | gCLocale = newlocale(LC_ALL_MASK, "C", (locale_t)0); 33 | # endif 34 | -------------------------------------------------------------------------------- /mingw-w64-libtre-git/001-autotools.patch: -------------------------------------------------------------------------------- 1 | diff --git a/configure.ac b/configure.ac 2 | index e4a94af..fac4ed7 100644 3 | --- a/configure.ac 4 | +++ b/configure.ac 5 | @@ -2,10 +2,11 @@ dnl Process this file with autoconf to produce a configure script. 6 | AC_INIT(TRE, 0.8.0) 7 | AC_CONFIG_SRCDIR([lib/regcomp.c]) 8 | AC_CONFIG_AUX_DIR(utils) 9 | +AC_CONFIG_MACRO_DIRS([m4]) 10 | AC_CANONICAL_TARGET 11 | AM_INIT_AUTOMAKE([foreign]) 12 | -AC_PREREQ(2.59) 13 | -AM_GNU_GETTEXT_VERSION(0.17) 14 | +AC_PREREQ(2.69) 15 | +AM_GNU_GETTEXT_VERSION(0.18) 16 | 17 | dnl Checks for programs. 18 | AC_PROG_CC 19 | @@ -433,16 +434,6 @@ if test "$tre_enable_wchar" != "no"; then 20 | fi 21 | fi 22 | 23 | -case $host in 24 | - *-mingw*) 25 | - dnl wcsrtombs and wcstombs don't seem to work at all on MinGW. 26 | - if test "$tre_libutf8" != "yes"; then 27 | - tre_wchar_reason="Not supported on MinGW" 28 | - tre_wchar="no ($tre_wchar_reason)" 29 | - fi 30 | - ;; 31 | -esac 32 | - 33 | # Fail if wide character support was specifically requested but is 34 | # not supported on this system. 35 | if test "$tre_enable_wchar" = "yes"; then 36 | -------------------------------------------------------------------------------- /mingw-w64-gdk-pixbuf2/0003-fix-dllmain.patch: -------------------------------------------------------------------------------- 1 | --- gdk-pixbuf-2.35.1-orig/gdk-pixbuf/gdk-pixbuf-io.c 2016-04-26 21:34:17.000000000 +0200 2 | +++ gdk-pixbuf-2.35.1/gdk-pixbuf/gdk-pixbuf-io.c 2016-08-02 17:27:21.952759200 +0200 3 | @@ -191,7 +191,7 @@ 4 | return file_formats; 5 | } 6 | 7 | -#ifdef G_OS_WIN32 8 | +#if defined (G_OS_WIN32) && defined (DLL_EXPORT) 9 | 10 | /* DllMain function needed to tuck away the gdk-pixbuf DLL handle */ 11 | 12 | @@ -221,7 +221,7 @@ 13 | static gchar *toplevel = NULL; 14 | 15 | if (toplevel == NULL) { 16 | -#if defined(G_OS_WIN32) 17 | +#if defined (G_OS_WIN32) && defined (DLL_EXPORT) 18 | toplevel = g_win32_get_package_installation_directory_of_module (gdk_pixbuf_dll); 19 | #elif defined(OS_DARWIN) 20 | char pathbuf[PATH_MAX + 1]; 21 | @@ -232,7 +232,7 @@ 22 | bin_dir = g_dirname(pathbuf); 23 | toplevel = g_build_path (G_DIR_SEPARATOR_S, bin_dir, "..", NULL); 24 | g_free (bin_dir); 25 | -#elif defined (OS_LINUX) 26 | +#elif defined (OS_LINUX) || defined(__MINGW32__) 27 | gchar *exe_path, *bin_dir; 28 | 29 | exe_path = g_file_read_link ("/proc/self/exe", NULL); 30 | -------------------------------------------------------------------------------- /mingw-w64-openblas/002-lgfortran-requires-lquadmath.patch: -------------------------------------------------------------------------------- 1 | diff -urN OpenBLAS-0.2.20.orig/Makefile.system OpenBLAS-0.2.20/Makefile.system 2 | --- OpenBLAS-0.2.20.orig/Makefile.system 2017-07-24 09:03:35.000000000 +0500 3 | +++ OpenBLAS-0.2.20/Makefile.system 2018-03-01 12:25:04.997365800 +0500 4 | @@ -650,7 +650,7 @@ 5 | FCOMMON_OPT += -Wall 6 | #Don't include -lgfortran, when NO_LAPACK=1 or lsbcc 7 | ifneq ($(NO_LAPACK), 1) 8 | -EXTRALIB += -lgfortran 9 | +EXTRALIB += -lgfortran -lquadmath 10 | endif 11 | ifdef NO_BINARY_MODE 12 | ifeq ($(ARCH), $(filter $(ARCH),mips64)) 13 | diff -urN OpenBLAS-0.2.20.orig/cmake/fc.cmake OpenBLAS-0.2.20/cmake/fc.cmake 14 | --- OpenBLAS-0.2.20.orig/cmake/fc.cmake 2017-07-24 09:03:35.000000000 +0500 15 | +++ OpenBLAS-0.2.20/cmake/fc.cmake 2018-03-01 12:24:15.684865800 +0500 16 | @@ -47,7 +47,7 @@ 17 | set(FCOMMON_OPT "${FCOMMON_OPT} -Wall") 18 | #Don't include -lgfortran, when NO_LAPACK=1 or lsbcc 19 | if (NOT NO_LAPACK) 20 | - set(EXTRALIB "{EXTRALIB} -lgfortran") 21 | + set(EXTRALIB "{EXTRALIB} -lgfortran -lquadmath") 22 | endif () 23 | if (NO_BINARY_MODE) 24 | if (${ARCH} STREQUAL "mips64") 25 | -------------------------------------------------------------------------------- /mingw-w64-gdk-pixbuf2/fix-missing-meson-dep.patch: -------------------------------------------------------------------------------- 1 | --- gdk-pixbuf-2.38.0/gdk-pixbuf/meson.build.orig 2018-10-28 11:18:07.521967800 +0100 2 | +++ gdk-pixbuf-2.38.0/gdk-pixbuf/meson.build 2018-10-28 11:18:22.153804700 +0100 3 | @@ -170,7 +170,7 @@ 4 | 5 | # List of formats supported by the native Windows components-based loader(s) 6 | windows_native_loader_formats = [ 'bmp', 'emf', 'gif', 'ico', 'jpeg', 'tiff', 'wmf' ] 7 | -windows_base_loader_sources = [ 'io-gdip-utils.c', 'io-gdip-animation.c' ] 8 | +windows_base_loader_sources = [ 'io-gdip-utils.c', 'io-gdip-animation.c' ] + gdkpixbuf_enums 9 | 10 | # Build the loaders using native Windows components as static modules, if requested 11 | if native_windows_loaders 12 | @@ -214,6 +214,10 @@ 13 | dependencies: [ 14 | gdk_pixbuf_deps, 15 | included_loaders_deps, 16 | + cc.find_library('gdiplus'), 17 | + cc.find_library('tiff'), 18 | + cc.find_library('jpeg'), 19 | + cc.find_library('png'), 20 | ], 21 | install: true) 22 | 23 | -------------------------------------------------------------------------------- /mingw-w64-opencv/0004-generate-proper-pkg-config-file.patch: -------------------------------------------------------------------------------- 1 | From 3306722e9f5ffbfc44263eb9510a5adae7b4b1b2 Mon Sep 17 00:00:00 2001 2 | From: "FeRD (Frank Dana)" 3 | Date: Wed, 21 Apr 2021 13:23:36 -0400 4 | Subject: [PATCH 4/8] generate-proper-pkg-config-file 5 | 6 | --- 7 | cmake/OpenCVUtils.cmake | 4 +++- 8 | 1 file changed, 3 insertions(+), 1 deletion(-) 9 | 10 | diff --git a/cmake/OpenCVUtils.cmake b/cmake/OpenCVUtils.cmake 11 | index f42ad0b..b81ebc0 100644 12 | --- a/cmake/OpenCVUtils.cmake 13 | +++ b/cmake/OpenCVUtils.cmake 14 | @@ -1649,7 +1649,7 @@ endfunction() 15 | macro(ocv_get_libname var_name) 16 | get_filename_component(__libname "${ARGN}" NAME) 17 | # libopencv_core.so.3.3 -> opencv_core 18 | - string(REGEX REPLACE "^lib(.+)\\.(a|so|dll)(\\.[.0-9]+)?$" "\\1" __libname "${__libname}") 19 | + string(REGEX REPLACE "^lib(.+[^.0-9])(\\-[0-9]+)?\\.(a|so|dll)(\\.[.0-9]+)?$" "\\1" __libname "${__libname}") 20 | # MacOSX: libopencv_core.3.3.1.dylib -> opencv_core 21 | string(REGEX REPLACE "^lib(.+[^.0-9])\\.([.0-9]+\\.)?dylib$" "\\1" __libname "${__libname}") 22 | set(${var_name} "${__libname}") 23 | -- 24 | 2.31.1 25 | 26 | -------------------------------------------------------------------------------- /mingw-w64-python-setuptools/0003-MinGW-w64-Look-in-same-dir-as-script-for-exe.patch: -------------------------------------------------------------------------------- 1 | --- setuptools-51.1.2/launcher.c.orig 2021-01-12 11:59:21.949463100 +0530 2 | +++ setuptools-51.1.2/launcher.c 2021-01-12 12:02:58.977876400 +0530 3 | @@ -117,14 +117,16 @@ 4 | if (drive[0] || dir[0]=='\\') { 5 | return loadable_exe(exename); /* absolute path, use directly */ 6 | } 7 | - /* Use the script's parent directory, which should be the Python home 8 | - (This should only be used for bdist_wininst-installed scripts, because 9 | + /* Use the script's directory (parent directory if not mingw-w64), which should be the 10 | + Python home (This should only be used for bdist_wininst-installed scripts, because 11 | easy_install-ed scripts use the absolute path to python[w].exe 12 | */ 13 | _splitpath(script, drive, dir, fname, ext); 14 | result = dir + strlen(dir) -1; 15 | +#if !defined(__MINGW64_VERSION_MAJOR) 16 | if (*result == '\\') result--; 17 | while (*result != '\\' && result>=dir) *result-- = 0; 18 | +#endif 19 | _makepath(path, drive, dir, exename, NULL); 20 | return loadable_exe(path); 21 | } 22 | -------------------------------------------------------------------------------- /mingw-w64-coinor-cbc/PKGBUILD: -------------------------------------------------------------------------------- 1 | # Maintainer: Jeroen Ooms 2 | 3 | _realname=Cbc 4 | pkgbase=mingw-w64-coinor-cbc 5 | pkgname=("${MINGW_PACKAGE_PREFIX}-coinor-cbc") 6 | pkgver=2.10.5 7 | pkgrel=9100 8 | pkgdesc="Coin-or branch and cut (mingw-w64)" 9 | arch=('any') 10 | url='http://www.coin-or.org' 11 | license=('EPL-2.0') 12 | source=("https://www.coin-or.org/download/source/${_realname}/${_realname}-${pkgver}.tgz") 13 | sha256sums=('da1a945648679b21ba56b454b81e939451dc7951d9beb3c3e14f18f64dde6972') 14 | groups=("rtools-coinor-cbc") 15 | makedepends=("${MINGW_PACKAGE_PREFIX}-gcc-fortran") 16 | 17 | build() { 18 | cd "$srcdir"/${_realname}-${pkgver} 19 | [[ -d "${srcdir}"/build-${CARCH} ]] && rm -rf "${srcdir}"/build-${CARCH} 20 | mkdir -p "${srcdir}"/build-${CARCH} && cd "${srcdir}"/build-${CARCH} 21 | unset PKG_CONFIG 22 | export enable_bzlib=no 23 | ../Cbc-${pkgver}/configure \ 24 | --prefix=${MINGW_PREFIX} \ 25 | --build=${MINGW_CHOST} \ 26 | --host=${MINGW_CHOST} \ 27 | --target=${MINGW_CHOST} 28 | 29 | make 30 | } 31 | 32 | package() { 33 | cd "${srcdir}"/build-${CARCH} 34 | make install DESTDIR="${pkgdir}" 35 | } 36 | -------------------------------------------------------------------------------- /mingw-w64-gsl/PKGBUILD: -------------------------------------------------------------------------------- 1 | # Maintainer: Alexey Pavlov 2 | 3 | _realname=gsl 4 | pkgbase=mingw-w64-${_realname} 5 | pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" 6 | pkgver=2.7 7 | pkgrel=1 8 | pkgdesc="The GNU Scientific Library (GSL) is a modern numerical library for C and C++ programmers (mingw-w64)" 9 | arch=('any') 10 | url="https://www.gnu.org/software/gsl/gsl.html" 11 | license=("GPL") 12 | makedepends=("${MINGW_PACKAGE_PREFIX}-pkg-config") 13 | options=('staticlibs' 'strip') 14 | source=("https://ftp.gnu.org/gnu/gsl/${_realname}-${pkgver}.tar.gz") 15 | sha256sums=('efbbf3785da0e53038be7907500628b466152dbc3c173a87de1b5eba2e23602b') 16 | 17 | build() { 18 | [[ -d "${srcdir}/build-${MSYSTEM}" ]] && rm -rf "${srcdir}/build-${MSYSTEM}" 19 | mkdir -p "${srcdir}/build-${MSYSTEM}" && cd "${srcdir}/build-${MSYSTEM}" 20 | 21 | ../${_realname}-${pkgver}/configure \ 22 | --prefix=${MINGW_PREFIX} \ 23 | --build=${MINGW_CHOST} \ 24 | --host=${MINGW_CHOST} \ 25 | --enable-static \ 26 | --disable-shared 27 | 28 | make 29 | } 30 | 31 | package() { 32 | cd "${srcdir}/build-${MSYSTEM}" 33 | make DESTDIR="${pkgdir}" install 34 | } 35 | -------------------------------------------------------------------------------- /mingw-w64-python3/0260-MINGW-compiler-enable-new-dtags.patch: -------------------------------------------------------------------------------- 1 | diff -Naur Python-3.8.0-orig/Lib/distutils/unixccompiler.py Python-3.8.0/Lib/distutils/unixccompiler.py 2 | --- Python-3.8.0-orig/Lib/distutils/unixccompiler.py 2019-10-14 16:34:47.000000000 +0300 3 | +++ Python-3.8.0/Lib/distutils/unixccompiler.py 2019-10-22 10:01:11.964963100 +0300 4 | @@ -248,9 +248,13 @@ 5 | # -Wl whenever gcc was used in the past it is probably 6 | # safest to keep doing so. 7 | if sysconfig.get_config_var("GNULD") == "yes": 8 | - # GNU ld needs an extra option to get a RUNPATH 9 | + # GNU ELF ld needs an extra option to get a RUNPATH 10 | # instead of just an RPATH. 11 | - return "-Wl,--enable-new-dtags,-R" + dir 12 | + if sys.platform in ["win32", "cygwin"] or \ 13 | + "mingw" in compiler: 14 | + return [] 15 | + else: 16 | + return "-Wl,--enable-new-dtags,-R" + dir 17 | else: 18 | return "-Wl,-R" + dir 19 | else: 20 | -------------------------------------------------------------------------------- /mingw-w64-udunits/PKGBUILD: -------------------------------------------------------------------------------- 1 | # Maintainer: Jeroen Ooms 2 | 3 | _realname=udunits 4 | pkgbase="mingw-w64-${_realname}" 5 | pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" 6 | pkgver=2.2.28 7 | pkgrel=1 8 | pkgdesc="Unidata unit conversion library (mingw-w64)" 9 | arch=('any') 10 | license=("custom") 11 | url="https://www.unidata.ucar.edu/software/udunits/" 12 | source=("https://artifacts.unidata.ucar.edu/repository/downloads-udunits/${pkgver}/udunits-${pkgver}.tar.gz") 13 | sha256sums=('590baec83161a3fd62c00efa66f6113cec8a7c461e3f61a5182167e0cc5d579e') 14 | depends=("${MINGW_PACKAGE_PREFIX}-expat") 15 | options=('staticlibs' 'strip') 16 | 17 | build() { 18 | [[ -d "${srcdir}"/build-${CARCH}-static ]] && rm -rf "${srcdir}"/build-${CARCH}-static 19 | mkdir -p "${srcdir}"/build-${CARCH}-static && cd "${srcdir}"/build-${CARCH}-static 20 | 21 | ../${_realname}-${pkgver}/configure \ 22 | --prefix=${MINGW_PREFIX} \ 23 | --build=${MINGW_CHOST} \ 24 | --host=${MINGW_CHOST} \ 25 | --disable-shared \ 26 | --enable-static 27 | 28 | make 29 | } 30 | 31 | package() { 32 | cd "${srcdir}"/build-${CARCH}-static 33 | make install DESTDIR="${pkgdir}" 34 | } 35 | -------------------------------------------------------------------------------- /mingw-w64-gdbm/gdbm-1.10-zeroheaders.patch: -------------------------------------------------------------------------------- 1 | diff -Naur gdbm-1.14.1.orig/src/falloc.c gdbm-1.14.1/src/falloc.c 2 | --- gdbm-1.14.1.orig/src/falloc.c 2018-05-06 21:50:23.214440900 -0400 3 | +++ gdbm-1.14.1/src/falloc.c 2018-05-07 14:15:48.186151000 -0400 4 | @@ -278,7 +278,7 @@ 5 | 6 | /* Split the header block. */ 7 | temp = GDBM_DEBUG_ALLOC ("push_avail_block:malloc-failure", 8 | - malloc (av_size)); 9 | + calloc (1, av_size)); 10 | if (temp == NULL) 11 | { 12 | GDBM_SET_ERRNO (dbf, GDBM_MALLOC_ERROR, TRUE); 13 | diff -Naur gdbm-1.14.1.orig/src/gdbmopen.c gdbm-1.14.1/src/gdbmopen.c 14 | --- gdbm-1.14.1.orig/src/gdbmopen.c 2018-05-06 21:50:23.243439700 -0400 15 | +++ gdbm-1.14.1/src/gdbmopen.c 2018-05-07 14:15:12.620590400 -0400 16 | @@ -537,7 +537,7 @@ 17 | { 18 | (dbf->bucket_cache[index]).ca_bucket = 19 | GDBM_DEBUG_ALLOC ("_gdbm_init_cache:bucket-malloc-failure", 20 | - malloc (dbf->header->bucket_size)); 21 | + calloc (1, dbf->header->bucket_size)); 22 | if ((dbf->bucket_cache[index]).ca_bucket == NULL) 23 | { 24 | GDBM_SET_ERRNO (dbf, GDBM_MALLOC_ERROR, TRUE); 25 | -------------------------------------------------------------------------------- /mingw-w64-python3/0970-Add-AMD64-to-sys-config-so-msvccompiler-get_build_version-works.patch: -------------------------------------------------------------------------------- 1 | diff -Naur Python-3.8.0-orig/Python/getcompiler.c Python-3.8.0/Python/getcompiler.c 2 | --- Python-3.8.0-orig/Python/getcompiler.c 2019-10-14 16:34:47.000000000 +0300 3 | +++ Python-3.8.0/Python/getcompiler.c 2019-10-22 10:04:17.450288900 +0300 4 | @@ -10,7 +10,22 @@ 5 | #if defined(__clang__) 6 | #define COMPILER "\n[Clang " __clang_version__ "]" 7 | #elif defined(__GNUC__) 8 | -#define COMPILER "\n[GCC " __VERSION__ "]" 9 | +/* To not break compatibility with things that determine 10 | + CPU arch by calling get_build_version in msvccompiler.py 11 | + (such as NumPy) add "32 bit" or "64 bit (AMD64)" on Windows 12 | + and also use a space as a separator rather than a newline. */ 13 | +#if defined(_WIN32) 14 | +#define COMP_SEP " " 15 | +#if defined(__x86_64__) 16 | +#define ARCH_SUFFIX " 64 bit (AMD64)" 17 | +#else 18 | +#define ARCH_SUFFIX " 32 bit" 19 | +#endif 20 | +#else 21 | +#define COMP_SEP "\n" 22 | +#define ARCH_SUFFIX "" 23 | +#endif 24 | +#define COMPILER COMP_SEP "[GCC " __VERSION__ ARCH_SUFFIX "]" 25 | // Generic fallbacks. 26 | #elif defined(__cplusplus) 27 | #define COMPILER "[C++]" 28 | -------------------------------------------------------------------------------- /mingw-w64-libjpeg-turbo/0001-header-compat.mingw.patch: -------------------------------------------------------------------------------- 1 | --- libjpeg-turbo-1.2.90/jmorecfg.h.orig 2013-04-04 15:08:10 +0400 2 | +++ libjpeg-turbo-1.2.90/jmorecfg.h 2013-04-04 16:23:13 +0400 3 | @@ -12,6 +12,12 @@ 4 | * optimizations. Most users will not need to touch this file. 5 | */ 6 | 7 | +/* prevents conflicts */ 8 | +#if defined(__MINGW32__) 9 | +#include /* typedefs INT16 and INT32 */ 10 | + 11 | +#define HAVE_BOOLEAN 12 | +#endif 13 | 14 | /* 15 | * Define BITS_IN_JSAMPLE as either 16 | @@ -118,6 +118,7 @@ 17 | #endif /* HAVE_UNSIGNED_CHAR */ 18 | 19 | 20 | +#ifndef _BASETSD_H_ /* basestd.h from mingw-w64 defines UINT8, UINT16, INT16, INT32 */ 21 | /* These typedefs are used for various table entries and so forth. 22 | * They must be at least as wide as specified; but making them too big 23 | * won't cost a huge amount of memory, so we don't provide special 24 | @@ -158,6 +158,7 @@ 25 | #ifndef XMD_H /* X11/xmd.h correctly defines INT32 */ 26 | typedef long INT32; 27 | #endif 28 | +#endif 29 | 30 | /* Datatype used for image dimensions. The JPEG standard only supports 31 | * images up to 64K*64K due to 16-bit fields in SOF markers. Therefore 32 | -------------------------------------------------------------------------------- /mingw-w64-make/make-getopt.patch: -------------------------------------------------------------------------------- 1 | Fixes the following warnings: 2 | 3 | getopt.c: In function '_getopt_initialize': 4 | getopt.c:382: warning: unused parameter 'argc' 5 | getopt.c:382: warning: unused parameter 'argv' 6 | getopt.c: In function '_getopt_internal': 7 | getopt.c:681: warning: suggest explicit braces to avoid ambiguous 'else' 8 | 9 | diff -Naur make-4.2.1/getopt.c make-4.2.1.new/getopt.c 10 | --- make-4.2.1/getopt.c 2016-02-28 18:48:44.000000000 +0100 11 | +++ make-4.2.1.new/getopt.c 2017-02-20 22:52:36.688693011 +0100 12 | @@ -434,6 +434,9 @@ 13 | } 14 | else 15 | nonoption_flags_len = 0; 16 | +#else 17 | + (void)argc; 18 | + (void)argv; 19 | #endif 20 | 21 | return optstring; 22 | @@ -676,7 +679,7 @@ 23 | optarg = nameend + 1; 24 | else 25 | { 26 | - if (opterr) 27 | + if (opterr) { 28 | if (argv[optind - 1][1] == '-') 29 | /* --option */ 30 | fprintf (stderr, 31 | @@ -687,7 +690,7 @@ 32 | fprintf (stderr, 33 | _("%s: option '%c%s' doesn't allow an argument\n"), 34 | argv[0], argv[optind - 1][0], pfound->name); 35 | - 36 | + } 37 | nextchar += strlen (nextchar); 38 | 39 | optopt = pfound->val; 40 | -------------------------------------------------------------------------------- /fullindex.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | cd "$(dirname "$0")" 3 | source 'ci-library.sh' 4 | deploy_enabled && mkdir artifacts 5 | git_config user.email 'ci@msys2.org' 6 | git_config user.name 'MSYS2 Continuous Integration' 7 | git remote add upstream 'https://github.com/r-windows/rtools-packages' 8 | git fetch --quiet upstream 9 | 10 | # List all files and download them from bintray 11 | cd artifacts 12 | PKGS=($(curl "https://bintray.com/api/v1/packages/${BINTRAY_TARGET}/${BINTRAY_REPOSITORY}/${BINTRAY_PACKAGE}/versions/latest/files" | grep -oh "mingw-w64-[^, ]*xz" | sort -u)) 13 | for FILE in "${PKGS[@]}"; do 14 | echo "Downloading ${FILE}" 15 | curl -OL "http://dl.bintray.com/${BINTRAY_TARGET}/${BINTRAY_REPOSITORY}/${FILE}" 16 | done 17 | cd .. 18 | 19 | # Deploy 20 | deploy_enabled && cd artifacts || success 'All packages built successfully' 21 | execute 'Generating pacman repository' create_pacman_repository "${PACMAN_REPOSITORY:-ci-build}" 22 | execute 'Generating build references' create_build_references "${PACMAN_REPOSITORY:-ci-build}" 23 | execute 'SHA-256 checksums' sha256sum * 24 | 25 | # Remove packages so they don't get reuploaded 26 | rm -f mingw-w64-*.xz 27 | success 'Index regenerated successfully' 28 | -------------------------------------------------------------------------------- /mingw-w64-libvorbis/PKGBUILD: -------------------------------------------------------------------------------- 1 | # Maintainer: Alexey Pavlov 2 | 3 | _realname=libvorbis 4 | pkgbase=mingw-w64-${_realname} 5 | pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" 6 | pkgver=1.3.6 7 | pkgrel=1 8 | pkgdesc="Vorbis codec library (mingw-w64)" 9 | arch=('any') 10 | url="https://xiph.org/" 11 | license=('custom') 12 | depends=("${MINGW_PACKAGE_PREFIX}-libogg") 13 | makedepends=("${MINGW_PACKAGE_PREFIX}-gcc" "${MINGW_PACKAGE_PREFIX}-pkg-config") 14 | options=('strip' 'staticlibs') 15 | source=(https://downloads.xiph.org/releases/vorbis/${_realname}-${pkgver}.tar.gz) 16 | sha256sums=('6ed40e0241089a42c48604dc00e362beee00036af2d8b3f46338031c9e0351cb') 17 | 18 | build() { 19 | [[ -d "build-${MINGW_CHOST}" ]] && rm -rf "build-${MINGW_CHOST}" 20 | mkdir -p "${srcdir}/build-${MINGW_CHOST}" 21 | cd "${srcdir}/build-${MINGW_CHOST}" 22 | ../${_realname}-${pkgver}/configure \ 23 | --prefix=${MINGW_PREFIX} \ 24 | --build=${MINGW_CHOST} \ 25 | --host=${MINGW_CHOST} \ 26 | --target=${MINGW_CHOST} \ 27 | --disable-shared \ 28 | --enable-static 29 | 30 | make 31 | } 32 | 33 | package() { 34 | cd ${srcdir}/build-${MINGW_CHOST} 35 | make DESTDIR="${pkgdir}" install 36 | } 37 | -------------------------------------------------------------------------------- /mingw-w64-gtk2/0022-icontheme-win32-detect-SVG-files-by-extension.patch: -------------------------------------------------------------------------------- 1 | From e49ed73cd1faa10c88fdf5f91f8e23a86603a909 Mon Sep 17 00:00:00 2001 2 | From: Edward E 3 | Date: Thu, 28 Jun 2018 08:41:21 -0500 4 | Subject: icontheme (win32): detect SVG files by extension if registered incorrectly 5 | 6 | It seems XP shipped without a registered Content Type for .svg, 7 | and some newer systems have 'text/xml' instead of 'image/svg+xml'. 8 | 9 | see https://gitlab.gnome.org/GNOME/gimp/issues/1563 10 | --- 11 | gtk/gtkicontheme.c | 5 +++++ 12 | 1 file changed, 5 insertions(+) 13 | 14 | diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c 15 | index ea4046022e..16bae20627 100644 16 | --- a/gtk/gtkicontheme.c 17 | +++ b/gtk/gtkicontheme.c 18 | @@ -2927,6 +2927,11 @@ icon_info_ensure_scale_and_pixbuf (GtkIconInfo *icon_info, 19 | 20 | if (mime_type && strcmp (mime_type, "image/svg+xml") == 0) 21 | is_svg = TRUE; 22 | +#ifdef G_OS_WIN32 23 | + else 24 | + if (strcmp (content_type, ".svg") == 0) 25 | + is_svg = TRUE; 26 | +#endif 27 | } 28 | 29 | g_object_unref (file_info); 30 | -- 31 | 2.22.0 32 | 33 | -------------------------------------------------------------------------------- /mingw-w64-hiredis/01-cmake-static-libs.patch: -------------------------------------------------------------------------------- 1 | diff --git a/CMakeLists.txt b/CMakeLists.txt 2 | index f86c9b7..597ae0e 100644 3 | --- a/CMakeLists.txt 4 | +++ b/CMakeLists.txt 5 | @@ -40,7 +40,7 @@ IF(WIN32) 6 | ADD_COMPILE_DEFINITIONS(_CRT_SECURE_NO_WARNINGS WIN32_LEAN_AND_MEAN) 7 | ENDIF() 8 | 9 | -ADD_LIBRARY(hiredis SHARED ${hiredis_sources}) 10 | +ADD_LIBRARY(hiredis STATIC ${hiredis_sources}) 11 | 12 | SET_TARGET_PROPERTIES(hiredis 13 | PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS TRUE 14 | @@ -97,7 +97,7 @@ IF(ENABLE_SSL) 15 | FIND_PACKAGE(OpenSSL REQUIRED) 16 | SET(hiredis_ssl_sources 17 | ssl.c) 18 | - ADD_LIBRARY(hiredis_ssl SHARED 19 | + ADD_LIBRARY(hiredis_ssl STATIC 20 | ${hiredis_ssl_sources}) 21 | 22 | IF (APPLE) 23 | @@ -152,6 +152,9 @@ IF(NOT DISABLE_TESTS) 24 | IF(ENABLE_SSL_TESTS) 25 | ADD_DEFINITIONS(-DHIREDIS_TEST_SSL=1) 26 | TARGET_LINK_LIBRARIES(hiredis-test hiredis hiredis_ssl) 27 | + IF (WIN32 OR MINGW) 28 | + TARGET_LINK_LIBRARIES(hiredis-test ${OPENSSL_LIBRARIES} hiredis hiredis_ssl ws2_32 crypt32) 29 | + ENDIF() 30 | ELSE() 31 | TARGET_LINK_LIBRARIES(hiredis-test hiredis) 32 | ENDIF() 33 | -------------------------------------------------------------------------------- /mingw-w64-python3/0370-MINGW-setup-_ctypes-module-with-system-libffi.patch: -------------------------------------------------------------------------------- 1 | diff -Naur Python-3.8.0-orig/setup.py Python-3.8.0/setup.py 2 | --- Python-3.8.0-orig/setup.py 2019-10-22 10:01:35.318204100 +0300 3 | +++ Python-3.8.0/setup.py 2019-10-22 10:01:36.394606000 +0300 4 | @@ -2043,9 +2043,12 @@ 5 | self.add(ext) 6 | if TEST_EXTENSIONS: 7 | # function my_sqrt() needs libm for sqrt() 8 | + ffi_test_libs = ['m'] 9 | + if MS_WINDOWS: 10 | + ffi_test_libs += ['oleaut32'] 11 | self.add(Extension('_ctypes_test', 12 | sources=['_ctypes/_ctypes_test.c'], 13 | - libraries=['m'])) 14 | + libraries=ffi_test_libs)) 15 | 16 | ffi_inc_dirs = self.inc_dirs.copy() 17 | if MACOS: 18 | @@ -2073,6 +2076,8 @@ 19 | if ffi_inc and ffi_lib: 20 | ext.include_dirs.extend(ffi_inc) 21 | ext.libraries.append(ffi_lib) 22 | + if MS_WINDOWS: 23 | + ext.libraries.extend(['ole32', 'oleaut32', 'uuid']) 24 | self.use_system_libffi = True 25 | 26 | if sysconfig.get_config_var('HAVE_LIBDL'): 27 | -------------------------------------------------------------------------------- /mingw-w64-python3/0330-MINGW-ignore-main-program-for-frozen-scripts.patch: -------------------------------------------------------------------------------- 1 | diff -Naur Python-3.8.0-orig/configure.ac Python-3.8.0/configure.ac 2 | --- Python-3.8.0-orig/configure.ac 2019-10-22 10:01:23.898984100 +0300 3 | +++ Python-3.8.0/configure.ac 2019-10-22 10:01:25.833387400 +0300 4 | @@ -5515,6 +5515,16 @@ 5 | ;; 6 | esac 7 | 8 | +dnl Python interpreter main program for frozen scripts 9 | +AC_SUBST(PYTHON_OBJS_FROZENMAIN) 10 | +PYTHON_OBJS_FROZENMAIN="Python/frozenmain.o" 11 | +case $host in 12 | + *-*-mingw*) 13 | + dnl 'PC/frozen_dllmain.c' - not yet 14 | + PYTHON_OBJS_FROZENMAIN= 15 | + ;; 16 | +esac 17 | + 18 | AC_SUBST(SRCDIRS) 19 | SRCDIRS="Parser Objects Python Modules Modules/_io Programs" 20 | case $host in 21 | diff -Naur Python-3.8.0-orig/Makefile.pre.in Python-3.8.0/Makefile.pre.in 22 | --- Python-3.8.0-orig/Makefile.pre.in 2019-10-22 10:01:24.304584800 +0300 23 | +++ Python-3.8.0/Makefile.pre.in 2019-10-22 10:01:26.238988200 +0300 24 | @@ -327,7 +327,7 @@ 25 | Python/context.o \ 26 | Python/dynamic_annotations.o \ 27 | Python/errors.o \ 28 | - Python/frozenmain.o \ 29 | + @PYTHON_OBJS_FROZENMAIN@ \ 30 | Python/future.o \ 31 | Python/getargs.o \ 32 | Python/getcompiler.o \ 33 | -------------------------------------------------------------------------------- /mingw-w64-lame/0002-07-field-width-fix.all.patch: -------------------------------------------------------------------------------- 1 | Description: Fix warning on 64 bit machines. Explicitely set variables as 2 | unsigned ints. 3 | Origin: http://git.debian.org/?p=pkg-multimedia/lame.git;a=blob;f=debian/patches/07-field-width-fix.patch 4 | Forwarded: commit:1.282 5 | Applied-Upstream: commit:1.282 6 | 7 | --- a/frontend/parse.c 8 | +++ b/frontend/parse.c 9 | @@ -372,11 +372,11 @@ 10 | const char *b = get_lame_os_bitness(); 11 | const char *v = get_lame_version(); 12 | const char *u = get_lame_url(); 13 | - const size_t lenb = strlen(b); 14 | - const size_t lenv = strlen(v); 15 | - const size_t lenu = strlen(u); 16 | - const size_t lw = 80; /* line width of terminal in characters */ 17 | - const size_t sw = 16; /* static width of text */ 18 | + const unsigned int lenb = strlen(b); 19 | + const unsigned int lenv = strlen(v); 20 | + const unsigned int lenu = strlen(u); 21 | + const unsigned int lw = 80; /* line width of terminal in characters */ 22 | + const unsigned int sw = 16; /* static width of text */ 23 | 24 | if (lw >= lenb + lenv + lenu + sw || lw < lenu + 2) 25 | /* text fits in 80 chars per line, or line even too small for url */ 26 | -------------------------------------------------------------------------------- /mingw-w64-cairo/0027-win32-print-fix-unbounded-surface-assertion.patch: -------------------------------------------------------------------------------- 1 | diff -ru cairo-1.15.6/src/win32/cairo-win32-printing-surface.c cairo-1.15.6b/src/win32/cairo-win32-printing-surface.c 2 | --- cairo-1.15.6/src/win32/cairo-win32-printing-surface.c 2017-06-09 08:46:49.000000000 +0200 3 | +++ cairo-1.15.6b/src/win32/cairo-win32-printing-surface.c 2017-07-26 21:41:09.380698500 +0200 4 | @@ -335,7 +335,7 @@ 5 | static cairo_bool_t 6 | surface_pattern_supported (const cairo_surface_pattern_t *pattern) 7 | { 8 | - if (_cairo_surface_is_recording (pattern->surface)) 9 | + if (pattern->surface->type == CAIRO_SURFACE_TYPE_RECORDING) 10 | return TRUE; 11 | 12 | if (pattern->surface->backend->acquire_source_image == NULL) 13 | @@ -1119,7 +1119,7 @@ 14 | case CAIRO_PATTERN_TYPE_SURFACE: { 15 | cairo_surface_pattern_t *surface_pattern = (cairo_surface_pattern_t *) pattern; 16 | 17 | - if ( _cairo_surface_is_recording (surface_pattern->surface)) 18 | + if (surface_pattern->surface->type == CAIRO_SURFACE_TYPE_RECORDING) 19 | status = _cairo_win32_printing_surface_paint_recording_pattern (surface, surface_pattern); 20 | else 21 | status = _cairo_win32_printing_surface_paint_image_pattern (surface, pattern, extents); 22 | -------------------------------------------------------------------------------- /mingw-w64-gdb/gdb-7.12-dynamic-libs.patch: -------------------------------------------------------------------------------- 1 | From 55058413c83f650adfcd3d92a0005fae46f51505 Mon Sep 17 00:00:00 2001 2 | From: Orgad Shaneh 3 | Date: Tue, 7 Mar 2017 19:13:41 +0200 4 | Subject: [PATCH] configure: Disable static linking with standard libs 5 | 6 | Linking statically causes spurious crashes on exception handling 7 | with mingw32. 8 | --- 9 | configure | 4 ++-- 10 | 1 file changed, 2 insertions(+), 2 deletions(-) 11 | 12 | diff --git a/configure b/configure 13 | index 276f33fee3..e5e83482c3 100755 14 | --- a/configure 15 | +++ b/configure 16 | @@ -5878,7 +5878,7 @@ else 17 | # trust that they are doing what they want. 18 | if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \ 19 | -a "$have_static_libs" = yes; then 20 | - stage1_ldflags="-static-libstdc++ -static-libgcc" 21 | + stage1_ldflags="" 22 | fi 23 | fi 24 | 25 | @@ -5914,7 +5914,7 @@ else 26 | # statically. But if the user explicitly specified the libraries to 27 | # use, trust that they are doing what they want. 28 | if test "$poststage1_libs" = ""; then 29 | - poststage1_ldflags="-static-libstdc++ -static-libgcc" 30 | + poststage1_ldflags="" 31 | fi 32 | fi 33 | 34 | -- 35 | 2.25.0.windows.1 36 | 37 | -------------------------------------------------------------------------------- /mingw-w64-gifski/PKGBUILD: -------------------------------------------------------------------------------- 1 | # Maintainer: Jeroen 2 | 3 | _realname=gifski 4 | pkgbase=mingw-w64-${_realname} 5 | pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}") 6 | pkgver=1.12.0 7 | pkgrel=1 8 | pkgdesc="Highest-quality GIF encoder based on pngquant (mingw-w64)" 9 | arch=('any') 10 | mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') 11 | url="https://crates.io/crates/gifski" 12 | license=("spdx:LGPL-2.1-or-later") 13 | makedepends=("${MINGW_PACKAGE_PREFIX}-gcc") 14 | options=('staticlibs' 'strip') 15 | source=("${_realname}-${pkgver}.tar.gz::https://crates.io/api/v1/crates/${_realname}/${pkgver}/download") 16 | sha256sums=('SKIP') 17 | 18 | prepare() { 19 | export PATH="$(cygpath -u $USERPROFILE)/.cargo/bin:$PATH" 20 | TARGET="${MINGW_CHOST/w64-mingw32/pc-windows-gnu}" 21 | RUSTVER="1.69" 22 | rustup target add $TARGET 23 | rustup default "$RUSTVER-$TARGET" 24 | rustc --version 25 | } 26 | 27 | build() { 28 | cd ${srcdir}/${_realname}-${pkgver} 29 | cargo build --release 30 | } 31 | 32 | package() { 33 | cd ${srcdir}/${_realname}-${pkgver} 34 | install -Dm644 target/release/libgifski.a ${pkgdir}${MINGW_PREFIX}/lib/libgifski.a 35 | #install -Dm644 gifski.h ${pkgdir}${MINGW_PREFIX}/include/gifski.h 36 | } 37 | -------------------------------------------------------------------------------- /mingw-w64-gettext/06-dont-include-ctype-after-gnulibs-wctype.mingw.patch: -------------------------------------------------------------------------------- 1 | --- gettext-tools/gnulib-lib/libxml/parser.c.orig 2013-01-18 10:24:37 +0400 2 | +++ gettext-tools/gnulib-lib/libxml/parser.c 2013-01-18 10:36:35 +0400 3 | @@ -42,6 +42,9 @@ 4 | #include 5 | #include 6 | #include 7 | +#ifdef HAVE_CTYPE_H 8 | +#include 9 | +#endif 10 | #include 11 | #include 12 | #include 13 | @@ -61,9 +64,6 @@ 14 | #include 15 | #include 16 | #endif 17 | -#ifdef HAVE_CTYPE_H 18 | -#include 19 | -#endif 20 | #ifdef HAVE_STDLIB_H 21 | #include 22 | #endif 23 | --- gettext-tools/gnulib-lib/libxml/threads.c.orig 2013-01-18 10:38:24 +0400 24 | +++ gettext-tools/gnulib-lib/libxml/threads.c 2013-01-18 10:41:11 +0400 25 | @@ -12,15 +12,16 @@ 26 | 27 | #include 28 | 29 | +#ifdef HAVE_UNISTD_H 30 | +#include 31 | +#endif 32 | + 33 | #include 34 | #include 35 | 36 | #ifdef HAVE_SYS_TYPES_H 37 | #include 38 | #endif 39 | -#ifdef HAVE_UNISTD_H 40 | -#include 41 | -#endif 42 | #ifdef HAVE_STDLIB_H 43 | #include 44 | #endif 45 | --------------------------------------------------------------------------------