Commit 489eed73 authored by Lei Zhang's avatar Lei Zhang Committed by Commit Bot

Revert "Roll sysroots"

This reverts commit 575c09b1.

Reason for revert: Broke the tree, see:

https://ci.chromium.org/p/chromium/builders/ci/Linux%20Builder%20%28dbg%29%2832%29/123424

Original change's description:
> Roll sysroots
> 
> Also needed is [1] in webrtc, which fixes some build warnings. Could
> land in parallel.
> 
> [1] https://webrtc-review.googlesource.com/c/src/+/156980
> 
> BUG=1012850
> 
> Change-Id: Ia24e490db5e71cf1add0e10f4c1264aefb69143c
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1859935
> Auto-Submit: Thomas Anderson <thomasanderson@chromium.org>
> Reviewed-by: Dirk Pranke <dpranke@chromium.org>
> Commit-Queue: Thomas Anderson <thomasanderson@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#705589}

TBR=dpranke@chromium.org,thomasanderson@chromium.org

Change-Id: Ie1db662441a263452dfe433169b5aa900500744a
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 1012850
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1860141Reviewed-by: default avatarLei Zhang <thestig@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#705593}
parent 50cb0655
#!/bin/bash
# Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
set -o nounset
set -o errexit
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
KEYS=(
# Debian Archive Automatic Signing Key (10/buster)
"DC30D7C23CBBABEE"
# Debian Security Archive Automatic Signing Key (10/buster)
"4DFAB270CAA96DFA"
# Debian Archive Automatic Signing Key (10/buster)
"DC30D7C23CBBABEE"
# Jessie Stable Release Key
"CBF8D6FD518E17E1"
# Debian Archive Automatic Signing Key (7.0/wheezy)
"8B48AD6246925553"
# Debian Archive Automatic Signing Key (8/jessie)
"7638D0442B90D010"
# Debian Security Archive Automatic Signing Key (8/jessie)
"9D6D8F6BC857C906"
# Debian Archive Automatic Signing Key (9/stretch)
"E0B11894F66AEC98"
# Debian Security Archive Automatic Signing Key (9/stretch)
"EDA0D2388AE22BA9"
# Debian Stable Release Key (9/stretch)
"EF0F382A1A7B6500"
)
gpg --recv-keys ${KEYS[@]}
gpg --output "${SCRIPT_DIR}/debian_archive_unstable.gpg" --export ${KEYS[@]}
...@@ -14,18 +14,16 @@ DIST=sid ...@@ -14,18 +14,16 @@ DIST=sid
# like libc6 would take precedence over the sid (released) versions. While this # like libc6 would take precedence over the sid (released) versions. While this
# may be useful for certain kinds of development, the standard sysroots should # may be useful for certain kinds of development, the standard sysroots should
# continue to be shipped only with released packages. # continue to be shipped only with released packages.
# Also keep "stretch" before "sid" and "experimental". For now, it's needed to
# bring back libgnome-keyring-dev which has since been deprecated and removed
# from sid. It will be needed until gnome keyring is removed
# (http://crbug.com/466975 and http://crbug.com/355223).
ARCHIVE_URL="https://snapshot.debian.org/archive/debian" ARCHIVE_URL="https://snapshot.debian.org/archive/debian"
ARCHIVE_TIMESTAMP=20191014T090302Z ARCHIVE_TIMESTAMP=20181214T150526Z
APT_SOURCES_LIST="${ARCHIVE_URL}/${ARCHIVE_TIMESTAMP}/ stretch main APT_SOURCES_LIST="${ARCHIVE_URL}/${ARCHIVE_TIMESTAMP}/ experimental main
${ARCHIVE_URL}/${ARCHIVE_TIMESTAMP}/ experimental main
${ARCHIVE_URL}/${ARCHIVE_TIMESTAMP}/ sid main" ${ARCHIVE_URL}/${ARCHIVE_TIMESTAMP}/ sid main"
# gpg keyring file generated using generate_debian_archive_unstable.sh # gpg keyring file generated using:
KEYRING_FILE="${SCRIPT_DIR}/debian_archive_unstable.gpg" # export KEYS="518E17E1 46925553 2B90D010 C857C906 F66AEC98 8AE22BA9 1A7B6500"
# gpg --recv-keys $KEYS
# gpg --output ./debian-archive-sid-stable.gpg --export $KEYS
KEYRING_FILE="${SCRIPT_DIR}/debian-archive-sid-stable.gpg"
HAS_ARCH_AMD64=1 HAS_ARCH_AMD64=1
HAS_ARCH_I386=1 HAS_ARCH_I386=1
...@@ -59,13 +57,11 @@ DEBIAN_PACKAGES="\ ...@@ -59,13 +57,11 @@ DEBIAN_PACKAGES="\
libaudit1 libaudit1
libavahi-client3 libavahi-client3
libavahi-common3 libavahi-common3
libblkid-dev
libblkid1 libblkid1
libbluetooth-dev libbluetooth-dev
libbluetooth3 libbluetooth3
libbrlapi-dev libbrlapi-dev
libbrlapi0.7 libbrlapi0.6
libbrotli1
libbsd0 libbsd0
libc6 libc6
libc6-dev libc6-dev
...@@ -119,7 +115,7 @@ DEBIAN_PACKAGES="\ ...@@ -119,7 +115,7 @@ DEBIAN_PACKAGES="\
libfribidi0 libfribidi0
libgbm-dev libgbm-dev
libgbm1 libgbm1
libgcc-7-dev libgcc-6-dev
libgcc1 libgcc1
libgcrypt20 libgcrypt20
libgcrypt20-dev libgcrypt20-dev
...@@ -166,6 +162,7 @@ DEBIAN_PACKAGES="\ ...@@ -166,6 +162,7 @@ DEBIAN_PACKAGES="\
libice6 libice6
libicu-le-hb0 libicu-le-hb0
libicu63 libicu63
libicu60
libidl-2-0 libidl-2-0
libidn11 libidn11
libidn2-0 libidn2-0
...@@ -192,7 +189,6 @@ DEBIAN_PACKAGES="\ ...@@ -192,7 +189,6 @@ DEBIAN_PACKAGES="\
liblzo2-2 liblzo2-2
libminizip-dev libminizip-dev
libminizip1 libminizip1
libmount-dev
libmount1 libmount1
libnettle6 libnettle6
libnspr4 libnspr4
...@@ -205,6 +201,8 @@ DEBIAN_PACKAGES="\ ...@@ -205,6 +201,8 @@ DEBIAN_PACKAGES="\
libopengl0 libopengl0
libopus-dev libopus-dev
libopus0 libopus0
liborbit-2-0
liborbit2
libp11-kit0 libp11-kit0
libpam0g libpam0g
libpam0g-dev libpam0g-dev
...@@ -218,11 +216,6 @@ DEBIAN_PACKAGES="\ ...@@ -218,11 +216,6 @@ DEBIAN_PACKAGES="\
libpci3 libpci3
libpciaccess0 libpciaccess0
libpcre16-3 libpcre16-3
libpcre2-16-0
libpcre2-32-0
libpcre2-8-0
libpcre2-dev
libpcre2-posix0
libpcre3 libpcre3
libpcre3-dev libpcre3-dev
libpcre32-3 libpcre32-3
...@@ -238,13 +231,10 @@ DEBIAN_PACKAGES="\ ...@@ -238,13 +231,10 @@ DEBIAN_PACKAGES="\
libpulse-dev libpulse-dev
libpulse-mainloop-glib0 libpulse-mainloop-glib0
libpulse0 libpulse0
libre2-5 libre2-4
libre2-dev libre2-dev
librest-0.7-0 librest-0.7-0
libselinux1-dev
libselinux1 libselinux1
libsepol1-dev
libsepol1
libsm6 libsm6
libsnappy-dev libsnappy-dev
libsnappy1v5 libsnappy1v5
...@@ -256,8 +246,9 @@ DEBIAN_PACKAGES="\ ...@@ -256,8 +246,9 @@ DEBIAN_PACKAGES="\
libspeechd2 libspeechd2
libsqlite3-0 libsqlite3-0
libssl-dev libssl-dev
libssl1.0.2
libssl1.1 libssl1.1
libstdc++-7-dev libstdc++-6-dev
libstdc++6 libstdc++6
libsystemd0 libsystemd0
libtasn1-6 libtasn1-6
...@@ -277,7 +268,7 @@ DEBIAN_PACKAGES="\ ...@@ -277,7 +268,7 @@ DEBIAN_PACKAGES="\
libvorbis0a libvorbis0a
libvorbisenc2 libvorbisenc2
libvpx-dev libvpx-dev
libvpx6 libvpx5
libvulkan1 libvulkan1
libwayland-client0 libwayland-client0
libwayland-cursor0 libwayland-cursor0
...@@ -375,7 +366,7 @@ DEBIAN_PACKAGES_AMD64=" ...@@ -375,7 +366,7 @@ DEBIAN_PACKAGES_AMD64="
" "
DEBIAN_PACKAGES_X86=" DEBIAN_PACKAGES_X86="
libasan4 libasan3
libcilkrts5 libcilkrts5
libdrm-intel1 libdrm-intel1
libitm1 libitm1
...@@ -385,8 +376,7 @@ DEBIAN_PACKAGES_X86=" ...@@ -385,8 +376,7 @@ DEBIAN_PACKAGES_X86="
" "
DEBIAN_PACKAGES_ARM=" DEBIAN_PACKAGES_ARM="
libasan4 libasan3
libcilkrts5
libdrm-etnaviv1 libdrm-etnaviv1
libdrm-exynos1 libdrm-exynos1
libdrm-freedreno1 libdrm-freedreno1
...@@ -396,21 +386,18 @@ DEBIAN_PACKAGES_ARM=" ...@@ -396,21 +386,18 @@ DEBIAN_PACKAGES_ARM="
" "
DEBIAN_PACKAGES_ARM64=" DEBIAN_PACKAGES_ARM64="
libasan4 libasan3
libdrm-etnaviv1 libdrm-etnaviv1
libdrm-freedreno1 libdrm-freedreno1
libdrm-tegra0 libdrm-tegra0
libgmp10 libgmp10
libitm1 libitm1
liblsan0
libthai0 libthai0
libtsan0
libubsan0 libubsan0
" "
DEBIAN_PACKAGES_ARMEL=" DEBIAN_PACKAGES_ARMEL="
libasan4 libasan3
libcilkrts5
libdrm-exynos1 libdrm-exynos1
libdrm-freedreno1 libdrm-freedreno1
libdrm-omap1 libdrm-omap1
...@@ -418,7 +405,4 @@ DEBIAN_PACKAGES_ARMEL=" ...@@ -418,7 +405,4 @@ DEBIAN_PACKAGES_ARMEL="
libubsan0 libubsan0
" "
DEBIAN_PACKAGES_MIPS64EL="
"
. "${SCRIPT_DIR}/sysroot-creator.sh" . "${SCRIPT_DIR}/sysroot-creator.sh"
...@@ -104,10 +104,7 @@ DownloadOrCopyNonUniqueFilename() { ...@@ -104,10 +104,7 @@ DownloadOrCopyNonUniqueFilename() {
local hash="$(echo "$url" | sha256sum | cut -d' ' -f1)" local hash="$(echo "$url" | sha256sum | cut -d' ' -f1)"
DownloadOrCopy "${url}" "${dest}.${hash}" DownloadOrCopy "${url}" "${dest}.${hash}"
# cp the file to prevent having to redownload it, but mv it to the cp "${dest}.${hash}" "$dest"
# final location so that it's atomic.
cp "${dest}.${hash}" "${dest}.$$"
mv "${dest}.$$" "${dest}"
} }
DownloadOrCopy() { DownloadOrCopy() {
...@@ -122,25 +119,10 @@ DownloadOrCopy() { ...@@ -122,25 +119,10 @@ DownloadOrCopy() {
SubBanner "downloading from $1 -> $2" SubBanner "downloading from $1 -> $2"
# Appending the "$$" shell pid is necessary here to prevent concurrent # Appending the "$$" shell pid is necessary here to prevent concurrent
# instances of sysroot-creator.sh from trying to write to the same file. # instances of sysroot-creator.sh from trying to write to the same file.
local temp_file="${2}.partial.$$" # --create-dirs is added in case there are slashes in the filename, as can
# curl --retry doesn't retry when the page gives a 4XX error, so we need to # happen with the "debian/security" release class.
# manually rerun. curl -L "$1" --create-dirs -o "${2}.partial.$$"
for i in {1..10}; do mv "${2}.partial.$$" $2
# --create-dirs is added in case there are slashes in the filename, as can
# happen with the "debian/security" release class.
local http_code=$(curl -L "$1" --create-dirs -o "${temp_file}" \
-w "%{http_code}")
if [ ${http_code} -eq 200 ]; then
break
fi
echo "Bad HTTP code ${http_code} when downloading $1"
rm -f "${temp_file}"
sleep $i
done
if [ ! -f "${temp_file}" ]; then
exit 1
fi
mv "${temp_file}" $2
else else
SubBanner "copying from $1" SubBanner "copying from $1"
cp "$1" "$2" cp "$1" "$2"
...@@ -258,6 +240,7 @@ GeneratePackageListCommon() { ...@@ -258,6 +240,7 @@ GeneratePackageListCommon() {
local packages="$3" local packages="$3"
local dists="${DIST} ${DIST_UPDATES:-}" local dists="${DIST} ${DIST_UPDATES:-}"
local repos="main ${REPO_EXTRA:-}"
local list_base="${BUILD_DIR}/Packages.${DIST}_${arch}" local list_base="${BUILD_DIR}/Packages.${DIST}_${arch}"
> "${list_base}" # Create (or truncate) a zero-length file. > "${list_base}" # Create (or truncate) a zero-length file.
...@@ -354,24 +337,12 @@ HacksAndPatchesCommon() { ...@@ -354,24 +337,12 @@ HacksAndPatchesCommon() {
nm -D --defined-only --with-symbol-versions "${libc_so}" | \ nm -D --defined-only --with-symbol-versions "${libc_so}" | \
"${SCRIPT_DIR}/find_incompatible_glibc_symbols.py" >> "${glob_h}" "${SCRIPT_DIR}/find_incompatible_glibc_symbols.py" >> "${glob_h}"
# fcntl64() was introduced in glibc 2.28. Make sure to use fcntl() instead.
local fcntl_h="${INSTALL_ROOT}/usr/include/fcntl.h"
sed -i '{N; s/#ifndef \(__USE_FILE_OFFSET64\nextern int fcntl\)/#ifdef \1/}' \
"${fcntl_h}"
# This is for chrome's ./build/linux/pkg-config-wrapper # This is for chrome's ./build/linux/pkg-config-wrapper
# which overwrites PKG_CONFIG_LIBDIR internally # which overwrites PKG_CONFIG_LIBDIR internally
SubBanner "Move pkgconfig scripts" SubBanner "Move pkgconfig scripts"
mkdir -p ${INSTALL_ROOT}/usr/lib/pkgconfig mkdir -p ${INSTALL_ROOT}/usr/lib/pkgconfig
mv ${INSTALL_ROOT}/usr/lib/${arch}-${os}/pkgconfig/* \ mv ${INSTALL_ROOT}/usr/lib/${arch}-${os}/pkgconfig/* \
${INSTALL_ROOT}/usr/lib/pkgconfig ${INSTALL_ROOT}/usr/lib/pkgconfig
# Temporary workaround for invalid implicit conversion from void* in pipewire.
# This is already fixed upstream in [1], so this can be removed once it rolls
# into Debian.
# [1] https://github.com/PipeWire/pipewire/commit/371da358d1580dc06218d18a12a99611cac39e4e
local pipewire_utils_h="${INSTALL_ROOT}/usr/include/pipewire/utils.h"
sed -i 's/malloc/(struct spa_pod*)malloc/' "${pipewire_utils_h}"
} }
......
{ {
"sid_amd64": { "sid_amd64": {
"Sha1Sum": "8b948e418543c44fefc13268b51eae2143312c7b", "Sha1Sum": "e7c53f04bd88d29d075bfd1f62b073aeb69cbe09",
"SysrootDir": "debian_sid_amd64-sysroot", "SysrootDir": "debian_sid_amd64-sysroot",
"Tarball": "debian_sid_amd64_sysroot.tar.xz" "Tarball": "debian_sid_amd64_sysroot.tar.xz"
}, },
"sid_arm": { "sid_arm": {
"Sha1Sum": "af5f985e5d4fab0cc67d35dcfb2a9f96d7f2ac7e", "Sha1Sum": "ef5c4f84bcafb7a3796d36bb1db7826317dde51c",
"SysrootDir": "debian_sid_arm-sysroot", "SysrootDir": "debian_sid_arm-sysroot",
"Tarball": "debian_sid_arm_sysroot.tar.xz" "Tarball": "debian_sid_arm_sysroot.tar.xz"
}, },
"sid_arm64": { "sid_arm64": {
"Sha1Sum": "a02ac0fb75ca66d3a335e2823a0caebbf2fc7ab4", "Sha1Sum": "953c2471bc7e71a788309f6c2d2003e8b703305d",
"SysrootDir": "debian_sid_arm64-sysroot", "SysrootDir": "debian_sid_arm64-sysroot",
"Tarball": "debian_sid_arm64_sysroot.tar.xz" "Tarball": "debian_sid_arm64_sysroot.tar.xz"
}, },
"sid_armel": { "sid_armel": {
"Sha1Sum": "13baf151ae790e6708f94666165f9fd64664a00f", "Sha1Sum": "07a9da7e88e8b6fa550b053e4338c2caa4db15f0",
"SysrootDir": "debian_sid_armel-sysroot", "SysrootDir": "debian_sid_armel-sysroot",
"Tarball": "debian_sid_armel_sysroot.tar.xz" "Tarball": "debian_sid_armel_sysroot.tar.xz"
}, },
"sid_i386": { "sid_i386": {
"Sha1Sum": "5bb6c35ff3a65fda294c3682f8bcee944cd7d06c", "Sha1Sum": "9e6279438ece6fb42b5333ca90d5e9d0c188a403",
"SysrootDir": "debian_sid_i386-sysroot", "SysrootDir": "debian_sid_i386-sysroot",
"Tarball": "debian_sid_i386_sysroot.tar.xz" "Tarball": "debian_sid_i386_sysroot.tar.xz"
}, },
"sid_mips": { "sid_mips": {
"Sha1Sum": "c187b94a2fb58414e9be568ffddbedb61e466814", "Sha1Sum": "958731a68a169631c0450efb15410ccc4135ef2a",
"SysrootDir": "debian_sid_mips-sysroot", "SysrootDir": "debian_sid_mips-sysroot",
"Tarball": "debian_sid_mips_sysroot.tar.xz" "Tarball": "debian_sid_mips_sysroot.tar.xz"
}, },
"sid_mips64el": { "sid_mips64el": {
"Sha1Sum": "6dd9c0b3127a23b5a5352a874610aa60dcf99e3c", "Sha1Sum": "51ca1f4092ac76ad1a1da953f0f3ce1aea947a42",
"SysrootDir": "debian_sid_mips64el-sysroot", "SysrootDir": "debian_sid_mips64el-sysroot",
"Tarball": "debian_sid_mips64el_sysroot.tar.xz" "Tarball": "debian_sid_mips64el_sysroot.tar.xz"
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment