pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/53690: x11/gtk3 build fails on NetBSD 7.2



The following reply was made to PR pkg/53690; it has been noted by GNATS.

From: Leonardo Taccari <leot%NetBSD.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/53690: x11/gtk3 build fails on NetBSD 7.2
Date: Mon, 29 Oct 2018 21:00:26 +0100

 Hello Andreas,
 
 Andreas Gustafsson writes:
 >  Looks like some MTA along the way decided my last message should be
 >  base64 encoded, perhaps because it inclued the line leot asked for
 >  which was more than 2000 characters long.  I won't repeat that line
 >  here so that this message doesn't suffer the same fate, but it can be
 >  found in:
 >  
 >    http://www.gson.org/netbsd/bugs/53690/gtk3.tar.gz
 >  
 
 Thank you very much for sharing this (if the attached patch works
 it really helped a lot!).
 The problem is much clearer now: in NetBSD-current and 8.0 and
 graphics/freetype2 the freetype headers are installed in a freetype
 subdirectory, unlike freetype2 in 7.2.  This should be avoided and
 instead all freetype2 users should only include ft2build.h and then
 include the other header files via its macros.
 
 Can you please try the attached patches? (against a clean x11/gtk3,
 the previous patches that I shared on this PR should not be needed
 and needs to be reverted, sorry for that.)
 
 
 -------------------------8<-------------------8<-------------------------
 gtk3: Correctly include freetype2 headers
 
 Only <ft2build.h> should be included, all the other header files should be
 included via FT_*_H macros.  Should fix PR pkg/53690.
 
 Index: distinfo
 ===================================================================
 RCS file: /cvsroot/pkgsrc/x11/gtk3/distinfo,v
 retrieving revision 1.57
 diff -u -p -r1.57 distinfo
 --- distinfo	23 Oct 2018 07:42:23 -0000	1.57
 +++ distinfo	29 Oct 2018 19:53:59 -0000
 @@ -12,3 +12,4 @@ SHA1 (patch-gdk_x11_gdkscreen-x11.h) = 4
  SHA1 (patch-gdk_x11_gdkwindow-x11.h) = c80f7c9d5a570817e54fd74fa903a53400dc6f64
  SHA1 (patch-gtk_a11y_gtkaccessibility.c) = 13232c85bd570f21ea03153dacde4ca98c7c76a8
  SHA1 (patch-gtk_fallback-c89.c) = eaf5ac8aace9eab673eed0e265d4cb2617bf1fcd
 +SHA1 (patch-gtk_gtkfontchooserwidget.c) = 6ede4fce683b70808c5d611dfb53312bf092665d
 Index: patches/patch-gtk_gtkfontchooserwidget.c
 ===================================================================
 RCS file: patches/patch-gtk_gtkfontchooserwidget.c
 diff -N patches/patch-gtk_gtkfontchooserwidget.c
 --- /dev/null	1 Jan 1970 00:00:00 -0000
 +++ patches/patch-gtk_gtkfontchooserwidget.c	29 Oct 2018 19:53:59 -0000
 @@ -0,0 +1,19 @@
 +$NetBSD$
 +
 +Correctly include freetype2 headers (<ft2build.h> and then macros
 +should be used instead of directly including the headers).
 +
 +--- gtk/gtkfontchooserwidget.c.orig	2018-07-18 11:04:31.000000000 +0000
 ++++ gtk/gtkfontchooserwidget.c
 +@@ -58,8 +58,9 @@
 + #include <hb.h>
 + #include <hb-ot.h>
 + #include <hb-ft.h>
 +-#include <freetype/freetype.h>
 +-#include <freetype/ftmm.h>
 ++#include <ft2build.h>
 ++#include FT_FREETYPE_H
 ++#include FT_MULTIPLE_MASTERS_H
 + #include "language-names.h"
 + #include "script-names.h"
 + #endif
 


Home | Main Index | Thread Index | Old Index