mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
a62da479e3
TlsGetValue has a semantic difference with pthread_getspecific, in that it can return a non-error NULL value, so it always sets the LastError. But allocator callers may not be expecting calling e.g. free() to change the value of the last error, so preserve it.
29 lines
842 B
Bash
Executable File
29 lines
842 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
cd `dirname $0`
|
|
|
|
source upstream.info
|
|
|
|
rm -rf src
|
|
git clone "$UPSTREAM_REPO" src
|
|
cd src
|
|
git checkout "$UPSTREAM_COMMIT"
|
|
autoconf
|
|
git describe --long --abbrev=40 > VERSION
|
|
rm -rf .git .gitignore .gitattributes autom4te.cache .autom4te.cfg
|
|
|
|
patch -p1 < ../0001-Dont-overwrite-VERSION-on-a-git-repository.patch
|
|
patch -p1 < ../0002-Move-variable-declaration-to-the-top-its-block-for-M.patch
|
|
patch -p1 < ../0003-Add-a-isblank-definition-for-MSVC-2013.patch
|
|
patch -p1 < ../0004-Implement-stats.bookkeeping.patch
|
|
patch -p1 < ../0005-Bug-1121314-Avoid-needing-the-arena-in-chunk_alloc_d.patch
|
|
patch -p1 < ../0006-Make-opt.lg_dirty_mult-work-as-documented.patch
|
|
patch -p1 < ../0007-Preserve-LastError-when-calling-TlsGetValue.patch
|
|
|
|
cd ..
|
|
hg addremove -q src
|
|
|
|
echo "jemalloc has now been updated. Don't forget to run hg commit!"
|