Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp456552rdb; Tue, 16 Jan 2024 05:52:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IEGRtqoa82GmM7U3Hcgx7H61MObEm4EwtQLOfKu1dEuaxllAev9tO3IUJ4HuBQfbwQHhThx X-Received: by 2002:a05:6402:b12:b0:54c:b24d:a3b6 with SMTP id bm18-20020a0564020b1200b0054cb24da3b6mr3394600edb.20.1705413146967; Tue, 16 Jan 2024 05:52:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705413146; cv=none; d=google.com; s=arc-20160816; b=CxGTnDCJuNbC/kCXAWsXbqb87rJ8n99iU2jFGSQSKehSNz678Airp3rbisd/VCyOYn 1p8r6FY7KIi0iLMAcsk77e8E0XvmkpTE+QnIvEfvI4h8/gy8AfyhVo0FdQ5QoDdh9GEw CuHk6QC0eZSK59HufULrQQvH8FIdR2g5IdjrWbOj+LnAyda8w3TGBLhmQ/1unRchQmXE b7FBkhsMjlNtdyBYeXr20AbSwbzw4aY4If2M4as6n1hANBg9Gov3Mf1OPjteLxRGRfzv HZUIIlJJjejmsYa0+NYDWzUbdyHZ/+0mP7rbANMFBF5qLiWlcLa0iCNXkq/cUJgAGY2U Qngg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=lqU7Hc11lVNqe6ACmPW9ORHv2/b9eR7cBbF6U3Kuw08=; fh=wm3knQjNzlzhSYO3l6/R1dJNTO7aXLaAzT309a/t7Bw=; b=uecgn7fV9PzlVOYUluXwyKcTe/C+MDkXTn6EFRoYt5XKije2RFsLDEvVnrjGzU1Z3K KzyTTfrSP/+LpsniwwbVFX4gGasaPAJJGKavKgWAEzavJ69vJsZuAIyNM5FUQLMcoB8v dhkjq+EOHwggzgPoK+O7DwZicfyAbBhhIdiGZSqHO9oZcIjw5GdiK29sYTPygX/3Q8bL +GgJKf6dQvEVUfmf+XKqNpcnSLSbHqPKShHsWLEitMV5d+jWUbFh6bQtwVcQP9w2A+6K GKDuRhJiljY3SgwKiSHIo9mWqD8Mu0YJ+drIyWLvdWDKIdxVWUj+Fp73ALmy54bVRINA SRQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QAlFGVoP; spf=pass (google.com: domain of linux-bluetooth+bounces-1087-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1087-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id p11-20020a05640243cb00b005597f343918si865140edc.15.2024.01.16.05.52.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 05:52:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-1087-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QAlFGVoP; spf=pass (google.com: domain of linux-bluetooth+bounces-1087-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1087-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id B43A11F2416E for ; Tue, 16 Jan 2024 13:52:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 83BD81BF37; Tue, 16 Jan 2024 13:51:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QAlFGVoP" X-Original-To: linux-bluetooth@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E79BB1BDEC for ; Tue, 16 Jan 2024 13:51:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 921BAC43142; Tue, 16 Jan 2024 13:51:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705413118; bh=BIvkMvmnQ9fsJ3sZWb/mlyvl8YIRqyKWFVGxMtyq+1k=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=QAlFGVoPydyVO2MRjdsZ9FTRU1Zl0JSAwaH3lbNuDNBCJtPLjnDQZwjHiN1XrBpin FvxbT34/v7MVrkr7AaGBx4QK9dfrZ1QKOl8FYwtlqyeRNcRRXws+V3ugdgAN/jsEXT K1uF9JLM/o7KFuyD0dNpNz+QhTipt7NygFYKykRlX5/TKsPyC1oMoEReVwbWtCF7rX Y+fgCZ5SwYgQwIEjj3axyI8RVqnT/QBFvAp8K1S3b4drksrzDp1gL76+CFQdL8FVLe Es29x3xv+Yg6k2Gf1Fb1o8amfgQXPTl9ZatjLaseTn8l4RQjGtMwqkGenhL7dVVDhp 0kLtsxxEnRY7w== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7D725C4707C; Tue, 16 Jan 2024 13:51:58 +0000 (UTC) From: Emil Velikov via B4 Relay Date: Tue, 16 Jan 2024 13:51:57 +0000 Subject: [PATCH BlueZ 03/10] build: require libudev 196, circa 2012 Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240116-autofoo-v1-3-626f6b54bd06@gmail.com> References: <20240116-autofoo-v1-0-626f6b54bd06@gmail.com> In-Reply-To: <20240116-autofoo-v1-0-626f6b54bd06@gmail.com> To: linux-bluetooth@vger.kernel.org Cc: Emil Velikov X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1705413116; l=1719; i=emil.l.velikov@gmail.com; s=20230301; h=from:subject:message-id; bh=nLN3WkSkihgDvnnZcl9Nn8E9C8mCNtO7PTdfVC6NKvk=; b=YhnaU6pHuWBl7qCgjNDL+pYfKSio1h1hEIve69poO8V3sYNxhxfgxRQ3HX6WzopevuWXHjhyJ 4X7OmlNRc1+AackBXGIVs/XYXPAK3YNz4b07JGFjBeN+dpJzbPQ6uLh X-Developer-Key: i=emil.l.velikov@gmail.com; a=ed25519; pk=qeUTVTNyI3rcR2CfNNWsloTihgzmtbZo98GdxwZKCkY= X-Endpoint-Received: by B4 Relay for emil.l.velikov@gmail.com/20230301 with auth_id=35 X-Original-From: Emil Velikov Reply-To: From: Emil Velikov libudev 196 (systemd really) was released back in 2012, which introduces the hwdb API. Bump the requirement, since even long retired distributions like Debian oldold stable (aka Buster) include newer versions. --- configure.ac | 6 ++---- monitor/hwdb.c | 2 +- src/oui.c | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac index 7cbfa8846..cab5da581 100644 --- a/configure.ac +++ b/configure.ac @@ -223,10 +223,8 @@ AM_CONDITIONAL(MONITOR, test "${enable_monitor}" != "no") AC_ARG_ENABLE(udev, AS_HELP_STRING([--disable-udev], [disable udev device support]), [enable_udev=${enableval}]) if (test "${enable_tools}" != "no" && test "${enable_udev}" != "no"); then - PKG_CHECK_MODULES(UDEV, libudev >= 172) - AC_CHECK_LIB(udev, udev_hwdb_new, - AC_DEFINE(HAVE_UDEV_HWDB_NEW, 1, - [Define to 1 if you have the udev_hwdb_new() function.])) + PKG_CHECK_MODULES(UDEV, libudev >= 196) + AC_DEFINE(HAVE_UDEV, 1, [Define to 1 if udev is required]) fi AC_ARG_WITH([udevdir], AS_HELP_STRING([--with-udevdir=DIR], diff --git a/monitor/hwdb.c b/monitor/hwdb.c index 22de9edfb..6c0d052bb 100644 --- a/monitor/hwdb.c +++ b/monitor/hwdb.c @@ -19,7 +19,7 @@ #include "hwdb.h" -#ifdef HAVE_UDEV_HWDB_NEW +#ifdef HAVE_UDEV #include bool hwdb_get_vendor_model(const char *modalias, char **vendor, char **model) diff --git a/src/oui.c b/src/oui.c index c434f416f..7b3040fb0 100644 --- a/src/oui.c +++ b/src/oui.c @@ -16,7 +16,7 @@ #include "lib/bluetooth.h" #include "oui.h" -#ifdef HAVE_UDEV_HWDB_NEW +#ifdef HAVE_UDEV #include char *batocomp(const bdaddr_t *ba) -- 2.43.0