diff --git a/apply-patches b/apply-patches new file mode 100755 index 0000000000000000000000000000000000000000..f484e8406510907fb2de84ec352d2b4ff34847dd --- /dev/null +++ b/apply-patches @@ -0,0 +1,36 @@ +####################################################################### +##- @Copyright (C) Huawei Technologies., Ltd. 2019. All rights reserved. +# - lcr licensed under the Mulan PSL v1. +# - You can use this software according to the terms and conditions of the Mulan PSL v1. +# - You may obtain a copy of Mulan PSL v1 at: +# - http://license.coscl.org.cn/MulanPSL +# - THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +# - IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +# - PURPOSE. +# - See the Mulan PSL v1 for more details. +##- @Description: apply patchs +##- @Author: lifeng +##- @Create: 2019-04-25 +####################################################################### +#!/bin/bash + +set -ex + +pkg=grpc-1.22.0 +cwd=$PWD +src=$cwd/grpc-1.22.0 + +tar -xzvf $pkg.tar.gz + +cd $src + +cat $cwd/series.conf | while read line +do + if [[ $line == '' || $line =~ ^\s*# ]]; then + continue + fi + echo $cwd/$line + patch -p1 -F1 -s < $cwd/$line +done + +cd $cwd diff --git a/series.conf b/series.conf new file mode 100644 index 0000000000000000000000000000000000000000..590027d478447fb0f8ec28162b94b84a61174776 --- /dev/null +++ b/series.conf @@ -0,0 +1,4 @@ +0001-cxx-Arg-List-Too-Long.patch +0002-add-secure-compile-option-in-Makefile.patch +0001-enforce-system-crypto-policies.patch +0002-patch-from-15532.patch