Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 751352 - media-gfx/darktable-3.2.1-r1 fails when libavif installed on system
Summary: media-gfx/darktable-3.2.1-r1 fails when libavif installed on system
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Marek Szuba
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-26 16:26 UTC by deim
Modified: 2020-11-03 10:55 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description deim 2020-10-26 16:26:35 UTC
I've installed media-gfx/darktable-3.2.1-r1 without problems. Then installed media-libs/libavif-0.8.2. No problems so far, but when reinstalling darktable with libavif present, darktable detects it and auto-enables it and then fails:

FAILED: src/CMakeFiles/lib_darktable.dir/common/imageio_avif.c.o 
/usr/lib/llvm/10/bin/clang -DGDK_DISABLE_DEPRECATED -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_22 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_MIN_REQUIRED -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_40 -DGTK_DISABLE_DEPRECATED -DGTK_DISABLE_SINGLE_INCLUDES -DHAVE_BUILTIN_CPU_SUPPORTS -DHAVE_CONFIG_H -DHAVE_GAME -DHAVE_GRAPHICSMAGICK -DHAVE_HTTP_SERVER -DHAVE_ISO_CODES -DHAVE_LENSFUN -DHAVE_LIBAVIF=1 -DHAVE_OPENJPEG -DHAVE_PRINT -DHAVE_SQLITE_324_OR_NEWER -DUSE_COLORDGTK -D_RELEASE -D_XOPEN_SOURCE=700 -D__GDK_KEYSYMS_COMPAT_H__ -Dlib_darktable_EXPORTS -Isrc -I/var/tmp/portage/media-gfx/darktable-3.2.1-r1/work/darktable-3.2.1/src -Isrc/external/rawspeed/src -I/var/tmp/portage/media-gfx/darktable-3.2.1-r1/work/darktable-3.2.1/src/external/rawspeed/src/librawspeed -isystem /var/tmp/portage/media-gfx/darktable-3.2.1-r1/work/darktable-3.2.1/src/external -isystem /var/tmp/portage/media-gfx/darktable-3.2.1-r1/work/darktable-3.2.1/src/external/OpenCL -isystem /var/tmp/portage/media-gfx/darktable-3.2.1-r1/work/darktable-3.2.1/src/external/rawspeed/src/external -isystem /usr/include/glib-2.0 -isystem /usr/lib64/glib-2.0/include -isystem /usr/include/gtk-3.0 -isystem /usr/include/at-spi2-atk/2.0 -isystem /usr/include/at-spi-2.0 -isystem /usr/include/dbus-1.0 -isystem /usr/lib64/dbus-1.0/include -isystem /usr/include/gio-unix-2.0 -isystem /usr/include/cairo -isystem /usr/include/pango-1.0 -isystem /usr/include/harfbuzz -isystem /usr/include/fribidi -isystem /usr/include/atk-1.0 -isystem /usr/include/pixman-1 -isystem /usr/include/uuid -isystem /usr/include/freetype2 -isystem /usr/include/gdk-pixbuf-2.0 -isystem /usr/include/libpng16 -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/lib64/libffi/include -isystem /usr/include/libxml2 -isystem /usr/include/libsoup-2.4 -isystem /usr/include/lensfun -isystem /usr/include/librsvg-2.0 -isystem /usr/include/json-glib-1.0 -isystem /usr/include/openjpeg-2.3 -isystem /usr/include/GraphicsMagick -isystem /usr/include/colord-1  -march=haswell -mavx2 -msse4.2 -msse4.1 -O2 -pipe -mmmx -msse -msse2 -mssse3 -mtune=haswell -flto=thin  -ftree-vectorize -msse3 -fopenmp-version=45 -Wall -Wformat -Wformat-security -Wshadow -Wtype-limits -Wvla -Wthread-safety -Wno-unknown-pragmas -Wno-error=varargs -Wno-error=address-of-packed-member -std=c99 -fopenmp=libomp -fPIC   -Wno-error=pass-failed -MD -MT src/CMakeFiles/lib_darktable.dir/common/imageio_avif.c.o -MF src/CMakeFiles/lib_darktable.dir/common/imageio_avif.c.o.d -o src/CMakeFiles/lib_darktable.dir/common/imageio_avif.c.o -c /var/tmp/portage/media-gfx/darktable-3.2.1-r1/work/darktable-3.2.1/src/common/imageio_avif.c
/var/tmp/portage/media-gfx/darktable-3.2.1-r1/work/darktable-3.2.1/src/common/imageio_avif.c:141:38: error: too many arguments to function call, expected single argument 'decoder', have 2 arguments
  result = avifDecoderParse(decoder, &raw);
           ~~~~~~~~~~~~~~~~          ^~~~
/usr/include/avif/avif.h:707:1: note: 'avifDecoderParse' declared here
avifResult avifDecoderParse(avifDecoder * decoder);
^
/var/tmp/portage/media-gfx/darktable-3.2.1-r1/work/darktable-3.2.1/src/common/imageio_avif.c:309:38: error: too many arguments to function call, expected single argument 'decoder', have 2 arguments
  result = avifDecoderParse(decoder, &raw);
           ~~~~~~~~~~~~~~~~          ^~~~
/usr/include/avif/avif.h:707:1: note: 'avifDecoderParse' declared here
avifResult avifDecoderParse(avifDecoder * decoder);
^
2 errors generated.
Comment 1 Larry the Git Cow gentoo-dev 2020-11-03 10:55:30 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2f2243a766a09957922928f13d3795989a951fb

commit e2f2243a766a09957922928f13d3795989a951fb
Author:     Marek Szuba <marecki@gentoo.org>
AuthorDate: 2020-11-03 10:54:22 +0000
Commit:     Marek Szuba <marecki@gentoo.org>
CommitDate: 2020-11-03 10:54:22 +0000

    media-gfx/darktable: fix two automagic dependencies
    
    Closes: https://bugs.gentoo.org/751352
    Signed-off-by: Marek Szuba <marecki@gentoo.org>

 media-gfx/darktable/darktable-3.2.1-r1.ebuild | 5 +++++
 1 file changed, 5 insertions(+)