diff --git a/apply-patches b/apply-patches new file mode 100755 index 0000000000000000000000000000000000000000..ad6608893c57f6797ccee74eabe8b93c780072a3 --- /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=libevent-2.1.11-stable +cwd=$PWD +src=$cwd/libevent-2.1.11-stable + +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..0f52479a0d8334b7d45cd1b2f5476d0c8a030591 --- /dev/null +++ b/series.conf @@ -0,0 +1,2 @@ +libevent-nonettests.patch +0103-http-add-callback-to-allow-server-to-decline-and-the.patch