Skip to content

Commit

Permalink
Merge pull request #17 from msys2/master
Browse files Browse the repository at this point in the history
rebase to upstream
  • Loading branch information
taozuhong authored Oct 12, 2020
2 parents 798acd9 + 8488286 commit 17ad19b
Show file tree
Hide file tree
Showing 347 changed files with 5,821 additions and 10,553 deletions.
1 change: 1 addition & 0 deletions mingw-w64-amqp-cpp/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Maintainer: Aleksandr Serbin <[email protected]>

_realname=amqp-cpp
pkgbase="mingw-w64-${_realname}"
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=4.1.6
pkgrel=2
Expand Down
140 changes: 140 additions & 0 deletions mingw-w64-apr-util/002-add_mod-static.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
--- apr-util-1.6.1/configure.in.orig 2020-09-10 18:41:42.586845300 +0800
+++ apr-util-1.6.1/configure.in 2020-09-10 18:43:39.739574800 +0800
@@ -294,8 +294,7 @@
dnl
case $host in
*-mingw*)
- sed -e 's/-DAPR_DECLARE_EXPORT/-DAPU_DECLARE_EXPORT/' \
- -e 's/-DAPR_DECLARE_STATIC/-DAPU_DECLARE_STATIC -DAPR_DECLARE_STATIC/' \
+ sed -e 's/-DAPR_DECLARE_EXPORT/-DAPU_DECLARE_EXPORT -DAPR_DECLARE_STATIC/' \
< $APR_BUILD_DIR/apr_rules.mk > $abs_builddir/build/rules.mk
;;
*)
--- apr-util-1.6.1/build/dbd.m4.orig 2017-04-03 01:57:23.000000000 +0800
+++ apr-util-1.6.1/build/dbd.m4 2020-09-09 16:42:55.975685800 +0800
@@ -181,10 +181,9 @@
[apu_have_mysql=0; break],
[#include <my_global.h>])
if test "$apu_have_mysql" = "0"; then
- AC_CHECK_HEADERS([mysql/mysql.h mysql/my_global.h mysql/my_sys.h],
+ AC_CHECK_HEADERS([mysql/mysql.h],
AC_CHECK_LIB(mysqlclient, mysql_init, [apu_have_mysql=1]),
- [apu_have_mysql=0; break],
- [#include <mysql/my_global.h>])
+ [apu_have_mysql=0; break])
fi
if test "$apu_have_mysql" != "0" && test "x$MYSQL_CONFIG" != 'x'; then
APR_ADDTO(APRUTIL_PRIV_INCLUDES, [$mysql_CPPFLAGS])

--- apr-util-1.6.1/dbd/apr_dbd_mysql.c.orig 2014-09-16 19:45:15.000000000 +0800
+++ apr-util-1.6.1/dbd/apr_dbd_mysql.c 2020-09-09 19:18:56.279062400 +0800
@@ -1262,7 +1262,7 @@

static void dbd_mysql_init(apr_pool_t *pool)
{
- my_init();
+ mysql_init(NULL);
mysql_thread_init();

/* FIXME: this is a guess; find out what it really does */

--- apr-util-1.6.1/test/testcrypto.c.orig 2016-10-18 05:40:26.000000000 +0800
+++ apr-util-1.6.1/test/testcrypto.c 2020-09-09 21:13:08.810072000 +0800
@@ -1463,9 +1463,6 @@
/* test key parsing - nss */
abts_run_test(suite, test_crypto_key_nss, NULL);

- /* test key parsing - commoncrypto */
- abts_run_test(suite, test_crypto_key_commoncrypto, NULL);
-
/* test a simple encrypt / decrypt operation - openssl */
abts_run_test(suite, test_crypto_block_openssl, NULL);

@@ -1478,12 +1475,6 @@
/* test a padded encrypt / decrypt operation - nss */
abts_run_test(suite, test_crypto_block_nss_pad, NULL);

- /* test a simple encrypt / decrypt operation - commoncrypto */
- abts_run_test(suite, test_crypto_block_commoncrypto, NULL);
-
- /* test a padded encrypt / decrypt operation - commoncrypto */
- abts_run_test(suite, test_crypto_block_commoncrypto_pad, NULL);
-
/* test encrypt nss / decrypt openssl */
abts_run_test(suite, test_crypto_block_nss_openssl, NULL);

@@ -1496,6 +1487,28 @@
/* test padded encrypt openssl / decrypt nss */
abts_run_test(suite, test_crypto_block_openssl_nss_pad, NULL);

+ /* test block key types openssl */
+ abts_run_test(suite, test_crypto_get_block_key_types_openssl, NULL);
+
+ /* test block key types nss */
+ abts_run_test(suite, test_crypto_get_block_key_types_nss, NULL);
+
+ /* test block key modes openssl */
+ abts_run_test(suite, test_crypto_get_block_key_modes_openssl, NULL);
+
+ /* test block key modes nss */
+ abts_run_test(suite, test_crypto_get_block_key_modes_nss, NULL);
+
+#if APU_HAVE_COMMONCRYPTO
+ /* test key parsing - commoncrypto */
+ abts_run_test(suite, test_crypto_key_commoncrypto, NULL);
+
+ /* test a simple encrypt / decrypt operation - commoncrypto */
+ abts_run_test(suite, test_crypto_block_commoncrypto, NULL);
+
+ /* test a padded encrypt / decrypt operation - commoncrypto */
+ abts_run_test(suite, test_crypto_block_commoncrypto_pad, NULL);
+
/* test encrypt openssl / decrypt commoncrypto */
abts_run_test(suite, test_crypto_block_openssl_commoncrypto, NULL);

@@ -1508,24 +1521,12 @@
/* test padded encrypt commoncrypto / decrypt openssl */
abts_run_test(suite, test_crypto_block_commoncrypto_openssl_pad, NULL);

- /* test block key types openssl */
- abts_run_test(suite, test_crypto_get_block_key_types_openssl, NULL);
-
- /* test block key types nss */
- abts_run_test(suite, test_crypto_get_block_key_types_nss, NULL);
-
/* test block key types commoncrypto */
abts_run_test(suite, test_crypto_get_block_key_types_commoncrypto, NULL);

- /* test block key modes openssl */
- abts_run_test(suite, test_crypto_get_block_key_modes_openssl, NULL);
-
- /* test block key modes nss */
- abts_run_test(suite, test_crypto_get_block_key_modes_nss, NULL);
-
/* test block key modes commoncrypto */
abts_run_test(suite, test_crypto_get_block_key_modes_commoncrypto, NULL);
-
+#endif
abts_run_test(suite, test_crypto_memzero, NULL);
abts_run_test(suite, test_crypto_equals, NULL);

--- apr-util-1.6.1/test/testdbm.c.orig 2020-09-10 12:20:54.146064500 +0800
+++ apr-util-1.6.1/test/testdbm.c 2020-09-10 12:21:57.319604800 +0800
@@ -183,7 +183,7 @@
test_dbm_fetch(tc, db, table);
test_dbm_delete(tc, db, table);
test_dbm_exists(tc, db, table);
- test_dbm_traversal(tc, db, table);
+ //test_dbm_traversal(tc, db, table);

apr_dbm_close(db);

@@ -194,7 +194,7 @@
return;

test_dbm_exists(tc, db, table);
- test_dbm_traversal(tc, db, table);
+ //test_dbm_traversal(tc, db, table);
test_dbm_fetch(tc, db, table);

apr_dbm_close(db);
45 changes: 33 additions & 12 deletions mingw-w64-apr-util/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,37 @@ _realname=apr-util
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=1.6.1
pkgrel=1
pkgrel=2
pkgdesc="The Apache Portable Runtime (mingw-w64)"
arch=('any')
url="https://apr.apache.org/"
makedepends=("${MINGW_PACKAGE_PREFIX}-gcc" "${MINGW_PACKAGE_PREFIX}-libtool")
depends=("${MINGW_PACKAGE_PREFIX}-apr"
"${MINGW_PACKAGE_PREFIX}-expat"
"${MINGW_PACKAGE_PREFIX}-sqlite3")
"${MINGW_PACKAGE_PREFIX}-libmariadbclient"
"${MINGW_PACKAGE_PREFIX}-sqlite3"
"${MINGW_PACKAGE_PREFIX}-unixodbc"
"${MINGW_PACKAGE_PREFIX}-postgresql"
"${MINGW_PACKAGE_PREFIX}-openldap"
"${MINGW_PACKAGE_PREFIX}-nss"
"${MINGW_PACKAGE_PREFIX}-gdbm"
"${MINGW_PACKAGE_PREFIX}-openssl")
license=('APACHE')
source=(https://www.apache.org/dist/apr/${_realname}-${pkgver}.tar.bz2{,.asc}
plugins.patch
fix-dll-build.patch)
source=(https://www.apache.org/dist/apr/${_realname}-${pkgver}.tar.bz2
'plugins.patch'
'fix-dll-build.patch'
'002-add_mod-static.patch')
sha256sums=('d3e12f7b6ad12687572a3a39475545a072608f4ba03a6ce8a3778f607dd0035b'
'SKIP'
'd79c9202ce6ddc9a67a671ec5bcf495672330a4fa7e29446fa54db793f3f09fe'
'b33b18e612f54ea15c9303aede19e4a2b9ec2550fd081add61d13eff6446d44a')
'b33b18e612f54ea15c9303aede19e4a2b9ec2550fd081add61d13eff6446d44a'
'69a356e706619b48ebaeabef53bae4f6eaed45f1a61a20f4b230f2faa1f3124e')

prepare() {
cd "${srcdir}/${_realname}-${pkgver}"
patch -Np1 -i "${srcdir}/plugins.patch"
patch -Np1 -i "${srcdir}/fix-dll-build.patch"
patch -Np1 -i "${srcdir}/002-add_mod-static.patch"

#./buildconf --with-apr=${MINGW_PREFIX}
autoreconf -fi
}
Expand All @@ -41,11 +51,22 @@ build() {
--host=${MINGW_CHOST} \
--with-apr=${MINGW_PREFIX} \
--with-expat=${MINGW_PREFIX} \
--without-gdbm \
--without-ldap \
--without-pgsql \
--with-sqlite3=${MINGW_PREFIX}

--with-iconv=${MINGW_PREFIX} \
--with-crypto \
--with-openssl=yes \
--with-nss=yes \
--with-dbm=gdbm \
--with-gdbm=yes \
--with-berkeley-db=no \
--with-pgsql=yes \
--with-sqlite3=yes \
--with-ldap=yes \
--with-oracle=no \
--with-sqlite2=no \
--with-mysql=yes \
--with-odbc=yes \
--with-commoncrypto=no

make -j1
}

Expand Down
5 changes: 1 addition & 4 deletions mingw-w64-arm-none-eabi-gcc/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ _target=arm-none-eabi
pkgbase=mingw-w64-${_target}-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_target}-${_realname}")
pkgver=8.4.0
pkgrel=2
pkgrel=3
pkgdesc='GNU Tools for ARM Embedded Processors - GCC (mingw-w64)'
arch=('any')
license=('GPL')
Expand Down Expand Up @@ -38,9 +38,6 @@ prepare() {

_build_gcc() {
local _GCC_LDFLAGS="${LDFLAGS} -Wl,--disable-dynamicbase"
if [ "${CARCH}" = 'x86_64' ]; then
_GCC_LDFLAGS+=",--image-base=0x400000"
fi
../configure \
--build=${MINGW_CHOST} \
--host=${MINGW_CHOST} \
Expand Down
81 changes: 74 additions & 7 deletions mingw-w64-arm-none-eabi-gdb/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,80 @@ _target=arm-none-eabi
pkgbase=mingw-w64-${_target}-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_target}-${_realname}")
pkgver=9.2
pkgrel=1
pkgrel=2
pkgdesc='GNU Tools for ARM Embedded Processors - GDB (mingw-w64)'
arch=('any')
license=('GPL')
url='https://www.gnu.org/software/gdb/'
groups=("${MINGW_PACKAGE_PREFIX}-${_target}-toolchain")
source=(https://ftp.gnu.org/gnu/${_realname}/${_realname}-${pkgver}.tar.xz{,.sig})
source=(
https://ftp.gnu.org/gnu/gdb/${_realname}-${pkgver}.tar.xz{,.sig}
'gdb-perfomance.patch'
'gdb-fix-using-gnu-print.patch'
'gdb-7.12-dynamic-libs.patch'
'python-configure-path-fixes.patch'
'gdb-fix-tui-with-pdcurses.patch'
'gdb-9.1-lib-order.patch'
'gdb-home-is-userprofile.patch'
)
sha256sums=(
'360cd7ae79b776988e89d8f9a01c985d0b1fa21c767a4295e5f88cb49175c555'
'SKIP'
'a0a2d974e80b656646c87cc669fda798182a35b001aab933567c41b880530aa0'
'29fce74348a2862dd3856da58cd3c6c40a910cbdb95e5003d571c33a04532b78'
'9de9c30bbb8cd2c6f60414b5a34cdf1fae27238293fb6007c628a8b821f88e0b'
'6378e1a96e3bedc2a160f0f6780cb973ce6139017f2786e7ab97f8bcd9824d27'
'f70cc0a0633d01adf777eb57a82f8c9880f6511d55e44c1dc415ddebc7467e0b'
'dcfbfb2e3fc90a51e11202529e34c1b3dcc17e352067ffdfc58b63c1deab9523'
'a63ba094dcd9bf0c0f98c6dce5825590b2cf7014834fd3bec5f88fe25d90228a'
)
depends=("${MINGW_PACKAGE_PREFIX}-expat"
"${MINGW_PACKAGE_PREFIX}-libiconv"
"${MINGW_PACKAGE_PREFIX}-ncurses"
"${MINGW_PACKAGE_PREFIX}-python"
"${MINGW_PACKAGE_PREFIX}-readline"
"${MINGW_PACKAGE_PREFIX}-xxhash"
"${MINGW_PACKAGE_PREFIX}-zlib")
checkdepends=('dejagnu' 'bc')
makedepends=("${MINGW_PACKAGE_PREFIX}-iconv"
"${MINGW_PACKAGE_PREFIX}-xz")
options=('staticlibs' '!distcc' '!ccache')
validpgpkeys=('F40ADB902B24264AA42E50BF92EDB04BFF325CF3') # Joel Brobecker

prepare() {
cd ${srcdir}/${_realname}-${pkgver}

mkdir ${_realname}-build
mkdir ${_realname}-build-${MINGW_CHOST}

# https://sourceware.org/bugzilla/show_bug.cgi?id=15412
patch -p1 -i ../gdb-perfomance.patch

patch -p1 -i ../gdb-fix-using-gnu-print.patch

# https://sourceware.org/bugzilla/show_bug.cgi?id=21078
patch -p1 -i ../gdb-7.12-dynamic-libs.patch

patch -p1 -i ../python-configure-path-fixes.patch

patch -p1 -i ../gdb-fix-tui-with-pdcurses.patch
patch -p1 -i ../gdb-9.1-lib-order.patch
patch -p1 -i ../gdb-home-is-userprofile.patch

# hack! - libiberty configure tests for header files using "$CPP $CPPFLAGS"
sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure
}

build() {
cd ${srcdir}/${_realname}-${pkgver}/${_realname}-build
cd ${srcdir}/${_realname}-${pkgver}/${_realname}-build-${MINGW_CHOST}

if [ "${CARCH}" != "x86_64" ]; then
LDFLAGS+=" -Wl,--large-address-aware"
fi

CPPFLAGS+=" -I${MINGW_PREFIX}/include/ncurses"
CFLAGS+=" -I${MINGW_PREFIX}/include/ncurses"
CXXFLAGS+=" -I${MINGW_PREFIX}/include/ncurses"
LDFLAGS+=" -fstack-protector"

../configure \
--build=${MINGW_CHOST} \
Expand All @@ -41,17 +94,31 @@ build() {
--disable-libssp \
--disable-install-libbfd \
--disable-install-libiberty \
--with-system-readline
--with-system-readline \
--enable-languages=c,c++ \
--disable-werror \
--disable-win32-registry \
--disable-rpath \
--with-curses \
--with-system-gdbinit=${MINGW_PREFIX}/etc/gdbinit \
--with-python=${MINGW_PREFIX}/bin/python \
--with-expat \
--with-libiconv-prefix=${MINGW_PREFIX} \
--with-zlib \
--with-lzma \
--enable-tui \
--enable-source-highlight=no

make
}

package() {
cd ${srcdir}/${_realname}-${pkgver}/${_realname}-build
cd ${srcdir}/${_realname}-${pkgver}/${_realname}-build-${MINGW_CHOST}

make DESTDIR="$pkgdir" install-gdb

cd ${pkgdir}${MINGW_PREFIX}

# Remove files that conflict with native gdb
rm -rf include share/gdb share/info
rm -rf include share/gdb share/info lib
}
36 changes: 36 additions & 0 deletions mingw-w64-arm-none-eabi-gdb/gdb-7.12-dynamic-libs.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
From 55058413c83f650adfcd3d92a0005fae46f51505 Mon Sep 17 00:00:00 2001
From: Orgad Shaneh <[email protected]>
Date: Tue, 7 Mar 2017 19:13:41 +0200
Subject: [PATCH] configure: Disable static linking with standard libs

Linking statically causes spurious crashes on exception handling
with mingw32.
---
configure | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index 276f33fee3..e5e83482c3 100755
--- a/configure
+++ b/configure
@@ -5878,7 +5878,7 @@ else
# trust that they are doing what they want.
if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
-a "$have_static_libs" = yes; then
- stage1_ldflags="-static-libstdc++ -static-libgcc"
+ stage1_ldflags=""
fi
fi

@@ -5914,7 +5914,7 @@ else
# statically. But if the user explicitly specified the libraries to
# use, trust that they are doing what they want.
if test "$poststage1_libs" = ""; then
- poststage1_ldflags="-static-libstdc++ -static-libgcc"
+ poststage1_ldflags=""
fi
fi

--
2.25.0.windows.1

Loading

0 comments on commit 17ad19b

Please sign in to comment.