Received: from mx12.valuehost.ru (mx12.valuehost.ru [217.112.42.215]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTP id 08B8B781831 for ; Fri, 15 Nov 2019 05:16:56 +0000 (UTC) Received: from mx7.valuehost.ru (unknown [127.0.0.255]) by mx12.valuehost.ru (Postfix) with ESMTP id D1ED1509EB for ; Fri, 15 Nov 2019 08:16:55 +0300 (MSK) From: alpine-mips-patches Date: Fri, 15 Nov 2019 05:01:41 +0000 Subject: [PATCH] main/yasm: fix random segfault in testsuite To: alpine-aports@lists.alpinelinux.org Message-Id: <20191115051655.D1ED1509EB@mx12.valuehost.ru> observable on mipseln8hf; the patch is from upstream. --- ...84586228af6c362f970c84fce58da3fcbdec8.patch | 18 ++++++++++++++++++ main/yasm/APKBUILD | 8 +++++--- 2 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 main/yasm/74184586228af6c362f970c84fce58da3fcbdec8.patch diff --git a/main/yasm/74184586228af6c362f970c84fce58da3fcbdec8.patch b/main/yasm/74184586228af6c362f970c84fce58da3fcbdec8.patch new file mode 100644 index 0000000000..3ec24e6f68 --- /dev/null +++ b/main/yasm/74184586228af6c362f970c84fce58da3fcbdec8.patch @@ -0,0 +1,18 @@ +commit 74184586228af6c362f970c84fce58da3fcbdec8 +Author: Matt Oliver +Date: Tue Apr 4 00:34:47 2017 +1000 + + fix memory errors when using gas processor with coff object output. + +diff --git a/modules/objfmts/coff/coff-objfmt.c b/modules/objfmts/coff/coff-objfmt.c +index 6fcb0e3c..8f753bfe 100644 +--- a/modules/objfmts/coff/coff-objfmt.c ++++ b/modules/objfmts/coff/coff-objfmt.c +@@ -290,6 +290,7 @@ coff_common_create(yasm_object *object) + objfmt_coff->done_prolog = 0; + objfmt_coff->unwind = NULL; + objfmt_coff->ssym_imagebase = NULL; ++ objfmt_coff->def_sym = NULL; + + return objfmt_coff; + } diff --git a/main/yasm/APKBUILD b/main/yasm/APKBUILD index ea8eaff9da..94646c3558 100644 --- a/main/yasm/APKBUILD +++ b/main/yasm/APKBUILD @@ -1,13 +1,14 @@ # Maintainer: Natanael Copa pkgname=yasm pkgver=1.3.0 -pkgrel=1 +pkgrel=2 pkgdesc="A rewrite of NASM to allow for multiple syntax supported (NASM, TASM, GAS, etc.)" url="http://www.tortall.net/projects/yasm/" arch="all" license="BSD" subpackages="$pkgname-dev $pkgname-doc" -source="http://www.tortall.net/projects/$pkgname/releases/$pkgname-$pkgver.tar.gz" +source="http://www.tortall.net/projects/$pkgname/releases/$pkgname-$pkgver.tar.gz + 74184586228af6c362f970c84fce58da3fcbdec8.patch" options="!checkroot" builddir="$srcdir/$pkgname-$pkgver" @@ -38,4 +39,5 @@ package() { install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING } -sha512sums="572d3b45568b10f58e48f1188c2d6bcbdd16429c8afaccc8c6d37859b45635e106885d679e41d0bee78c23822108c7ae75aa7475eed5ba58057e0a6fe1b68645 yasm-1.3.0.tar.gz" +sha512sums="572d3b45568b10f58e48f1188c2d6bcbdd16429c8afaccc8c6d37859b45635e106885d679e41d0bee78c23822108c7ae75aa7475eed5ba58057e0a6fe1b68645 yasm-1.3.0.tar.gz +e0220f7d29a83fc107dfb134dad29c3246fdaa2bcba4a1182fb93e9fd810c53cc97062771c26ee4a34d5e8dea1feb3094647bdc68b4d45734a062eb8d4afa3d1 74184586228af6c362f970c84fce58da3fcbdec8.patch" -- 2.24.0