]> git.pld-linux.org Git - packages/python3-adblock.git/commitdiff
reduce opt-level on %{ix86} to fix build auto/th/python3-adblock-0.4.4-1
authorJan Palus <atler@pld-linux.org>
Wed, 14 Apr 2021 17:33:21 +0000 (19:33 +0200)
committerJan Palus <atler@pld-linux.org>
Wed, 14 Apr 2021 17:33:21 +0000 (19:33 +0200)
for whatever reason build crashes with opt-level > 1:

terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
error: could not compile `adblock`.

python3-adblock.spec

index b612f66991bcc25823abf49b7fc32cc9e3026cf5..d3dc9b339fea9618bd3e3fddc0c7cfa47221b0ec 100644 (file)
@@ -52,11 +52,14 @@ directory = '$PWD/vendor'
 EOF
 
 %build
-CARGO_HOME="$(pwd)/.cargo" \
-CARGO_NET_OFFLINE=true \
-CARGO_TERM_VERBOSE=true \
-%{?__jobs:CARGO_BUILD_JOBS="%{__jobs}"} \
-RUSTFLAGS="%{rpmrustflags}" \
+export CARGO_HOME="$(pwd)/.cargo"
+export CARGO_NET_OFFLINE=true
+export CARGO_TERM_VERBOSE=true
+%{?__jobs:export CARGO_BUILD_JOBS="%{__jobs}"}
+export RUSTFLAGS="%{rpmrustflags}"
+%ifarch %{ix86}
+export RUSTFLAGS="$RUSTFLAGS -C opt-level=1"
+%endif
 /usr/bin/maturin build --release --no-sdist \
 %ifarch x32
        --target x86_64-unknown-linux-gnux32
This page took 0.146439 seconds and 4 git commands to generate.