• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2# This library is free software; you can redistribute it and/or
3# modify it under the terms of the GNU Lesser General Public
4# License as published by the Free Software Foundation version 2.1
5# of the License.
6#
7# Copyright(c) 2023 Huawei Device Co., Ltd.
8
9set -e
10cd $1
11{
12flock -x 100
13if [ -d "abseil-cpp" ];then
14    rm -rf abseil-cpp
15fi
16tar zxvf abseil-cpp-20230802.1.tar.gz
17mv abseil-cpp-20230802.1 abseil-cpp
18cd $1/abseil-cpp
19patch -p1 < $1/abseil-cpp-20210324.2-sw.patch
20patch -p1 < $1/0001-add-loongarch-suopport-for-abseil-cpp.patch
21patch -p1 < $1/0002-PR-1644-unscaledcycleclock-remove-RISC-V-support.patch
22patch -p1 < $1/fix-mingw-complier-error.patch
23patch -p1 < $1/backport-CVE-2025-0838.patch
24flock -u 100
25} 100<>$1/lock_file.lock
26exit 0