NetBSD Problem Report #59464
From www@netbsd.org Thu Jun 12 21:44:15 2025
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
client-signature RSA-PSS (2048 bits) client-digest SHA256)
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 1B7371A923C
for <gnats-bugs@gnats.NetBSD.org>; Thu, 12 Jun 2025 21:44:15 +0000 (UTC)
Message-Id: <20250612214413.953BB1A923E@mollari.NetBSD.org>
Date: Thu, 12 Jun 2025 21:44:13 +0000 (UTC)
From: rwhitlock22@gmail.com
Reply-To: rwhitlock22@gmail.com
To: gnats-bugs@NetBSD.org
Subject: graphics/gimp: build fails, wanting ghostscript-apgl instead of -gpl
X-Send-Pr-Version: www-1.0
>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: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jun 12 21:45:00 +0000 2025
>Closed-Date: Fri Jun 13 06:46:46 +0000 2025
>Last-Modified: Fri Jun 13 06:50:01 +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.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Fri, 13 Jun 2025 06:46:46 +0000
State-Changed-Why:
I made ghostscript support in gimp optional.
From: "Thomas Klausner" <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/59464 CVS commit: pkgsrc/graphics/gimp
Date: Fri, 13 Jun 2025 06:46:19 +0000
Module Name: pkgsrc
Committed By: wiz
Date: Fri Jun 13 06:46:19 UTC 2025
Modified Files:
pkgsrc/graphics/gimp: Makefile PLIST options.mk
Log Message:
gimp: directly use ghostscript-agpl
since this doesn't compile with ghostscript-gpl, see PR 59464
make the ghostscript-agpl dependency a default-on option
Bump PKGREVISION.
To generate a diff of this commit:
cvs rdiff -u -r1.413 -r1.414 pkgsrc/graphics/gimp/Makefile
cvs rdiff -u -r1.83 -r1.84 pkgsrc/graphics/gimp/PLIST
cvs rdiff -u -r1.11 -r1.12 pkgsrc/graphics/gimp/options.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.