diff options
author | Sam James <sam@gentoo.org> | 2023-01-13 05:29:27 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-01-13 05:29:27 +0000 |
commit | c5026603fbe974271937b3c0e5915926e36f316c (patch) | |
tree | 3cdb0ef9c57bfddeb4cbe1a8400418476638a796 /media-tv/v4l-utils/files | |
parent | sys-apps/file: Stabilize 5.44-r3 amd64, #890610 (diff) | |
download | gentoo-c5026603fbe974271937b3c0e5915926e36f316c.tar.gz gentoo-c5026603fbe974271937b3c0e5915926e36f316c.tar.bz2 gentoo-c5026603fbe974271937b3c0e5915926e36f316c.zip |
media-tv/v4l-utils: fix build w/ clang+ssp
Closes: https://bugs.gentoo.org/889561
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-tv/v4l-utils/files')
-rw-r--r-- | media-tv/v4l-utils/files/v4l-utils-1.22.1-no-stack-protector-bpf.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/media-tv/v4l-utils/files/v4l-utils-1.22.1-no-stack-protector-bpf.patch b/media-tv/v4l-utils/files/v4l-utils-1.22.1-no-stack-protector-bpf.patch new file mode 100644 index 000000000000..0ee28643ea1c --- /dev/null +++ b/media-tv/v4l-utils/files/v4l-utils-1.22.1-no-stack-protector-bpf.patch @@ -0,0 +1,25 @@ +SSP doesn't make sense for BPF. + +https://bugs.gentoo.org/889561 +--- a/utils/keytable/Makefile.am ++++ b/utils/keytable/Makefile.am +@@ -22,7 +22,7 @@ ir_keytable_LDFLAGS = $(ARGP_LIBS) + + if WITH_BPF + ir_keytable_LDFLAGS += $(LIBELF_LIBS) $(LIBBPF_LIBS) +-ir_keytable_CFLAGS = $(LIBBPF_CFLAGS) ++ir_keytable_CFLAGS = $(LIBBPF_CFLAGS) -fno-stack-protector + SUBDIRS = bpf_protocols + endif + +--- a/utils/keytable/bpf_protocols/Makefile.am ++++ b/utils/keytable/bpf_protocols/Makefile.am +@@ -8,7 +8,7 @@ CLANG_SYS_INCLUDES := $(shell $(CLANG) -v -E - </dev/null 2>&1 \ + | sed -n '/<...> search starts here:/,/End of search list./{ s| \(/.*\)|-idirafter \1|p }') + + %.o: %.c bpf_helpers.h +- $(CLANG) $(CLANG_SYS_INCLUDES) -D__linux__ -I$(top_srcdir)/include -target bpf -O2 -c $< ++ $(CLANG) $(CLANG_SYS_INCLUDES) -D__linux__ -I$(top_srcdir)/include -target bpf -O2 -fno-stack-protector -c $< + + PROTOCOLS = grundig.o pulse_distance.o pulse_length.o rc_mm.o manchester.o xbox-dvd.o imon_rsc.o raw.o samsung36.o + |