X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mx12.valuehost.ru (mx12.valuehost.ru [217.112.42.215]) by lists.alpinelinux.org (Postfix) with ESMTP id F30255C6753 for ; Fri, 30 Nov 2018 11:05:21 +0000 (GMT) Received: from mx7.valuehost.ru (unknown [127.0.0.255]) by mx12.valuehost.ru (Postfix) with ESMTP id 3E0DB60A9D for ; Fri, 30 Nov 2018 14:05:20 +0300 (MSK) From: alpine-mips-patches Date: Fri, 30 Nov 2018 10:36:50 +0000 Subject: [alpine-aports] [PATCH] community/py-greenlet: fix build on mips* To: alpine-aports@lists.alpinelinux.org Message-Id: <20181130110520.3E0DB60A9D@mx12.valuehost.ru> X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Build fails at switch_mips_unix.h with "$fp cannot be used in asm here" because of forced -O0 (thus without -fomit-frame-pointer) in APKBUILD. As a quick fix, use the "normal" C*FLAGS on mips* only. Test still passes on mipsel at least. --- community/py-greenlet/APKBUILD | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/community/py-greenlet/APKBUILD b/community/py-greenlet/APKBUILD index 068d3aa965..50633c5630 100644 --- a/community/py-greenlet/APKBUILD +++ b/community/py-greenlet/APKBUILD @@ -18,7 +18,10 @@ builddir="$srcdir/$_pkgname-$pkgver" build() { cd "$builddir" - export CFLAGS="-O0" CPPFLAGS="-O0" CXXFLAGS="-O0" + case "$CARCH" in + mips*) ;; + *) export CFLAGS="-O0" CPPFLAGS="-O0" CXXFLAGS="-O0" ;; + esac python2 setup.py build python3 setup.py build } -- 2.19.2 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---