From owner-freebsd-questions@freebsd.org Sun Apr 22 04:45:39 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 97304F89A5F for ; Sun, 22 Apr 2018 04:45:39 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from nightmare.dreamchaser.org (ns.dreamchaser.org [66.109.141.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "dreamchaser.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2173375A16 for ; Sun, 22 Apr 2018 04:45:38 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from breakaway.dreamchaser.org (breakaway [192.168.151.122]) by nightmare.dreamchaser.org (8.15.2/8.15.2) with ESMTP id w3M4jZsl050107 for ; Sat, 21 Apr 2018 22:45:36 -0600 (MDT) (envelope-from freebsd@dreamchaser.org) To: FreeBSD Mailing List From: Gary Aitken Subject: recommended setup for building ports in development env? Reply-To: freebsd@dreamchaser.org Message-ID: <8ce8063a-c43c-8dd1-0374-55751369642a@dreamchaser.org> Date: Sat, 21 Apr 2018 22:44:55 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (nightmare.dreamchaser.org [192.168.151.101]); Sat, 21 Apr 2018 22:45:36 -0600 (MDT) 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: Sun, 22 Apr 2018 04:45:39 -0000 May be better to ask this on ports but thought I would check here first. 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, Gary