Skip to content

Commit

Permalink
mingw-w64-boost - Update to 1.63.0 (msys2#2058)
Browse files Browse the repository at this point in the history
* mingw-w64-boost - Update to 1.63.0
mingw-w64-sqlite - update to 3.16.0
mingw-w64-nghttp2 - Update to 1.18.0 and add c-ares dependency
mingw-w64-libuv -  Update to 0.9.7
mingw-w64-libtiff - Update to 4.0.7
mingw-w64-jemalloc - Update to 4.4.0, dependency on doxbook-xsl, rekey patch
mingw-w64-imagemagick - Update to 7.0.4 - Update to latest version, fix pkgconfig file, rekey patches and remove one that is no longer applicable
mingw-w64-harfbuzz - Update to 1.3.4
mingw-w64-freetype - Update to 2.7.1
mingw-w64-cairo - Update to 1.15.4
mingw-w64-c-ares - Update to 1.12.0

* mingw-w64-fossil - rebuild for libreadline 7.0
mingw-w64-sqlite-analyzer - Update to 3.16.1
mingw-w64-sqlite3 - Update to 3,16,1

* mingw-w64-gdk-pixbuf2 - Update to 2.36.3 - latest version and drop 0001-windows-Remove-old-codepage-ABI-compat-code.patch.  It's in the new version of the source-code.
  • Loading branch information
JPeterMugaas authored and Alexpux committed Jan 12, 2017
1 parent 0141a98 commit 8962c8f
Show file tree
Hide file tree
Showing 21 changed files with 223 additions and 624 deletions.
26 changes: 20 additions & 6 deletions mingw-w64-boost/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
_realname=boost
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=1.62.0
pkgver=1.63.0
_boostver=${pkgver//./_}
pkgrel=1
pkgdesc="Free peer-reviewed portable C++ source libraries (mingw-w64)"
Expand All @@ -22,7 +22,7 @@ source=(https://downloads.sourceforge.net/sourceforge/boost/boost_${_boostver}.t
boost-1.48.0-add-bjam-man-page.patch
boost-1.50.0-fix-non-utf8-files.patch
boost-1.58.0-pool.patch
boost-1.55.0-python-test-PyImport_AppendInittab.patch
boost-1.63.0-python-test-PyImport_AppendInittab.patch
boost-1.57.0-build-optflags.patch
boost-1.57.0-mpl-print.patch
boost-1.58.0-pool-test_linking.patch
Expand All @@ -34,11 +34,11 @@ source=(https://downloads.sourceforge.net/sourceforge/boost/boost_${_boostver}.t
boost-include-intrin-h-on-mingw-w64.patch
using-mingw-w64-python.patch
msys2-mingw-folders-bootstrap.patch)
sha256sums=('36c96b0f6155c98404091d8ceb48319a28279ca0333fba1ad8611eb90afb2ca0'
sha256sums=('00b1ed98a759477e62c6f0546e2897f2d42c31d41c0e89d75366c8013215b7ef'
'c5eae6354693c6b4e6364d4cf6f06c6c3de4c28486bf812cbd291f4410126cf8'
'f32d189cc661e9b843cf0a3c1528de41aaf4f1ea69d6150b5bcd0a2525d36424'
'4551ba9edf64c8ccdab4f4890c20e2e8cf6d4ffa1169d251df11e30d25b886b8'
'16dc2c42d6e509299133ca6d2aa3f87678f8904a630160ea93aebf992066d31c'
'b22196b6415f5e1c0fe56b49a12ea7c20073b15a5f31907f363c7be38d70d628'
'a9a95bdc25a1449c542c667c95bd128ca8a19c0f6282c53671137b2d1b74b0f4'
'd4be505bf6cd08b9da232d0311bfda2820dd75cf8911ed07b72eddc418c73614'
'b15743957aa1c7eb1e861dfe96247e50b7afd96258d960be403851ce62923c87'
Expand All @@ -59,44 +59,58 @@ prepare() {

# Add a manual page for bjam, based on the on-line documentation:
# http://www.boost.org/boost-build2/doc/html/bbv2/overview.html
rm tools/build/v2/doc/bjam.1 | true
rm tools/build/v2/doc/bjam.1 || true
msg2 "boost-1.48.0-add-bjam-man-page.patch"
patch -p1 -i ${srcdir}/boost-1.48.0-add-bjam-man-page.patch

# https://bugzilla.redhat.com/show_bug.cgi?id=828856
# https://bugzilla.redhat.com/show_bug.cgi?id=828857
# https://svn.boost.org/trac/boost/ticket/6701
msg2 "boost-1.58.0-pool.patch"
patch -p0 -i ${srcdir}/boost-1.58.0-pool.patch

# https://svn.boost.org/trac/boost/ticket/5637
msg2 "boost-1.57.0-mpl-print.patch"
patch -p1 -i ${srcdir}/boost-1.57.0-mpl-print.patch

# https://svn.boost.org/trac/boost/ticket/9038
msg2 "boost-1.58.0-pool-test_linking.patch"
patch -p1 -i ${srcdir}/boost-1.58.0-pool-test_linking.patch

# https://bugzilla.redhat.com/show_bug.cgi?id=1102667
msg2 "boost-1.57.0-python-libpython_dep.patch"
patch -p1 -i ${srcdir}/boost-1.57.0-python-libpython_dep.patch
msg2 "boost-1.57.0-python-abi_letters.patch"
patch -p1 -i ${srcdir}/boost-1.57.0-python-abi_letters.patch
patch -p1 -i ${srcdir}/boost-1.55.0-python-test-PyImport_AppendInittab.patch
msg2 "boost-1.60.3-python-test-PyImport_AppendInittab.patch"
patch -p1 -i ${srcdir}/boost-1.63.0-python-test-PyImport_AppendInittab.patch

# https://bugzilla.redhat.com/show_bug.cgi?id=1190039
msg2 "boost-1.57.0-build-optflags.patch"
patch -p1 -i ${srcdir}/boost-1.57.0-build-optflags.patch

# Prevent gcc.jam from setting -m32 or -m64.
msg2 "boost-1.58.0-address-model.patch"
patch -p1 -i ${srcdir}/boost-1.58.0-address-model.patch

# https://svn.boost.org/trac/boost/ticket/7262
msg2 "boost-1.60.0-mingw-context.patch"
patch -p1 -i ${srcdir}/boost-1.60.0-mingw-context.patch

# https://svn.boost.org/trac/boost/ticket/12205
msg2 "boost-1.61.0-fix-undefined-referense-to-codecvt.patch"
patch -p1 -i ${srcdir}/boost-1.61.0-fix-undefined-referense-to-codecvt.patch

# Fix FTBFS on recent mingw-w64 and also use intrinsics based
# versions of the Interlocked symbols which are better optimized
msg2 "boost-include-intrin-h-on-mingw-w64.patch"
patch -p0 -i ${srcdir}/boost-include-intrin-h-on-mingw-w64.patch

# Use out own build Python
msg2 "using-mingw-w64-python.patch"
patch -p1 -i ${srcdir}/using-mingw-w64-python.patch

msg2 "msys2-mingw-folders-bootstrap.patch"
patch -p1 -i ${srcdir}/msys2-mingw-folders-bootstrap.patch
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
diff -aup boost_1_63_0/libs/python/test/exec.cpp.orig boost_1_63_0/libs/python/test/exec.cpp
--- boost_1_63_0/libs/python/test/exec.cpp.orig 2017-01-02 05:05:18.000000000 -0500
+++ boost_1_63_0/libs/python/test/exec.cpp 2017-01-02 08:36:49.421564200 -0500
@@ -56,8 +56,23 @@
BOOST_TEST(value == "ABCDEFG");
}

+struct PyCtx
+{
+ PyCtx() {
+ Py_Initialize();
+ }
+
+ ~PyCtx() {
+ // N.B. certain problems may arise when Py_Finalize is called when
+ // using Boost.Python. However in this test suite it all seems to
+ // work fine.
+ Py_Finalize();
+ }
+};
+
void exec_test()
{
+ PyCtx ctx;
// Retrieve the main module
python::object main = python::import("__main__");

@@ -137,6 +152,19 @@
"there was no exception handler registered.");
}
}
+
+template <class Cb>
+bool
+run_and_handle_exception(Cb cb, bool pyerr_expected = false)
+{
+ PyCtx ctx;
+ if (python::handle_exception(cb)) {
+ check_pyerr(pyerr_expected);
+ return true;
+ } else {
+ return false;
+ }
+}

int main(int argc, char **argv)
{
@@ -156,37 +184,27 @@
"builtin modules");
}

- // Initialize the interpreter
- Py_Initialize();
-
- if (python::handle_exception(eval_test)) {
- check_pyerr();
- }
- else if(python::handle_exception(exec_test)) {
- check_pyerr();
- }
- else if (python::handle_exception(boost::bind(exec_file_test, script))) {
- check_pyerr();
- }
-
- if (python::handle_exception(exec_test_error))
- {
+ // N.B. exec_test mustn't be called through run_and_handle_exception
+ // as it needs to handles the python context by itself.
+ if (run_and_handle_exception(eval_test)
+ || python::handle_exception(exec_test))
check_pyerr(/*pyerr_expected*/ true);
- }
else
+ run_and_handle_exception(boost::bind(exec_file_test, script));
+
+ if (!run_and_handle_exception(exec_test_error, true))
{
BOOST_ERROR("Python exception expected, but not seen.");
}

if (argc > 2) {
+ PyCtx ctx;
// The main purpose is to test compilation. Since this test generates
// a file and I (rwgk) am uncertain about the side-effects, run it only
// if explicitly requested.
exercise_embedding_html();
}

- // Boost.Python doesn't support Py_Finalize yet.
- // Py_Finalize();
return boost::report_errors();
}

Diff finished. Fri Jan 9 21:31:13 2015
7 changes: 4 additions & 3 deletions mingw-w64-c-ares/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
_realname=c-ares
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=1.11.0
pkgver=1.12.0
pkgrel=1
pkgdesc="C library that performs DNS requests and name resolves asynchronously (mingw-w64)"
arch=('any')
Expand All @@ -13,8 +13,9 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-gcc" "${MINGW_PACKAGE_PREFIX}-pkg-config")
options=('strip' 'staticlibs')
source=("http://c-ares.haxx.se/download/${_realname}-${pkgver}.tar.gz"{,.asc}
0001-Use-RPM-compiler-options.patch)
validpgpkeys=('914C533DF9B2ADA2204F586D78E11C6B279D5C91')
sha256sums=('b3612e6617d9682928a1d50c1040de4db6519f977f0b25d40cf1b632900b3efd'
validpgpkeys=('914C533DF9B2ADA2204F586D78E11C6B279D5C91'
'27EDEAF22F3ABCEB50DB9A125CC908FDB71E12C2')
sha256sums=('8692f9403cdcdf936130e045c84021665118ee9bfea905d1a76f04d4e6f365fb'
'SKIP'
'f00faa8723fd530b027f96b987ef19138628a49afdf52ffb0554b36156fc9d74')

Expand Down
11 changes: 4 additions & 7 deletions mingw-w64-cairo/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
_realname=cairo
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=1.15.2
pkgver=1.15.4
pkgrel=4
pkgdesc="Cairo vector graphics library (mingw-w64)"
arch=('any')
Expand All @@ -31,18 +31,15 @@ options=('strip' 'staticlibs')
source=(#"http://cairographics.org/releases/cairo-${pkgver}.tar.xz"
http://cairographics.org/snapshots/cairo-${pkgver}.tar.xz
0009-standalone-headers.mingw.patch
0026-create-argb-fonts.all.patch
0027-win32-print-fix-unbounded-surface-assertion.patch)
sha256sums=('268cc265a7f807403582f440643064bf52896556766890c8df7bad02d230f6c9'
0026-create-argb-fonts.all.patch)
sha256sums=('deddf31e196e826e7790bbbf7d0f4b3fd15df243aa48511b349f1791b96be291'
'234de8c5d4c28b03c19e638a353e8defb2de0367a634c002b0ea7d2877bd0756'
'6db6c44fbdb4926d09afa978fe80430186c4b7b7d255059602b1f94c6a079975'
'14c6e8b33b6b0a8cdb81e1cb1e51991d8430bd1510fca471273f820310dacfab')
'6db6c44fbdb4926d09afa978fe80430186c4b7b7d255059602b1f94c6a079975')

prepare() {
cd "${srcdir}"/${_realname}-${pkgver}
patch -p1 -i ${srcdir}/0009-standalone-headers.mingw.patch
patch -p1 -i ${srcdir}/0026-create-argb-fonts.all.patch
patch -p1 -i ${srcdir}/0027-win32-print-fix-unbounded-surface-assertion.patch

autoreconf -fi
}
Expand Down
2 changes: 1 addition & 1 deletion mingw-w64-fossil/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ _realname=fossil
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=1.36
pkgrel=1
pkgrel=2
pkgdesc='Simple, high-reliability, distributed software configuration management (mingw-w64)'
arch=('any')
license=('BSD')
Expand Down
Loading

0 comments on commit 8962c8f

Please sign in to comment.