From fd42db911c202c03e8fc0fbce37b23737c18060b Mon Sep 17 00:00:00 2001 From: Ivan Nedrehagen Date: Wed, 25 Mar 2015 14:31:16 +0100 Subject: [PATCH 1/3] workaround to a bug where pwd / -W returns a path with slashes. --- mingw-w64-pkg-config/0005-mangle.mingw.patch | 14 +++++++------- mingw-w64-pkg-config/PKGBUILD | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/mingw-w64-pkg-config/0005-mangle.mingw.patch b/mingw-w64-pkg-config/0005-mangle.mingw.patch index 4435ec3d07..cbb228dd30 100644 --- a/mingw-w64-pkg-config/0005-mangle.mingw.patch +++ b/mingw-w64-pkg-config/0005-mangle.mingw.patch @@ -12,28 +12,28 @@ diff --git a/check/check-sysroot b/check/check-sysroot index 0820206..d03d1c7 100755 --- a/check/check-sysroot +++ b/check/check-sysroot -@@ -6,6 +6,11 @@ set -e - +@@ -6,6 +6,12 @@ set -e + export PKG_CONFIG_SYSROOT_DIR=/sysroot - + +# MSYS mangles / paths to its own root in windows format. This probably +# means sysroot doesn't work there, but match what pkg-config passes +# back anyway. +[ "x$OSTYPE" = "xmsys" ] && root=$(cd / && pwd -W) || root= ++root=${root%/} + RESULT="" run_test --cflags simple - + @@ -20,8 +25,8 @@ if [ "$list_indirect_deps" = yes ]; then fi run_test --libs --static simple - + -RESULT="-I/sysroot/public-dep/include" +RESULT="-I$root/sysroot/public-dep/include" run_test --cflags public-dep - + -RESULT="-L/sysroot/public-dep/lib -lpublic-dep" +RESULT="-L$root/sysroot/public-dep/lib -lpublic-dep" run_test --libs public-dep -- 1.8.1.4 - diff --git a/mingw-w64-pkg-config/PKGBUILD b/mingw-w64-pkg-config/PKGBUILD index 0e8b73b293..4d6d4878c0 100644 --- a/mingw-w64-pkg-config/PKGBUILD +++ b/mingw-w64-pkg-config/PKGBUILD @@ -27,7 +27,7 @@ md5sums=('aa3c86e67551adc3ac865160e34a2a0d' '073729fca79eb7415a88eec68504dc92' 'a14107b8eb8640aac2e59798467128a3' 'a605f371133ea78af740109a2b690a69' - '2b5a8f14761eaee3ccc35d8d24aace9f' + '0824f3b39004b24168b98280160e4045' '27602f99a978c28f963afe9313fd1604' 'e1b804a1b0a15e9af895f6fd92907f23' '2ba25b1a52a48afa0d2e1b0e06aaa07c' From 6e5ade34023b9da4f14774acc20d6f4251353459 Mon Sep 17 00:00:00 2001 From: Alexpux Date: Wed, 25 Mar 2015 21:29:19 +0300 Subject: [PATCH 2/3] libchamplain: Fix build deps. --- mingw-w64-libchamplain/PKGBUILD | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mingw-w64-libchamplain/PKGBUILD b/mingw-w64-libchamplain/PKGBUILD index f3454ff56e..29f61c191d 100644 --- a/mingw-w64-libchamplain/PKGBUILD +++ b/mingw-w64-libchamplain/PKGBUILD @@ -13,9 +13,9 @@ depends=("${MINGW_PACKAGE_PREFIX}-clutter" "${MINGW_PACKAGE_PREFIX}-libsoup" "${MINGW_PACKAGE_PREFIX}-memphis") makedepends=("${MINGW_PACKAGE_PREFIX}-gcc" - "${MINGW_PACKAGE_PREFIX}-gtk-doc" "${MINGW_PACKAGE_PREFIX}-vala" - "${MINGW_PACKAGE_PREFIX}-gobject-introspection") + "${MINGW_PACKAGE_PREFIX}-gobject-introspection" + "gtk-doc") options=('strip' 'staticlibs') license=("LGPL 2.1") url="http://www.gnome.org/" @@ -48,6 +48,7 @@ build() { --enable-memphis \ --enable-introspection \ --enable-vala + make } From 5bd45567d0ee224bf23444a2541b78b678f9553d Mon Sep 17 00:00:00 2001 From: Alexpux Date: Wed, 25 Mar 2015 21:30:11 +0300 Subject: [PATCH 3/3] gobject-introspection: Pass wrapper path to make. --- mingw-w64-gobject-introspection/PKGBUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mingw-w64-gobject-introspection/PKGBUILD b/mingw-w64-gobject-introspection/PKGBUILD index 00bf827beb..4166945df1 100644 --- a/mingw-w64-gobject-introspection/PKGBUILD +++ b/mingw-w64-gobject-introspection/PKGBUILD @@ -59,7 +59,7 @@ build() { --host=${MINGW_CHOST} \ --enable-silent-rules - make + make G_IR_SCANNER_W32_WRAPPER="${MINGW_PREFIX}/lib/gobject-introspection/g-ir-scanner-w32-wrapper " } package() {