Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4836963rwb; Tue, 8 Aug 2023 14:59:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGeJZXy8TpPHoSI5dRo/pQgSBix99Em5BfwwJOltB4oPliQecT/xmc7lvcnKrBLuSfed6Ov X-Received: by 2002:a50:fa90:0:b0:523:4c93:1c0f with SMTP id w16-20020a50fa90000000b005234c931c0fmr856481edr.21.1691531996134; Tue, 08 Aug 2023 14:59:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691531996; cv=none; d=google.com; s=arc-20160816; b=BC/uqU9vz/LNtfNv62Qk3sRLxHj5xavYtyl+9PO+SXRBnNjJownWCuW3CQHEI3gIO4 stHa2/j+5Y0wcy+ZxAcpLYAOTeBG9fHj6BRDDdVARdSmtYrCcb0+NrOtcRywJICYdF+J KZl8r3b+OnGE73gyBTNIHiJwFkcrxQAO2BTrXG6Brg1p1HOP4ygQrVRuCyqUq1DuAT0D ylO0EuciySE4rEBU3aG+O/j2wZ1rBmhx4fc0qkA609U5S1g0hs9sQBCFisLTWrzISJaR f+YABXoad5vkyY4ZR7qzXy/wj19rqUrpigvrfzv8s6bwLCth8FNNzlaFNJbKGaT0kE7L fHrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=aKf2TOJmaacSuzBmZ4NKTJRHGo/1g8DGxZfgBQyfHl8=; fh=CdgLQZ4SIWdF7J8WCPbZ0dGsokSRII0A6YcxBZYltQw=; b=FQScUXtt85g8gMbRMTv1mqlT4Y2mYPGW/51IgP1BK44I8sUtmUuS9L7GfXQxyiZoAd e5xNei/cmHxa2la9Qzy//2sH0nNYdU6BV0P+GVzxyRcW07wqXfFfJbcMICH4Ui4jrP+I DnhHg4y6qaeFNRm4unOfuQKS81YvMoPKFSC2DLuG+HAAQ+ro4jxKZ0qU3va2e6bpArMx YlAUa/3KtXYfn8ahQ6jk/xg9wSy9rLexCp22YGaKkLhnPBVcjJcdxceorDFm3vozbbV+ 5hi42Ov36x4C8LQr4lR3wTOPFj9aamYdaRkyQIR4axPBk0ZXUZ3uXq/mWKB2WwjDzhb5 0KFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@svario.it header.s=201710 header.b=lnla4hZ9; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=svario.it Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b16-20020aa7df90000000b0052337556666si3993086edy.668.2023.08.08.14.59.20; Tue, 08 Aug 2023 14:59:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@svario.it header.s=201710 header.b=lnla4hZ9; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=svario.it Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233836AbjHHUel (ORCPT + 99 others); Tue, 8 Aug 2023 16:34:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235240AbjHHUea (ORCPT ); Tue, 8 Aug 2023 16:34:30 -0400 Received: from mail.svario.it (mail.svario.it [IPv6:2a02:2770:13::112:0:1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A63F1E4F2 for ; Tue, 8 Aug 2023 13:01:09 -0700 (PDT) Received: from localhost.localdomain (unknown [78.48.63.71]) by mail.svario.it (Postfix) with ESMTPSA id 4DA57DA013; Tue, 8 Aug 2023 22:01:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svario.it; s=201710; t=1691524867; bh=aKf2TOJmaacSuzBmZ4NKTJRHGo/1g8DGxZfgBQyfHl8=; h=From:To:Cc:Subject:Date:From; b=lnla4hZ92noySepWEgujwFUSV8jlPb0gFqcOrEwsZziJGpPcZOq8xIQFDUFtcNrNt IVQDCa0FwenxstT/KzcXqQhYB+4BwjlCQ4FS5WnycdYjeCS3NLxATWf10BFO57wIGb aBrHUCcCDdibc5eO0cBp1Ah7p7qxUl3d2GVxxXKCQMK0nDIxC9hYZyEhFbRKM0HU1B GTz6pR1Chkana/N1oUqs8TO+GaQ3HdqOPRO9jFIAqgEF4YNaBhMzxbumihZe3K/LQ4 /fdVWfqLlcmfRREIbsWcfm6eTuW49Ufarwo4GQ+P0HVBWROUx2PlO5JdoR0Pds9oAC dwv6mYPWPLfPA== From: Gioele Barabucci To: linux-bluetooth@vger.kernel.org Cc: Gioele Barabucci Subject: [PATCH BlueZ v2] configure.ac: Install D-Bus policy in /usr/share, not /etc Date: Tue, 8 Aug 2023 22:00:22 +0200 Message-Id: <20230808200022.2001329-1-gioele@svario.it> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_SBL_CSS,SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From https://bugs.debian.org/1006631: > dbus supports policy files in both `/usr/share/dbus-1/system.d` and > `/etc/dbus-1/systemd`. [The] recently released dbus 1.14.0, officially > deprecates installing packages' default policies into > `/etc/dbus-1/systemd`, instead reserving it for the sysadmin. > This is the same idea as the difference between `/usr/lib/udev/rules.d` > and `/etc/udev/rules.d`. --- v2: bump D-Bus min version, derive DBUS_CONFDIR from datadir --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index bc7edfcd3..ad864dea7 100644 --- a/configure.ac +++ b/configure.ac @@ -82,23 +82,23 @@ if (test "${enable_threads}" = "yes"); then PKG_CHECK_MODULES(GTHREAD, gthread-2.0 >= 2.16, dummy=yes, AC_MSG_ERROR(GThread >= 2.16 is required)) GLIB_CFLAGS="$GLIB_CFLAGS $GTHREAD_CFLAGS" GLIB_LIBS="$GLIB_LIBS $GTHREAD_LIBS" fi -PKG_CHECK_MODULES(DBUS, dbus-1 >= 1.6, dummy=yes, - AC_MSG_ERROR(D-Bus >= 1.6 is required)) +PKG_CHECK_MODULES(DBUS, dbus-1 >= 1.10, dummy=yes, + AC_MSG_ERROR(D-Bus >= 1.10 is required)) AC_SUBST(DBUS_CFLAGS) AC_SUBST(DBUS_LIBS) AC_ARG_WITH([dbusconfdir], AS_HELP_STRING([--with-dbusconfdir=DIR], [path to D-Bus configuration directory]), [path_dbusconfdir=${withval}]) if (test -z "${path_dbusconfdir}"); then AC_MSG_CHECKING([D-Bus configuration directory]) - path_dbusconfdir="`$PKG_CONFIG --variable=sysconfdir dbus-1`" + path_dbusconfdir="`$PKG_CONFIG --variable=datadir dbus-1`" if (test -z "${path_dbusconfdir}"); then AC_MSG_ERROR([D-Bus configuration directory is required]) fi AC_MSG_RESULT([${path_dbusconfdir}]) fi AC_SUBST(DBUS_CONFDIR, [${path_dbusconfdir}]) -- 2.39.2