summaryrefslogtreecommitdiff
path: root/media-libs
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/libjpeg-turbo/files/libjpeg-turbo-2.0.4-CVE-2020-13790.patch34
-rw-r--r--media-libs/libjpeg-turbo/libjpeg-turbo-2.0.6.ebuild10
-rw-r--r--media-libs/liblastfm/files/liblastfm-1.1.0_pre20190625-missing-dep.patch28
-rw-r--r--media-libs/liblastfm/liblastfm-1.1.0_pre20190625.ebuild2
-rw-r--r--media-libs/libopenshot-audio/files/libopenshot-audio-0.1.4-fix-under-linking.patch22
-rw-r--r--media-libs/urt/files/urt-3.1b-build-fixes.patch151
-rw-r--r--media-libs/vulkan-loader/vulkan-loader-9999.ebuild2
7 files changed, 33 insertions, 216 deletions
diff --git a/media-libs/libjpeg-turbo/files/libjpeg-turbo-2.0.4-CVE-2020-13790.patch b/media-libs/libjpeg-turbo/files/libjpeg-turbo-2.0.4-CVE-2020-13790.patch
deleted file mode 100644
index e88ac174684d..000000000000
--- a/media-libs/libjpeg-turbo/files/libjpeg-turbo-2.0.4-CVE-2020-13790.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-From 3de15e0c344d11d4b90f4a47136467053eb2d09a Mon Sep 17 00:00:00 2001
-From: DRC <information@libjpeg-turbo.org>
-Date: Tue, 2 Jun 2020 14:15:37 -0500
-Subject: [PATCH] rdppm.c: Fix buf overrun caused by bad binary PPM
-
-This extends the fix in 1e81b0c3ea26f4ea8f56de05367469333de64a9f to
-include binary PPM files with maximum values < 255, thus preventing a
-malformed binary PPM input file with those specifications from
-triggering an overrun of the rescale array and potentially crashing
-cjpeg, TJBench, or any program that uses the tjLoadImage() function.
-
-Fixes #433
-diff --git a/rdppm.c b/rdppm.c
-index 87bc33090..a8507b902 100644
---- a/rdppm.c
-+++ b/rdppm.c
-@@ -5,7 +5,7 @@
- * Copyright (C) 1991-1997, Thomas G. Lane.
- * Modified 2009 by Bill Allombert, Guido Vollbeding.
- * libjpeg-turbo Modifications:
-- * Copyright (C) 2015-2017, D. R. Commander.
-+ * Copyright (C) 2015-2017, 2020, D. R. Commander.
- * For conditions of distribution and use, see the accompanying README.ijg
- * file.
- *
-@@ -720,7 +720,7 @@ start_input_ppm(j_compress_ptr cinfo, cjpeg_source_ptr sinfo)
- /* On 16-bit-int machines we have to be careful of maxval = 65535 */
- source->rescale = (JSAMPLE *)
- (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_IMAGE,
-- (size_t)(((long)maxval + 1L) *
-+ (size_t)(((long)MAX(maxval, 255) + 1L) *
- sizeof(JSAMPLE)));
- half_maxval = maxval / 2;
- for (val = 0; val <= (long)maxval; val++) {
diff --git a/media-libs/libjpeg-turbo/libjpeg-turbo-2.0.6.ebuild b/media-libs/libjpeg-turbo/libjpeg-turbo-2.0.6.ebuild
index b0302e408050..3637bb4413ac 100644
--- a/media-libs/libjpeg-turbo/libjpeg-turbo-2.0.6.ebuild
+++ b/media-libs/libjpeg-turbo/libjpeg-turbo-2.0.6.ebuild
@@ -83,20 +83,14 @@ multilib_src_configure() {
-DWITH_MEM_SRCDST=ON
)
- [[ ${ABI} == "x32" ]] && mycmakeargs+=( -DREQUIRE_SIMD=OFF ) #420239
+ # bug #420239, bug #723800
+ [[ ${ABI} == "x32" ]] && mycmakeargs+=( -DWITH_SIMD=OFF ) #420239
# mostly for Prefix, ensure that we use our yasm if installed and
# not pick up host-provided nasm
has_version dev-lang/yasm && ! has_version dev-lang/nasm && \
mycmakeargs+=( -DCMAKE_ASM_NASM_COMPILER=$(type -P yasm) )
- if use ppc ; then
- # Workaround recommended by upstream:
- # https://bugs.gentoo.org/715406#c9
- # https://github.com/libjpeg-turbo/libjpeg-turbo/issues/428
- mycmakeargs+=( -DFLOATTEST="64bit" )
- fi
-
cmake_src_configure
}
diff --git a/media-libs/liblastfm/files/liblastfm-1.1.0_pre20190625-missing-dep.patch b/media-libs/liblastfm/files/liblastfm-1.1.0_pre20190625-missing-dep.patch
new file mode 100644
index 000000000000..e36a01c15838
--- /dev/null
+++ b/media-libs/liblastfm/files/liblastfm-1.1.0_pre20190625-missing-dep.patch
@@ -0,0 +1,28 @@
+From 9264fbecf8c7e910fa038ab372376ecc9b8c403c Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner <asturm@gentoo.org>
+Date: Sat, 12 Dec 2020 17:09:58 +0100
+Subject: [PATCH] Add missing -DBUILD_TESTS dependency Qt5Test
+
+Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
+---
+ CMakeLists.txt | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index d4fd670..bb5a895 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -37,6 +37,10 @@ if(NOT BUILD_WITH_QT4)
+ find_package(Qt5Sql REQUIRED CONFIG)
+ endif()
+
++ if(BUILD_TESTS)
++ find_package(Qt5Test CONFIG REQUIRED)
++ endif()
++
+ set(LASTFM_LIB_VERSION_SUFFIX 5)
+ if(UNIX AND NOT APPLE)
+ find_package(Qt5DBus REQUIRED CONFIG)
+--
+2.29.2
+
diff --git a/media-libs/liblastfm/liblastfm-1.1.0_pre20190625.ebuild b/media-libs/liblastfm/liblastfm-1.1.0_pre20190625.ebuild
index 66923fd858eb..e7a0b783f0a5 100644
--- a/media-libs/liblastfm/liblastfm-1.1.0_pre20190625.ebuild
+++ b/media-libs/liblastfm/liblastfm-1.1.0_pre20190625.ebuild
@@ -34,6 +34,8 @@ DEPEND="${RDEPEND}
test? ( dev-qt/qttest:5 )
"
+PATCHES=( "${FILESDIR}/${P}-missing-dep.patch" )
+
src_configure() {
# demos not working
local mycmakeargs=(
diff --git a/media-libs/libopenshot-audio/files/libopenshot-audio-0.1.4-fix-under-linking.patch b/media-libs/libopenshot-audio/files/libopenshot-audio-0.1.4-fix-under-linking.patch
deleted file mode 100644
index 18571abfee22..000000000000
--- a/media-libs/libopenshot-audio/files/libopenshot-audio-0.1.4-fix-under-linking.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-commit f489d3c4ab9dc3ff6fe443a0e8a31b46ed73371d
-Author: Louis Sautier <sautier.louis@gmail.com>
-Date: Sun Jul 23 22:37:01 2017 +0200
-
- Fix under-linking (pthread and dl), fixes #3
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index c6c8f54..e0e2433 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -168,7 +168,11 @@ set_target_properties(openshot-audio
- SOVERSION ${SO_VERSION}
- INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib")
-
-+set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
-+find_package(Threads REQUIRED)
- TARGET_LINK_LIBRARIES(openshot-audio
-+ ${CMAKE_DL_LIBS}
-+ ${CMAKE_THREAD_LIBS_INIT}
- ${JUCE_PLATFORM_SPECIFIC_LIBRARIES}
- )
-
diff --git a/media-libs/urt/files/urt-3.1b-build-fixes.patch b/media-libs/urt/files/urt-3.1b-build-fixes.patch
deleted file mode 100644
index 2f801e0c984a..000000000000
--- a/media-libs/urt/files/urt-3.1b-build-fixes.patch
+++ /dev/null
@@ -1,151 +0,0 @@
-some hosts are more anal about ar usage than others
-http://bugs.gentoo.org/107428
-
-respect user LDFLAGS
-http://bugs.gentoo.org/126872
-
---- a/lib/makefile.src
-+++ b/lib/makefile.src
-@@ -181,8 +181,7 @@
- # Rebuild the library from all the .o files.
- buildlib: $(OBJS)
- -rm -f $(LIBNAME)
-- ar rc $(LIBNAME)
-- ar q $(LIBNAME) $(OBJS)
-+ ar rc $(LIBNAME) $(OBJS)
- #ifndef NO_RANLIB
- ranlib $(LIBNAME)
- #endif
---- a/tools/clock/makefile.src
-+++ b/tools/clock/makefile.src
-@@ -6,7 +6,7 @@ install: rleClock
- mv rleClock ../rleClock.out
-
- rleClock:rleClock.o font.o
-- ${CC} ${CFLAGS} rleClock.o font.o -lm ${LIBS} -o rleClock
-+ ${CC} ${CFLAGS} ${LDFLAGS} rleClock.o font.o ${LIBS} -o rleClock -lm
-
- font.c:font.src makeFont
- chmod +x makeFont
---- a/tools/makefile.src
-+++ b/tools/makefile.src
-@@ -62,21 +62,21 @@ applymap.out rlebg.out: $(RI)/rle_raw.h
- pyrlib.o: pyrlib.c $(RI)/pyramid.h $(RI)/rle.h $(RI)/rle_config.h
- $(CC) $(CFLAGS) pyrlib.c -c
- pyrmask.out: pyrlib.o pyrmask.c $(RI)/pyramid.h
-- $(CC) $(CFLAGS) -I$(RI) pyrmask.c pyrlib.o $(LIBS) -lm -o pyrmask.new
-+ $(CC) $(LDFLAGS) $(CFLAGS) -I$(RI) pyrmask.c pyrlib.o $(LIBS) -lm -o pyrmask.new
- mv pyrmask.new pyrmask.out
-
- fant.out: fant.o mallocNd.o
-- $(CC) $(CFLAGS) -I$(RI) fant.o mallocNd.o $(LIBS) -lm -o fant.new
-+ $(CC) $(LDFLAGS) $(CFLAGS) -I$(RI) fant.o mallocNd.o $(LIBS) -lm -o fant.new
- mv fant.new fant.out
-
- # rlebox and crop use some common code.
- rle_box.o: $(RI)/rle.h $(RI)/rle_config.h $(RI)/rle_raw.h
-
- crop.out: crop.c rle_box.o
-- ${CC} ${CFLAGS} crop.c rle_box.o ${LIBS} -o crop.new
-+ ${CC} ${LDFLAGS} ${CFLAGS} crop.c rle_box.o ${LIBS} -o crop.new
- mv crop.new crop.out
- rlebox.out: rlebox.c rle_box.o
-- ${CC} ${CFLAGS} rlebox.c rle_box.o ${LIBS} -o rlebox.new
-+ ${CC} ${LDFLAGS} ${CFLAGS} rlebox.c rle_box.o ${LIBS} -o rlebox.new
- mv rlebox.new rlebox.out
-
- # rleClock has it's own directory, must be built special
-@@ -100,7 +100,7 @@ clean: clean-pgm
- .SUFFIXES:
- .SUFFIXES: .out .c .o
- .c.out:
-- $(CC) $(CFLAGS) $< $(LIBS) -lm -o $*.new
-+ $(CC) $(LDFLAGS) $(CFLAGS) $< $(LIBS) -lm -o $*.new
- mv $*.new $@
-
- .c.o:
---- a/cnv/makefile.src
-+++ b/cnv/makefile.src
-@@ -76,13 +76,13 @@ PBMDIR =
- # ppmtorle - ppm format to RLE
- # rletoppm - RLE to ppm format
- pgmtorle.out: pgmtorle.c
-- $(CC) $(CFLAGS) $(INCPBMPLUS) $*.c $(LIBS) $(LIBPBMPLUS) -o $*.new
-+ $(CC) $(CFLAGS) $(LDFLAGS) $(INCPBMPLUS) $*.c $(LIBS) $(LIBPBMPLUS) -o $*.new
- mv $*.new $@
- ppmtorle.out: ppmtorle.c
-- $(CC) $(CFLAGS) $(INCPBMPLUS) $*.c $(LIBS) $(LIBPBMPLUS) -o $*.new
-+ $(CC) $(CFLAGS) $(LDFLAGS) $(INCPBMPLUS) $*.c $(LIBS) $(LIBPBMPLUS) -o $*.new
- mv $*.new $@
- rletoppm.out: rletoppm.c
-- $(CC) $(CFLAGS) $(INCPBMPLUS) $*.c $(LIBS) $(LIBPBMPLUS) -o $*.new
-+ $(CC) $(CFLAGS) $(LDFLAGS) $(INCPBMPLUS) $*.c $(LIBS) $(LIBPBMPLUS) -o $*.new
- mv $*.new $@
- #endif
-
-@@ -95,10 +95,10 @@ rletoppm.out: rletoppm.c
- # iristorle/rletoiris - Convert between RLE and SGI image format.
- #
- iristorle.out: iristorle.c
-- $(CC) $(CFLAGS) -I/usr/include/gl $*.c $(LIBS) -limage -o $*.new
-+ $(CC) $(CFLAGS) $(LDFLAGS) -I/usr/include/gl $*.c $(LIBS) -limage -o $*.new
- mv $*.new $@
- rletoiris.out: rletoiris.c
-- $(CC) $(CFLAGS) -I/usr/include/gl $*.c $(LIBS) -limage -o $*.new
-+ $(CC) $(CFLAGS) $(LDFLAGS) -I/usr/include/gl $*.c $(LIBS) -limage -o $*.new
- mv $*.new $@
- #endif
-
-@@ -108,10 +108,10 @@ TIFFDIR =
- # tifftorle - Convert TIFF images to RLE
- # rletotiff - Convert RLE images to TIFF
- rletotiff.out: rletotiff.c
-- $(CC) $(CFLAGS) $(INCTIFF) $*.c $(LIBS) $(LIBTIFF) -lm -o $*.new
-+ $(CC) $(CFLAGS) $(LDFLAGS) $(INCTIFF) $*.c $(LIBS) $(LIBTIFF) -lm -o $*.new
- mv $*.new $@
- tifftorle.out: tifftorle.c
-- $(CC) $(CFLAGS) $(INCTIFF) $*.c $(LIBS) $(LIBTIFF) -lm -o $*.new
-+ $(CC) $(CFLAGS) $(LDFLAGS) $(INCTIFF) $*.c $(LIBS) $(LIBTIFF) -lm -o $*.new
- mv $*.new $@
- #endif
-
-@@ -125,7 +125,7 @@ tifftorle.out: tifftorle.c
- # Will build with the default rule.
- # rletorla - RLE to Wavefront RLA
- rletorla.out: rletorla.c
-- $(CC) $(CFLAGS) $*.c $(LIBS) $(LIBWAVEFRONT) -lm -o $*.new
-+ $(CC) $(CFLAGS) $(LDFLAGS) $*.c $(LIBS) $(LIBWAVEFRONT) -lm -o $*.new
- mv $*.new $@
- #endif WAVEFRONT
-
-@@ -144,7 +144,7 @@ pristine: pristine-pgm
- .SUFFIXES:
- .SUFFIXES: .out .c
- .c.out:
-- $(CC) $(CFLAGS) $*.c $(LIBS) -lm -o $*.new
-+ $(CC) $(CFLAGS) $(LDFLAGS) $*.c $(LIBS) -lm -o $*.new
- mv $*.new $@
-
- # Dependency lines. Make sure to #ifdef them.
---- a/cnv/rletoabA62/makefile.src
-+++ b/cnv/rletoabA62/makefile.src
-@@ -15,7 +15,7 @@ all : $(PGMS)
- # Executables. The .out will be stripped off in the install action.
-
- rletoabA62.out : rletoabA62.o rle.o
-- $(CC) $(CFLAGS) -o rletoabA62.new \
-+ $(CC) $(CFLAGS) $(LDFLAGS) -o rletoabA62.new \
- rletoabA62.o rle.o $(LIBS)
- mv rletoabA62.new rletoabA62.out
-
---- a/cnv/rletogif/makefile.src
-+++ b/cnv/rletogif/makefile.src
-@@ -15,7 +15,7 @@ all: $(PGMS)
- # The executable. The ".out" will be stripped off in the install action.
-
- rletogif.out: ${OBJ}
-- ${CC} ${CFLAGS} ${OBJ} ${LIBS} -o rletogif.new
-+ ${CC} ${CFLAGS} ${LDFLAGS} ${OBJ} ${LIBS} -o rletogif.new
- mv rletogif.new rletogif.out
-
- # Incremental install, copies executable to DEST dir.
diff --git a/media-libs/vulkan-loader/vulkan-loader-9999.ebuild b/media-libs/vulkan-loader/vulkan-loader-9999.ebuild
index 82becf15ea16..76321119502e 100644
--- a/media-libs/vulkan-loader/vulkan-loader-9999.ebuild
+++ b/media-libs/vulkan-loader/vulkan-loader-9999.ebuild
@@ -27,7 +27,7 @@ IUSE="layers wayland X"
BDEPEND=">=dev-util/cmake-3.10.2"
DEPEND="${PYTHON_DEPS}
- ~dev-util/vulkan-headers-1.2.154
+ >=dev-util/vulkan-headers-${PV}
wayland? ( dev-libs/wayland:=[${MULTILIB_USEDEP}] )
X? (
x11-libs/libX11:=[${MULTILIB_USEDEP}]