From owner-freebsd-questions@freebsd.org Tue Mar 3 15:07:31 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 00024252710 for ; Tue, 3 Mar 2020 15:07:30 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.187]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48X0jr1YNsz42mk for ; Tue, 3 Mar 2020 15:07:27 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([178.5.237.175]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPA (Nemesis) id 1MOV26-1ijDtw0OSs-00Py4l; Tue, 03 Mar 2020 16:07:18 +0100 Date: Tue, 3 Mar 2020 16:07:16 +0100 From: Polytropon To: Yuri Pankov Cc: Robert Huff , tech-lists , freebsd-questions@freebsd.org Subject: Re: make delete-old Message-Id: <20200303160716.671eb676.freebsd@edvax.de> In-Reply-To: <00b0229e-03ee-16f4-f64b-51550626848d@fastmail.com> References: <20200303123132.GB58645@bastion.zyxst.net> <24158.22171.586832.36541@jerusalem.litteratus.org> <00b0229e-03ee-16f4-f64b-51550626848d@fastmail.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-Provags-ID: V03:K1:ijjbH2C/gUZmIX3NK3Fa5SREyFJn/iGkOBbIv/F/l8Ej0BzPDfO 4cHl18/R1Zf/f/NMCYEBIGloJmddiCzjpSz9lyOIeLddwsONvr4MzanScb+25rZYBpHI1wa l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Bar: ++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd@edvax.de has no SPF policy when checking 212.227.126.187) smtp.mailfrom=freebsd@edvax.de X-Spamd-Result: default: False [4.32 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; FREEMAIL_TO(0.00)[fastmail.com]; RECEIVED_SPAMHAUS_PBL(0.00)[175.237.5.178.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.63)[0.627,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.99)[0.993,0]; MID_CONTAINS_FROM(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[187.126.227.212.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[187.126.227.212.rep.mailspike.net : 127.0.0.17]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(0.30)[ip: (0.48), ipnet: 212.227.0.0/16(-1.14), asn: 8560(2.17), country: DE(-0.02)] 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: Tue, 03 Mar 2020 15:07:31 -0000 On Tue, 3 Mar 2020 17:13:50 +0300, Yuri Pankov wrote: > On 03.03.2020 16:07, Robert Huff wrote: > > tech-lists writes: > > > >> Is a reboot required after make delete-old ? > > > > I don't think so. > > But you might want to re-run ldconfig. > > I don't think delete-old deletes shared libraries (and that's the answer > for original question, you don't need to reboot), there's > delete-old-libs for that, more so, running ldconfig (the binary) can be > harmful, if needed there's a ldconfig service; not sure which one you meant. According to /usr/src/Makefile's comment header, the step "make delete-old" is followed by a reboot (in combination with the 2nd mergemaster run, after "make installworld"), while "make delete-old-libs" is performed after the reboot, without a further one. In /usr/src/Makefile, you can find the following order: # For individuals wanting to upgrade their sources (even if only a # delta of a few days): # # 1. `cd /usr/src' (or to the directory containing your source tree). # 2. `make buildworld' # 3. `make buildkernel KERNCONF=YOUR_KERNEL_HERE' (default is GENERIC). # 4. `make installkernel KERNCONF=YOUR_KERNEL_HERE' (default is GENERIC). # [steps 3. & 4. can be combined by using the "kernel" target] # 5. `reboot' (in single user mode: boot -s from the loader prompt). # 6. `mergemaster -p' # 7. `make installworld' # 8. `mergemaster' (you may wish to use -i, along with -U or -F). # 9. `make delete-old' # 10. `reboot' # 11. `make delete-old-libs' (in case no 3rd party program uses them anymore) Additional information from "man 7 build": delete-old Delete obsolete base system files and directories inter- actively. When -DBATCH_DELETE_OLD_FILES is specified at the command line, the delete operation will be non-in- teractive. The variables DESTDIR, TARGET_ARCH and TARGET should be set as with "make installworld". delete-old-libs Delete obsolete base system libraries interactively. This target should only be used if no third party soft- ware uses these libraries. When -DBATCH_DELETE_OLD_FILES is specified at the command line, the delete operation will be non-interactive. The variables DESTDIR, TARGET_ARCH and TARGET should be set as with "make installworld". To conclude this into an answer that matches existing documentation: Yes, "make delete-old" requires a reboot. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...