diff mbox series

[BlueZ,v1] build: Fix distcheck

Message ID 20240304173503.3049383-1-luiz.dentz@gmail.com (mailing list archive)
State Superseded
Headers show
Series [BlueZ,v1] build: Fix distcheck | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
tedd_an/CheckPatch success CheckPatch PASS
tedd_an/GitLint success Gitlint PASS
tedd_an/BuildEll success Build ELL PASS
tedd_an/BluezMake success Bluez Make PASS
tedd_an/MakeCheck success Bluez Make Check PASS
tedd_an/MakeDistcheck success Make Distcheck PASS
tedd_an/CheckValgrind success Check Valgrind PASS
tedd_an/CheckSmatch success CheckSparse PASS
tedd_an/bluezmakeextell success Make External ELL PASS
tedd_an/IncrementalBuild success Incremental Build PASS
tedd_an/ScanBuild success Scan Build PASS

Commit Message

Luiz Augusto von Dentz March 4, 2024, 5:35 p.m. UTC
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

This fixes the following errors:

/usr/bin/mkdir -p '/backend'
/usr/bin/mkdir: cannot create directory ‘/backend’: Permission denied
make[3]: *** [Makefile:4768: install-cupsPROGRAMS] Error 1
---
 Makefile.tools | 6 +++++-
 configure.ac   | 4 +++-
 2 files changed, 8 insertions(+), 2 deletions(-)

Comments

bluez.test.bot@gmail.com March 4, 2024, 7:12 p.m. UTC | #1
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=832173

---Test result---

Test Summary:
CheckPatch                    PASS      0.38 seconds
GitLint                       PASS      0.29 seconds
BuildEll                      PASS      24.35 seconds
BluezMake                     PASS      757.25 seconds
MakeCheck                     PASS      11.98 seconds
MakeDistcheck                 PASS      166.66 seconds
CheckValgrind                 PASS      230.72 seconds
CheckSmatch                   PASS      336.95 seconds
bluezmakeextell               PASS      110.00 seconds
IncrementalBuild              PASS      705.60 seconds
ScanBuild                     PASS      984.88 seconds



---
Regards,
Linux Bluetooth
diff mbox series

Patch

diff --git a/Makefile.tools b/Makefile.tools
index c17244677673..d887bfb12e40 100644
--- a/Makefile.tools
+++ b/Makefile.tools
@@ -539,7 +539,11 @@  endif
 
 if CUPS
 
-cupsdir = $(CUPSDIR)
+if CUPSDIR
+cupsdir = $(CUPSDIR)/backend
+else
+cupsdir = $(libdir)/cups/backend
+endif
 
 cups_PROGRAMS = profiles/cups/bluetooth
 
diff --git a/configure.ac b/configure.ac
index af0e9900e732..244c50a9f7de 100644
--- a/configure.ac
+++ b/configure.ac
@@ -247,7 +247,9 @@  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)
+	AM_CONDITIONAL(CUPSDIR,
+		test `$PKG_CONFIG cups --variable=cups_serverbin` != "")
+	AC_SUBST(CUPSDIR, `$PKG_CONFIG cups --variable=cups_serverbin`)
 fi
 
 AC_ARG_ENABLE(mesh, AS_HELP_STRING([--enable-mesh],