NetBSD Problem Report #57843

From www@netbsd.org  Sat Jan 13 08:40:27 2024
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))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 632BF1A9239
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 13 Jan 2024 08:40:27 +0000 (UTC)
Message-Id: <20240113084025.8EF0B1A923A@mollari.NetBSD.org>
Date: Sat, 13 Jan 2024 08:40:25 +0000 (UTC)
From: bbartlomiej.mail@gmail.com
Reply-To: bbartlomiej.mail@gmail.com
To: gnats-bugs@NetBSD.org
Subject: graphics/ristretto fails to build on pkgsrc-2023Q4 with all dependencies met
X-Send-Pr-Version: www-1.0

>Number:         57843
>Category:       pkg
>Synopsis:       graphics/ristretto fails to build on pkgsrc-2023Q4 with all dependencies met
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jan 13 08:45:00 +0000 2024
>Originator:     Bartlomiej Krawcyzk
>Release:        pkgsrc-2023Q4, NetBSD 10.0RC2
>Organization:
>Environment:
NetBSD netbsd.sol 10.0_RC2 NetBSD 10.0_RC2 (GENERIC) #0: Mon Jan  1 14:04:52 UTC 2024  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
While trying to build meta-pkgs/xfce4-extras the build fails on graphics/ristretto failing to include gtk.h:

gmake[3]: Entering directory '/usr/pkgsrc/graphics/ristretto/work/ristretto-0.13.1/src'
  CC       ristretto-app_menu_item.o
  CC       ristretto-file.o
  CC       ristretto-gnome_wallpaper_manager.o
  CC       ristretto-icon_bar.o
  CC       ristretto-image_list.o
  CC       ristretto-marshal.o
  CC       ristretto-preferences_dialog.o
  CC       ristretto-main.o
  CC       ristretto-main_window.o
  CC       ristretto-monitor_chooser.o
  CC       ristretto-mime_db.o
  CC       ristretto-image_viewer.o
In file included from file.c:20:
util.h:45:10: fatal error: gtk/gtk.h: No such file or directory
   45 | #include <gtk/gtk.h>
      |          ^~~~~~~~~~~
compilation terminated.
gmake[3]: *** [Makefile:597: ristretto-file.o] Error 1
gmake[3]: *** Waiting for unfinished jobs....
In file included from preferences_dialog.c:20:
util.h:45:10: fatal error: gtk/gtk.h: No such file or directory
   45 | #include <gtk/gtk.h>
      |          ^~~~~~~~~~~
compilation terminated.
In file included from image_list.c:23:
util.h:45:10: fatal error: gtk/gtk.h: No such file or directory
   45 | #include <gtk/gtk.h>
      |          ^~~~~~~~~~~
In file included from app_menu_item.c:20:
util.h:45:10: fatal error: gtk/gtk.h: No such file or directory
   45 | #include <gtk/gtk.h>
      |          ^~~~~~~~~~~
compilation terminated.
compilation terminated.
gmake[3]: *** [Makefile:737: ristretto-preferences_dialog.o] Error 1
In file included from mime_db.c:20:
util.h:45:10: fatal error: gtk/gtk.h: No such file or directory
   45 | #include <gtk/gtk.h>
      |          ^~~~~~~~~~~
In file included from main.c:20:
util.h:45:10: fatal error: gtk/gtk.h: No such file or directory
   45 | #include <gtk/gtk.h>
      |          ^~~~~~~~~~~
compilation terminated.
compilation terminated.
In file included from gnome_wallpaper_manager.c:20:
util.h:45:10: fatal error: gtk/gtk.h: No such file or directory
   45 | #include <gtk/gtk.h>
      |          ^~~~~~~~~~~
In file included from icon_bar.c:24:
util.h:45:10: fatal error: gtk/gtk.h: No such file or directory
   45 | #include <gtk/gtk.h>
      |          ^~~~~~~~~~~
compilation terminated.
compilation terminated.
In file included from monitor_chooser.c:20:
util.h:45:10: fatal error: gtk/gtk.h: No such file or directory
   45 | #include <gtk/gtk.h>
      |          ^~~~~~~~~~~
compilation terminated.
gmake[3]: *** [Makefile:639: ristretto-image_list.o] Error 1
gmake[3]: *** [Makefile:583: ristretto-app_menu_item.o] Error 1
gmake[3]: *** [Makefile:611: ristretto-gnome_wallpaper_manager.o] Error 1
gmake[3]: *** [Makefile:723: ristretto-monitor_chooser.o] Error 1
gmake[3]: *** [Makefile:709: ristretto-mime_db.o] Error 1
gmake[3]: *** [Makefile:625: ristretto-icon_bar.o] Error 1
gmake[3]: *** [Makefile:667: ristretto-main.o] Error 1
In file included from image_viewer.c:20:
util.h:45:10: fatal error: gtk/gtk.h: No such file or directory
   45 | #include <gtk/gtk.h>
      |          ^~~~~~~~~~~
