diff --git a/apply-patches b/apply-patches new file mode 100755 index 0000000000000000000000000000000000000000..539f9d620460309bb7b4f3520aed0a6133c304c6 --- /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=c-ares-1.15.0 +cwd=$PWD +src=$cwd/c-ares-1.15.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 100755 index 0000000000000000000000000000000000000000..fe91f114390e830c9cedf806ffe3a783a70b1460 --- /dev/null +++ b/series.conf @@ -0,0 +1 @@ +0001-Use-RPM-compiler-options.patch