From owner-freebsd-questions@freebsd.org Wed Feb 19 00:03:14 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9E891249903 for ; Wed, 19 Feb 2020 00:03:14 +0000 (UTC) (envelope-from yasu@utahime.org) Received: from gate.utahime.jp (gate.utahime.jp [183.180.29.210]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48MdGS49rrz3yll for ; Wed, 19 Feb 2020 00:03:12 +0000 (UTC) (envelope-from yasu@utahime.org) Received: from eastasia.home.utahime.org (eastasia.home.utahime.org [192.168.174.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by gate.utahime.jp (Postfix) with ESMTPS id AF9A652BF9 for ; Wed, 19 Feb 2020 09:03:08 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=utahime.org; s=maybe2019112701; t=1582070588; bh=brBozCC0GsW0NybUBBfRjAv9fWGw5ZO78yRV0PNbAog=; h=Date:To:Subject:From:In-Reply-To:References; b=RvYZeeNprTl23fxWbyEg8Ulp6dvQTD8l2BaLoaiwgrHx7/jHe5uWW+/vUj4rakbof /IT0cR4nvQ+riv9b6BQNYgaJ96c37xcUwD7TwusEbd5QXeVkOmjrm8AYeiVPDkKaG4 /7eYHI7SjReVSu97Y5ZTG7iGXbexCUoIbCXk9hxLbsVTFeRyuSo0nNyhIoKQt5Hlp/ tvzauZIB8JSr113rczzjWqLLjMvXmwmfPxDeE+zRprDMCy72+JWKbPYPLaVMnD/fdQ kCKoH9uDmgSr8mwJGtIa80ubTuzEM2xsnnEDmbfj1Z2Wlb6+KfasgJX5QRYrUBKpdU +wJXIsDSvHtTQ== Received: from localhost (rolling.home.utahime.org [192.168.174.11]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by eastasia.home.utahime.org (Postfix) with ESMTPSA id 447D0FC52; Wed, 19 Feb 2020 09:03:07 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.2 at eastasia.home.utahime.org Date: Wed, 19 Feb 2020 09:01:12 +0900 (JST) Message-Id: <20200219.090112.524844276878963955.yasu@utahime.org> To: freebsd-questions@freebsd.org Subject: Re: How to build and install only part of base source tree From: Yasuhiro KIMURA In-Reply-To: <20200218181853.846d2e1a.freebsd@edvax.de> References: <20200218.101420.353584891979293358.yasu@utahime.org> <20200218181853.846d2e1a.freebsd@edvax.de> X-Mailer: Mew version 6.8 on Emacs 26.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 48MdGS49rrz3yll X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=utahime.org header.s=maybe2019112701 header.b=RvYZeeNp; dmarc=none; spf=pass (mx1.freebsd.org: domain of yasu@utahime.org designates 183.180.29.210 as permitted sender) smtp.mailfrom=yasu@utahime.org X-Spamd-Result: default: False [0.27 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[utahime.org:s=maybe2019112701]; NEURAL_HAM_MEDIUM(-0.34)[-0.344,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+a:spf-authorized.utahime.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.77)[-0.767,0]; RCVD_COUNT_THREE(0.00)[3]; DMARC_NA(0.00)[utahime.org]; MV_CASE(0.50)[]; DKIM_TRACE(0.00)[utahime.org:+]; MID_CONTAINS_FROM(1.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(0.38)[ip: (0.21), ipnet: 183.180.0.0/16(0.10), asn: 2519(1.53), country: JP(0.04)]; ASN(0.00)[asn:2519, ipnet:183.180.0.0/16, country:JP]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Feb 2020 00:03:14 -0000 From: Polytropon Subject: Re: How to build and install only part of base source tree Date: Tue, 18 Feb 2020 18:18:53 +0100 > First of all, there's /etc/src.conf to control aspects of the > whole build process (see "man 5 src.conf"). Additionally, you > can change into a specific program's directory within the source > tree, then build and install it from there, for example: > > # /usr/src/usr.bin/mt > [... you change mt.c ...] > # make > # make install > > However be careful that, depending on the kind of changes you > make, it's possible that you need to rebuild other programs or > libraries, too. While "make buildworld" and "make installworld" > will handle such changes in an optimal manner (also see the > comment header of /usr/src/Makefile), the manual approach is > quite convenient for smaller changes, and in case of user > programs, can often be tested immediately. I'm a bit surprised because I didn't expect this simplest way works fine. But I should have tried it before asking here;-). > PS. I've done the same in /usr/src/sbin/fsck_ffs while trying > to debug and finally solving a very rare data recovery > problem. At first I intended to add support of new envirionment varialbe to libfetch. But while investigating source code I suspect libfetch doesn't work as is documented under some conditions. So now I switched to check if the problem actually happens. And if I'm convinced I'll also debug the problem in a same way. --- Yasuhiro KIMURA