void-packages/srcpkgs/cmus/patches/pass-ldlibs.patch
Đoàn Trần Công Danh c987560802 srcpkgs/c*: convert patches to -Np1
```sh
git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
	for p in ${template%/template}/patches/*; do
		sed -i '
			\,^[+-][+-][+-] /dev/null,b
			/^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b
			s,^[*][*][*] ,&a/,
			/^--- /{
				s,\(^--- \)\(./\)*,\1a/,
				s,[.][Oo][Rr][Ii][Gg]\([	/]\),\1,
				s/[.][Oo][Rr][Ii][Gg]$//
				s/[.]patched[.]\([^.]\)/.\1/
				h
			}
			/^+++ -/{
				g
				s/^--- a/+++ b/
				b
			}
			s,\(^+++ \)\(./\)*,\1b/,
		' "$p"
	done
	sed -i '/^patch_args=/d' $template
done
```
2021-06-20 13:17:29 +07:00

24 lines
984 B
Diff

Description: Pass LDLIBS to the linker
Needed to pass -latomic at the end so that we can fix a FTBFS on various
architectures.
Author: Ryan Kavanagh <rak@debian.org>
Origin: Debian
Bug-Debian: http://bugs.debian.org/935678
Forwarded: no
Reviewed-by: Ryan Kavanagh <rak@debian.org>
Last-Update: 2019-09-07
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: cmus/Makefile
===================================================================
--- a/Makefile 2019-09-07 10:02:00.152453147 -0400
+++ b/Makefile 2019-09-07 10:24:55.009937454 -0400
@@ -22,7 +22,7 @@
FFMPEG_LIBS += $(shell pkg-config --libs libswresample)
CMUS_LIBS = $(PTHREAD_LIBS) $(NCURSES_LIBS) $(ICONV_LIBS) $(DL_LIBS) $(DISCID_LIBS) \
- -lm $(COMPAT_LIBS) $(LIBSYSTEMD_LIBS)
+ -lm $(COMPAT_LIBS) $(LIBSYSTEMD_LIBS) $(LDLIBS)
command_mode.o input.o main.o ui_curses.o op/pulse.lo: .version
command_mode.o input.o main.o ui_curses.o op/pulse.lo: CFLAGS += -DVERSION=\"$(VERSION)\"