pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/astyle Fix astyle build on NetBSD-8.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0faaeb7c25c9
branches:  trunk
changeset: 312319:0faaeb7c25c9
user:      bsiegert <bsiegert%pkgsrc.org@localhost>
date:      Sat Sep 01 20:35:22 2018 +0000

description:
Fix astyle build on NetBSD-8.

Add an include for limits.h, covering PATH_MAX. From Rhialto in PR pkg/53501.

diffstat:

 devel/astyle/distinfo                           |   3 ++-
 devel/astyle/patches/patch-src_astyle__main.cpp |  14 ++++++++++++++
 2 files changed, 16 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r 8f4ce268da90 -r 0faaeb7c25c9 devel/astyle/distinfo
--- a/devel/astyle/distinfo     Sat Sep 01 19:10:10 2018 +0000
+++ b/devel/astyle/distinfo     Sat Sep 01 20:35:22 2018 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.17 2018/03/17 17:16:59 schmonz Exp $
+$NetBSD: distinfo,v 1.18 2018/09/01 20:35:22 bsiegert Exp $
 
 SHA1 (astyle_3.1_linux.tar.gz) = 84814b8bb4e52489687f2bce3c2d57ce7d3dcebe
 RMD160 (astyle_3.1_linux.tar.gz) = a8225fc99f11d681eeef55e1d812fe9a88d13685
 SHA512 (astyle_3.1_linux.tar.gz) = 2e8f13d291abda66bbba30174c364c81a81a490e0a21376f7da7cf471644c22caa37b9eefb100d093bf26d1a8bfa9d2f14b4c2a9b75b3cb84428b4514e277ff2
 Size (astyle_3.1_linux.tar.gz) = 185589 bytes
 SHA1 (patch-build_mac_Makefile) = ac8b4f69ec2b2f2cb3c87db140c2783b24009e2c
+SHA1 (patch-src_astyle__main.cpp) = 443deb0b27e88f0c3002929aa8a6c5ae23c4ad79
diff -r 8f4ce268da90 -r 0faaeb7c25c9 devel/astyle/patches/patch-src_astyle__main.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/astyle/patches/patch-src_astyle__main.cpp   Sat Sep 01 20:35:22 2018 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_astyle__main.cpp,v 1.4 2018/09/01 20:35:22 bsiegert Exp $
+
+PATH_MAX is no longer defined in whatever header files were already included.
+
+--- src/astyle_main.cpp.orig   2018-01-11 17:18:19.000000000 +0000
++++ src/astyle_main.cpp
+@@ -50,6 +50,7 @@
+       #include <dirent.h>
+       #include <unistd.h>
+       #include <sys/stat.h>
++      #include <limits.h>     // for PATH_MAX
+       #ifdef __VMS
+               #include <unixlib.h>
+               #include <rms.h>



Home | Main Index | Thread Index | Old Index