Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp96690rdb; Wed, 14 Feb 2024 14:03:00 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVc7lMnomRnsg6jMEBPnZAYKr9ph530s6jbGCMlN2UQvrhBegV8rSxzP0ss9qbSIc1pGjpzHvlZZ77MSPPYFgUcbMmBIXWqJtr1PBJHFw== X-Google-Smtp-Source: AGHT+IFsmtnkh6T802TRhd9zeW9ypsFUIMAESkL36rGLdJBIa5ks3wrF+N4L0qxY9RxxwFhd8NUh X-Received: by 2002:a05:6a20:94c9:b0:19e:ca05:226e with SMTP id ht9-20020a056a2094c900b0019eca05226emr153832pzb.9.1707948180359; Wed, 14 Feb 2024 14:03:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707948180; cv=pass; d=google.com; s=arc-20160816; b=j9UAiUswnFzNOd04GGFIpz5zOCqZgaggEjNzlPmzYH4nIJMgkqr61qUM721RMn74sD ftVzYA45gdjIRG7CMv/z+aCndqJnD+mItmU++FGFb+ttg/2Da87GUpMrRf3NWjB0E/Nb kRLwOLx1YUMtenkrr67HETbp8U9mBb6PspgChEXi4lA24WN98or2tzTw/Cm1VL/DDIjU KoStEWs2wRV3rs/KZAUvePEz7Pc4jzh/MRWSLTuZXxtB8ZYDZY0jrSE9QnIbKpBU0jLl jYT0ZV4q9WDvLjjr7nDBQthuYvl3TGDYaQUzjmH/8qh6WXQEQDsYwSpP5++RELeG00nT 9GcA== ARC-Message-Signature: i=2; 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=duRfsrGg+QagZU6IsKu62ciaydNDerrD+gx8Y0xDwWA=; fh=RAj8Z2GEtj0KLdX6Le855iaHmWyIdoai7OxBrbV9MCc=; b=pNaoOzz5ISFPeDQnHzWgZjJq4eJr7mwkUH67e3LtyhhqwrUtk0pZdXVtzyxhN8Ga6J IAyzh3celEdGodhumsq4HiA8MR4A1YYTWmDP44PAqg0X/rGfauPr785/TuDJ2tUcUvEU TieuuJqDkdLoDvtMQfNbeETFP02mvroOXBDn3UAoUmV8bIla/kT0AV+zIceqxM+G82t4 mYpLiEEHCOyE1WpIMq6kY/rSAweeeH4OiAfK/KTlsQR4NL7v4Di6Vekwy6rgoSMwtBws encxp/q+0IqlW9gKD1t9vqurg+72tHjSYY55xnPSP3aSX4hfgpR4+OyVVGHF9/Qdeg3a rBgQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YYYO10rq; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-1881-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1881-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCW1H0ssjWM6ej9RY6XiANLOtsmz4wWGuOGs3adq4Z5RyrhSinKpZtPjxNjRvzVC9DASTmao7bMysPOjOwZB8cR7Q4JpxzGk4KnbCZuzWw== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id s21-20020a056a0008d500b006e05260e1easi9209070pfu.100.2024.02.14.14.03.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 14:03:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-1881-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YYYO10rq; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-1881-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1881-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 08E9E28E8A5 for ; Wed, 14 Feb 2024 22:01:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BD8EE14199E; Wed, 14 Feb 2024 22:01:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="YYYO10rq" 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 292ED13F018 for ; Wed, 14 Feb 2024 22:01:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707948095; cv=none; b=IB0U0UM6Sc5UvS7ZM+YAMDBx0IZNjnqL6mi9iz399dpyGns9X5mVY6QQWCSOGE9dXYwHBuT6MXHt1UpFaB2XZd2S8Y/w7XQmCATb2k8Z2GNedUSf6aoV2wlR7WVDpaKP56ycBcghBuKKmPx9ShqcUCHKRspBDycwOWhGXGiqVow= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707948095; c=relaxed/simple; bh=QJnN6/Q0YpDS2ZB48KtZY9zuzZ9BzMPOx38uuHOHJkA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=JoKBjtzpS+5lmrSPMpYUTGfbr711XJfDDkLVJonJYKwVXB2pxv5C+6He1K31J7nP3LyhKx0e89oTQ19DGeyWxYXQ81JITf5Os3Q5V6n7FpVrqtT24REgbuXMsKf6YcyQ2+ahU+XhTGOuoSsA7eUS6xKtVn/PAlSwWoq0/Ir85JU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=YYYO10rq; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id CB83BC433F1; Wed, 14 Feb 2024 22:01:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707948094; bh=QJnN6/Q0YpDS2ZB48KtZY9zuzZ9BzMPOx38uuHOHJkA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=YYYO10rq0hAJvFbMIpP+2Lp1VV83v5mtjURhybodG2G82jdg6VumOvoc7hN01YCI2 nR48a2GpzdiVrveNQhju1ru7ZUnGry+MdrNvREzK/CCRhuaj26bBZDLG1FZWvx16Xa fUrjVf1hg6n+lxHkO9mSAlrfuI7T/JoppGWajOjwL/PsAqaoSr5nePFjpa3NvXoDH7 q1wybs8ydthinkyjOulogO7eB26WH1gnPf347CAYWnodO+V6tM1lRyzL0Hue7G+Dkc 5QrdkmeeufL/BUFtE97HXIeeGyvvoHc6HO+x/IhCmHCns/UsW2XsAHfdKGH0KSS2pc MHjlHw2bphkjA== 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 A18A1C48BC3; Wed, 14 Feb 2024 22:01:34 +0000 (UTC) From: Emil Velikov via B4 Relay Date: Wed, 14 Feb 2024 22:01:24 +0000 Subject: [PATCH BlueZ 1/4] build: fold separate install-data-hooks 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: <20240214-hook-fixup-v1-1-0e158ffea140@gmail.com> References: <20240214-hook-fixup-v1-0-0e158ffea140@gmail.com> In-Reply-To: <20240214-hook-fixup-v1-0-0e158ffea140@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=1707948093; l=1454; i=emil.l.velikov@gmail.com; s=20230301; h=from:subject:message-id; bh=dtWLnKx4leNFwGkNegEX6jHOWak1uw7hhMJRp7odx88=; b=a15wcEhZlDXS2x+YnXiC6jYEavgqJFnrZQDLJJZaNx2A1aQgVDE21B6mzOsaAxBBERGk/zRTF xr2E1X5IsRQBzrWABWapgjToDBoLNY6FqtzU8AfQidxy0sFSnqhULTX 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 Autoconfigure throws a useful error, that I've missed previously. As-is with two identical hooks `make install` will fail. Just fold them into single place - not particularly pretty but works. Signed-off-by: Emil Velikov --- Makefile.am | 9 +++++++++ Makefile.obexd | 6 ------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Makefile.am b/Makefile.am index 5207c172b..e67551761 100644 --- a/Makefile.am +++ b/Makefile.am @@ -34,6 +34,15 @@ statedir = $(localstatedir)/lib/bluetooth install-data-hook: install -dm555 $(DESTDIR)$(confdir) install -dm700 $(DESTDIR)$(statedir) +if OBEX +if SYSTEMD + $(LN_S) -f obex.service $(DESTDIR)$(SYSTEMD_USERUNITDIR)/dbus-org.bluez.obex.service + +uninstall-hook: + rm -f $(DESTDIR)$(SYSTEMD_USERUNITDIR)/dbus-org.bluez.obex.service +endif +endif + if DATAFILES dbusdir = $(DBUS_CONFDIR)/dbus-1/system.d diff --git a/Makefile.obexd b/Makefile.obexd index 81456544d..b91ca6644 100644 --- a/Makefile.obexd +++ b/Makefile.obexd @@ -2,12 +2,6 @@ if SYSTEMD systemduserunitdir = $(SYSTEMD_USERUNITDIR) systemduserunit_DATA = obexd/src/obex.service - -install-data-hook: - $(LN_S) -f obex.service $(DESTDIR)$(SYSTEMD_USERUNITDIR)/dbus-org.bluez.obex.service - -uninstall-hook: - rm -f $(DESTDIR)$(SYSTEMD_USERUNITDIR)/dbus-org.bluez.obex.service endif dbussessionbusdir = $(DBUS_SESSIONBUSDIR) -- 2.43.1