From owner-freebsd-questions@freebsd.org Fri Jul 10 22:54:59 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4AE80997DF6 for ; Fri, 10 Jul 2015 22:54:59 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (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 0CA1A1EB1 for ; Fri, 10 Jul 2015 22:54:58 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-74-114.dynamic.qsc.de [92.195.74.114]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id 1297124CB8; Sat, 11 Jul 2015 00:54:55 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id t6AMsti0002658; Sat, 11 Jul 2015 00:54:55 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sat, 11 Jul 2015 00:54:55 +0200 From: Polytropon To: Quartz Cc: FreeBSD questions Subject: Re: Questions about freebsd-update Message-Id: <20150711005455.07157509.freebsd@edvax.de> In-Reply-To: <55A03E72.3010703@sneakertech.com> References: <559C6B73.8050509@sneakertech.com> <559EA8B8.8080701@sneakertech.com> <559ED47E.8050905@hiwaay.net> <559F25F8.1030508@sneakertech.com> <559F2853.5000103@sneakertech.com> <20150710040949.42c73f4d.freebsd@edvax.de> <559F2C78.6090102@sneakertech.com> <20150710043231.8c7cb899.freebsd@edvax.de> <559F3490.2050508@sneakertech.com> <20150710210850.a5194abe.freebsd@edvax.de> <55A03E72.3010703@sneakertech.com> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) 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.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jul 2015 22:54:59 -0000 On Fri, 10 Jul 2015 17:51:46 -0400, Quartz wrote: > >>>>> The tools involved here are already part of the base system (except > >>>>> they got manually removed, which renders the OS somehow incomplete). > >>>>> A system installation typically uses compiler, assembler, linker, > >>>>> installer, and make, which are all contained in the base distribution > >>>>> of the OS. > >>>> > >>>> Wait.... isn't all the build stuff part of the 'src' option during > >>>> install? > >>> > >>> No. The "src" distribution contains the sources which will > >>> be available in the /usr/src subtree. > >>> > >>>> If you unselect that, how does make/install apply patches if > >>>> the files it's patching aren't there? > >>> > >>> It doesn't do that, but the tools make, install, and patch > >>> themselves will be available. > >> > >> I understand that the utils themselves are still installed regardless, > >> but in order for the 'patch' command to have something to patch against, > >> doesn't 'src' have to be installed also? > > > > Yes, /usr/src _has to be_ present - either by installing src.txz, > > as a result of freebsd-update's component src, or via SVN checkout. > > The process then involves building from source of course. This is > > the most transparent way to deal with updates. > > > > I'm still confused here. > > I was under the impression that if I ever wanted to be able to update > the system via patches, I had to leave the 'src' option selected during > install. Are you saying that is or is not true? It's important that you have /usr/src; _how_ you get it is not important. During installation, src.txz will be uncompressed, that's _one_ way to do it. SVN checkout is another. And you can also use freebsd-update to obtain the "src" component. You only need the source tree if you're going to apply patches to the source and then recompile the system; the binary update method does not require it - but it _can_ be used to keep your local source tree current. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...