builder: updates for mingw
Bump libgpg-error 1.27 -> 1.36 and add a patch to support gawk 5.0 from gentoo. Add meson to list of msys2 OS deps, this is not needed right now. Remove glib `CreateFile` patch which has been removed from msys2 MINGW-packages master and add a couple of other patches. Unfortunately using a newer glib release is not yet possible because of weird linking errors with meson on mingw. Add ninja to `host_dists` for `mingw.sh`, this is not needed currently. Signed-off-by: Rafael Kitover <rkitover@gmail.com>
This commit is contained in:
parent
fa45ccdfcd
commit
ce11403b4e
|
@ -172,7 +172,7 @@ DISTS=$DISTS'
|
|||
ninja https://github.com/ninja-build/ninja/archive/v1.8.2.tar.gz bin/ninja
|
||||
meson https://github.com/mesonbuild/meson/releases/download/0.44.0/meson-0.44.0.tar.gz bin/meson
|
||||
glib https://github.com/GNOME/glib/archive/2.58.1.tar.gz lib/libglib-2.0.a
|
||||
libgpg-error https://www.gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-1.27.tar.bz2 lib/libgpg-error.a
|
||||
libgpg-error https://www.gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-1.36.tar.bz2 lib/libgpg-error.a
|
||||
libgcrypt https://www.gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-1.8.2.tar.bz2 lib/libgcrypt.a
|
||||
libsecret http://ftp.gnome.org/pub/gnome/sources/libsecret/0.18/libsecret-0.18.5.tar.xz lib/libsecret-1.a
|
||||
sdl2 https://www.libsdl.org/release/SDL2-2.0.9.tar.gz lib/libSDL2.a
|
||||
|
@ -241,6 +241,7 @@ DIST_PATCHES=$DIST_PATCHES'
|
|||
python2 https://gist.githubusercontent.com/rkitover/2d9e5baff1f1cc4f2618dee53083bd35/raw/7f33fcf5470a9f1013ac6ae7bb168368a98fe5a0/python-2.7.14-custom-static-openssl.patch https://gist.githubusercontent.com/rkitover/afab7ed3ac7ce1860c43a258571c8ae1/raw/6f5fc90a7acf5f5c3ffda2edf402b28f469a4b3b/python-2.7.14-static-libintl.patch
|
||||
python3 https://gist.githubusercontent.com/rkitover/93d89a679705875c59275fb0a8f22b45/raw/6149e7fa3920d6c674c79448c5a4c9313620e06c/python-3.6.3-custom-static-openssl.patch https://gist.githubusercontent.com/rkitover/b18f19eafda3775a9652cc9cdf3ec914/raw/ed14c34bf9f205ccc3a4684dbdb83f8620162b98/python-3.6.3-static-libintl.patch
|
||||
intltool https://gist.githubusercontent.com/rkitover/d638882f52e5d5f8e392cbf6842cd6d0/raw/dcfbe358bbb8b89f88b40a9c3402494552fd33f8/intltool-0.51.0.patch
|
||||
libgpg-error https://raw.githubusercontent.com/gentoo/gentoo/master/dev-libs/libgpg-error/files/libgpg-error-1.36-gawk5-support.patch
|
||||
'
|
||||
|
||||
DIST_TAR_ARGS="$DIST_TAR_ARGS
|
||||
|
@ -259,6 +260,7 @@ DIST_CONFIGURE_TYPES="$DIST_CONFIGURE_TYPES
|
|||
graphviz autoreconf
|
||||
docbook2x autoreconf
|
||||
libvorbis autoreconf
|
||||
libgpg-error autoreconf
|
||||
"
|
||||
|
||||
DIST_RELOCATION_TYPES="$DIST_RELOCATION_TYPES
|
||||
|
@ -421,6 +423,7 @@ DIST_MAKE_INSTALL_ARGS="$DIST_MAKE_INSTALL_ARGS
|
|||
"
|
||||
|
||||
DIST_EXTRA_LDFLAGS="$DIST_EXTRA_LDFLAGS
|
||||
glib -liconv
|
||||
graphviz -lpcreposix
|
||||
doxygen -lintl -liconv
|
||||
ffmpeg -lm -llzma -lpthread
|
||||
|
@ -688,7 +691,7 @@ msys2_install_core_deps() {
|
|||
pacman -Sy
|
||||
|
||||
set --
|
||||
for p in binutils curl crt-git gcc gcc-libs headers-git tools-git windows-default-manifest libmangle-git; do
|
||||
for p in binutils curl crt-git gcc gcc-libs headers-git tools-git windows-default-manifest libmangle-git meson; do
|
||||
set -- "$@" "${target}-${p}"
|
||||
done
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@ perl_dists="$perl_dists XML-NamespaceSupport XML-SAX-Base XML-SAX"
|
|||
perl_dists=$(list_remove_duplicates $perl_dists)
|
||||
|
||||
host_dists="$host_dists autoconf autoconf-archive automake m4 gsed bison \
|
||||
flex-2.6.3 flex c2man docbook2x ccache"
|
||||
flex-2.6.3 flex c2man docbook2x ccache ninja"
|
||||
host_dists=$(list_remove_duplicates $host_dists)
|
||||
|
||||
both_dists="$both_dists openssl zlib bzip2 libiconv"
|
||||
|
@ -200,7 +200,7 @@ for dist in $both_dists; do
|
|||
table_line_replace DIST_POST_BUILD $dist "eval \"\$(target_env)\"; $(table_line DIST_POST_BUILD $dist)"
|
||||
done
|
||||
|
||||
remove_dists='graphviz python2 python3 swig libxml2-python doxygen bakefile setuptools pip meson XML-Parser intltool ninja libsecret shared-mime-info'
|
||||
remove_dists='graphviz python2 python3 meson swig libxml2-python doxygen bakefile setuptools pip XML-Parser intltool libsecret shared-mime-info'
|
||||
|
||||
for dist in $remove_dists; do
|
||||
if ! list_contains $dist $do_not_remove_dists; then
|
||||
|
@ -340,8 +340,9 @@ table_line_append DIST_ARGS gettext "--enable-threads=windows"
|
|||
table_line_append DIST_ARGS glib "--with-threads=posix --disable-libelf"
|
||||
|
||||
table_line_append DIST_PATCHES glib "\
|
||||
https://raw.githubusercontent.com/Alexpux/MINGW-packages/master/mingw-w64-glib2/0001-Use-CreateFile-on-Win32-to-make-sure-g_unlink-always.patch \
|
||||
https://raw.githubusercontent.com/msys2/MINGW-packages/master/mingw-w64-glib2/0001-Update-g_fopen-g_open-and-g_creat-to-open-with-FILE_.patch \
|
||||
https://raw.githubusercontent.com/Alexpux/MINGW-packages/master/mingw-w64-glib2/0001-win32-Make-the-static-build-work-with-MinGW-when-pos.patch \
|
||||
https://raw.githubusercontent.com/msys2/MINGW-packages/master/mingw-w64-glib2/0001-disable-some-tests-when-static.patch \
|
||||
https://gist.githubusercontent.com/rkitover/2edaf9583fb3068bb14016571e6f7d01/raw/ece80116d5618f372464f02392a9bcab670ce6c1/glib-mingw-no-strerror_s.patch \
|
||||
"
|
||||
|
||||
|
|
Loading…
Reference in New Issue