error in bsd.port.mk? - gcc34 compilation

Oliver Lehmann lehmann at ans-netz.de
Wed Jul 12 04:22:24 UTC 2006


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/


More information about the freebsd-ports mailing list