Skip to content

Commit 5042958

Browse files
committed
Don't unnecessarily install packages on Linux
1 parent 2dda5c6 commit 5042958

File tree

2 files changed

+13
-108
lines changed

2 files changed

+13
-108
lines changed

buildscripts/ci/linux/setup.sh

Lines changed: 8 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -60,83 +60,36 @@ fi
6060
##########################################################################
6161

6262
apt_packages=(
63-
coreutils
63+
# Alphabetical order please!
6464
curl
6565
desktop-file-utils # installs `desktop-file-validate` for appimagetool
66-
gawk
67-
git
6866
lcov
69-
libasound2-dev
70-
libcups2-dev
71-
libfontconfig1-dev
72-
libfreetype6-dev
73-
libgcrypt20-dev
74-
libgl1-mesa-dev
75-
libglib2.0-dev
7667
libgpgme-dev # install for appimagetool
77-
libjack-dev
78-
libnss3-dev
79-
libportmidi-dev
80-
libpulse-dev
81-
librsvg2-dev
8268
libsndfile1-dev
83-
libssl-dev
84-
libtool
85-
make
8669
p7zip-full
87-
sed
88-
software-properties-common # installs `add-apt-repository`
8970
unzip
9071
wget
9172
zsync # installs `zsyncmake` for appimagetool
9273
)
9374

94-
# MuseScore compiles without these but won't run without them
95-
apt_packages_runtime=(
96-
# Alphabetical order please!
97-
libdbus-1-3
98-
libegl1-mesa-dev
99-
libgles2-mesa-dev
100-
libodbc2
101-
libpq-dev
102-
libssl-dev
103-
libxcomposite-dev
104-
libxcursor-dev
105-
libxi-dev
106-
libxkbcommon-x11-0
107-
libxrandr2
108-
libxtst-dev
109-
libdrm-dev
110-
libxcb-icccm4
111-
libxcb-image0
112-
libxcb-keysyms1
113-
libxcb-randr0
114-
libxcb-render-util0
115-
libxcb-xinerama0
116-
libxcb-xkb-dev
117-
libxkbcommon-dev
118-
libopengl-dev
119-
libvulkan-dev
120-
)
121-
12275
apt_packages_ffmpeg=(
12376
ffmpeg
12477
libavcodec-dev
12578
libavformat-dev
12679
libswscale-dev
12780
)
12881

129-
apt_packages_pw_deps=(
130-
libdbus-1-dev
131-
libudev-dev
132-
)
82+
if $BUILD_PIPEWIRE ; then
83+
apt_packages+=(
84+
libdbus-1-dev
85+
libudev-dev
86+
)
87+
fi
13388

13489
$SUDO apt-get update
13590
$SUDO apt-get install -y --no-install-recommends \
13691
"${apt_packages[@]}" \
137-
"${apt_packages_runtime[@]}" \
138-
"${apt_packages_ffmpeg[@]}" \
139-
"${apt_packages_pw_deps[@]}"
92+
"${apt_packages_ffmpeg[@]}"
14093

14194
##########################################################################
14295
# GET TOOLS

buildscripts/ci/withoutqt/setup.sh

Lines changed: 5 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -41,64 +41,16 @@ echo "echo 'Setup MuseScore build environment'" >> $ENV_FILE
4141
# GET DEPENDENCIES
4242
##########################################################################
4343

44-
# DISTRIBUTION PACKAGES
45-
46-
# These are installed by default on Travis CI, but not on Docker
47-
apt_packages_basic=(
48-
# Alphabetical order please!
49-
file
50-
git
51-
software-properties-common # installs `add-apt-repository`
52-
unzip
53-
p7zip-full
54-
)
55-
56-
# These are the same as on Travis CI
57-
apt_packages_standard=(
44+
apt_packages=(
5845
# Alphabetical order please!
5946
curl
60-
libasound2-dev
61-
libfontconfig1-dev
62-
libfreetype6-dev
63-
libfreetype6
64-
libgl1-mesa-dev
65-
libjack-dev
66-
libnss3-dev
67-
libportmidi-dev
68-
libpulse-dev
69-
libsndfile1-dev
70-
make
47+
p7zip-full
48+
unzip
7149
wget
7250
)
7351

74-
# MuseScore compiles without these but won't run without them
75-
apt_packages_runtime=(
76-
# Alphabetical order please!
77-
libcups2
78-
libdbus-1-3
79-
libegl1-mesa-dev
80-
libodbc1
81-
libpq-dev
82-
libxcomposite-dev
83-
libxcursor-dev
84-
libxi-dev
85-
libxkbcommon-x11-0
86-
libxrandr2
87-
libxtst-dev
88-
libdrm-dev
89-
libxcb-icccm4
90-
libxcb-image0
91-
libxcb-keysyms1
92-
libxcb-randr0
93-
libxcb-render-util0
94-
libxcb-xinerama0
95-
)
96-
97-
sudo apt-get update # no package lists in Docker image
98-
sudo apt-get install -y --no-install-recommends \
99-
"${apt_packages_basic[@]}" \
100-
"${apt_packages_standard[@]}" \
101-
"${apt_packages_runtime[@]}"
52+
sudo apt-get update
53+
sudo apt-get install -y --no-install-recommends "${apt_packages[@]}"
10254

10355

10456
##########################################################################

0 commit comments

Comments
 (0)