- Disable LTO because it's broken.
OBS-URL: https://build.opensuse.org/package/show/devel:tools/grpc?expand=0&rev=45
This commit is contained in:
parent
f3dd5482aa
commit
8dd3b95029
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 22 18:28:15 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
- Disable LTO because it's broken.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Aug 18 16:29:43 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
|
Sun Aug 18 16:29:43 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
16
grpc.spec
16
grpc.spec
@ -33,14 +33,7 @@ BuildRequires: %{python_module devel}
|
|||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: glibc-debuginfo
|
|
||||||
BuildRequires: libprotobuf-lite20-debuginfo
|
|
||||||
BuildRequires: libprotobuf20-debuginfo
|
|
||||||
BuildRequires: libprotoc20-debuginfo
|
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkg-config
|
||||||
BuildRequires: protobuf-debugsource
|
|
||||||
BuildRequires: protobuf-devel-debuginfo
|
|
||||||
BuildRequires: protobuf-source
|
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: zypper
|
BuildRequires: zypper
|
||||||
BuildRequires: pkgconfig(libcares)
|
BuildRequires: pkgconfig(libcares)
|
||||||
@ -101,18 +94,19 @@ This subpackage contains the python3 bindings.
|
|||||||
%setup -qn grpc-%rver
|
%setup -qn grpc-%rver
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%define _lto_cflags %nil
|
||||||
# protoc is invoked strangely; make it happy with this dir or it will assert()
|
# protoc is invoked strangely; make it happy with this dir or it will assert()
|
||||||
mkdir -p third_party/protobuf/src
|
mkdir -p third_party/protobuf/src
|
||||||
|
|
||||||
make %{?_smp_mflags} STRIP=/bin/true V=1 VERBOSE=1 \
|
export CFLAGS="%optflags -Wno-error"
|
||||||
CFLAGS="%optflags -Wno-error" CXXFLAGS="%optflags -Wno-error"
|
export CXXFLAGS="$CFLAGS"
|
||||||
|
make %{?_smp_mflags} STRIP=/bin/true V=1 VERBOSE=1
|
||||||
|
|
||||||
# build python module
|
# build python module
|
||||||
export GRPC_PYTHON_BUILD_WITH_CYTHON=True
|
export GRPC_PYTHON_BUILD_WITH_CYTHON=True
|
||||||
export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=True
|
export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=True
|
||||||
export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=True
|
export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=True
|
||||||
export GRPC_PYTHON_BUILD_SYSTEM_CARES=True
|
export GRPC_PYTHON_BUILD_SYSTEM_CARES=True
|
||||||
export CFLAGS="%optflags"
|
|
||||||
%python_build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -139,7 +133,7 @@ tar -xzf %SOURCE0 --strip-components=1 -C "%buildroot/%src_install_dir"
|
|||||||
find "%buildroot/%src_install_dir" -type f \
|
find "%buildroot/%src_install_dir" -type f \
|
||||||
-exec sed -i 's|#!%_bindir/env bash|#!/bin/bash|' "{}" + \
|
-exec sed -i 's|#!%_bindir/env bash|#!/bin/bash|' "{}" + \
|
||||||
-exec sed -i 's|#!%_bindir/env ruby|#!%_bindir/ruby|' "{}" +
|
-exec sed -i 's|#!%_bindir/env ruby|#!%_bindir/ruby|' "{}" +
|
||||||
find "%buildroot/%src_install_dir -type f "(" -name "*.bzl" -o -name "*.py" ")" \
|
find "%buildroot/%src_install_dir" -type f "(" -name "*.bzl" -o -name "*.py" ")" \
|
||||||
-exec sed -i 's|#!%_bindir/env python2.7|#!%_bindir/python2.7|' "{}" + \
|
-exec sed -i 's|#!%_bindir/env python2.7|#!%_bindir/python2.7|' "{}" + \
|
||||||
-exec sed -i 's|#!%_bindir/env python|#!%_bindir/python|' "{}" +
|
-exec sed -i 's|#!%_bindir/env python|#!%_bindir/python|' "{}" +
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user