Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp77048rdb; Wed, 14 Feb 2024 13:16:39 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUQHgKSL/Yep33lHMCmJ8VpUF/lTak6WCNFHiAPOt6VgQPp0/yORQyei4oRrqogYhMYsMHHbY/iMRrz+i3w6rIV9X/UnRPaUvC9cy5T4w== X-Google-Smtp-Source: AGHT+IEcZ5gL4cjaqwJZ6ZF01M0D1wop6Rsnr85NPgnf7uNWsdgthw1cbZP39qHYN1cYXTmNtpjq X-Received: by 2002:a05:6358:5281:b0:17a:e0b1:9daf with SMTP id g1-20020a056358528100b0017ae0b19dafmr3189234rwa.31.1707945398820; Wed, 14 Feb 2024 13:16:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707945398; cv=pass; d=google.com; s=arc-20160816; b=lad308w1pwhdfYHkhD19mna+f4zZMwfAiEV3864Y5BDn+P5EdzUXQkjjqGEttkYcZ/ rMfBmARjjEeWeQyLZLKYcovbz+VKwynh9wJ6AOHPTbgyYpOFWXdedSj5Xz2gGaJiCsXQ LXuSwVJWcMUmBR7db0mSDSx0pM9R4j5/u6AsMRzYskBlXf1cLZtk5JXAS8GsCpO+d2nE RWKUSmQDgEk65RKaMbpMHDyLud5i5HOw4FVuMOpzyp/w5cuv2uxwJ0Xk42pLU9N4ah0O G4B5VGjbwk6Qi8gGLXjKI6QYdgKm+XBCUgRGhaeK7zUJMaJ84gA3UJoctJ9TpYqnrthR AtlA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=PHMi3tmT8R8nkUY50hY6z4Q5ehZ5mvsi+ww2+GbgJiQ=; fh=O865z1UBdWmjkA+ZMfpH6YzKbHjAuowqvxPf0srqHkA=; b=ZN+XN3+5WS96ajzL3CvZfNWweikV9uADivbt/Qs3T3+eLMLO5xxZkbyXPvCYyTQ29f 5pMbQTn2biyYWHr1aFLZDwx0Y5oHHOQoG3HLJMFDPcRCOSsHG0N/wwNtHqLgN3zPcO/b tye3WyejQDdtShyHhQKdnSQcCNnrkHjduVe7/N9ZChF4kszm3d5/UlfeoF4dTqqODOSw FJ6p21GRQTnricAApHeRql4bE0T8guw/5Htp9Q3cKYxP5tOgOycd4i0XRXSP0qWsdXKo bPiCjZtbhUhq5GinEd1g6pYD4O8wMQtAKHDcXAUqnLGfi2uLz0xgTA4BfiJZ0VTBfMJJ abMQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ldTXy3Ck; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-bluetooth+bounces-1876-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1876-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com X-Forwarded-Encrypted: i=2; AJvYcCV41nuw4nV7bA1qoWLTxEmw1I8pxhX1GUV9NeteSv9E6lDmh0rk5gr3cqXDAfdBgKVxw5Z/b/DyR1ebi0RGEDBYBWDDu7QZpBjDir1wYA== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id bi11-20020a056a02024b00b005dc5576a4fasi4379415pgb.770.2024.02.14.13.16.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 13:16:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-1876-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ldTXy3Ck; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-bluetooth+bounces-1876-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1876-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 85374B21BF4 for ; Wed, 14 Feb 2024 20:48:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5F8B9128834; Wed, 14 Feb 2024 20:48:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ldTXy3Ck" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-yb1-f175.google.com (mail-yb1-f175.google.com [209.85.219.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 23B241B7E2 for ; Wed, 14 Feb 2024 20:48:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707943708; cv=none; b=SDiuiiFFcy6d5cI3lvtpBoFURi8DfybCvpyqpyc9giCAwdB2nHDX3ou6hsy0JEPF7H+LqF6UkQF9PhNn3RHIfVyrwGFAAnOp/h2NY6rnhyPnuPofYC3+ZajgecLVGcJRlVIXiOGaUy3zO5l4O2X92cVRH/ZXiFYBz0hRDDlrkFA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707943708; c=relaxed/simple; bh=FAz7DiaR2e/W3SkfuBKBsYFHzqLHkgJO3jD2EkQ/59A=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=q2/eXiYeb7Jx0A9/UcI9ykd4xQGhj6QlOKuY+HsHJ3j0qs+ROH2xuo+GxrMct3ZylQmOYhcq+jy6MSHG2btATr63tqOUlWk8DeLAQUim7hj485Sc5McYDjJ9L0W8nPU//+AO/gXEM58XyOfQMCdhz4qHcP+tYAYxPHcyc3q4Jjk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ldTXy3Ck; arc=none smtp.client-ip=209.85.219.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yb1-f175.google.com with SMTP id 3f1490d57ef6-dbed0710c74so100683276.1 for ; Wed, 14 Feb 2024 12:48:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707943706; x=1708548506; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=PHMi3tmT8R8nkUY50hY6z4Q5ehZ5mvsi+ww2+GbgJiQ=; b=ldTXy3CkF8T2cVRM1TDTAoPq6Ne7jHgSBNCFS/rOJnnO5o4wycTQX6wHuGDE+x+y6v vrs1KscCXAgnNEOhjiiduz2DjcoiKxf7LlkVYhel0rUdkw/dcMNgneLoiAm1BiC/FhzI Dp49OOgMs1TQd56vtRSRAvMsWlMVQq1VtUmDeePAHW7ouX+Y6uIYbJDogJemiRNT7Qeo gi4A3ULkzdaVJVqf0gQSO8VpvM2I8ZWCtlJIbyCmnMpIVhn7XuWZBUZ7m8w/wpd5Y2BI g14j5k7ZRKb35giHf12+IUrBVbD3nsucQR1DtdVeZpVP/pE8q381HulertzIFW66yKA0 PDzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707943706; x=1708548506; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PHMi3tmT8R8nkUY50hY6z4Q5ehZ5mvsi+ww2+GbgJiQ=; b=AiYyDJgcsfYWy/iilmmQL3F/H7alAXdC3kKMPmsSmvR3U/ZL4ajCvWst+oGGB1ZtdK 3p7nX+ualZs/FpxDRJO032OHP/NZ8RcWT/+Fplj31sJo7tAZtEs8ZgXc1XoUf5RMjpb7 fLdXYGrARmN0cSUYwQqhyHmgwRaMmRBanY8bUjvCXBhpBJdkgdBbzp5buyvMIrX5bcZk f71YR1Z4apdwDQN8PtTXxdZWEdx5KaNJP49RzyDHb7XXFlvAuQQqKr800h+CX93OEICd bU71sf3gZ73z4/HFBJdPeT4x/7V08/1I6sIFWQE/aX4YGxq4RfmAS3/btcR78u/4bGWi jBNw== X-Gm-Message-State: AOJu0YyFsZl9Lvt06WNcu7wXAp8ZL5SRC4Kn6sw/Zy33TqDB9+g2ZWxr cXBWb49OJS++jDaL4vgsdsfrl/p47RKiB1wE+kAdtH5Qmc+EHXGurbzz2Fl7ht7kElrtcGx35Ex xEtSQL/2Vk5YFytDzScnkvc5VMWo= X-Received: by 2002:a25:ae8b:0:b0:dc6:d457:ac92 with SMTP id b11-20020a25ae8b000000b00dc6d457ac92mr3668911ybj.31.1707943705997; Wed, 14 Feb 2024 12:48:25 -0800 (PST) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: In-Reply-To: From: Emil Velikov Date: Wed, 14 Feb 2024 20:48:14 +0000 Message-ID: Subject: Re: Re: [PATCH BlueZ v2 00/10] Distribution inspired fixes To: Luiz Augusto von Dentz Cc: linux-bluetooth@vger.kernel.org, Luiz Augusto von Dentz Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Luiz, On Wed, 14 Feb 2024 at 19:34, Luiz Augusto von Dentz wrote: > > Hi Emil, > > On Wed, Feb 14, 2024 at 2:15=E2=80=AFPM Emil Velikov wrote: > > > > On Wed, 14 Feb 2024 at 18:01, Luiz Augusto von Dentz > > wrote: > > > > > > Hi Emil, > > > > > > On Wed, Feb 14, 2024 at 12:04=E2=80=AFPM Emil Velikov wrote: > > > > > > > > Hello Luiz, > > > > > > > > Due to a bug in the CI bot, I've scraped this off the ML. Hope it's > > > > not too badly formatted :-) > > > > > > > > > Here is the summary with links: > > > > > - [BlueZ,v2,01/10] Return at least the title attribute from play= er_list_metadata() > > > > > https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=3Df2671= bf8f951 > > > > > - [BlueZ,v2,02/10] adapter: Remove experimental flag for PowerSt= ate > > > > > https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=3Dd3aea= e79de4b > > > > > - [BlueZ,v2,03/10] test: consistently use /usr/bin/env python3 s= hebang > > > > > https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=3Dd31f0= 4aa928a > > > > > - [BlueZ,v2,04/10] profiles: remove unused suspend-dummy.c > > > > > https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=3D13133= 51f7144 > > > > > - [BlueZ,v2,05/10] obex: remove unused syncevolution plugin > > > > > (no matching commit) > > > > > - [BlueZ,v2,06/10] obex: remove unused mas/messages-tracker impl > > > > > (no matching commit) > > > > > - [BlueZ,v2,07/10] obex: remove phonebook tracker backend > > > > > (no matching commit) > > > > > - [BlueZ,v2,08/10] build: ship all config files with --enable-da= tafiles > > > > > https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=3Dbe0e7= 96299b0 > > > > > - [BlueZ,v2,09/10] obex: Use GLib helper function to manipulate = paths > > > > > (no matching commit) > > > > > - [BlueZ,v2,10/10] Allow using obexd without systemd in the user= session > > > > > https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=3Db16b1= 9885c53 > > > > > > > > Massive thanks for applying the above. > > > > > > > > Out of curiosity: is there anything wrong with the few remaining on= es? > > > > I had a look through the ML archives on lore.kernel.org as well as = my > > > > inbox and could not find any replies. > > > > > > I don't think we should remove the syncevolution and tracker backends= , > > > they shall probably be disabled first so we don't break platforms > > > still using them. As for the GLib helper I don't think that is really > > > needed, at least there doesn't seem to be a problem with current > > > handling. > > > > > > > Unless I am missing something, all four backends/implementations are > > effectively disabled and unused. > > > > Ignoring the first that you've merged already, the other three are > > syncevolution, messages-tracker, phonebook tracker. All of those obexd > > specific and have been practically dead code for approximately 6 > > years. In particular ever since the obexd git repo was imported into > > bluez, they were never wired into the build system. > > --with-phonebook=3Dtracker > > It does seem to work, I think you meant to say s/work/is allowed/ :-) Commit "obex: remove phonebook tracker backend" bans this as an option. > even though it doesn't track dependencies > particularly well: > > obexd/plugins/phonebook-tracker.c:21:10: fatal error: > libtracker-sparql/tracker-sparql.h: No such file or directory > 21 | #include > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > In order to get past this, a small hack as mentioned previously is needed. While-space might be off: --- diff --git a/Makefile.obexd b/Makefile.obexd index 81456544d..2e954c92e 100644 --- a/Makefile.obexd +++ b/Makefile.obexd @@ -88,6 +88,7 @@ obexd_src_obexd_LDADD =3D lib/libbluetooth-internal.la \ gdbus/libgdbus-internal.la \ src/libshared-glib.la \ $(ICAL_LIBS) $(DBUS_LIBS) $(LIBEBOOK_LIBS) \ + $(TRAK_LIBS) \ $(LIBEDATASERVER_LIBS) $(GLIB_LIBS) -ldl if EXTERNAL_PLUGINS @@ -95,6 +96,7 @@ obexd_src_obexd_LDFLAGS =3D $(AM_LDFLAGS) -Wl,--export-dy= namic endif obexd_src_obexd_CPPFLAGS =3D $(AM_CPPFLAGS) $(GLIB_CFLAGS) $(DBUS_CFLAGS) = \ + $(TRAK_CFLAGS) \ $(ICAL_CFLAGS) -DOBEX_PLUGIN_BUILTIN \ -DPLUGINDIR=3D\""$(obex_plugindir)"\" \ -D_FILE_OFFSET_BITS=3D64 \ diff --git a/configure.ac b/configure.ac index 05c76dddb..38853476f 100644 --- a/configure.ac +++ b/configure.ac @@ -449,6 +449,7 @@ if (test "${plugin_phonebook}" =3D "ebook"); then PKG_CHECK_MODULES(LIBEBOOK, libebook-1.2 >=3D 3.3) PKG_CHECK_MODULES(LIBEDATESERVER, libedataserver-1.2 >=3D 3.3) fi +PKG_CHECK_MODULES(TRAK, tracker-sparql-3.0) AC_SUBST(PLUGIN_PHONEBOOK, [${plugin_phonebook}]) AC_CONFIG_FILES( --- Getting past that, one gets over a dozen errors. The most indicative of which being: error: implicit declaration of function =E2=80=98tracker_sparql_connection_= get_direct' Looking around shows that the API is from the tracker-1 days, where the last ones in that series 1.10.6 [1] and 1.12.4 [2]. Both of which released some 6 years ago. Looking at Debian Buster aka oldoldstable[3], it does not have tracker-1 [4]. Honestly I am struggling to see how this can be built on any remotely recent distribution, even with the build snippet/hack above. [1] https://gitlab.gnome.org/GNOME/tracker/-/tags/1.10.6 [2] https://gitlab.gnome.org/GNOME/tracker/-/tags/1.12.4 [3] https://wiki.debian.org/DebianOldOldStable [4] https://packages.debian.org/search?suite=3Dbuster&keywords=3Dtracker > That said the message backends don't seem to have a similar backend > selection, not really where we drop support for it or it was never an > option for some reason, perhaps we can remove the messages backend > first, but afaik there was some support for syncevolution at least I > recall using it some ages ago to sync contacts with the phone, but I > guess things have changed quite a lot in the meantime and now everyone > sync directly with the Google Account, etc. > Digging a bit into this shows that each of those had an option within the original obexd repo [5]. Seemingly these were lost (or never ported if you will) when the obexd repo was "git filter-branch" imported into bluez. [5] https://git.kernel.org/pub/scm/bluetooth/obexd.git/tree/configure.ac I cannot find any Linux distribution that has built them over the last ~5 years, that has built those. The fact that loudly nobody complained for years, means that we can `git rm` them. There is nothing stopping the developer of tomorrow from "git revert", fixing the build and properly testing. Does that make sense? -Emil