From owner-freebsd-ports@FreeBSD.ORG Sun Nov 21 09:16:46 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F2C4516A4CE for ; Sun, 21 Nov 2004 09:16:45 +0000 (GMT) Received: from chilled.skew.org (skew.org [65.101.207.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id C0C8743D53 for ; Sun, 21 Nov 2004 09:16:45 +0000 (GMT) (envelope-from mike@skew.org) Received: from chilled.skew.org (localhost.skew.org [127.0.0.1]) by chilled.skew.org (8.12.11/8.12.11) with ESMTP id iAL9GMi9008025; Sun, 21 Nov 2004 02:16:22 -0700 (MST) (envelope-from mike@chilled.skew.org) Received: (from mike@localhost) by chilled.skew.org (8.12.11/8.12.11/Submit) id iAL9GHTk008021; Sun, 21 Nov 2004 02:16:17 -0700 (MST) (envelope-from mike) From: Mike Brown Message-Id: <200411210916.iAL9GHTk008021@chilled.skew.org> In-Reply-To: <419FEE89.1090004@brooknet.com.au> "from Sam Lawrance at Nov 21, 2004 12:25:29 pm" To: Sam Lawrance Date: Sun, 21 Nov 2004 02:16:17 -0700 (MST) X-Whoa: whoa. X-Mailer: ELM [version 2.4ME+ PL90 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=UTF-8 cc: ports@freebsd.org cc: Mike Brown Subject: Re: bsd.port.Mk error X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Nov 2004 09:16:46 -0000 Sam Lawrance wrote: > Mike Brown wrote: > > >2. I accidentally typed "make" in a directory that did not have a Makefile, > >and got this error: > > > >"/usr/ports/Mk/bsd.port.mk", line 1459: Bad X_WINDOW_SYSTEM setting > > > >I do not have X11 installed on my system. I don't see anything in the Makefile > >that would have resulted in arriving at line 1459. If OSVERSION is being set > >by "/sbin/sysctl -n kern.osreldate" then it is "490102", and AFAIK, > >XFREE86_VERSION is not defined. Therefore around line 1180, X_WINDOW_SYSTEM > >should be set to "xfree86-4", and the elif around line 1424 should kick in. > >But somehow it falls through to the else. > > > >Any ideas? > > > > > There must have been a Makefile in there somewhere, otherwise > bsd.port.mk wouldn't have been included. > You're right, silly me. But anyway, I'm still getting the error, and it seems to be something specific to the port Makefile that I'm developing. Is there anything obviously wrong with the following? # New ports collection makefile for: py-4suite # Date created: 16 March 2000 # Whom: Mike Brown # # $FreeBSD: ports/textproc/py-4suite/Makefile,v 1.13 2004/06/14 06:04:30 perky Exp $ # PORTNAME= 4suite PORTVERSION= 1.0.a4 PORTREVISION= 0 CATEGORIES= textproc www python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= 4Suite-1.0a4 USE_BZIP2= yes WRKSRC= ${WRKDIR}/4Suite MASTER_SITES= ftp://ftp.4suite.org/pub/4Suite/ \ ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= foursuite MAINTAINER= mike@skew.org COMMENT= A collection of Python tools for XML and RDF processing #IGNORE= has a broken pkg-plist that removes dozens of files not installed by this port. #BUILD_DEPENDS= ${PYXML} #RUN_DEPENDS= ${PYXML} #CONFLICTS= #USE_REINPLACE= yes #REINPLACE_ARGS= -i "" -E USE_PYTHON= yes PYTHON_VERSION= 2.2.1+ USE_PYDISTUTILS= yes # not sure what to do about localstatedir PYDISTUTILS_CONFIGARGS= --bindir=${PREFIX}/bin \ --datadir=${PREFIX}/share/4Suite \ --sysconfdir=${PREFIX}/etc/4Suite \ --localstatedir=/var/local/lib/4Suite \ --libdir=${PREFIX}/lib/4Suite \ --docdir=${PREFIX}/share/doc/${PORTNAME} \ --pythonlibdir=${PYTHON_SITELIBDIR} \ --localedir=${PREFIX}/share/locale .if defined(NOPORTDOCS) PYDISTUTILS_BUILDARGS= --without-docs .else PYDISTUTILS_BUILDARGS= --with-docs .endif PYDISTUTILS_INSTALLARGS= -c -O1 .include