/usr/bin/env can go die
OBS-URL: https://build.opensuse.org/package/show/devel:tools/grpc?expand=0&rev=179
This commit is contained in:
parent
2ff2108b10
commit
e4d3402ff1
14
grpc.spec
14
grpc.spec
@ -126,10 +126,12 @@ This subpackage contains source code of the gRPC reference implementation.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -N
|
%autosetup -N
|
||||||
find "." -type f -exec grep -l '/usr/bin/env' {} + | \
|
find "." -type f -exec grep -l '/usr/bin/env ' {} + |
|
||||||
xargs -r perl -i -lpe 's{#! ?/usr/bin/env python\S+}{#!/usr/bin/python3}g'
|
xargs -r perl -i -lpe \
|
||||||
find "." -type f -exec grep -l '/usr/bin/env ' {} + | \
|
's{#! ?/usr/bin/env python\S*}{#!/usr/bin/python3}g;
|
||||||
xargs -r perl -i -lpe 's{#! ?/usr/bin/env }{#!/usr/bin/}g'
|
s{#! ?/usr/bin/env sh}{#!/bin/sh}g;
|
||||||
|
s{#! ?/usr/bin/env bash}{#!/bin/bash}g;
|
||||||
|
s{#! ?/usr/bin/env }{#!/usr/bin/}g;'
|
||||||
pushd third_party/xxhash
|
pushd third_party/xxhash
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
%patch2 -p1
|
%patch2 -p1
|
||||||
@ -143,6 +145,8 @@ mkdir -p third_party/protobuf/src
|
|||||||
cp -a /usr/src/opencensus-proto third_party/
|
cp -a /usr/src/opencensus-proto third_party/
|
||||||
export CFLAGS="%optflags -Wno-error"
|
export CFLAGS="%optflags -Wno-error"
|
||||||
export CXXFLAGS="$CFLAGS"
|
export CXXFLAGS="$CFLAGS"
|
||||||
|
find "." -type f -exec grep '/usr/bin/env ' {} + || :
|
||||||
|
pushd .
|
||||||
%cmake -DgRPC_INSTALL=ON \
|
%cmake -DgRPC_INSTALL=ON \
|
||||||
-DgRPC_INSTALL_LIBDIR:PATH="%_lib" \
|
-DgRPC_INSTALL_LIBDIR:PATH="%_lib" \
|
||||||
-DgRPC_INSTALL_CMAKEDIR:PATH="%_libdir/cmake/grpc" \
|
-DgRPC_INSTALL_CMAKEDIR:PATH="%_libdir/cmake/grpc" \
|
||||||
@ -155,6 +159,8 @@ export CXXFLAGS="$CFLAGS"
|
|||||||
-DgRPC_ZLIB_PROVIDER=package \
|
-DgRPC_ZLIB_PROVIDER=package \
|
||||||
-DCMAKE_CXX_STANDARD=17
|
-DCMAKE_CXX_STANDARD=17
|
||||||
%cmake_build
|
%cmake_build
|
||||||
|
popd
|
||||||
|
find "." -type f -exec grep '/usr/bin/env ' {} + || :
|
||||||
|
|
||||||
%install
|
%install
|
||||||
b="%buildroot"
|
b="%buildroot"
|
||||||
|
Loading…
Reference in New Issue
Block a user