From owner-freebsd-ports@FreeBSD.ORG Wed Jul 12 04:22:24 2006 Return-Path: X-Original-To: ports@freebsd.org 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 A3DC816A4E5 for ; Wed, 12 Jul 2006 04:22:24 +0000 (UTC) (envelope-from lehmann@ans-netz.de) Received: from avocado.salatschuessel.net (avocado.salatschuessel.net [83.136.81.184]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9BDF443D49 for ; Wed, 12 Jul 2006 04:22:23 +0000 (GMT) (envelope-from lehmann@ans-netz.de) Received: (qmail 41593 invoked by uid 89); 12 Jul 2006 04:22:21 -0000 Received: from unknown (HELO kartoffel.salatschuessel.net) (83.136.81.185) by avocado.salatschuessel.net with SMTP; 12 Jul 2006 04:22:21 -0000 Date: Wed, 12 Jul 2006 06:23:15 +0200 From: Oliver Lehmann To: tinderbox-list@marcuscom.com Message-Id: <20060712062315.aeeb70c2.lehmann@ans-netz.de> X-Mailer: Sylpheed version 2.2.6 (GTK+ 2.8.20; amd64-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: ports@freebsd.org, linimon@freebsd.org Subject: error in bsd.port.mk? - gcc34 compilation X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jul 2006 04:22:24 -0000 Hi, I tried to compile gcc34 on my FreeBSD 4 tinderbox and got: ===> Running ldconfig /sbin/ldconfig -m /usr/local/lib/gcc/i386-portbld-freebsd4.11/3.4.6 ===> Installing ldconfig configuration file mkdir: libdata: Read-only file system *** Error code 1 For those who don't know tinderbox: the portstree gets mounted readonly. For me it looks like it tries to create the libdata-dir in the portstree because in bsd.port.mk you can read: [...] LDCONFIG_DIR= libdata/ldconfig [...] .if defined(USE_LDCONFIG) || defined(USE_LDCONFIG32) .if ( ${OSVERSION} < 504105 ) || \ ( ${OSVERSION} >= 700000 && ${OSVERSION} < 700012 ) || \ ( ${OSVERSION} >= 600000 && ${OSVERSION} < 600104 ) RUN_DEPENDS+= ${LOCALBASE}/${LDCONFIG_DIR}:${PORTSDIR}/misc/ldconfig_compat NO_LDCONFIG_MTREE= yes .endif [...] .if ${USE_LDCONFIG:L} != "${PREFIX}/lib" @${ECHO_MSG} "===> Installing ldconfig configuration file" .if defined(NO_LDCONFIG_MTREE) @${MKDIR} ${LDCONFIG_DIR} .endif Where is the cd to ${LOCALBASE} or the prefixing of LDCONFIG_DIR with ${LOCALBASE} for creating the dir like it is done for RUN_DEPENDS? /bin/mkdir -p libdata/ldconfig doesn't sound right. $FreeBSD: ports/Mk/bsd.port.mk,v 1.536 2006/07/05 02:18:08 linimon Exp $ -- Oliver Lehmann http://www.pofo.de/ http://wishlist.ans-netz.de/