Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Jul 2006 06:23:15 +0200
From:      Oliver Lehmann <lehmann@ans-netz.de>
To:        tinderbox-list@marcuscom.com
Cc:        ports@freebsd.org, linimon@freebsd.org
Subject:   error in bsd.port.mk? - gcc34 compilation
Message-ID:  <20060712062315.aeeb70c2.lehmann@ans-netz.de>

next in thread | raw e-mail | index | archive | help
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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060712062315.aeeb70c2.lehmann>