Wed Nov 16 12:18:46 2022 UTC ()
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.
(gdt)
diff -r1.46 -r1.47 pkgsrc/print/py-reportlab/distinfo
diff -r0 -r1.1 pkgsrc/print/py-reportlab/patches/patch-setup.py
--- pkgsrc/print/py-reportlab/distinfo 2022/11/14 19:35:16 1.46
+++ pkgsrc/print/py-reportlab/distinfo 2022/11/16 12:18:46 1.47
| @@ -1,5 +1,6 @@ | | | @@ -1,5 +1,6 @@ |
1 | $NetBSD: distinfo,v 1.46 2022/11/14 19:35:16 wiz Exp $ | | 1 | $NetBSD: distinfo,v 1.47 2022/11/16 12:18:46 gdt Exp $ |
2 | | | 2 | |
3 | BLAKE2s (reportlab-3.6.12.tar.gz) = 5e1fa732615fa14c9639855beb54a679e2709a83aff1a60f2fd25e00f497d46a | | 3 | BLAKE2s (reportlab-3.6.12.tar.gz) = 5e1fa732615fa14c9639855beb54a679e2709a83aff1a60f2fd25e00f497d46a |
4 | SHA512 (reportlab-3.6.12.tar.gz) = 99e6ab1cf27cc9e661b3bfd8c71290d94189db6de5e71b2429cccd48bfee5659d5fb46dfc5709e6616877b48bc17241c74282e0d2ecddda2ead16df4c1b6818f | | 4 | SHA512 (reportlab-3.6.12.tar.gz) = 99e6ab1cf27cc9e661b3bfd8c71290d94189db6de5e71b2429cccd48bfee5659d5fb46dfc5709e6616877b48bc17241c74282e0d2ecddda2ead16df4c1b6818f |
5 | Size (reportlab-3.6.12.tar.gz) = 4519536 bytes | | 5 | Size (reportlab-3.6.12.tar.gz) = 4519536 bytes |
| | | 6 | SHA1 (patch-setup.py) = 9092bda2c09ed81a8c8d009291f8852d94a542bf |
$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")