From owner-freebsd-bugs@FreeBSD.ORG Sun Jul 1 23:20:05 2007 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9D59316A474 for ; Sun, 1 Jul 2007 23:20:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 7E78013C4BB for ; Sun, 1 Jul 2007 23:20:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l61NK5ZJ008152 for ; Sun, 1 Jul 2007 23:20:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l61NK5ee008151; Sun, 1 Jul 2007 23:20:05 GMT (envelope-from gnats) Resent-Date: Sun, 1 Jul 2007 23:20:05 GMT Resent-Message-Id: <200707012320.l61NK5ee008151@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Henrik Brix Andersen Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E537816A46B for ; Sun, 1 Jul 2007 23:14:56 +0000 (UTC) (envelope-from brix@lothlorien.brixandersen.dk) Received: from solow.pil.dk (relay.pil.dk [195.41.47.164]) by mx1.freebsd.org (Postfix) with ESMTP id B0AA513C469 for ; Sun, 1 Jul 2007 23:14:56 +0000 (UTC) (envelope-from brix@lothlorien.brixandersen.dk) Received: from lothlorien.brixandersen.dk (osgiliath.brixandersen.dk [87.53.223.189]) by solow.pil.dk (Postfix) with ESMTP id 4E1C31CC0E0 for ; Mon, 2 Jul 2007 01:14:55 +0200 (CEST) Received: by lothlorien.brixandersen.dk (Postfix, from userid 1001) id 8ED751142D; Mon, 2 Jul 2007 01:14:54 +0200 (CEST) Message-Id: <20070701231454.8ED751142D@lothlorien.brixandersen.dk> Date: Mon, 2 Jul 2007 01:14:54 +0200 (CEST) From: Henrik Brix Andersen To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: bin/114200: [patch] 'make NO_INSTALLLIB=1 installworld' fails in usr.bin/lex/lib X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Henrik Brix Andersen List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Jul 2007 23:20:05 -0000 >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: