• Bug#1059422: sdbus-cpp: pkgconfig fails to resolve systemd dependency

    From Amin Bandali@21:1/5 to All on Mon Dec 25 09:10:01 2023
    Source: sdbus-cpp
    Version: 1.4.0-1
    Severity: serious
    Justification: causes dependent packages to fail to build from source
    Tags: patch upstream

    Dear maintainer,

    The upstream sdbus-cpp 1.4.0 release shipped with a problematic
    sdbus-c++.pc pkgconfig file that causes dependent packages that
    use it to fail to build from source. For example:

    https://buildd.debian.org/status/fetch.php?pkg=ring&arch=amd64&ver=20230922.0%7Eds2-1%2Bb1&stamp=1701601320&raw=0

    The issue was reported[1] and fixed[2] upstream already, but
    there hasn't been a new release as of yet. Given the severity
    of the issue, please consider doing an upload with the attached
    patch for the time being, until upstream releases a new version
    with the fix included.

    I'd look to do an NMU with the patch in the next week or two if you
    may be unavailable/busy, so as to unbreak dependent packages' build.

    Thanks,
    -a

    [1] https://github.com/Kistler-Group/sdbus-cpp/issues/377
    [2] https://github.com/Kistler-Group/sdbus-cpp/pull/378


    diff --git a/CMakeLists.txt b/CMakeLists.txt
    index 2803722..7d29973 100644
    --- a/CMakeLists.txt
    +++ b/CMakeLists.txt
    @@ -12,7 +12,8 @@ include(GNUInstallDirs) # Installation directories for `install` command and pkg
    # PERFORMING CHECKS & PREPARING THE DEPENDENCIES
    #-------------------------------

    -set(LIBSYSTEMD "systemd")
    +set(LIBSYSTEMD_IMPL "systemd")
    +set(LIBSYSTEMD_LIB "libsystemd")

    option(BUILD_LIBSYSTEMD "Build libsystemd static library and incorporate it into libsdbus-c++" OFF)

    @@ -23,13 +24,15 @@ if(NOT BUILD_LIBSYSTEMD)
    message(WARNING "libsystemd not found, checking for libelogind instead")
    pkg_check_modules(Systemd IMPORTED_TARGET GLOBAL libelogind>=236)
    if(TARGET PkgConfig::Systemd)
    - set(LIBSYSTEMD "elogind")
    + set(LIBSYSTEMD_IMPL "elogind")
    + set(LIBSYSTEMD_LIB "libelogind")
    string(REPLACE "." ";" VERSION_LIST ${Systemd_VERSION})
    list(GET VERSION_LIST 0 Systemd_VERSION)
    else()
    message(WARNING "libelogind not found, checking for basu instead"
  • From Debian Bug Tracking System@21:1/5 to All on Fri Dec 29 22:30:02 2023
    This is a multi-part message in MIME format...

    Your message dated Fri, 29 Dec 2023 21:23:45 +0000
    with message-id <E1rJKKX-006xoL-Q6@fasolo.debian.org>
    and subject line Bug#1059422: fixed in sdbus-cpp 1.4.0-2
    has caused the Debian Bug report #1059422,
    regarding sdbus-cpp: pkgconfig fails to resolve systemd dependency
    to be marked as done.

    This means that you claim that the problem has been dealt with.
    If this is not the case it is now your responsibility to reopen the
    Bug report if necessary, and/or fix the problem forthwith.

    (NB: If you are a system administrator and have no idea what this
    message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org
    immediately.)


    --
    1059422: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1059422
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    Received: (at submit) by bugs.debian.org; 25 Dec 2023 08:00:12 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
    (2021-04-09) on buxtehude.debian.org
    X-Spam-Level:
    X-Spam-Status: No, score=-7.0 required=4.0 tests=BAYES_00,DKIMWL_WL_HIGH,
    DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,
    RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE
    autolearn=ham autolearn_force=no
    version=3.4.6-bugs.debian.org_2005_01_02
    X-Spam-Bayes: score:0.0000 Tokens: new, 65; hammy, 150; neutral, 212; spammy,
    0. spammytokens: hammytokens:0.000-+--sk:buildd.,
    0.000-+--UD:buildd.debian.org, 0.000-+--buildddebianorg,
    0.000-+--buildd.debian.org, 0.000-+--fetchphp
    Return-path: <bandali@gnu.org>
    Received: from eggs.gnu.org ([2001:470:142:3::10]:50816)
    by buxtehude.debian.org with esmtps (TLS1.2:ECDHE_SECP256R1__RSA_SHA256__A