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:    bsiegert
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Aug 05 13:35:00 +0000 2018
>Closed-Date:    Sat Sep 01 20:36:12 +0000 2018
>Last-Modified:  Sat Sep 01 20:40:01 +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--

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->bsiegert
Responsible-Changed-By: bsiegert@NetBSD.org
Responsible-Changed-When: Sat, 01 Sep 2018 20:36:12 +0000
Responsible-Changed-Why:
take


State-Changed-From-To: open->closed
State-Changed-By: bsiegert@NetBSD.org
State-Changed-When: Sat, 01 Sep 2018 20:36:12 +0000
State-Changed-Why:

Patch applied, thank you!


From: "Benny Siegert" <bsiegert@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/53501 CVS commit: pkgsrc/devel/astyle
Date: Sat, 1 Sep 2018 20:35:22 +0000

 Module Name:	pkgsrc
 Committed By:	bsiegert
 Date:		Sat Sep  1 20:35:22 UTC 2018

 Modified Files:
 	pkgsrc/devel/astyle: distinfo
 Added Files:
 	pkgsrc/devel/astyle/patches: patch-src_astyle__main.cpp

 Log Message:
 Fix astyle build on NetBSD-8.

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


 To generate a diff of this commit:
 cvs rdiff -u -r1.17 -r1.18 pkgsrc/devel/astyle/distinfo
 cvs rdiff -u -r0 -r1.4 pkgsrc/devel/astyle/patches/patch-src_astyle__main.cpp

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

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