Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp685043rdb; Fri, 26 Jan 2024 07:43:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IEG9JgF2dJkEgp2qxCJYudSzV3mwwBitQt33liEjC4Z7xACfOjhzHMh4BW1y1rbeOPbpkSy X-Received: by 2002:a05:620a:4cb:b0:783:2a99:1a08 with SMTP id 11-20020a05620a04cb00b007832a991a08mr1792122qks.86.1706283826657; Fri, 26 Jan 2024 07:43:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706283826; cv=pass; d=google.com; s=arc-20160816; b=KZYUsji2UCzW1M7puR9n89+XHV6zom2PhUAQ6LZ9Tp+Lq9xBzQ7c4/ulnEWN/H+7qM 4zqjWxOVPtoU8g7GWA6WDpLxB8vXhYSnsJbuA2gZDmpH6PCm6KZeN+D3SLljl874qHT+ QCzCU5SZXyK+iWcCuSr08OVMh5d5KRyo3DXWeok5cfrqTNEjy2iWl6CW2Gva4apUZ3TU /zqhWeCIjLwxTyMjeI7yqir2L+39U+n69I0VVCsFDDxl5IRZCQNKn0h3c+jdFGTeOY+F 1a4MuGT6ps90iJt8r3WneWR184gmG5nk6gc5GNWwqZQabUv8FimDrDN76abVsTz+vr4Z wgIA== 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=/eb6Nklnv4VRwEkw5fg+xOviCo1oHxtCEj4Gu9/B6Eo=; fh=Ie+0FJoQw90ghVwHEGJqnqwpUZpZHtGdSLxRdVyVTK0=; b=clD5SCaOGImy0FqAXU52aD2W1TvqKDb5nFS94fVBhhtBjmKZ6tvINm8ie77eRk+hcY gvmlE4gQ9jQX+4P+ZnXibmNzGGdqjAu3NvFHLTkTq/yp2J36jLtViz1QcdWGMWJzKd/v k5U7RCXdxaqGvf+93dPoJRqpcPOUgm0McdzfSNxFbVY6l7wy8KLlukun4wsV4OEUmDFA W7WaM5QN16wt7ci9NxnU1Af0+QdpUjV+jVonQTaqnch82dojpRP7iqnfjNL/6s5BAe2+ 7wsKf9owWg4vLgtmlNVuR3afrjF7MgwOAFU+9BCMeCJwWYIwZgEsfQDGJWDtwAlC7iiu 2J+w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=IjvJWcDP; 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-1408-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1408-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id v27-20020a05620a0a9b00b007837441ec63si1492931qkg.317.2024.01.26.07.43.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 07:43:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-1408-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=IjvJWcDP; 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-1408-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1408-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 2EF9C1C2133D for ; Fri, 26 Jan 2024 15:43:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 203FE1D545; Fri, 26 Jan 2024 15:43:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="IjvJWcDP" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-yw1-f174.google.com (mail-yw1-f174.google.com [209.85.128.174]) (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 1F3AC1CFBB for ; Fri, 26 Jan 2024 15:43:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706283817; cv=none; b=JG62VmY0P+1yrJhdN/XoF9XFNe1US6RrPGlG7Iv1B4SMKDghONgbHlFzg/oIN/mhxlzPr/GRqfKjq/aH5CAd7K3m6OMJRrV1yMZ9XTTLKetokfyZGwV5XcvLCNcdnXuXbi6FLGzjtE35efa78RTCgYNse0siNjpZb/eWMU/1oB0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706283817; c=relaxed/simple; bh=/eb6Nklnv4VRwEkw5fg+xOviCo1oHxtCEj4Gu9/B6Eo=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=qU20aDMuSULiWf5rcix+wQF7TGBeGhBgWyz1M5X5nP2mFa7aTc5Gft8K02zpdovgXbsQhAC+sDfvYJ079GqEIrIxSzbPvRuJDIdlEeQ/LoIp5vnssIopgA9SGAw7+g9iM9wwcfj/hgsVzv5w+aZuQw+fRbd1UI2OrEUUxME8wBc= 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=IjvJWcDP; arc=none smtp.client-ip=209.85.128.174 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-yw1-f174.google.com with SMTP id 00721157ae682-602cf45bfe9so4929017b3.1 for ; Fri, 26 Jan 2024 07:43:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706283815; x=1706888615; 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=/eb6Nklnv4VRwEkw5fg+xOviCo1oHxtCEj4Gu9/B6Eo=; b=IjvJWcDPQTETYFXiI/hoLfAWvVKUvwTFxFA+IjBjQbBKwV0wbsubJtuo/LHhEv0znB +PctHAq0yzkZPxXcTPeyh/kmWsNTuc5Y+rYsbCgSrXFKVXODXTtorqlbIn+JcDUX+Cl+ IqiMKAU2QNFU/5hXQbgCuxPw7DZaM8ZNvle4Jkb+1lTjH93i6yJhjh+iMiRxVmWW9SnZ S4WYHYnd1xatbk3NUEDen3HhivEVUtehS7HCwngUCNvOt+zokLlj872C/s78rb7Pof5Z aolKP2pUmHz5eTEEOhP7wEyAmHd+PVb/wfSeaE163AudlXXqbUe2kTWTpfZkpFJJnHe/ L2Pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706283815; x=1706888615; 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=/eb6Nklnv4VRwEkw5fg+xOviCo1oHxtCEj4Gu9/B6Eo=; b=KTAy74UkQXgBDJwHQV3yA1eo8/KHeHsoMkObc+v0US5TqwgBkiyai3nF4WQxGUhjzv irhfvtdmeNvjRuXRUGepkxKm1Ued7wLXRmYIUv/ILXlefW04HqAVMNy93hOJ6NJZhsKo Uemaa3K9a65AB4+xBj/JMfi/n5YGdLkbJ17lhwQARcWy1AZJ7KQr1ZCX3Rv8CnRfMgDP 7zC2Oq2kyOPfEsju/KIE4gnAFlXWRsTfzTsLasfdZf4DitGsiYXOZCphB9cBruXczxb5 kXwXjY2MIoFCrq+TVywInELc+TQptqq1q9SbalfBGubjf2Mh/yXrJUPVPvXraRvKZA9h lE/g== X-Gm-Message-State: AOJu0YxnFmtASFgeXWbepFX64+pnMiL5Ot1gINYmJE84iTrbj2xLOXYe asR7/tYbclbPg8gx2kPyacg/9nQLDKfwz8IacSGYXraitCTtyKRMb858fBIzElYWKywlZuHYJOw RjILQh6amOloXtCEaxhp8xczf9rwPKdOq X-Received: by 2002:a0d:eb51:0:b0:602:d19d:7853 with SMTP id u78-20020a0deb51000000b00602d19d7853mr620353ywe.38.1706283814986; Fri, 26 Jan 2024 07:43:34 -0800 (PST) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240125-rm-ext-plugins-v3-0-d141f7870bb6@gmail.com> In-Reply-To: From: Emil Velikov Date: Fri, 26 Jan 2024 15:43:25 +0000 Message-ID: Subject: Re: [PATCH BlueZ v3 0/8] Remove support for external plugins To: Luiz Augusto von Dentz Cc: Szymon Janc , linux-bluetooth@vger.kernel.org, Emil Velikov Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Luiz, On Thu, 25 Jan 2024 at 18:30, Luiz Augusto von Dentz wrote: > > Hi Emil, > > On Thu, Jan 25, 2024 at 8:51=E2=80=AFAM Emil Velikov wrote: > > > > On Thu, 25 Jan 2024 at 13:02, Szymon Janc wro= te: > > > > > > Hi, > > > > > > On Thu, 25 Jan 2024 at 01:07, Emil Velikov via B4 Relay > > > wrote: > > > > > > > > Hello everyone, > > > > > > > > Here's v3 fixing a small bug with the previous patches, which was > > > > tripping the CI. > > > > > > > > Link to the previous revision can be found below. > > > > > > Just a comment that external plugins support was added to avoid udev > > > dependency (from sixaxis) in bluetoothd. > > > (not that I have strong opinion on this, just a note, I don't remembe= r > > > exactly why it was done, maybe Marcel recalls?) > > > > > > > Thanks, I may have some ideas why. > > > > About 10 years ago (or so) some distributions were shipping > > libudev.so.0 while others libudev.so.1. The ABI break was minimal, > > although it was a thing. > > I remember us doing all sorts of hacks in Mesa trying to pick the > > correct one, esp when your system can have .1 while the game (or its > > chroot-like environment) has .0 and vice-versa. > > > > I would imagine a similar issue was observed in bluez - but I can only > > speculate. > > > > Over the last 5+ years, literally all supported distributions have > > moved for libudev.so.1 and the Steam games (and runtime) has both with > > some compat quirks to avoid explosions. > > I was considering applying this week but if you want to respin this > set to sort out the dependency Im fine with, but I don't think it > would hurt to have a libudev dependency provide we have some means to > disable it in case the system don't intend to support sixaxis plugin. > I don't think I follow: what do you mean with "sort out the dependency"? Sixaxis is no different to midi where it a) pulls a third-party library (udev vs alsa) and b) it can be disabled at build. Technically one can dlopen/dlsym libudev.so, although that should probably be deferred until needed IMHO. Thanks Emil