mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Tretter <m.tretter@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: mtr@pengutronix.de
Subject: [ptxdist] [PATCH] pulseaudio: fix rpath if daemon is not installed
Date: Tue, 25 Apr 2023 16:25:11 +0200	[thread overview]
Message-ID: <20230425142511.1134675-1-m.tretter@pengutronix.de> (raw)

The modules are installed only if the daemon is enabled and installed.
If the daemon is disabled, the modules won't be installed and the path
to the modules doesn't exist.

Don't add the modules directory from the rpath if the directory doesn't
exist.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
---
 rules/pulseaudio.make | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/rules/pulseaudio.make b/rules/pulseaudio.make
index d33b31a7e3f1..afc3c7496595 100644
--- a/rules/pulseaudio.make
+++ b/rules/pulseaudio.make
@@ -97,7 +97,11 @@ PULSEAUDIO_CONF_OPT	:= \
 	-Dx11=disabled \
 	-Dzshcompletiondir=
 
+ifdef PTXCONF_PULSEAUDIO_DAEMON
 PULSEAUDIO_LDFLAGS	:= -Wl,-rpath,/usr/lib/pulseaudio:/usr/lib/pulse-$(PULSEAUDIO_VERSION)/modules
+else
+PULSEAUDIO_LDFLAGS	:= -Wl,-rpath,/usr/lib/pulseaudio
+endif
 
 # ----------------------------------------------------------------------------
 # Install
-- 
2.39.2




             reply	other threads:[~2023-04-25 14:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-25 14:25 Michael Tretter [this message]
2023-05-02  7:06 ` [ptxdist] [APPLIED] " Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230425142511.1134675-1-m.tretter@pengutronix.de \
    --to=m.tretter@pengutronix.de \
    --cc=mtr@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox