From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Jul 28 13:10:18 2003 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ACC3C37B401 for ; Mon, 28 Jul 2003 13:10:18 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D0A9A43FDD for ; Mon, 28 Jul 2003 13:10:09 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h6SKA9Up006117 for ; Mon, 28 Jul 2003 13:10:09 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h6SKA9aN006116; Mon, 28 Jul 2003 13:10:09 -0700 (PDT) Resent-Date: Mon, 28 Jul 2003 13:10:09 -0700 (PDT) Resent-Message-Id: <200307282010.h6SKA9aN006116@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Mark Linimon Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5F34337B404; Mon, 28 Jul 2003 13:09:21 -0700 (PDT) Received: from mail.soaustin.net (mail.soaustin.net [207.200.4.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 69E7343FB1; Mon, 28 Jul 2003 13:09:19 -0700 (PDT) (envelope-from linimon@lonesome.com) Received: from lonesome.lonesome.com (cs242746-11.austin.rr.com [24.27.46.11]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by mail.soaustin.net (Postfix) with ESMTP id 26141142DC; Mon, 28 Jul 2003 15:09:18 -0500 (CDT) Received: from lonesome.lonesome.com (localhost.lonesome.com [127.0.0.1]) by lonesome.lonesome.com (8.12.9/8.12.9) with ESMTP id h6SJdkWZ021950; Mon, 28 Jul 2003 14:39:49 -0500 (CDT) (envelope-from linimon@lonesome.lonesome.com) Received: (from linimon@localhost) by lonesome.lonesome.com (8.12.9/8.12.9/Submit) id h6SJdjiP021949; Mon, 28 Jul 2003 14:39:45 -0500 (CDT) Message-Id: <200307281939.h6SJdjiP021949@lonesome.lonesome.com> Date: Mon, 28 Jul 2003 14:39:45 -0500 (CDT) From: Mark Linimon To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113.1 cc: dinoex@FreeBSD.org Subject: ports/54988: [non-maintainer] usage of NO_DESCRIBE build variable breaks 'make index' for non-root X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jul 2003 20:10:19 -0000 >Number: 54988 >Category: ports >Synopsis: [non-maintainer] usage of NO_DESCRIBE build variable breaks 'make index' for non-root >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jul 28 13:10:09 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Mark Linimon >Release: FreeBSD- >Organization: FreeBSD >Environment: System: FreeBSD lonesome.lonesome.com 4.8-STABLE FreeBSD 4.8-STABLE #1: Sun Jul 13 23:03:01 CDT 2003 root@lonesome.lonesome.com:/usr/src/sys/compile/MULTIMEDIA i386 >Description: Recently several people have reported the inability to run an overall ports 'make index' under certain conditions. I have isolated the conditions: 1) you must not be running as root; 2) you must not have previously either done 'make index' as root, or installed the 2 offending ports as root. (Note: to understand the following, you must understand that 'cd /usr/ports; make index' descends into each port directory and there does a 'make describe'. The error is in the two individual 'make describe' repsonses.) >How-To-Repeat: (with system meeting above conditions, and as non-root): either cd /usr/ports/net/bind9-dlz; make describe, or cd /usr/ports/net/powerdns; make describe. >Fix: The underlying problem is that the ports are attempting to create the (auxiliary) Makefile.inc file to hold user preferences even when just being asked to output information via 'make describe'. I do not understand what the following logic is attempting to do, so I can't offer a solution, but IMHO it must not assume that it can create Makefile.inc if it is not already created -- at least for the purposes of running 'make describe'. (NB: the underlying logic in the two ports is the same). # use user config if possible .if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc) .include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc" .else .if defined(BATCH) # default package, can be configured in /etc/make.conf BINDDLZ_OPTIONS?= \"OpenSSL\" \"PostgreSQL\" \"FileSystem\" .endif # make INDEX match NO_DESCRIBE=yes .endif [ ... elided for clarity ...] .if defined(NO_DESCRIBE) describe: .if defined(BATCH) @ ${SETENV} ${SCRIPTS_ENV} ${SH} ${FILESDIR}/configure.bind9-dlz .endif @cd ${.CURDIR} && ${MAKE} ${__softMAKEFLAGS} BATCH=yes ${.TARGET} .endif >Release-Note: >Audit-Trail: >Unformatted: