# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=musl
pkgver=1.1.15
pkgrel=6
pkgdesc="the musl c library (libc) implementation"
url="http://www.musl-libc.org/"
arch="all"
license="MIT"
depends=""
depends_dev="!uclibc-dev"
makedepends="$depends_dev"
subpackages="$pkgname-dev $pkgname-dbg libc6-compat:compat:noarch"
[ "$BOOTSTRAP" != "nolibc" ] && subpackages="$subpackages $pkgname-utils"
source="http://www.musl-libc.org/releases/musl-$pkgver.tar.gz
	0001-fix-asctime-day-month-names-not-to-vary-by-locale.patch
	0001-verify-that-ttyname-refers-to-the-same-file-as-the-f.patch
	0002-math-fix-128bit-long-double-inverse-trigonometric-fu.patch
	0003-fix-FFSYNC-by-changing-it-to-O_SYNC.patch
	0004-getdtablesize-fix-returning-hard-instead-of-soft-rli.patch
	0005-restore-_Noreturn-to-__assert_fail.patch
	0006-fix-printf-regression-with-alt-form-octal-zero-flag-.patch
	0007-fix-ifru_data-and-ifcu_buf-types-in-net-if.h.patch
	0008-fix-if_indextoname-error-case.patch
	0009-add-missing-_unlocked-and-wcsftime_l-prototypes-to-w.patch
	0010-simplify-refactor-fflush-and-make-fflush_unlocked-an.patch
	0011-fix-undefined-behavior-in-sched.h-cpu_set_t-usage.patch
	0012-fix-getservby-_r-result-pointer-value-on-error.patch
	0013-fix-strftime-y-for-negative-tm_year.patch
	0014-fix-missing-integer-overflow-checks-in-regexec-buffe.patch
	0015-fix-regexec-with-haystack-strings-longer-than-INT_MA.patch
	0016-fix-integer-overflow-in-float-printf-needed-precisio.patch
	0017-fix-integer-overflows-and-uncaught-EOVERFLOW-in-prin.patch
	0018-fix-clock_nanosleep-error-case.patch
	0018-use-dynamic-buffer-for-getmntent.patch
	0019-add-pthread_setname_np.patch
	0020-fix-float-formatting-of-some-exact-halfway-cases.patch
	0021-fix-getopt_long_only-misinterpreting-as-an-option.patch
	0022-fix-gratuitous-undefined-behavior-in-strptime.patch
	0023-fix-strtod-and-strtof-rounding-with-many-trailing-ze.patch
	0024-fix-strtod-int-optimization-in-non-nearest-rounding-.patch
	0025-fix-minor-problem-in-previous-strtod-non-nearest-rou.patch
	0026-fix-typo-in-utmpx.h.patch
	0027-fix-misspelling-of-a-legacy-macro-name-in-sys-param..patch
	0028-fix-parsing-of-quoted-time-zone-names.patch
	0029-fix-accidental-global-static-pointer-in-ldso.patch
	0030-fix-ldso-reserved-library-name-handling.patch
	0031-fix-integer-overflow-of-tm_year-in-__secs_to_tm.patch
	0032-fix-swprintf-internal-buffer-state-and-error-handlin.patch
	0033-work-around-gdb-issues-recognizing-sigreturn-trampol.patch
	0034-fix-mrand48-jrand48-return-value-on-64-bit-archs.patch
	0035-handle-and-in-BRE-subexpression-start-and-end-as-anc.patch
	1001-add-support-for-pthread_-get-set-attr_default_np-GNU.patch

	ldconfig
	__stack_chk_fail_local.c
	getconf.c
	getent.c
	iconv.c
	"

# secfixes:
#   1.1.15-r4:
#     - CVE-2016-8859

builddir="$srcdir"/musl-$pkgver

install_sysroot_headers() {
	cd "$builddir"
	[ -z "${CBUILDROOT}" ] && die "CBUILDROOT not set"
	case "$CARCH" in
	aarch64*) ARCH="aarch64" ;;
	arm*) ARCH="arm" ;;
	x86) ARCH="i386" ;;
	x86_64) ARCH="x86_64" ;;
	mips*) ARCH="mips" ;;
	esac
	make ARCH="$ARCH" prefix=/usr DESTDIR="${CBUILDROOT}" install-headers || return 1
}

