xref: /aosp_15_r20/external/ltp/ci/debian.sh (revision 49cdfc7efb34551c7342be41a7384b9c40d7cab7)
1*49cdfc7eSAndroid Build Coastguard Worker#!/bin/sh -eux
2*49cdfc7eSAndroid Build Coastguard Worker# SPDX-License-Identifier: GPL-2.0-or-later
3*49cdfc7eSAndroid Build Coastguard Worker# Copyright (c) 2018-2024 Petr Vorel <[email protected]>
4*49cdfc7eSAndroid Build Coastguard Worker
5*49cdfc7eSAndroid Build Coastguard Worker# workaround for missing oldstable-updates repository
6*49cdfc7eSAndroid Build Coastguard Worker# W: Failed to fetch http://deb.debian.org/debian/dists/oldstable-updates/main/binary-amd64/Packages
7*49cdfc7eSAndroid Build Coastguard Workergrep -v oldstable-updates /etc/apt/sources.list > /tmp/sources.list && mv /tmp/sources.list /etc/apt/sources.list
8*49cdfc7eSAndroid Build Coastguard Worker
9*49cdfc7eSAndroid Build Coastguard Workerapt update
10*49cdfc7eSAndroid Build Coastguard Worker
11*49cdfc7eSAndroid Build Coastguard Worker# workaround for Ubuntu impish asking to interactively configure tzdata
12*49cdfc7eSAndroid Build Coastguard Workerexport DEBIAN_FRONTEND="noninteractive"
13*49cdfc7eSAndroid Build Coastguard Worker
14*49cdfc7eSAndroid Build Coastguard Workerapt="apt install -y --no-install-recommends"
15*49cdfc7eSAndroid Build Coastguard Worker
16*49cdfc7eSAndroid Build Coastguard Worker$apt \
17*49cdfc7eSAndroid Build Coastguard Worker	acl-dev \
18*49cdfc7eSAndroid Build Coastguard Worker	asciidoc \
19*49cdfc7eSAndroid Build Coastguard Worker	asciidoctor \
20*49cdfc7eSAndroid Build Coastguard Worker	autoconf \
21*49cdfc7eSAndroid Build Coastguard Worker	automake \
22*49cdfc7eSAndroid Build Coastguard Worker	build-essential \
23*49cdfc7eSAndroid Build Coastguard Worker	debhelper \
24*49cdfc7eSAndroid Build Coastguard Worker	devscripts \
25*49cdfc7eSAndroid Build Coastguard Worker	clang \
26*49cdfc7eSAndroid Build Coastguard Worker	gcc \
27*49cdfc7eSAndroid Build Coastguard Worker	git \
28*49cdfc7eSAndroid Build Coastguard Worker	iproute2 \
29*49cdfc7eSAndroid Build Coastguard Worker	libacl1-dev \
30*49cdfc7eSAndroid Build Coastguard Worker	libaio-dev \
31*49cdfc7eSAndroid Build Coastguard Worker	libcap-dev \
32*49cdfc7eSAndroid Build Coastguard Worker	libc6 \
33*49cdfc7eSAndroid Build Coastguard Worker	libc6-dev \
34*49cdfc7eSAndroid Build Coastguard Worker	libjson-perl \
35*49cdfc7eSAndroid Build Coastguard Worker	libkeyutils-dev \
36*49cdfc7eSAndroid Build Coastguard Worker	libmnl-dev \
37*49cdfc7eSAndroid Build Coastguard Worker	libnuma-dev \
38*49cdfc7eSAndroid Build Coastguard Worker	libselinux1-dev \
39*49cdfc7eSAndroid Build Coastguard Worker	libsepol-dev \
40*49cdfc7eSAndroid Build Coastguard Worker	libssl-dev \
41*49cdfc7eSAndroid Build Coastguard Worker	libtirpc-dev \
42*49cdfc7eSAndroid Build Coastguard Worker	linux-libc-dev \
43*49cdfc7eSAndroid Build Coastguard Worker	lsb-release \
44*49cdfc7eSAndroid Build Coastguard Worker	pkg-config
45*49cdfc7eSAndroid Build Coastguard Worker
46*49cdfc7eSAndroid Build Coastguard Worker$apt ruby-asciidoctor-pdf || true
47*49cdfc7eSAndroid Build Coastguard Worker$apt asciidoc-dblatex || true
48*49cdfc7eSAndroid Build Coastguard Worker
49*49cdfc7eSAndroid Build Coastguard Workerdf -hT
50