linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] cups: Use pkg-config to find cups backend dir
@ 2024-02-24 18:35 Joakim Tjernlund
  2024-02-24 20:04 ` bluez.test.bot
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Joakim Tjernlund @ 2024-02-24 18:35 UTC (permalink / raw)
  To: linux-bluetooth @ vger . kernel . org, emil.l.velikov; +Cc: Joakim Tjernlund

Some distributions(Gentoo) patch cups backend path to
something else than libdir. Use pkg-config to find backend
path for cups.

Signed-off-by: Joakim Tjernlund <joakim.tjernlund@infinera.com>
---
 Makefile.tools | 3 ++-
 configure.ac   | 3 +++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/Makefile.tools b/Makefile.tools
index 044342e29..c17244677 100644
--- a/Makefile.tools
+++ b/Makefile.tools
@@ -538,7 +538,8 @@ endif
 endif
 
 if CUPS
-cupsdir = $(libdir)/cups/backend
+
+cupsdir = $(CUPSDIR)
 
 cups_PROGRAMS = profiles/cups/bluetooth
 
diff --git a/configure.ac b/configure.ac
index bb6380f2f..778c27a0f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -242,6 +242,9 @@ AC_SUBST(UDEV_DIR, [${path_udevdir}])
 AC_ARG_ENABLE(cups, AS_HELP_STRING([--disable-cups],
                 [disable CUPS printer support]), [enable_cups=${enableval}])
 AM_CONDITIONAL(CUPS, test "${enable_cups}" != "no")
+if (test "${enable_cups}" != "no"); then
+   AC_SUBST(CUPSDIR, `$PKG_CONFIG cups --variable=cups_serverbin`/backend)
+fi
 
 AC_ARG_ENABLE(mesh, AS_HELP_STRING([--enable-mesh],
 		[enable Mesh profile support]), [enable_mesh=${enableval}])
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* RE: cups: Use pkg-config to find cups backend dir
  2024-02-24 18:35 [PATCH] cups: Use pkg-config to find cups backend dir Joakim Tjernlund
@ 2024-02-24 20:04 ` bluez.test.bot
  2024-02-27  2:40 ` [PATCH] " patchwork-bot+bluetooth
  2024-02-27 10:46 ` Emil Velikov
  2 siblings, 0 replies; 4+ messages in thread
From: bluez.test.bot @ 2024-02-24 20:04 UTC (permalink / raw)
  To: linux-bluetooth, Joakim.Tjernlund

[-- Attachment #1: Type: text/plain, Size: 946 bytes --]

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=829501

---Test result---

Test Summary:
CheckPatch                    PASS      0.42 seconds
GitLint                       PASS      0.31 seconds
BuildEll                      PASS      23.94 seconds
BluezMake                     PASS      723.49 seconds
MakeCheck                     PASS      11.79 seconds
MakeDistcheck                 PASS      164.00 seconds
CheckValgrind                 PASS      228.53 seconds
CheckSmatch                   PASS      332.63 seconds
bluezmakeextell               PASS      108.23 seconds
IncrementalBuild              PASS      672.66 seconds
ScanBuild                     PASS      966.78 seconds



---
Regards,
Linux Bluetooth


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] cups: Use pkg-config to find cups backend dir
  2024-02-24 18:35 [PATCH] cups: Use pkg-config to find cups backend dir Joakim Tjernlund
  2024-02-24 20:04 ` bluez.test.bot
@ 2024-02-27  2:40 ` patchwork-bot+bluetooth
  2024-02-27 10:46 ` Emil Velikov
  2 siblings, 0 replies; 4+ messages in thread
From: patchwork-bot+bluetooth @ 2024-02-27  2:40 UTC (permalink / raw)
  To: Joakim Tjernlund; +Cc: linux-bluetooth, emil.l.velikov, joakim.tjernlund

Hello:

This patch was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:

On Sat, 24 Feb 2024 19:35:50 +0100 you wrote:
> Some distributions(Gentoo) patch cups backend path to
> something else than libdir. Use pkg-config to find backend
> path for cups.
> 
> Signed-off-by: Joakim Tjernlund <joakim.tjernlund@infinera.com>
> ---
>  Makefile.tools | 3 ++-
>  configure.ac   | 3 +++
>  2 files changed, 5 insertions(+), 1 deletion(-)

Here is the summary with links:
  - cups: Use pkg-config to find cups backend dir
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=15032315f35c

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] cups: Use pkg-config to find cups backend dir
  2024-02-24 18:35 [PATCH] cups: Use pkg-config to find cups backend dir Joakim Tjernlund
  2024-02-24 20:04 ` bluez.test.bot
  2024-02-27  2:40 ` [PATCH] " patchwork-bot+bluetooth
@ 2024-02-27 10:46 ` Emil Velikov
  2 siblings, 0 replies; 4+ messages in thread
From: Emil Velikov @ 2024-02-27 10:46 UTC (permalink / raw)
  To: Joakim Tjernlund; +Cc: linux-bluetooth @ vger . kernel . org

On Sat, 24 Feb 2024 at 18:36, Joakim Tjernlund
<joakim.tjernlund@infinera.com> wrote:
>
> Some distributions(Gentoo) patch cups backend path to
> something else than libdir. Use pkg-config to find backend
> path for cups.
>
> Signed-off-by: Joakim Tjernlund <joakim.tjernlund@infinera.com>
> ---
>  Makefile.tools | 3 ++-
>  configure.ac   | 3 +++
>  2 files changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/Makefile.tools b/Makefile.tools
> index 044342e29..c17244677 100644
> --- a/Makefile.tools
> +++ b/Makefile.tools
> @@ -538,7 +538,8 @@ endif
>  endif
>
>  if CUPS
> -cupsdir = $(libdir)/cups/backend
> +
> +cupsdir = $(CUPSDIR)
>
>  cups_PROGRAMS = profiles/cups/bluetooth
>
> diff --git a/configure.ac b/configure.ac
> index bb6380f2f..778c27a0f 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -242,6 +242,9 @@ AC_SUBST(UDEV_DIR, [${path_udevdir}])
>  AC_ARG_ENABLE(cups, AS_HELP_STRING([--disable-cups],
>                  [disable CUPS printer support]), [enable_cups=${enableval}])
>  AM_CONDITIONAL(CUPS, test "${enable_cups}" != "no")
> +if (test "${enable_cups}" != "no"); then
> +   AC_SUBST(CUPSDIR, `$PKG_CONFIG cups --variable=cups_serverbin`/backend)
> +fi
>

This has already landed, so fwiw: the patch looks solid IMHO.
Sorry for the delay Joakim - life got in the way.

-Emil

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-02-27 10:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-24 18:35 [PATCH] cups: Use pkg-config to find cups backend dir Joakim Tjernlund
2024-02-24 20:04 ` bluez.test.bot
2024-02-27  2:40 ` [PATCH] " patchwork-bot+bluetooth
2024-02-27 10:46 ` Emil Velikov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).