compilation terminated.
In file included from main_window.c:20:
util.h:45:10: fatal error: gtk/gtk.h: No such file or directory
   45 | #include <gtk/gtk.h>
      |          ^~~~~~~~~~~
compilation terminated.
gmake[3]: *** [Makefile:653: ristretto-image_viewer.o] Error 1
gmake[3]: *** [Makefile:681: ristretto-main_window.o] Error 1
gmake[3]: Leaving directory '/usr/pkgsrc/graphics/ristretto/work/ristretto-0.13.1/src'
gmake[2]: *** [Makefile:454: all] Error 2
gmake[2]: Leaving directory '/usr/pkgsrc/graphics/ristretto/work/ristretto-0.13.1/src'
gmake[1]: *** [Makefile:519: all-recursive] Error 1
gmake[1]: Leaving directory '/usr/pkgsrc/graphics/ristretto/work/ristretto-0.13.1'
gmake: *** [Makefile:418: all] Error 2
*** Error code 2

Stop.
make[2]: stopped in /usr/pkgsrc/graphics/ristretto
*** Error code 1

Stop.
make[1]: stopped in /usr/pkgsrc/graphics/ristretto
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/meta-pkgs/xfce4-extras




but gtk.h is present on the system (gtk-3 had been built earlier while building other packages):

netbsd# find / -name gtk\.h -print
/usr/pkg/include/gtk-3.0/gtk/gtk.h
/usr/pkg/include/gtk-2.0/gtk/gtk.h
/usr/pkgsrc/graphics/ristretto/work/.buildlink/include/gtk-3.0/gtk/gtk.h
/usr/src/external/bsd/nvi/dist/gtk/gtk.h

Seems that buildlink framework worked and provided the dependency in the work directory. Strange.
All other graphics/ristretto dependencies are already in the system. Cleaning up and starting again (even from graphics/ristretto) does not help.

netbsd# make show-depends
cairo>=1.18.0:../../graphics/cairo
libX11>=1.5:../../x11/libX11
glib2>=2.76.4nb1:../../devel/glib2
libexif>=0.6.20nb1:../../graphics/libexif
hicolor-icon-theme>=0.9nb1:../../graphics/hicolor-icon-theme
dbus-glib>=0.112:../../sysutils/dbus-glib
gtk3+>=3.24.38nb6:../../x11/gtk3
libxfce4util>=4.18.0:../../x11/libxfce4util
libxfce4ui>=4.18.0:../../x11/libxfce4ui
netbsd# pkg_info | grep cairo
cairo-1.18.0nb1     Vector graphics library with cross-device output support
netbsd# pkg_info | grep libX11
libX11-1.8.7        Base X libraries from modular Xorg X11
netbsd# pkg_info | grep libexif
libexif-0.6.24      EXIF file library
netbsd# pkg_info | grep glib2
glib2-tools-2.78.1  GLib2/gobject python-dependent tools
glib2-2.78.1nb1     Some useful routines for C programming (glib2)
netbsd# pkg_info | grep dbus-glib
dbus-glib-0.112nb1  GLib bindings for the D-BUS message bus system
netbsd# pkg_info | grep gtk3
gtk3+-3.24.38nb6    GIMP Toolkit v3 - libraries for building X11 user interfaces
netbsd# pkg_info | grep libxfce4util
libxfce4util-4.18.1nb4 Xfce basic library
netbsd# pkg_info | grep libxfce4ui
libxfce4ui-4.18.4nb3 Xfce widget library

I tried with not including cpuflags but no change.
netbsd# cat /etc/mk.conf 
.sinclude "/usr/pkg/share/mk/cpuflags.mk"

COPTS?= -pipe ${DEFCOPTS}
CFLAGS+= -pipe

X11_TYPE= modular
MAKE_JOBS= 12
PKG_DEFAULT_OPTIONS+= -alsa -pulseaudio -dbus -gvfs -jack -wayland
PKG_DEFAULT_OPTIONS+= official-mozilla-branding pam ssl oss
ACCEPTABLE_LICENSES+= mozilla-trademark-license ms-ttf-license ubuntu-font-license gnu-agpl-v3

>How-To-Repeat:
Go to /usr/pkgsrc/meta-pkgs/xfce4-extras or /usr/pkgsrc/graphics/ristretto
do "make install"
>Fix:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.