naiveproxy/src/build/linux/sysroot_scripts/sysroot-creator-sid-naive.sh

68 lines
998 B
Bash
Raw Normal View History

2019-10-05 15:52:34 +08:00
#!/bin/bash
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
.() { :; }
source "${SCRIPT_DIR}/sysroot-creator-sid.sh"
unset -f .
DEBIAN_PACKAGES='
libc6
libc6-dev
linux-libc-dev
libgcc-6-dev
libgcc1
libgomp1
libatomic1
libstdc++6
libnspr4
libnspr4-dev
libnss3
libnss3-dev
libsqlite3-0
'
DEBIAN_PACKAGES_AMD64='
liblsan0
libtsan0
'
DEBIAN_PACKAGES_X86='
libasan3
libcilkrts5
libitm1
libmpx2
libquadmath0
libubsan0
'
DEBIAN_PACKAGES_ARM='
libasan3
libubsan0
'
DEBIAN_PACKAGES_ARM64='
libasan3
libitm1
libubsan0
'
2019-11-28 23:47:32 +08:00
DEBIAN_PACKAGES_MIPS64EL='
'
2019-10-05 15:52:34 +08:00
# Disables libdbus workarounds
ln -sf /bin/true strip
ln -sf /bin/true arm-linux-gnueabihf-strip
2019-11-28 23:47:32 +08:00
ln -sf /bin/true mipsel-linux-gnu-strip
ln -sf /bin/true mips64el-linux-gnuabi64-strip
2019-10-05 15:52:34 +08:00
export PATH="$PWD:$PATH"
cp() {
[ "${1##*/}" = libdbus-1-3-symbols ] && return
/bin/cp "$@"
}
2019-11-28 23:47:32 +08:00
tar() {
echo tar "$@"
}
2019-10-05 15:52:34 +08:00
2019-11-28 23:47:32 +08:00
trap "cd $PWD; rm strip *-strip" EXIT
2019-10-05 15:52:34 +08:00
. "${SCRIPT_DIR}/sysroot-creator.sh"