NetBSD Problem Report #53732
From www@NetBSD.org Sun Nov 18 17:21:22 2018
Return-Path: <www@NetBSD.org>
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 8EF417A16B
for <gnats-bugs@gnats.NetBSD.org>; Sun, 18 Nov 2018 17:21:22 +0000 (UTC)
Message-Id: <20181118172121.66BC67A1D7@mollari.NetBSD.org>
Date: Sun, 18 Nov 2018 17:21:21 +0000 (UTC)
From: js-pkgsrc@heap.zone
Reply-To: js-pkgsrc@heap.zone
To: gnats-bugs@NetBSD.org
Subject: [PATCH] sysutils/mc does not build on mc
X-Send-Pr-Version: www-1.0
>Number: 53732
>Category: pkg
>Synopsis: [PATCH] sysutils/mc does not build on mc
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: macos-pkg-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Nov 18 17:25:00 +0000 2018
>Closed-Date: Tue Nov 20 08:09:02 +0000 2018
>Last-Modified: Tue Nov 20 16:15:00 +0000 2018
>Originator: Jonathan Schleifer
>Release: HEAD
>Organization:
>Environment:
macOS Mojave
>Description:
sysutils/mc does not build on macOS.
>How-To-Repeat:
Try to build sysutils/mc on macOS
>Fix:
commit 581b7caefa695a5989f75e6251a9c95158364fe7
Author: Jonathan Schleifer <js@heap.zone>
Date: Sat Oct 6 14:41:59 2018 +0200
Fix mc build on Darwin
diff --git a/sysutils/mc/Makefile b/sysutils/mc/Makefile
index 47cfc623e33..b492fd6e8d6 100644
--- a/sysutils/mc/Makefile
+++ b/sysutils/mc/Makefile
@@ -35,6 +35,9 @@ PLIST_SRC+= ${PKGDIR}/PLIST.cons.saver
CONFIGURE_ARGS+= --without-ext2undel
CONFIGURE_ARGS+= --without-gpm-mouse
CONFIGURE_ARGS+= UNZIP=${TOOLS_PATH.unzip} ZIP=${TOOLS_PATH.zip}
+.if ${OPSYS} == "Darwin"
+CONFIGURE_ARGS+= ac_cv_func_utimensat=no
+.endif
PLIST_SRC+= ${PKGDIR}/PLIST
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->macos-pkg-people
Responsible-Changed-By: leot@NetBSD.org
Responsible-Changed-When: Sun, 18 Nov 2018 18:00:21 +0000
Responsible-Changed-Why:
macOS problem
State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Tue, 20 Nov 2018 08:09:02 +0000
State-Changed-Why:
Thanks for the patch. I suspect you do have a utimensat function. autoconf tested that there is a symbol by that name. The definition might be guarded under some macro.
From: "Maya Rashish" <maya@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/53732 CVS commit: pkgsrc/sysutils/mc
Date: Tue, 20 Nov 2018 08:04:59 +0000
Module Name: pkgsrc
Committed By: maya
Date: Tue Nov 20 08:04:59 UTC 2018
Modified Files:
pkgsrc/sysutils/mc: Makefile
Log Message:
mc: force fail utimensat configure test for Darwin.
Apparently it's mis-detected on (newer) macOS.
From Jonathan Schleifer in PR pkg/53732
To generate a diff of this commit:
cvs rdiff -u -r1.111 -r1.112 pkgsrc/sysutils/mc/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Joerg Sonnenberger <joerg@bec.de>
To: gnats-bugs@NetBSD.org
Cc: macos-pkg-people@netbsd.org, gnats-admin@netbsd.org,
pkgsrc-bugs@netbsd.org, js-pkgsrc@heap.zone
Subject: Re: PR/53732 CVS commit: pkgsrc/sysutils/mc
Date: Tue, 20 Nov 2018 17:11:33 +0100
On Tue, Nov 20, 2018 at 08:10:01AM +0000, Maya Rashish wrote:
> The following reply was made to PR pkg/53732; it has been noted by GNATS.
>
> From: "Maya Rashish" <maya@netbsd.org>
> To: gnats-bugs@gnats.NetBSD.org
> Cc:
> Subject: PR/53732 CVS commit: pkgsrc/sysutils/mc
> Date: Tue, 20 Nov 2018 08:04:59 +0000
>
> Module Name: pkgsrc
> Committed By: maya
> Date: Tue Nov 20 08:04:59 UTC 2018
>
> Modified Files:
> pkgsrc/sysutils/mc: Makefile
>
> Log Message:
> mc: force fail utimensat configure test for Darwin.
> Apparently it's mis-detected on (newer) macOS.
>
> From Jonathan Schleifer in PR pkg/53732
Well, it would be much better to first figure out why it was misdetected
in first place...
Joerg
>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.