From 8480d2d7873aed1837a697fd45f4593e25447377 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Fri, 13 Mar 2026 23:57:13 +0900 Subject: [PATCH] gnu: gst-plugins-ugly: Patch libdvdcss.so reference. * gnu/packages/gstreamer.scm (gst-plugins-ugly) [#:phases] {patch-paths}: New phase. Change-Id: I86952f83bec68bc699c4700ee9dfed003db8dd6b --- gnu/packages/gstreamer.scm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gnu/packages/gstreamer.scm b/gnu/packages/gstreamer.scm index 6db3dc80d3..aa56e8c059 100644 --- a/gnu/packages/gstreamer.scm +++ b/gnu/packages/gstreamer.scm @@ -1178,6 +1178,15 @@ after their category.") #:phases #~(modify-phases %standard-phases #$@%common-gstreamer-phases + (add-after 'unpack 'patch-paths + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "ext/dvdread/dvdreadsrc.c" + ;; `g_module_open' is a wrapper above dlopen; pass it the + ;; absolute file name of the library to ensure it is always + ;; found. + (("\"libdvdcss\"") + (format #f "~s" + (search-input-file inputs "lib/libdvdcss.so")))))) (add-before 'check 'pre-check (lambda _ ;; Tests require a running X server.