NetBSD Problem Report #45274
From www@NetBSD.org Fri Aug 19 13:49:29 2011
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 7573263CBA1
for <gnats-bugs@gnats.NetBSD.org>; Fri, 19 Aug 2011 13:49:29 +0000 (UTC)
Message-Id: <20110819134928.D098563B89A@www.NetBSD.org>
Date: Fri, 19 Aug 2011 13:49:28 +0000 (UTC)
From: emmanuel@libera.cc
Reply-To: emmanuel@libera.cc
To: gnats-bugs@NetBSD.org
Subject: mk/platform/Linux.mk _OPSYS_MAX_CMDLEN_CMD fix
X-Send-Pr-Version: www-1.0
>Number: 45274
>Category: pkg
>Synopsis: mk/platform/Linux.mk _OPSYS_MAX_CMDLEN_CMD fix
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: cheusov
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Aug 19 13:50:01 +0000 2011
>Closed-Date: Mon Aug 22 15:21:43 +0000 2011
>Last-Modified: Mon Aug 22 15:21:43 +0000 2011
>Originator: Emmanuel Kasper
>Release:
>Organization:
ouam
>Environment:
Linux leonard 2.6.32-5-amd64 #1 SMP Tue Jun 14 09:42:28 UTC 2011 x86_64 GNU/Linux
>Description:
While having a look at how to improve pkgsrc on my linux computers, I noticed the following in mk/platform/Linux.mk
# FIXME: Adjust to work on this system and enable the lines below.
#_OPSYS_MAX_CMDLEN_CMD= /sbin/sysctl -n kern.argmax
On Linux and ( So far I have understood, any POSIX platform ) the proper way to get this to use
/usr/bin/getconf ARG_MAX
( see http://pubs.opengroup.org/onlinepubs/007908799/xcu/getconf.html "operands" and http://pubs.opengroup.org/onlinepubs/007908799/xsh/sysconf.html )
I bootstrap pkgsrc and built editors/nano on Linux with the following patch and it all went fine !
>How-To-Repeat:
>Fix:
--- Linux.mk.orig 2011-08-19 15:08:46.000000000 +0200
+++ Linux.mk 2011-08-19 15:19:05.000000000 +0200
@@ -94,8 +94,7 @@
# check for maximum command line length and set it in configure's environment,
# to avoid a test required by the libtool script that takes forever.
-# FIXME: Adjust to work on this system and enable the lines below.
-#_OPSYS_MAX_CMDLEN_CMD= /sbin/sysctl -n kern.argmax
+_OPSYS_MAX_CMDLEN_CMD= /usr/bin/getconf ARG_MAX
.if (${MACHINE_ARCH} == "x86_64")
ABI?= 64
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->linux-pkg-people
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Sat, 20 Aug 2011 09:13:39 +0000
Responsible-Changed-Why:
Linux pkgsrc problem
Responsible-Changed-From-To: linux-pkg-people->cheusov
Responsible-Changed-By: cheusov@NetBSD.org
Responsible-Changed-When: Mon, 22 Aug 2011 14:02:26 +0000
Responsible-Changed-Why:
I'll work on it
From: "Aleksey Cheusov" <cheusov@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/45274 CVS commit: pkgsrc/mk/platform
Date: Mon, 22 Aug 2011 15:17:53 +0000
Module Name: pkgsrc
Committed By: cheusov
Date: Mon Aug 22 15:17:53 UTC 2011
Modified Files:
pkgsrc/mk/platform: Linux.mk
Log Message:
Pass a maximum command line length to "configure" script on Linux.
PR 45274 by Emmanuel Kasper
To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 pkgsrc/mk/platform/Linux.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: cheusov@NetBSD.org
State-Changed-When: Mon, 22 Aug 2011 15:21:43 +0000
State-Changed-Why:
I've just commited a bit different patch. Thanks!
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.