Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp456741rdb; Tue, 16 Jan 2024 05:52:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IH+BOFmeckcfRp+5utre0FWAI9kehzm6c17xW96UU8lG0dYvyh2VGr0v0ZHaUrmznHh2cW5 X-Received: by 2002:a17:903:1109:b0:1d5:f4fb:29d3 with SMTP id n9-20020a170903110900b001d5f4fb29d3mr210769plh.96.1705413169816; Tue, 16 Jan 2024 05:52:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705413169; cv=none; d=google.com; s=arc-20160816; b=tpP8bmd9SY33Ep+OvGR4k3q5K+1PZNDaPEQhsj5Xf32pPMiRZWm9QKASwOeDBhuMhs 8XnUO/LiimG18Skv+fpXmeSim6tEn9kGJV/9dmywKj+U1BzgJrrAfPtIAZp9N1uwuW2G k875d28lp8LwyNKOsWtKYzzmBIAL2ZCscGe+al8qmT28IbPEDh1tGa6xGmqtiU271DSX H81yA1If2D1EeM//pnb0wnNzvch2XdVyBzJqM1221KIuRIpejsXk9XgsQg3CKMHCMG5x cL0fEn9b/ucfxEdRlV4xIPlfN3bve+cb3WmnPhuTobGvXQ9vpQ3cmrQYeddpuxNKyJ61 A1Og== 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=o9uWf/wMlzJ+RXHhHa/spbqTQj7hvt4EIYNH3hBLqK8=; fh=wm3knQjNzlzhSYO3l6/R1dJNTO7aXLaAzT309a/t7Bw=; b=RxUsz1SuyQycnDn6QjliAtXO2/ns0S7/DXmhA2Ryu+FWVLTbLh80gNxbX8/SQZX3Xo wNeVdVYN0T2uuSmsCtxBXdpUQVCpp1sicf7qru+26XsiWt3P602x4v5vUseGsl8BkI/C peWtrHdYq+mD0A8c6oiYqlAP7NMLyEQktmIQSMDAPNwnGv63FEbSgtN1OYvocHDMM8Ch TIRROS2/r2RKo8Z2qNMtkKWkLSS2SN/udGT1JwdSF47gw9KonlX8eOAi4ykltif56ebs Eh8DsInsGlm/q6/YYfur5Y0ExRtscXkMS11wmN8L9u5Sr5J7PXytChrsVHspkrqm4bUN HeUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DyddiC5+; spf=pass (google.com: domain of linux-bluetooth+bounces-1093-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1093-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id s16-20020a170903321000b001d54e766761si11139296plh.379.2024.01.16.05.52.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 05:52:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-1093-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DyddiC5+; spf=pass (google.com: domain of linux-bluetooth+bounces-1093-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1093-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 62473B22E11 for ; Tue, 16 Jan 2024 13:52:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 47AFF1BF5D; Tue, 16 Jan 2024 13:52:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DyddiC5+" 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 41ED31BF24 for ; Tue, 16 Jan 2024 13:51:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id D3018C433C7; 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=mt/cAQdRVMGpUk5mi/AqEYZMGwI2MZPm2Ce6zyWCPO4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=DyddiC5+g5NoxlXF12dRRJvzHHVzoMXMMBtX+X5iMU9/pBDM+nTdAy6d+sSTwcM41 c37b6dl8/IEkKh+D/wQQwh8unPfLUCAVfc5f6DldH1ue4UUTLJHdN9fsja7wr/RSL7 hfcqri3MM9/UHyxo4bHnnlYI6g/l/Kyg4VxduuVaaQHkSg5Rv4X3iyUXn04gknYgRG We9UNbNomk0g4hSL6EfwnmZ4qEmx1SSQSMzwYtROStnum4jhHrLRVIJxRO/zDn2w80 2jnZSvSZloIFO6zKLbJQqw/2KVhEMwbZB3V/EFY9v0ZEa1nWRIswnh+YHxWv6G52Rd G6fq96WAMkTRw== 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 C3B67C47DA9; Tue, 16 Jan 2024 13:51:58 +0000 (UTC) From: Emil Velikov via B4 Relay Date: Tue, 16 Jan 2024 13:52:04 +0000 Subject: [PATCH BlueZ 10/10] build: install dbus-org.bluez.obex.service symlink 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-10-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=1158; i=emil.l.velikov@gmail.com; s=20230301; h=from:subject:message-id; bh=fbR9nv2+W1T7EdTJDnrPWv8eu5ZYYznbyAyGjdmqMMc=; b=lntGRy6vfw67/RdyRn1wKOmw5nySnByTOkfOJaLCbTRo4gN+JWUSU6NuaI4j3n8Tnb8BkPHeT +K8fPKrZ3NgAtdzq5O18S9R0GPvQImUsVDZ/ACYA5LenKGiZcCRy69f 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 obex.service has an alias(dbus-org.bluez.obex.service) which is created as it's enabled. At the same time, the dbus service references the alias itself. Thus the dbus socket activation can happen, only when the service is already enabled/running... Which defeats the whole purpose. Create/install the respective symlink/alias, so that any user looking for the dbus will start it. Note: we need a hook here instead of LN_S to create the in-tree file, since `install' aggressively dereferences it. --- Makefile.obexd | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile.obexd b/Makefile.obexd index c2b5c6d7a..363295d0e 100644 --- a/Makefile.obexd +++ b/Makefile.obexd @@ -3,6 +3,12 @@ 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 + dbussessionbusdir = $(DBUS_SESSIONBUSDIR) dbussessionbus_DATA = obexd/src/org.bluez.obex.service endif -- 2.43.0