Skip to content

Commit

Permalink
community/py3-aiohttp: fix build in not x86 architectures
Browse files Browse the repository at this point in the history
Manually remove _http_parser.cpython-36m-x86_64-linux-gnu.so shared
object that is shipped in source code and make strip fails in not
x86 architectures.

Bug opened upstream: aio-libs/aiohttp#2414
  • Loading branch information
rgdoliveira committed Oct 26, 2017
1 parent ccc967e commit 270bea1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions community/py3-aiohttp/APKBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ check() {
python3 setup.py check
}

prepare() {
default_prepare
# Workaround to remove x86_64 .so file that is shipped in source
# and make strip fails in arches != from x86_64
rm "$srcdir"/aiohttp-2.3.1/aiohttp/_http_parser.cpython-36m-x86_64-linux-gnu.so
}

build() {
cd "$builddir"
python3 setup.py build
Expand Down

0 comments on commit 270bea1

Please sign in to comment.