Skip to content
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

[libsystemd] Build error on x64-linux #39365

Closed
Suraj-Yadav opened this issue Jun 18, 2024 · 3 comments · Fixed by #39741
Closed

[libsystemd] Build error on x64-linux #39365

Suraj-Yadav opened this issue Jun 18, 2024 · 3 comments · Fixed by #39741
Assignees
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@Suraj-Yadav
Copy link

Package: libsystemd:x64-linux@255#2

Host Environment

  • Host: x64-linux
  • Compiler: GNU 14.1.1
  • vcpkg-tool version: 2024-06-10-02590c430e4ed9215d27870138c2e579cc338772
    vcpkg-scripts version: 67a3005 2024-06-17 (19 hours ago)

To Reproduce

vcpkg install

Failure logs

-- Found Python version '3.12.3 at /usr/bin/python3'
-- Using meson: /home/suraj/vcpkg/downloads/tools/meson-1.3.2-6f83ac/meson.py
-- Using cached systemd-systemd-v255.tar.gz.
-- Cleaning sources at /home/suraj/vcpkg/buildtrees/libsystemd/src/v255-948a7f2e81.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /home/suraj/vcpkg/downloads/systemd-systemd-v255.tar.gz
-- Applying patch disable-warning-nonnull.patch
-- Applying patch only-libsystemd.patch
-- Applying patch pkgconfig.patch
-- Using source at /home/suraj/vcpkg/buildtrees/libsystemd/src/v255-948a7f2e81.clean
-- Found external ninja('1.12.1').
-- Configuring x64-linux-dbg
-- Getting CMake variables for x64-linux-dbg
-- Getting CMake variables for x64-linux-rel
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
    Command failed: /usr/bin/python3 -I /home/suraj/vcpkg/downloads/tools/meson-1.3.2-6f83ac/meson.py setup -Dmode=release -Dstatic-libsystemd=pic -Dtests=false -Ddns-over-tls=false -Dtranslations=false -Dacl=disabled -Dapparmor=disabled -Daudit=disabled -Dblkid=disabled -Dbpf-framework=disabled -Dbzip2=disabled -Ddbus=disabled -Delfutils=disabled -Dfdisk=disabled -Dgcrypt=disabled -Dglib=disabled -Dgnutls=disabled -Dkmod=disabled -Dlibcurl=disabled -Dlibcryptsetup=disabled -Dlibfido2=disabled -Dlibidn=disabled -Dlibidn2=disabled -Dlibiptc=disabled -Dmicrohttpd=disabled -Dopenssl=disabled -Dp11kit=disabled -Dpam=disabled -Dpcre2=disabled -Dpolkit=disabled -Dpwquality=disabled -Dpasswdqc=disabled -Dseccomp=disabled -Dselinux=disabled -Dtpm2=disabled -Dxenctrl=disabled -Dxkbcommon=disabled -Dzlib=disabled -Dlz4=enabled -Dxz=enabled -Dzstd=enabled --backend ninja --wrap-mode nodownload -Doptimization=plain --native /home/suraj/vcpkg/buildtrees/libsystemd/meson-x64-linux-dbg.log --libdir lib --pkgconfig.relocatable -Ddebug=true --prefix /home/suraj/vcpkg/packages/libsystemd_x64-linux/debug --includedir ../include --pkg-config-path ['/home/suraj/work/test/build/vcpkg_installed/x64-linux/debug/lib/pkgconfig','/home/suraj/work/test/build/vcpkg_installed/x64-linux/share/pkgconfig'] -Dcmake_prefix_path=['/home/suraj/work/test/build/vcpkg_installed/x64-linux/debug','/home/suraj/work/test/build/vcpkg_installed/x64-linux'] /home/suraj/vcpkg/buildtrees/libsystemd/src/v255-948a7f2e81.clean
    Working Directory: /home/suraj/vcpkg/buildtrees/libsystemd/x64-linux-dbg
    Error code: 1
    See logs for more information:
      /home/suraj/vcpkg/buildtrees/libsystemd/config-x64-linux-dbg-meson-log.txt.log
      /home/suraj/vcpkg/buildtrees/libsystemd/config-x64-linux-dbg-out.log

Call Stack (most recent call first):
  /home/suraj/work/test/build/vcpkg_installed/x64-linux/share/vcpkg-tool-meson/vcpkg_configure_meson.cmake:463 (vcpkg_execute_required_process)
  ports/libsystemd/portfile.cmake:17 (vcpkg_configure_meson)
  scripts/ports.cmake:191 (include)



Please find the logs in attached files.
config-x64-linux-dbg-meson-log.txt.log
config-x64-linux-dbg-out.log

Additional context

vcpkg.json
{
  "name": "test",
  "dependencies": [
    "wxwidgets"
  ]
}

@jimwang118
Copy link
Contributor

This issue has been fixed in upstream PR 31709, I need to update the version in vcpkg to fix this issue.

@jimwang118 jimwang118 added the category:port-bug The issue is with a library, which is something the port should already support label Jun 19, 2024
@feliwir
Copy link

feliwir commented Jul 3, 2024

I encounter the same issue when building SDL2. I tried to disable the "dbus" feature but it still tries to build it. Any ideas what is wrong here:?

    "opus",
    {
      "name": "sdl2",
      "default-features": false
    },

Is it possible somehow to disable SystemD / DBus for SDL2 in manifest mode?

@dg0yt
Copy link
Contributor

dg0yt commented Jul 3, 2024

@feliwir You are almost there. The libsystemd dependency is from dbus feature systemd. So you want:

    {
      "name": "dbus",
      "default-features": false
    },

Demo:

$ ./vcpkg depend-info sdl2 dbus[core]
vcpkg-cmake: 
vcpkg-cmake-config: 
expat: vcpkg-cmake, vcpkg-cmake-config
dbus: expat, vcpkg-cmake, vcpkg-cmake-config
sdl2[x11, wayland, ibus]: dbus, vcpkg-cmake, vcpkg-cmake-config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support
4 participants