From 016ed6e85c617874c3cd276d587f0944a3a70043 Mon Sep 17 00:00:00 2001 From: LiFeng Date: Thu, 9 Jan 2020 07:55:41 -0500 Subject: [PATCH] grpc: add apply patchs scripts Signed-off-by: LiFeng --- apply-patches | 36 ++++++++++++++++++++++++++++++++++++ series.conf | 4 ++++ 2 files changed, 40 insertions(+) create mode 100755 apply-patches create mode 100644 series.conf diff --git a/apply-patches b/apply-patches new file mode 100755 index 0000000..f484e84 --- /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 0000000..590027d --- /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 -- Gitee