From owner-freebsd-questions@freebsd.org Fri Jul 10 22:12:54 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 C5ADA9974D7 for ; Fri, 10 Jul 2015 22:12:54 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: from cosmo.uchicago.edu (cosmo.uchicago.edu [128.135.70.90]) by mx1.freebsd.org (Postfix) with ESMTP id 9F44FC8D for ; Fri, 10 Jul 2015 22:12:54 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: by cosmo.uchicago.edu (Postfix, from userid 48) id 67E93CB8CB3; Fri, 10 Jul 2015 17:12:53 -0500 (CDT) Received: from 128.135.70.2 (SquirrelMail authenticated user valeri) by cosmo.uchicago.edu with HTTP; Fri, 10 Jul 2015 17:12:53 -0500 (CDT) Message-ID: <33905.128.135.70.2.1436566373.squirrel@cosmo.uchicago.edu> Date: Fri, 10 Jul 2015 17:12:53 -0500 (CDT) Subject: Re: Questions about freebsd-update From: "Valeri Galtsev" To: "FreeBSD questions" Reply-To: galtsev@kicp.uchicago.edu User-Agent: SquirrelMail/1.4.8-5.el5.centos.7 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal 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> In-Reply-To: <55A03E72.3010703@sneakertech.com> 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:12:55 -0000 On Fri, July 10, 2015 4:51 pm, 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? > Patch is the way of making necessary change to source code. Say you changed the text (the code of your C program) then patch is effectively the difference between new program and old program (each of them is just and ASCII text). So now it should be straightforward. If you want to update your system using patches, you will need to have all sources. Once patch is released, you will need to apply it which effectively change patched programs from older version to new. After that you will have to recompile all what is relevant, and install it. As it was said, "svn checkout.." or "svn update..." will do the same good job as applying patches to the source tree, and it is more transparent way. Still recompiling and installing (and rebooting or restarting relevant daemons) will be necessary to complete the update. Valeri ++++++++++++++++++++++++++++++++++++++++ Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247 ++++++++++++++++++++++++++++++++++++++++