pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/59464: graphics/gimp: build fails, wanting ghostscript-apgl instead of -gpl
>Number: 59464
>Category: pkg
>Synopsis: graphics/gimp: build fails, wanting ghostscript-apgl instead of -gpl
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jun 12 21:45:00 +0000 2025
>Originator: Robert Whitlock
>Release: pkgsrc current, Jun 12, 2025
>Organization:
>Environment:
NetBSD current, May 27, 2025, amd64
>Description:
A build of gimp fails because it's looking for gsapi_set_arg_encoding which is made available by print/ghostscript-agpl but not print/ghostscript-gpl. The gpl version is chosen when mk.conf has
PKG_OPTIONS.gs_type= ghostscript-gpl
Here's the error:
=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Skipping vulnerability checks.
WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'.
===> Building for gimp-3.0.4
ninja: Entering directory `output'
[1/1653] Compiling C object plug-ins/common/file-ps.p/file-ps.c.o
FAILED: plug-ins/common/file-ps.p/file-ps.c.o
gcc -Iplug-ins/common/file-ps.p -Iplug-ins/common -I../plug-ins/common -I. -I.. -I/usr/pkg/include/gtk-3.0 -I/usr/pkg/include/pango-1.0 -I/usr/X11R7/include -I/usr/pkg/include -I/usr/pkg/include/cairo -I/usr/pkg/include/gdk-pixbuf-2.0 -I/usr/pkg/include/atk-1.0 -I/usr/X11R7/include/libdrm -I/usr/pkg/include/fribidi -I/usr/pkg/include/pixman-1 -I/usr/pkg/include/harfbuzz -I/usr/pkg/include/freetype2 -I/usr/pkg/include/libpng16 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/include/glib-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include/gegl-0.4 -I/usr/pkg/include/json-glib-1.0 -I/usr/pkg/include/babl-0.1 -I/usr/include -I/usr/pkg/include/libxml2 -I/usr/pkg/include/python3.12 -I/usr/pkg/include/nspr -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wabsolute-value -Wdeclaration-after-statement -Wenum-conversion -Wno-strict-prototypes -Wold-style-definition -Wunused-function -Wunused-value -Werror=implicit-function-declaration -fdiagnostics-show-option -fno-common -
Wformat -Wformat-security -Winit-self -Wlogical-op -Wmissing-declarations -Wmissing-format-attribute -Wpointer-arith -Wreturn-type -Wtype-limits -DHAVE_CONFIG_H -O2 -pthread -D_REENTRANT -MD -MQ plug-ins/common/file-ps.p/file-ps.c.o -MF plug-ins/common/file-ps.p/file-ps.c.o.d -o plug-ins/common/file-ps.p/file-ps.c.o -c ../plug-ins/common/file-ps.c
../plug-ins/common/file-ps.c: In function 'ps_open':
../plug-ins/common/file-ps.c:2097:12: error: implicit declaration of function 'gsapi_set_arg_encoding' [-Werror=implicit-function-declaration]
2097 | code = gsapi_set_arg_encoding(instance, GS_ARG_ENCODING_UTF8);
| ^~~~~~~~~~~~~~~~~~~~~~
../plug-ins/common/file-ps.c:2097:45: error: 'GS_ARG_ENCODING_UTF8' undeclared (first use in this function)
2097 | code = gsapi_set_arg_encoding(instance, GS_ARG_ENCODING_UTF8);
| ^~~~~~~~~~~~~~~~~~~~
../plug-ins/common/file-ps.c:2097:45: note: each undeclared identifier is reported only once for each function it appears in
cc1: some warnings being treated as errors
ninja: build stopped: subcommand failed.
*** Error code 1
Stop.
make[1]: stopped making "install" in /usr/pkgsrc/graphics/gimp
*** Error code 1
Stop.
make: stopped making "install" in /usr/pkgsrc/graphics/gimp
>How-To-Repeat:
Put PKG_OPTIONS.gs_type= ghostscript-gpl in /etc/mk.conf.
Rebuild/reinstall ghostscript so the setting takes effect.
cd graphics/gimp
make install
>Fix:
Hopefully there's a fix for this that doesn't force using AGPL licensed software.
Home |
Main Index |
Thread Index |
Old Index