build() {
	cd "$builddir"

	# provide minimal libssp_nonshared.a so we don't need libssp from gcc
	${CROSS_COMPILE}gcc $CPPFLAGS $CFLAGS -c "$srcdir"/__stack_chk_fail_local.c -o __stack_chk_fail_local.o || return 1
	${CROSS_COMPILE}ar r libssp_nonshared.a __stack_chk_fail_local.o || return 1

	if [ "$BOOTSTRAP" != "nolibc" ]; then
		# getconf/getent/iconv
		local i
		for i in getconf getent iconv ; do
			${CROSS_COMPILE}gcc $CPPFLAGS $CFLAGS "$srcdir"/$i.c -o $i || return 1
		done
	fi

	# note: not autotools
	LDFLAGS="$LDFLAGS -Wl,-soname,libc.musl-${CARCH}.so.1" \
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1

	cp libssp_nonshared.a "$pkgdir"/usr/lib || return 1

	# make LDSO the be the real file, and libc the symlink
	local LDSO=$(make -f Makefile --eval "$(echo -e 'print-ldso:\n\t@echo $$(basename $(LDSO_PATHNAME))')" print-ldso)
	mv -f "$pkgdir"/usr/lib/libc.so "$pkgdir"/lib/"$LDSO" || return 1
	ln -sf "$LDSO" "$pkgdir"/lib/libc.musl-${CARCH}.so.1 || return 1
	ln -sf ../../lib/"$LDSO" "$pkgdir"/usr/lib/libc.so || return 1
	mkdir -p "$pkgdir"/usr/bin || return 1
	ln -sf ../../lib/"$LDSO" "$pkgdir"/usr/bin/ldd || return 1

	# remove libintl.h, currently we don't want by default any NLS
	# and use GNU gettext where needed. the plan is to migrate to
	# musl gettext() later on as fully as possible.
	rm "$pkgdir"/usr/include/libintl.h || return 1
}

utils() {
	depends="!uclibc-utils scanelf"
	replaces="libiconv uclibc-utils"
	license="MIT BSD GPL2+"

	mkdir -p "$subpkgdir"/usr "$subpkgdir"/sbin
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ || return 1

	install -D \
		"$builddir"/getent \
		"$builddir"/getconf \
		"$builddir"/iconv \
		"$subpkgdir"/usr/bin

	install -D -m755 "$srcdir"/ldconfig "$subpkgdir"/sbin
}

compat() {
	pkgdesc="compatibility libraries for glibc"

	case "$CARCH" in
	arm*) _ld="ld-linux-armhf.so.3" ;;
	x86) _ld="ld-linux.so.2" ;;
	x86_64) _ld="ld-linux-x86-64.so.2" ;;
	mips*) _ld="ld.so.1" ;;
	esac

	mkdir -p "$subpkgdir"/lib
	ln -sf "/lib/libc.musl-${CARCH}.so.1" "$subpkgdir/lib/$_ld"

	for i in libc.so.6 libcrypt.so.1 libm.so.6 libpthread.so.0 librt.so.1 libutil.so.1; do
		ln -sf "/lib/libc.musl-${CARCH}.so.1" "$subpkgdir/lib/$i"
	done
}

