From owner-freebsd-questions@freebsd.org Wed Apr 25 08:56:00 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ED171FC06EC for ; Wed, 25 Apr 2018 08:55:59 +0000 (UTC) (envelope-from tijl@freebsd.org) Received: from mailrelay111.isp.belgacom.be (mailrelay111.isp.belgacom.be [195.238.20.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "relay.skynet.be", Issuer "GlobalSign Organization Validation CA - SHA256 - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 551456C7ED for ; Wed, 25 Apr 2018 08:55:58 +0000 (UTC) (envelope-from tijl@freebsd.org) X-Belgacom-Dynamic: yes IronPort-PHdr: =?us-ascii?q?9a23=3A6nPCAxAzX/jbHzFj+XWVUyQJP3N1i/DPJgcQr6Af?= =?us-ascii?q?oPdwSPv+psbcNUDSrc9gkEXOFd2Cra4c0KyO6+jJYi8p2d65qncMcZhBBVcuqP?= =?us-ascii?q?49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL1LdrWev4jEMBx7xKRR6?= =?us-ascii?q?JvjvGo7Vks+7y/2+94fcbglUijexe69+IAmrpgjNq8cahpdvJLwswRXTuHtIfO?= =?us-ascii?q?pWxWJsJV2Nmhv3+9m98p1+/SlOovwt78FPX7n0cKQ+VrxYES8pM3sp683xtBnM?= =?us-ascii?q?VhWA630BWWgLiBVIAgzF7BbnXpfttybxq+Rw1DWGMcDwULs5Xymp4aV2Rx/ykC?= =?us-ascii?q?oJOT43/n/KhMJzjq1brh2uqABwzYPPfIGYNuZycr/Bcd8GW2ZMWNtaWSxbAoO7?= =?us-ascii?q?aosCF/QPPedar4n5ulADsxy+BQ63BOzxzz9HnHn23bYn2OkmDQHG3Q4gH9YVvX?= =?us-ascii?q?rUttX6KrkdXP2owqfG1znDaOlW2Tjk5YXObxsvoumMUKpzfMbM00UjCQzIgkiK?= =?us-ascii?q?pYD7Iz+ZyP4Bv3Wb4uduU++klnQppBtroje1w8chkozJhoUIxV/a7Sh524M1Jc?= =?us-ascii?q?GgSE58fN6kDINctyGEOItyRcMvW2Jotzw+yr0HvJ60YjIKyJM9yx7DavyHcYyI?= =?us-ascii?q?7gj/W+aWJjd4n2xqeLeliBa06kis0Or8VtO70FpSrypFlMfDtmwV2hHQ98SLUO?= =?us-ascii?q?Vx80i81TqVyQzf9v9ILVopmafbJZMt2rswmYASsUTHEC/2gkL2jKqOe0U4++io?= =?us-ascii?q?6eDnb67opp+GKYB7lBrxMr8zlcClBuQ4KAcOU3CB+eugzL3j4VH5QLJSg/04iK?= =?us-ascii?q?nWro7VKt8ApqGkGgNVy5sj5AikDze60dQYmn8HLEledRKJlYjmJU/BL+vjDfii?= =?us-ascii?q?mVisly1rx/+VdoHmV7rENGmLubb9frt7oxpS0gc+x8tTz55OB7gEK/L6QULr8t?= =?us-ascii?q?vCAUlqHRazxrPbCdd5nqgZXnmCB6afK+uGrV6K4soBOeSBTrQ5/jHnJK52tLbV?= =?us-ascii?q?kXYllApFLuGS1pwNZSXgEw=3D=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2C2DwCRQeBa/5nK8VFbHAEBAQQBAQoBA?= =?us-ascii?q?YNDUw56KIxKjB4BAYFzMQFdlQUmhFECgwIiOBQBAgEBAQEBAQIBaxwMgjUigkw?= =?us-ascii?q?BBTocIxALDgoJJQ8qHgYTG4R4qSWIRYI/ih+EGopHAodVkCwIhV6IWWiLc5FaM?= =?us-ascii?q?yGBUk0wCIJ+CYxkg2M9MJBQAQE?= X-IPAS-Result: =?us-ascii?q?A2C2DwCRQeBa/5nK8VFbHAEBAQQBAQoBAYNDUw56KIxKjB4?= =?us-ascii?q?BAYFzMQFdlQUmhFECgwIiOBQBAgEBAQEBAQIBaxwMgjUigkwBBTocIxALDgoJJ?= =?us-ascii?q?Q8qHgYTG4R4qSWIRYI/ih+EGopHAodVkCwIhV6IWWiLc5FaMyGBUk0wCIJ+CYx?= =?us-ascii?q?kg2M9MJBQAQE?= Received: from 153.202-241-81.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([81.241.202.153]) by relay.skynet.be with ESMTP; 25 Apr 2018 10:54:48 +0200 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.15.2/8.15.2) with ESMTP id w3P8slVr010686; Wed, 25 Apr 2018 10:54:48 +0200 (CEST) (envelope-from tijl@FreeBSD.org) Date: Wed, 25 Apr 2018 10:54:47 +0200 From: Tijl Coosemans To: Gary Aitken Cc: FreeBSD Mailing List Subject: Re: recommended setup for building ports in development env? Message-ID: <20180425105447.7d69d2b9@kalimero.tijl.coosemans.org> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Apr 2018 08:56:00 -0000 On Tue, 24 Apr 2018 19:18:50 -0600 Gary Aitken wrote: > Asked this on questions a while ago and got no response; > any thoughts would be much appreciated. > > I'm trying to set up a development environment for a few ports. > I established a parallel ports tree and set the environment variables > PREFIX=${MYFREEBSD}/usr/local > WORKDIR=${MYFREEBSD}/var/db/portsnap > PORTSDIR=${MYFREEBSD}/usr/ports > > With those set, I can build and install some things. > > For example, I can build and install graphics/ufraw, and with my PATH > properly extended to include ${MYFREEBSD}/usr/local/bin I can execute it. > I can also build and install x11/babl into ${MYFREEBSD}. > Running a normally built gimp finds the new libbabl located in a > different, non-standard place: > $ ldd `which gimp` | grep babl > libbabl-0.1.so.0 => /usr/home/.../usr/local/lib/libbabl-0.1.so.0 > I didn't expect that to work; nice. > > However, when I go to build graphics/gegl it fails because it can't find > the installed babl: > ===> gegl-0.3.34 depends on shared library: libbabl-0.1.so - not found > > If I set > LOCALBASE=${MYFREEBSD}/usr/local > it wants to rebuild all dependencies, since it doesn't find any of the > normally installed stuff. > > Adding > -L${MYFREEBSD}/usr/local/lib to LDFLAGS > -I${MYFREEBSD}/usr/local/include to CPPFLAGS > in the Makefile doesn't solve the problem. > > Is there a good solution to this, or do I have to set LOCALBASE with the > resulting build of everything else, not just the things that I need to > upgrade for this work? Hopefully there's a way to extend the normal > search path for port builds? > > Thanks for any hints, Try setting LIB_DIRS. Its default value is "/lib /usr/lib ${LOCALBASE}/lib".