NetBSD Problem Report #53501

From rhialto@falu.nl  Sun Aug  5 13:34:43 2018
Return-Path: <rhialto@falu.nl>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 6FD8A7A185
	for <gnats-bugs@gnats.NetBSD.org>; Sun,  5 Aug 2018 13:34:43 +0000 (UTC)
Message-Id: <20180805133435.GA17170@falu.nl>
Date: Sun, 5 Aug 2018 15:34:35 +0200
From: Rhialto <rhialto@falu.nl>
Reply-To: Rhialto <rhialto@falu.nl>
To: gnats-bugs@NetBSD.org
Cc: Rhialto <rhialto@falu.nl>
Subject: devel/astyle needs extra patch for PATH_MAX [included]
X-Send-Pr-Version: 3.95

>Number:         53501
>Category:       pkg
>Synopsis:       devel/astyle needs extra patch for PATH_MAX
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Aug 05 13:35:00 +0000 2018
>Originator:     Rhialto
>Release:        NetBSD 8.0
>Organization:
	<organization of PR author (multiple lines)>
>Environment:
System: NetBSD murthe.falu.nl 8.0 NetBSD 8.0 (GENERIC) #0: Tue Jul 17 14:59=
:51 UTC 2018 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GEN=
ERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
	devel/astyle fails to build under 8.0.
>How-To-Repeat:
	cd /usr/pkgsrc/devel/astyle && make
>Fix:

new file patches/patch-astyle_main.cpp:

$NetBSD$

PATH_MAX is no longer defined in whatever header files were already include=
d.

--- 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>

-Olaf.
--=20
___ Olaf 'Rhialto' Seibert  -- Wayland: Those who don't understand X
\X/ rhialto/at/falu.nl      -- are condemned to reinvent it. Poorly.

--45Z9DzgjV8m4Oswq
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEcBAEBAgAGBQJbZvzoAAoJEJmJxkVhw/vTQE8H/2MfHOiU5rJGpp3DFrhVPIOK
otPXrJGjOB3AAZsx2OkWRGWOFNlP+7r2IrXtyZDhbM3GflqDCzPeiDYiTVDFZSaW
skLt6NT98eqR3yX2nzIcNysJ/bXD5G/lejDf0/cy64wIXPkLpcvB+UDPVmNOWfCm
Ky1QBS9MUo997QBciBgPWMHT/zxDX/5JqXIgQqeG8XwhrTynBL6DJwnigQbR36tI
jZnyyiDAj3JOB0A2lL8iVIVwwTy/gpkwL3FkYCil89ATatxVWt/1MlQvp2p37FZ7
xZ2JcW5a30rjLz4SxYqNa+s0q9Q3AhRdgSvNR58J1ubykgmvs4I5E9rdU6vkv8g=
=6JIl
-----END PGP SIGNATURE-----

--45Z9DzgjV8m4Oswq--

>Unformatted:
 --45Z9DzgjV8m4Oswq
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.