error in bsd.port.mk? - gcc34 compilation

Erwin Lansing erwin at FreeBSD.org
Wed Jul 12 06:56:32 UTC 2006


On Wed, Jul 12, 2006 at 06:23:15AM +0200, Oliver Lehmann wrote:
> 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:
> 
[snip]

This is an error in b.p.m the following patch is currently being tested
on pointyhat:

Index: bsd.port.mk
===================================================================
RCS file: /sw/FreeBSD/CVSUP/ports/Mk/bsd.port.mk,v
retrieving revision 1.537
diff -u -3 -p -r1.537 bsd.port.mk
--- bsd.port.mk	6 Jul 2006 17:56:45 -0000	1.537
+++ bsd.port.mk	8 Jul 2006 20:26:50 -0000
@@ -3690,7 +3690,7 @@ install-ldconfig-file:
 .if ${USE_LDCONFIG:L} != "${PREFIX}/lib"
 	@${ECHO_MSG} "===>   Installing ldconfig configuration file"
 .if defined(NO_LDCONFIG_MTREE)
-	@${MKDIR} ${LDCONFIG_DIR}
+	@${MKDIR} ${PREFIX}/${LDCONFIG_DIR}
 .endif
 	@${ECHO_CMD} ${USE_LDCONFIG} | ${TR} ' ' '\n' \
 		> ${PREFIX}/${LDCONFIG_DIR}/${UNIQUENAME}


-erwin

-- 
Erwin Lansing                                     http://droso.org
Security is like an onion.          (o_ _o)
It's made up of several layers   \\\_\   /_///
And it makes you cry.            <____) (____>    erwin at lansing.dk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20060712/7f4f8b67/attachment.pgp


More information about the freebsd-ports mailing list