md5sums="9590a9d47ee64f220b3c12f7afb864ca  musl-1.1.15.tar.gz
c08825383e41e5dbcd3ffdfd2062dd47  0001-fix-asctime-day-month-names-not-to-vary-by-locale.patch
361341eafbd9df0537ae0c3c82ac62fb  0001-verify-that-ttyname-refers-to-the-same-file-as-the-f.patch
c5ab949b2cbfee521e1ac63eee7fdcde  0002-math-fix-128bit-long-double-inverse-trigonometric-fu.patch
adadb0b34060acb834cc7d6b02ecba2a  0003-fix-FFSYNC-by-changing-it-to-O_SYNC.patch
24d2150154f19dbd27303389ce17b525  0004-getdtablesize-fix-returning-hard-instead-of-soft-rli.patch
3449436c98bc888b84273eeb9cd2f3bb  0005-restore-_Noreturn-to-__assert_fail.patch
31e1eb80acc738f6a036f01b2df20b61  0006-fix-printf-regression-with-alt-form-octal-zero-flag-.patch
f62c94f99b4bc7d3ee098ecc96d2a1e6  0007-fix-ifru_data-and-ifcu_buf-types-in-net-if.h.patch
56cd68a29e0ce52fea65f28f5a785c83  0008-fix-if_indextoname-error-case.patch
a50530618bf95834f8219e822e6901a5  0009-add-missing-_unlocked-and-wcsftime_l-prototypes-to-w.patch
77b27159df61008af0bcb86d0986465f  0010-simplify-refactor-fflush-and-make-fflush_unlocked-an.patch
7c642b601ce81d5418f0666fc12a5fdd  0011-fix-undefined-behavior-in-sched.h-cpu_set_t-usage.patch
2394217798cfa65458c0d29e4dc5459d  0012-fix-getservby-_r-result-pointer-value-on-error.patch
de027daccdff4efee5d2801158eeedfd  0013-fix-strftime-y-for-negative-tm_year.patch
0b601e844bedd6b9af1da515bb40a0d5  0014-fix-missing-integer-overflow-checks-in-regexec-buffe.patch
8248da439e4a7489ead6213501e0dfc9  0015-fix-regexec-with-haystack-strings-longer-than-INT_MA.patch
47e54b3d82053d4a7d3eb7cd2c87fd97  0016-fix-integer-overflow-in-float-printf-needed-precisio.patch
dc76f0b70aa56c2f1284d3a79d04ca23  0017-fix-integer-overflows-and-uncaught-EOVERFLOW-in-prin.patch
17e6c4d84396cff82418b6860d499c2b  0018-fix-clock_nanosleep-error-case.patch
a679721e73f778d34a5f357fa884b49d  0018-use-dynamic-buffer-for-getmntent.patch
4fdc7b428e93213d28293a04344054c2  0019-add-pthread_setname_np.patch
df48f35ff1e8084b5b01223917a11c32  0020-fix-float-formatting-of-some-exact-halfway-cases.patch
499cf72f3ce881609130411ebb757be6  0021-fix-getopt_long_only-misinterpreting-as-an-option.patch
2507ca119bad0b33713a886e7ccba72a  0022-fix-gratuitous-undefined-behavior-in-strptime.patch
0169f80be7c767e3f8cd736bbf773bde  0023-fix-strtod-and-strtof-rounding-with-many-trailing-ze.patch
e9ef5ab7879cc113895d37783b217a70  0024-fix-strtod-int-optimization-in-non-nearest-rounding-.patch
2019fe5ed6214ff647d499fcd00fdb66  0025-fix-minor-problem-in-previous-strtod-non-nearest-rou.patch
855dda2bd43cd4647bbbe187ae21c1e5  0026-fix-typo-in-utmpx.h.patch
71e91fa6e59eb8dc2fbcff481f8d6940  0027-fix-misspelling-of-a-legacy-macro-name-in-sys-param..patch
bbbddbc14f9868e2970847388c7eced3  0028-fix-parsing-of-quoted-time-zone-names.patch
d7370f099f1f66a21f08e09ab565e2b2  0029-fix-accidental-global-static-pointer-in-ldso.patch
487824144894dc7b2f681559e90c47a3  0030-fix-ldso-reserved-library-name-handling.patch
ad302311ae40f2812f03978a6fd70c62  0031-fix-integer-overflow-of-tm_year-in-__secs_to_tm.patch
ecccf2709616b972b03af5c6a5ef1433  0032-fix-swprintf-internal-buffer-state-and-error-handlin.patch
fb41ec1bf483e92cf2b72e0efb700cc3  0033-work-around-gdb-issues-recognizing-sigreturn-trampol.patch
b6913f0456cc06ed111d8b0e7fbee80a  0034-fix-mrand48-jrand48-return-value-on-64-bit-archs.patch
abae86f7c5f1837c38affbe6e120adb9  0035-handle-and-in-BRE-subexpression-start-and-end-as-anc.patch
62806d6be9fa3aedc99831d948abca65  1001-add-support-for-pthread_-get-set-attr_default_np-GNU.patch
830d01f7821b978df770b06db3790921  ldconfig
0df687757221bbb0fc1aa67f1bd646f9  __stack_chk_fail_local.c
57ef2c63b9ec6a2041694ace97d4ffa2  getconf.c
eadc8794eadb79dbc383b2b91a32084d  getent.c
45f92f8d59cf84d765de698a9578dbf4  iconv.c"
sha256sums="97e447c7ee2a7f613186ec54a93054fe15469fe34d7d323080f7ef38f5ecb0fa  musl-1.1.15.tar.gz
d157100aeed5b0866eb6d50288f63f26ea9900f1d4c7b8a1492294c912b5cc19  0001-fix-asctime-day-month-names-not-to-vary-by-locale.patch
c75f8433b499ecd7812423e8bd69e9262d36207f519c79afaa47651cd9924ab9  0001-verify-that-ttyname-refers-to-the-same-file-as-the-f.patch
a2bec5ce9121c02a38a71c9bccac06bda5fa0b6504f67ba78b994b0882ec25e8  0002-math-fix-128bit-long-double-inverse-trigonometric-fu.patch
81efc557cc27dc5d6f93431250703fbeb40682e06524f41eb07b3e3204a439b0  0003-fix-FFSYNC-by-changing-it-to-O_SYNC.patch
83b6ba4869f15f462011d891165de4b7a786d719c3315890a6ddd5d2709e91e0  0004-getdtablesize-fix-returning-hard-instead-of-soft-rli.patch
47bad5028c0d00a03736df33069eb8d3de803608ef7b790a594c0fe09f4d1ac1  0005-restore-_Noreturn-to-__assert_fail.patch
4ea253b510122665f51b9fd0c154c946374749c28359488e19000fd40e6c7e4e  0006-fix-printf-regression-with-alt-form-octal-zero-flag-.patch
95c4c747a12dcfeff9ea1c0a0fe5ea34921617dbc0bde9571237cab67803256f  0007-fix-ifru_data-and-ifcu_buf-types-in-net-if.h.patch
2f09325fe3e0a74c36c47df68799f31364ca687d6d5425282cb1cedb66683b88  0008-fix-if_indextoname-error-case.patch
b3472e284d5846ea22cc50d6ebae533c70babb9e6dce9200aef8f52a67e45461  0009-add-missing-_unlocked-and-wcsftime_l-prototypes-to-w.patch
88cfa5eb1f964fe821d1b67f43cf21849f9d8473a59cb91a702e04d564a59c8d  0010-simplify-refactor-fflush-and-make-fflush_unlocked-an.patch
e3d2642bf119577e68c651e7406e1d6c1201a0b8a8a9d972fda792f31bf4e6ea  0011-fix-undefined-behavior-in-sched.h-cpu_set_t-usage.patch
11b3e53d4a80d854667602c8b2daa6af81a95feea0e8c0c8c8a3cc86169b9197  0012-fix-getservby-_r-result-pointer-value-on-error.patch
df3b0c794c65b228c2f1246244ee913fbf5be1c20529ca7a3f87aceea4f8756f  0013-fix-strftime-y-for-negative-tm_year.patch
992d3f9cf5e380bdf31bb2fe52c6ed34642073539930023e1e964a23f498d73a  0014-fix-missing-integer-overflow-checks-in-regexec-buffe.patch
cbd3d60695a46c51e48d59260702029211c09be54b97ed73172e5c46f9604ec3  0015-fix-regexec-with-haystack-strings-longer-than-INT_MA.patch
79ac2d68335a42289783b0fe54e4634b23950ccd24c3a21b51f1243a985f18f3  0016-fix-integer-overflow-in-float-printf-needed-precisio.patch
ad4be27fa0bfbfc655d3d697457f64a785dcddb29784391891b612356c4a85f3  0017-fix-integer-overflows-and-uncaught-EOVERFLOW-in-prin.patch
6362fdd50e7a36d4a640d84faa5f65b4837f1c70ed0441076e59d596f7c839fe  0018-fix-clock_nanosleep-error-case.patch
f252aba723f2438ee1e9ee0940aed0017511dcb6d749bf6be7afdeaea4c782a5  0018-use-dynamic-buffer-for-getmntent.patch
a85b33f81034e3d801f2bdee5bc5ed85226dce49a652df59e436a45ed35a4701  0019-add-pthread_setname_np.patch
532dbff98f04ab4e76195ecbfce3e10bd4cc3df9f1e4f4080ad1090345f8c584  0020-fix-float-formatting-of-some-exact-halfway-cases.patch
1a1ed8134e4f28188a91441862402258618fa68158bc07a7f7b83fb416c12c63  0021-fix-getopt_long_only-misinterpreting-as-an-option.patch
7c33515437030f7bc267376ef910630d7a05e66183473dd3b1cbabca8bf4e538  0022-fix-gratuitous-undefined-behavior-in-strptime.patch
6254a8ec59f756cc044303650c18e55cb0afe9e5a6027f871da6537cdb2b08c5  0023-fix-strtod-and-strtof-rounding-with-many-trailing-ze.patch
8e074fa0f9434a8818951a48df08510b8c10c44ea9732a919f893476618a576d  0024-fix-strtod-int-optimization-in-non-nearest-rounding-.patch
301c1a16a84ec4c071e8a61360e3d3a21eb71cfcda581448938c7f3c40e11c85  0025-fix-minor-problem-in-previous-strtod-non-nearest-rou.patch
3f5cc9aede03bf2357b9cb3a2107b63dacb67c65c98eb71815658bbf6fab7528  0026-fix-typo-in-utmpx.h.patch
41769360683b537de93d1e6119059a0d39bd369fd34338cd81f32276ee670a1b  0027-fix-misspelling-of-a-legacy-macro-name-in-sys-param..patch
7ab31334e4b5d522cc9ed1e16b74c7cec7e4ca58a05aa56092d8dd9649a8a66d  0028-fix-parsing-of-quoted-time-zone-names.patch
c66310e6dc429ba8a0fac52a2918609c21b2fc7aab2a2b06108617d127f376e8  0029-fix-accidental-global-static-pointer-in-ldso.patch
9342ff13b01c12e3d2acd6faf7350c75048fb6a749610d98ee4994e16e829849  0030-fix-ldso-reserved-library-name-handling.patch
5964976ebdda4e0ac99cc1323de02ef3a737d9be3d08ea66973020fb85283c98  0031-fix-integer-overflow-of-tm_year-in-__secs_to_tm.patch
21bdaa2f602e898cbc665d4223c37316c3da45a27c4a56e2278a2d671a5da273  0032-fix-swprintf-internal-buffer-state-and-error-handlin.patch
8603df3a8a487c070a5642f8a497e6e32ae6f319352627b3644d3ab1f9ef78b7  0033-work-around-gdb-issues-recognizing-sigreturn-trampol.patch
96d3819f23f4f13a2c0c628070bfceedd90266f86154e09c6aa109f3a8a019ed  0034-fix-mrand48-jrand48-return-value-on-64-bit-archs.patch
f45ddc4958b1d1615462926363b2fed0a7b69492ec9541da36a4314c7a04797a  0035-handle-and-in-BRE-subexpression-start-and-end-as-anc.patch
0403509c71580be517867be56b984359c3e7c413aba3f5b7f5b29d52561be328  1001-add-support-for-pthread_-get-set-attr_default_np-GNU.patch
b4a2c06db38742e8c42c3c9838b285a7d8cdac6c091ff3df5ff9a15f1e41b9c7  ldconfig
299a7d75a09de3e2e11e7fb4acc3182e4a14e868093d2f30938fce9bfcff13da  __stack_chk_fail_local.c
d87d0cbb3690ae2c5d8cc218349fd8278b93855dd625deaf7ae50e320aad247c  getconf.c
b323f20c9bf560a13c877eb05428bc4a203383697bac763e7b12865db5c5922c  getent.c
f79a2930a2e5bb0624321589edf8b889d1e9b603e01e6b7ae214616605b3fdd7  iconv.c"
sha512sums="9e923572c0d6bad3dc2d2646d4b0699c10b477ce6300ac6c6224895192a90667f581ddf6eda2ab8c4c16f47bde4bccb03bb90478638d136d9df721430f4d0163  musl-1.1.15.tar.gz
1a74d5f5e0f6f2fe6029ed0f18b4603f80c990f19aa13d83c5d1f40f032b2ffb3819aae13ae1f96415bb08571774eec164e71d09028f2a5db4ae9b77e48cafe7  0001-fix-asctime-day-month-names-not-to-vary-by-locale.patch
6ed71298ce739a4bc150a2e5f26a1c7fd285474d6fc919ef46b62e558cce0b6e81230b1cdfede461b0986644dcabec5c2380da9eeac8d97a15c5dd28d1cde9bf  0001-verify-that-ttyname-refers-to-the-same-file-as-the-f.patch
7a3e572ea60930ac4d177461c07bedaaa1dfcc7de946c17e0b588eb7bffb7295500aec4b723090cbbb49b1a941717ada7578e09d5590b121b4472135bc5d4dd5  0002-math-fix-128bit-long-double-inverse-trigonometric-fu.patch
e9fb5df57a21936c3b5036ffdb07cc0573b8ef131354645ba9014105daec14255deaf9595bd7e1bc900105a8feb80338daafb45b4a17406477a330d2946ad0a8  0003-fix-FFSYNC-by-changing-it-to-O_SYNC.patch
03e088bd22bfa2f88331bcdf0f00e2d77dea75352bded6d4770c3c57d3cfe35803c158e102fa46f12659422cb04fdf77dc2f1906191e6b242d43cf38fbd9e65b  0004-getdtablesize-fix-returning-hard-instead-of-soft-rli.patch
d0c5e3e51513073c56f859ca56b99402be0e7166a008be5c1d5ef2ceda9f2fb22e21d5da151aa0ba2656662fd14e0ec733779b3701183295760f7e2d3e3d794f  0005-restore-_Noreturn-to-__assert_fail.patch
f48e2abfc8283762b975c659825b71314252da645a184a8caede542fd12e331943c24abda4f6530d2756ff2403e25587957b41acbb563a2a8b8e5f4e5b24cbf3  0006-fix-printf-regression-with-alt-form-octal-zero-flag-.patch
057a424aea8dd74bea86d1d19bfe51a928e317931e00703467f8f7e4d1ab4df1993bb6309b41e124ca91cb52846bcb6f828b949413dcc80163aee3b22e662442  0007-fix-ifru_data-and-ifcu_buf-types-in-net-if.h.patch
2780f433c74a812362f38c6259a9c0df7ac95fe45c619dfe4cf1dd65059cfc146e7cadb75659840fdf4217bc558a72dcbe3a6fa19a7936c676c01f054b25df53  0008-fix-if_indextoname-error-case.patch
4713bc28f805ce6b4d9752aaf3c1e263ab62398ec062ba5f36201d3a5095b180a412262056c6d8bc43880bdc64a83017350a86c8bc64bedf1d0c44267bb715af  0009-add-missing-_unlocked-and-wcsftime_l-prototypes-to-w.patch
6ad28ad6e60a2574b7b233af5ffe36c958a00ccda9c12d1ce94d3e8ac25647da34c7238962858d1aa6a3639bc24238f7adff202e6e69e3f9cf51bd73c4a53036  0010-simplify-refactor-fflush-and-make-fflush_unlocked-an.patch
68cd55a3d8a3f003675f296980d28cd4724ce30f86c46f8ec0054e65c6e78810e42c8e8a01d392493be0c925b3049bbc5855fd00618380daea16985077a8c85a  0011-fix-undefined-behavior-in-sched.h-cpu_set_t-usage.patch
aa3f86355ec1a66405219308aa5ee21860e033020f7c73371da25e6e9bdf582d5c92b9afc9fc421cb9102a7903d7366fe55bcd38e0ec35e24c2b295f2fdf442d  0012-fix-getservby-_r-result-pointer-value-on-error.patch
542fa5545bacc2801f0ee24cbdd66a8b6f20543ef4c7f20df78a6d5f9fc59bbebad8e0a7debe43e1cae93642c093e55900b77e372fc2d9ad67559bc61ed6730b  0013-fix-strftime-y-for-negative-tm_year.patch
589b14e47395acfcb8a0958f94fc28af1cbbc2c7fb51a0789a2520ffdd0d40cd6cfebef748cf395080d5988c2be204036d72d717f938eefa4630db98db2273c2  0014-fix-missing-integer-overflow-checks-in-regexec-buffe.patch
5c8fe2d829f57d652307fe9bba3e834bfdc2fbd8d3e39cd4b37317af7c432df9ca91036ca201cc6360044785c56103e949efc835aae607c0ba26f3deba037687  0015-fix-regexec-with-haystack-strings-longer-than-INT_MA.patch
fb8eb9533b4104dba23e07761d5a86c0820b4836b4cb42084dec87e9c445548e61f108a4a03249665d381d41adc6a67e8ea89ddcdbdec842ab95a17a147b52e9  0016-fix-integer-overflow-in-float-printf-needed-precisio.patch
c70434513ae1543392d5cd2ccd9ddee0537aa591d284a9911eb9e7a6c0cbb0b801dcb88a876aeffb48d034b5cd4d825ee4ae1ae2e4ff37155b5c09cc98ce2475  0017-fix-integer-overflows-and-uncaught-EOVERFLOW-in-prin.patch
e2f824959524453faeab09cff815e5885ed2d9a68a42ad3c605800daf514754715f52dd22d84146841f70be14fb79feb0ee7dbc51ce03e168db1c49f93dc96f6  0018-fix-clock_nanosleep-error-case.patch
1c5a27a75be2220cb9b63074a4730f219d3cbef1d4a2e6b68f96340c5b7bf838390f3526df7654226ac3eae4381db3f63261fb9ac3efc837cec0bde4e3615fb1  0018-use-dynamic-buffer-for-getmntent.patch
5e905b988bae134083bea9487781207ec1fc42e6d2ca16f73cd545f3a4eb15108aa60c7dba47a73147d2bf90377a870c5b912e69381754eff8e424df887bc6a8  0019-add-pthread_setname_np.patch
1a22787f197fcdaf484391f659b033ece296c3e8c3faa92411acd8b7f6f859bda8bc19abdd15fcb5840abe4da32c51ac57691e3c78b8717a96795f765fe8de6e  0020-fix-float-formatting-of-some-exact-halfway-cases.patch
ffada28865028b059ca64dc24538db8786465830a227443a410ee7ba7ea06e8dae352a26e268be5ba4a91059d2fe2dfacdfb9ce03c4df08a98df76aa1c4f7ca8  0021-fix-getopt_long_only-misinterpreting-as-an-option.patch
d8aeffd16ca5df51d34341f92a452941daf94c69b112d74f4759773301c2753f9dde5858b0b102954202a8af568a9f8193d775260da75d6389fe50dd8c15d57b  0022-fix-gratuitous-undefined-behavior-in-strptime.patch
fe86988734ce3817182c25023ed2739c67f3d4c226570c1162713ea5849112cb98b6f9b778ecedafd086366b01392dbc0a871e427a51a8421949a64a97fd8214  0023-fix-strtod-and-strtof-rounding-with-many-trailing-ze.patch
3df8546a37467b716509bc0bbccef47aaf431e861442267aba0c08e19980d411f515d6a9c09c86b055dc709e83bcfab5f8bbfcb34d5c4b62e201a555839ff1fb  0024-fix-strtod-int-optimization-in-non-nearest-rounding-.patch
cc15bb90009ae546f3de75457fef6ea8bdccee2bacae9a1c3860a18120cbd610f2f1d4a358a41da25b7d16f3ae03fe9b40b235c9028af5319dc1bcc28d3a956f  0025-fix-minor-problem-in-previous-strtod-non-nearest-rou.patch
1b4c3b7042f9b7f4ebb4d7dc8a6acac20326797e66583873c1de7bdcb08333a6f883196d6f4fdf364cd78c97093a4f90ebbeff8029aba3759fa358a2f99edc3b  0026-fix-typo-in-utmpx.h.patch
02663915628523be2340898984c363da6cc7f648c79c4f1d0ecd3a3e7f79a1b91b0ca6c0c4174cc993abc9a612d1dd68c8b4978192c7325c47706e0b0e13ca39  0027-fix-misspelling-of-a-legacy-macro-name-in-sys-param..patch
1ccdf7d82536023e494c000d2e5449ada3ec4a637e6f409d223c72251d76649af6545c44d2054acd5a373d739df1941933303b1eeabf7bccd20ae67724fa75d1  0028-fix-parsing-of-quoted-time-zone-names.patch
e681cea8cb009661f3869faab1d6a8415c39553865fe0f13fff0e4c60b682871d4dda4645fcbb148172c7d89ab1efb7e284b4e83a49a242e0d3425f09093b04d  0029-fix-accidental-global-static-pointer-in-ldso.patch
b3d68205157480a5527f98f2382fe4a6a7fbc218fc0c73c7797058ba481e1ca534c2f40d4b2e5eaa3dd7413301c89843b30cd4fcdf370f4cd833fbacb8fb43f3  0030-fix-ldso-reserved-library-name-handling.patch
2784ab0539fa00a743a9eaf7cd4f45b0021313b728bfe53af8fd76e6925a04ffd6f1008a9258f3949a6d33d18b8d143d2163935aae4889f299a34a6388992588  0031-fix-integer-overflow-of-tm_year-in-__secs_to_tm.patch
4e483752f3b84ac343045d214d7e4c495167cb56586ce456173a044b5c1c578ef34bde959da111ee4d599fda37065f002d88490f9923cd1c23324fabf29f25d7  0032-fix-swprintf-internal-buffer-state-and-error-handlin.patch
a3d8d416c3109c5c9e81b7229718255695082c502e3890e12573ed7820eec657061416d6025d3cd1c8ad1ae5ccff88cb76765475b63ce9406588e2e655780deb  0033-work-around-gdb-issues-recognizing-sigreturn-trampol.patch
84fc4f47651f1db66a4dc6bca050c55f2fb034e2d95fad94a440104cdd21610279b1f2f6d76f6fa048d0d9e951ca4950d194a1b063411a7b88eb2fe6577ef379  0034-fix-mrand48-jrand48-return-value-on-64-bit-archs.patch
35390e0971e8ae6e9d30c790dca5950f5db22e23d1fe3801f7227ed8da04691356304c1202a4694b9965b39eb8fcc01edfece04c58a347719a902bd548501fb2  0035-handle-and-in-BRE-subexpression-start-and-end-as-anc.patch
dc15dcb71e576f42268721c1caa036d91f3f67ab628a8527cd80d5689acea326b27e73013c02383b432027bed4c68c2cba75020088b760fae64d1680febf7a7d  1001-add-support-for-pthread_-get-set-attr_default_np-GNU.patch
8d3a2d5315fc56fee7da9abb8b89bb38c6046c33d154c10d168fb35bfde6b0cf9f13042a3bceee34daf091bc409d699223735dcf19f382eeee1f6be34154f26f  ldconfig
062bb49fa54839010acd4af113e20f7263dde1c8a2ca359b5fb2661ef9ed9d84a0f7c3bc10c25dcfa10bb3c5a4874588dff636ac43d5dbb3d748d75400756d0b  __stack_chk_fail_local.c
0d80f37b34a35e3d14b012257c50862dfeb9d2c81139ea2dfa101d981d093b009b9fa450ba27a708ac59377a48626971dfc58e20a3799084a65777a0c32cbc7d  getconf.c
378d70e65bcc65bb4e1415354cecfa54b0c1146dfb24474b69e418cdbf7ad730472cd09f6f103e1c99ba6c324c9560bccdf287f5889bbc3ef0bdf0e08da47413  getent.c
9d42d66fb1facce2b85dad919be5be819ee290bd26ca2db00982b2f8e055a0196290a008711cbe2b18ec9eee8d2270e3b3a4692c5a1b807013baa5c2b70a2bbf  iconv.c"
