From owner-freebsd-ports Mon Sep 16 9: 0:16 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6CBF637B401 for ; Mon, 16 Sep 2002 09:00:13 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id BAF0A43E77 for ; Mon, 16 Sep 2002 09:00:12 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g8GG0CJU064713 for ; Mon, 16 Sep 2002 09:00:12 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g8GG0C1b064712; Mon, 16 Sep 2002 09:00:12 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AF8B637B401 for ; Mon, 16 Sep 2002 08:57:04 -0700 (PDT) Received: from mta01-svc.ntlworld.com (mta01-svc.ntlworld.com [62.253.162.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C64643E72 for ; Mon, 16 Sep 2002 08:56:58 -0700 (PDT) (envelope-from freaky@voi.aagh.net) Received: from voi.aagh.net ([213.105.22.20]) by mta01-svc.ntlworld.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020916155656.MOIA292.mta01-svc.ntlworld.com@voi.aagh.net> for ; Mon, 16 Sep 2002 16:56:56 +0100 Received: from freaky by voi.aagh.net with local (Exim 4.10) id 17qyF6-000BGN-00 for FreeBSD-gnats-submit@freebsd.org; Mon, 16 Sep 2002 16:56:56 +0100 Message-Id: Date: Mon, 16 Sep 2002 16:56:56 +0100 From: Thomas Hurst Reply-To: Thomas Hurst To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/42843: www/links needs LDFLAGS/CPPFLAGS setting for LOCALBASE cleanliness Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 42843 >Category: ports >Synopsis: www/links needs LDFLAGS/CPPFLAGS setting for LOCALBASE cleanliness >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Sep 16 09:00:11 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Thomas Hurst >Release: FreeBSD 4.6-STABLE i386 >Organization: None >Environment: System: FreeBSD voi.freak.lan 4.6-STABLE FreeBSD 4.6-STABLE #0: Thu Aug 1 14:48:39 BST 2002 root@voi.freak.lan:/usr/obj/usr/src/sys/VOI i386 >Description: www/links configure has a hardcoded check for /usr/local added to LD/CPPFLAGS. This is fine for most systems, but with a modified LOCALBASE it obviously doesn't work, since bsd.ports.mk and friends do not set it beforehand. >How-To-Repeat: Install some libs it needs to LOCALBASE!=/usr/local, try to compile. >Fix: This quickfix allows it to compile properly: --- Makefile~ Sat Aug 31 13:58:08 2002 +++ Makefile Mon Sep 16 16:46:42 2002 @@ -27,6 +27,7 @@ jpeg.9:${PORTSDIR}/graphics/jpeg \ tiff.4:${PORTSDIR}/graphics/tiff USE_XLIB= yes +CONFIGURE_ENV+= CPPFLAGS='-I${LOCALBASE}/include' LDFLAGS='-L${LOCALBASE}/lib' CONFIGURE_ARGS+= --enable-graphics --with-x .endif A better fix may be to set them in bsd.ports.mk, ala NetBSD bsd.pkg.mk. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message