File:  [cvs.NetBSD.org] / pkgsrc / print / py-reportlab / patches / patch-setup.py
Revision 1.1: download - view: text, annotated - select for diffs
Wed Nov 16 12:18:46 2022 UTC (2 years, 2 months ago) by gdt
Branches: MAIN
CVS tags: HEAD
print/py-reportlab: Remediate incorrect searching for ft2build.h

setup.py grovels paths in the filesystem to find ft2build.h,
apparently not consulting the provided CPPFLAGS.  Add /usr/X11R7, just
before /usr/local, to fix building on NetBSD 9 with base X11.  Thanks
to wiz@ for the hint.

$NetBSD: patch-setup.py,v 1.1 2022/11/16 12:18:46 gdt Exp $

Add /usr/X11R7 to the set of places setup.py looks for.  The existing
setup.py is problematic, because this behavior escapes from buildlink,
and because it is not just trying a test compile with the provided
CPPFLAGS.  Given that there is already a list of questionable places
(/usr/local), it is not incrementally worse to add in X11R7.

Not yet sent upstream.

--- setup.py.orig	2022-10-17 12:06:28.000000000 +0000
+++ setup.py
@@ -277,6 +277,8 @@ class inc_lib_dirs:
             # darwin ports installation directories
             aDir(L, "/opt/local/lib")
             aDir(I, "/opt/local/include")
+        aDir(I, "/usr/X11R7/include")
+        aDir(L, "/usr/X11R7/lib")
         aDir(I, "/usr/local/include")
         aDir(L, "/usr/local/lib")
         aDir(I, "/usr/include")

CVSweb <webmaster@jp.NetBSD.org>