From owner-freebsd-hackers@freebsd.org Wed Mar 28 05:51:04 2018 Return-Path: Delivered-To: freebsd-hackers@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 EC305F5EC52 for ; Wed, 28 Mar 2018 05:51:03 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.116.210]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7FC9076FD4; Wed, 28 Mar 2018 05:51:03 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from bach.cs.huji.ac.il ([132.65.80.20]) by kabab.cs.huji.ac.il with esmtp id 1f13z5-0000vw-2R; Wed, 28 Mar 2018 08:50:55 +0300 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Subject: Re: how to add local changes to buildworld? From: Daniel Braniss In-Reply-To: <1522169225.49673.36.camel@freebsd.org> Date: Wed, 28 Mar 2018 08:50:54 +0300 Cc: freebsd-hackers@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <539E3F8D-8275-4904-8D19-8FB31C05787C@cs.huji.ac.il> References: <1522169225.49673.36.camel@freebsd.org> To: Ian Lepore X-Mailer: Apple Mail (2.3445.5.20) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Mar 2018 05:51:04 -0000 > On 27 Mar 2018, at 19:47, Ian Lepore wrote: >=20 > On Tue, 2018-03-27 at 19:20 +0300, Daniel Braniss wrote: >> Hi, >> I have some local additions which int the past, after making changes >> to some Makefiles, etc, I got them compiled >> but somehow, things stopped working after 11, so I=E2=80=99m now = trying to do >> a fresh set of patches, >> and was wondering if there is some docs around on how to to this >> cleanly? trying to figure out the *.mk is becoming a bit complicated. >> thanks, >> danny >>=20 >=20 > If you're asking what I think (you want to add code of your own into > the buildworld), just add LOCAL_DIRS=3D"path/to/dir1 path/to/dir2" to = the > buildworld command line and it will visit your directories and run the > same targets there as for standard freebsd dirs (so your makefiles = have > to have those targets, mostly easily accomplished by including the > usual bsd..mk where foo=3Dprog|lib|subdir|whatever. >=20 > The local dir paths in LOCAL_DIRS must be relative to the top-level > freebsd source dir, you can't use absolute paths (but you can use > relative paths that take you outside the freebsd path, I think, like > ../mysources/project1). >=20 > -- Ian >=20 I guess in my haste I was not clear enough :-) my problem is the dependency, in particular, it=E2=80=99s a pam module, that needs a local library. in = the past the library was compiled first, and then the module, now it still happens, but the module does not find the library, which = has been compiled! there is a new piece of mail that i=E2=80=99m missing :-(=20 i=E2=80=99ll try again with LOCAL_DIRS. thanks danny