-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[sdl2] build failure on debian sid, make dbus optional dep of sdl2 #40632
Comments
Here's an example that shows how sdl2 pulls in dbus: FROM debian:sid
RUN apt-get update && apt-get -qq install --no-install-recommends build-essential git cmake ninja-build autoconf libtool python3 python3-jinja2 curl zip unzip tar ca-certificates libltdl-dev pkg-config
RUN <<EOF cat >> vcpkg.json
{
"\$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
"name": "test",
"version": "1.0.0",
"dependencies": [
{ "name": "sdl2", "default-features": false }
]
}
EOF
RUN git clone https://github.com/microsoft/vcpkg
# RUN git clone https://github.com/dsvensson/vcpkg && (cd vcpkg; git reset --hard origin/patch-1)
RUN VCPKG_DISABLE_METRICS=1 vcpkg/bootstrap-vcpkg.sh && vcpkg/vcpkg install For some reason that happens to work, perhaps differs when debian sid is installed in vm/hw. But anyways, don't need dbus so making it optional is the way to go, and leads to faster builds if build cache is missing. The upstream build takes 640.8s. If swapping the git clone in the Dockerfile there, the build finishes in 100.5s seconds. A whooping drop of 540 seconds, or 9 minutes on this particular hardware. |
Operating system
Linux (Debian/Sid)
Compiler
gcc
Steps to reproduce the behavior
Install sdl2, which tries to install dbus (which I don't need) which tries to install libsystemd which fails to build because jinja2 is not installed. The real bug is that sdl2 depends on dbus even if it's not requested:
This makes the build pull in a huge set of dependencies that are ultimately unused by my application.
Failure logs
and after installing some more deps that are of no use to me:
Additional context
Removing:
from
ports/sdl2/vcpkg.json
solves the issue. Obviously to the dismay of others who have interest in dbus.The text was updated successfully, but these errors were encountered: