pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/print/pdflib-lite
Module Name: pkgsrc
Committed By: chuck
Date: Sat Feb 7 20:25:53 UTC 2026
Modified Files:
pkgsrc/print/pdflib-lite: distinfo
Added Files:
pkgsrc/print/pdflib-lite/patches: patch-libs_png_pngconf.h
Log Message:
pdflib-lite: macosx: include math.h rather than deprecated fp.h
On a mac the bundled png file libs/png/pngconf.h may attempt to
include the deprecated <fp.h> file in some cases (should fail
with a fatal file not found error). This is controlled by
the "MACOS" define in pngconf.h (note that "MACOSX" is defined
elsewhere... "MACOS" only appears in pngconf.h). On MACOSX
we can include <math.h> instead of <fp.h> to avoid the fatal
error. (when compiling on my older macbook I found that "MACOS"
was not getting defined because TARGET_OS_MAC was not define, so
it did not attempt to include fp.h and fail. compiling on my
newer macbook does get the error.)
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 pkgsrc/print/pdflib-lite/distinfo
cvs rdiff -u -r0 -r1.1 \
pkgsrc/print/pdflib-lite/patches/patch-libs_png_pngconf.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/print/pdflib-lite/distinfo
diff -u pkgsrc/print/pdflib-lite/distinfo:1.10 pkgsrc/print/pdflib-lite/distinfo:1.11
--- pkgsrc/print/pdflib-lite/distinfo:1.10 Fri Feb 21 17:08:52 2025
+++ pkgsrc/print/pdflib-lite/distinfo Sat Feb 7 20:25:53 2026
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.10 2025/02/21 17:08:52 chuck Exp $
+$NetBSD: distinfo,v 1.11 2026/02/07 20:25:53 chuck Exp $
BLAKE2s (PDFlib-Lite-7.0.5.tar.gz) = f36b99aabd80c0db3b5582957550628317a4ea35da237faee1ad81a322c126e6
SHA512 (PDFlib-Lite-7.0.5.tar.gz) = d3c409ebf4a53ec1886762307b7772f71ba8db96d2caab3e2477278d4c9875bf163dbd6b12cc6a2270d4482e06b1b1d4d5cb51753bd8754f4f8736c5e4300c22
@@ -8,3 +8,4 @@ SHA1 (patch-ab) = 080be19dbb3d4ca317bca6
SHA1 (patch-config_aclocal.m4) = 357b2a276ae70c3f9fc1a0ff0bd0ca65cc4d6e5c
SHA1 (patch-configure) = 974c729a970e5b5af199007f022cdb11783c380c
SHA1 (patch-libs_pdcore_pc_config.h) = e68f27744119facb7b0d7b54fb5104fe1373354d
+SHA1 (patch-libs_png_pngconf.h) = fd4202e14b8b14180b7c767e326dd33d6d0c785b
Added files:
Index: pkgsrc/print/pdflib-lite/patches/patch-libs_png_pngconf.h
diff -u /dev/null pkgsrc/print/pdflib-lite/patches/patch-libs_png_pngconf.h:1.1
--- /dev/null Sat Feb 7 20:25:53 2026
+++ pkgsrc/print/pdflib-lite/patches/patch-libs_png_pngconf.h Sat Feb 7 20:25:53 2026
@@ -0,0 +1,19 @@
+$NetBSD: patch-libs_png_pngconf.h,v 1.1 2026/02/07 20:25:53 chuck Exp $
+
+On MACOSX: Include <math.h> instead of attempting to include
+deprecated <fp.h> (and getting a "fatal error: 'fp.h' file not found" err).
+
+--- libs/png/pngconf.h.orig 2026-02-07 19:53:11.137655172 +0000
++++ libs/png/pngconf.h
+@@ -297,9 +297,9 @@
+
+ /* Try to determine if we are compiling on a Mac. Note that testing for
+ * just __MWERKS__ is not good enough, because the Codewarrior is now used
+- * on non-Mac platforms.
++ * on non-Mac platforms. Not necessary on MACOSX.
+ */
+-#ifndef MACOS
++#if !defined(MACOS) && !defined(MACOSX)
+ # if (defined(__MWERKS__) && defined(macintosh)) || defined(applec) || \
+ defined(THINK_C) || defined(__SC__) || defined(TARGET_OS_MAC)
+ # define MACOS
Home |
Main Index |
Thread Index |
Old Index