Skip site navigation (1)Skip section navigation (2)
Date:      Mon,  2 Jul 2007 01:14:54 +0200 (CEST)
From:      Henrik Brix Andersen <henrik@brixandersen.dk>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/114200: [patch] 'make NO_INSTALLLIB=1 installworld' fails in usr.bin/lex/lib
Message-ID:  <20070701231454.8ED751142D@lothlorien.brixandersen.dk>
Resent-Message-ID: <200707012320.l61NK5ee008151@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         114200
>Category:       bin
>Synopsis:       [patch] 'make NO_INSTALLLIB=1 installworld' fails in usr.bin/lex/lib
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 01 23:20:04 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Henrik Brix Andersen
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
pil.dk
>Environment:
System: FreeBSD lothlorien.brixandersen.dk 7.0-CURRENT FreeBSD 7.0-CURRENT #47: Sun Jul 1 22:08:49 CEST 2007 root@lothlorien.brixandersen.dk:/usr/obj/usr/src/sys/LOTHLORIEN i386


	
>Description:

With a fresh -current, 'make NO_INSTALLLIB=1 installworld' fails in
usr.bin/lex/lib with the following error:

===> usr.bin/lex/lib (install)
/usr/obj/nanobsd.osgiliath//_.w/usr/lib/libl.a -> /usr/obj/nanobsd.osgiliath//_.w/usr/lib/libln.a
ln: /usr/obj/nanobsd.osgiliath//_.w/usr/lib/libln.a: No such file or directory
*** Error code 1
1 error
*** Error code 2
1 error
*** Error code 2
1 error
*** Error code 2
1 error
*** Error code 2
1 error
*** Error code 2
1 error
*** Error code 2
1 error


	
>How-To-Repeat:

make NO_INSTALLLIB=1 installworld

	
>Fix:
The patch below fixes this issue by only attempting to create the
links if NO_INSTALLLIB isn't specified.

	

--- lex.diff begins here ---
--- usr.bin/lex/lib/Makefile.orig	2007-07-02 00:47:03.000000000 +0200
+++ usr.bin/lex/lib/Makefile	2007-07-02 00:49:36.000000000 +0200
@@ -6,8 +6,10 @@
 SRCS=   libmain.c libyywrap.c
 NO_PIC=
 
+.if !defined(NO_INSTALLLIB)
 LINKS=  ${LIBDIR}/libln.a ${LIBDIR}/libl.a
 LINKS+=	${LIBDIR}/libln.a ${LIBDIR}/libfl.a
+.endif
 
 .if ${MK_PROFILE} != "no"
 LINKS+= ${LIBDIR}/libln_p.a ${LIBDIR}/libl_p.a
--- lex.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



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