Refresh the use-path-in-usr-lib patch and the exec name and location

Upstream has decided to now ship the ffmpeg-mux executable as a binary
in /usr/bin. In order to keep the -plugins package Multiarch: Same, we
still need to ship it in /usr/lib/x86_64, although we now use the new
name to not diverge too much from upstream.
This commit is contained in:
Simon Chopin 2019-07-27 15:19:10 +02:00
parent 34aa2c5c96
commit 53176e97fa
2 changed files with 5 additions and 7 deletions

View file

@ -6,18 +6,16 @@ Subject: Use path in /usr/lib
plugins/obs-ffmpeg/obs-ffmpeg-mux.c | 4 ++++ plugins/obs-ffmpeg/obs-ffmpeg-mux.c | 4 ++++
1 file changed, 4 insertions(+) 1 file changed, 4 insertions(+)
diff --git a/plugins/obs-ffmpeg/obs-ffmpeg-mux.c b/plugins/obs-ffmpeg/obs-ffmpeg-mux.c
index 9b65276..60b0b8b 100644
--- a/plugins/obs-ffmpeg/obs-ffmpeg-mux.c --- a/plugins/obs-ffmpeg/obs-ffmpeg-mux.c
+++ b/plugins/obs-ffmpeg/obs-ffmpeg-mux.c +++ b/plugins/obs-ffmpeg/obs-ffmpeg-mux.c
@@ -237,7 +237,11 @@ static void build_command_line(struct ffmpeg_muxer *stream, struct dstr *cmd, @@ -237,7 +237,11 @@
num_tracks++; num_tracks++;
} }
+#ifdef FFMPEG_MUX_FIXED +#ifdef FFMPEG_MUX_FIXED
+ dstr_init_copy(cmd, FFMPEG_MUX_FIXED); + dstr_init_copy(cmd, FFMPEG_MUX_FIXED);
+#else +#else
dstr_init_move_array(cmd, obs_module_file(FFMPEG_MUX)); dstr_init_move_array(cmd, os_get_executable_path_ptr(FFMPEG_MUX));
+#endif +#endif
dstr_insert_ch(cmd, 0, '\"'); dstr_insert_ch(cmd, 0, '\"');
dstr_cat(cmd, "\" \""); dstr_cat(cmd, "\" \"");

6
debian/rules vendored
View file

@ -4,7 +4,7 @@ include /usr/share/dpkg/architecture.mk
include /usr/share/dpkg/pkg-info.mk include /usr/share/dpkg/pkg-info.mk
export DEB_LDFLAGS_MAINT_APPEND=-Wl,--as-needed export DEB_LDFLAGS_MAINT_APPEND=-Wl,--as-needed
export DEB_CPPFLAGS_MAINT_APPEND=-DFFMPEG_MUX_FIXED=\"/usr/lib/$(DEB_HOST_MULTIARCH)/obs-plugins/obs-ffmpeg/ffmpeg-mux\" export DEB_CPPFLAGS_MAINT_APPEND=-DFFMPEG_MUX_FIXED=\"/usr/lib/$(DEB_HOST_MULTIARCH)/obs-plugins/obs-ffmpeg/obs-ffmpeg-mux\"
%: %:
dh $@ dh $@
@ -22,8 +22,8 @@ override_dh_auto_build:
override_dh_install: override_dh_install:
mkdir -p debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/obs-plugins/obs-ffmpeg mkdir -p debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/obs-plugins/obs-ffmpeg
mv debian/tmp/usr/share/obs/obs-plugins/obs-ffmpeg/ffmpeg-mux \ mv debian/tmp/usr/bin/obs-ffmpeg-mux \
debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/obs-plugins/obs-ffmpeg/ffmpeg-mux debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/obs-plugins/obs-ffmpeg/obs-ffmpeg-mux
dh_install dh_install
rm -rf debian/obs-studio/usr/share/obs/obs-studio/license rm -rf debian/obs-studio/usr/share/obs/obs-studio/license