bin/114200: [patch] 'make NO_INSTALLLIB=1 installworld' fails in usr.bin/lex/lib

Henrik Brix Andersen henrik at brixandersen.dk
Sun Jul 1 23:20:05 UTC 2007


>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 at 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:


More information about the freebsd-bugs mailing list