From owner-svn-src-all@freebsd.org Mon Dec 3 12:55:54 2018 Return-Path: Delivered-To: svn-src-all@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 22F5913276DC; Mon, 3 Dec 2018 12:55:54 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: from mail-oi1-f169.google.com (mail-oi1-f169.google.com [209.85.167.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 84A0881258; Mon, 3 Dec 2018 12:55:53 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: by mail-oi1-f169.google.com with SMTP id i6so10768299oia.6; Mon, 03 Dec 2018 04:55:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=z4CnV6ftTzDt6I3ozaw7QYN0UpxClazU6C9bdstz5Rk=; b=a4pqkJoL/2Lv+EQmFSwiAy0gRw7Zjb2n53vjMH8daJop7K3kT/4MgnUn8oZbknkR14 u5QKm5h3r87gyzXeto80Ivpt2CKSweiHBvMPlG12mFxKtVgASnUs0Za1u2sPpavqF08K 1/q05zRrjTqniV3meSvn/1woYQmw/h8STF/YUP6ORjc7VEtxUaeTHFnAHc54N9ZxUIEh NTsmTp+rAgbr4jnK6w8k1+lWr54Di37AqJEYPd7VwJYCHz7NRkIZsg56c/S8OvJDQs0V Zh8fB6/57EA4cywZVerM0IEqjQcaw7/JNitQ/mmSTQZlYiKiH6m9RsOWvhBCMqwyIXnS ikPQ== X-Gm-Message-State: AA+aEWZsmxa8TaI3q3IodUPLaQaEmuJA/rrWit+6bXfVfiA1rFYMLQ4b X1yDU3eTXTVqO34+XstE6ftg5cWt4we/xgKUosM= X-Google-Smtp-Source: AFSGD/Ucmc/8hWUKTnh2uJ9nvXFqAE85vaCA9CrxLp1lwNDJLRhflZFigVaMV1uW53qiMXwBo+y6q5yOVz/7HTtM+vA= X-Received: by 2002:aca:5e85:: with SMTP id s127mr10182024oib.181.1543841747715; Mon, 03 Dec 2018 04:55:47 -0800 (PST) MIME-Version: 1.0 References: <201811301556.wAUFuFlQ060205@repo.freebsd.org> <5F231C0E-AD6A-4F85-9D65-3EB414B59E6E@lists.zabbadoz.net> <06F736F1-E101-4720-A70C-A58D143CFE49@lists.zabbadoz.net> In-Reply-To: <06F736F1-E101-4720-A70C-A58D143CFE49@lists.zabbadoz.net> From: Edward Napierala Date: Mon, 3 Dec 2018 12:55:36 +0000 Message-ID: Subject: Re: svn commit: r341343 - head/share/man/man7 To: "Bjoern A. Zeeb" Cc: chmeeedalf@gmail.com, Warner Losh , src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 84A0881258 X-Spamd-Result: default: False [-3.97 / 15.00]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; RCPT_COUNT_FIVE(0.00)[6]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; NEURAL_HAM_SHORT(-0.98)[-0.982,0]; FORGED_SENDER(0.30)[trasz@freebsd.org,etnapierala@gmail.com]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[trasz@freebsd.org,etnapierala@gmail.com]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.998,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[169.167.85.209.list.dnswl.org : 127.0.5.0]; IP_SCORE(-0.98)[ipnet: 209.85.128.0/17(-3.52), asn: 15169(-1.29), country: US(-0.09)]; RWL_MAILSPIKE_POSSIBLE(0.00)[169.167.85.209.rep.mailspike.net : 127.0.0.17]; FREEMAIL_CC(0.00)[gmail.com]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Dec 2018 12:55:54 -0000 pt., 30 lis 2018 o 16:43 Bjoern A. Zeeb napisa=C5=82(a): > > On 30 Nov 2018, at 16:38, Justin Hibbits wrote: > > > On Fri, Nov 30, 2018, 08:36 Warner Losh > > >> > >> > >> On Fri, Nov 30, 2018 at 9:35 AM Justin Hibbits > >> wrote: > >> > >>> > >>> > >>> On Fri, Nov 30, 2018, 08:24 Bjoern A. Zeeb < > >>> bzeeb-lists@lists.zabbadoz.net wrote: > >>> > >>>> On 30 Nov 2018, at 15:56, Edward Tomasz Napierala wrote: > >>>> > >>>>> Author: trasz > >>>>> Date: Fri Nov 30 15:56:14 2018 > >>>>> New Revision: 341343 > >>>>> URL: https://svnweb.freebsd.org/changeset/base/341343 > >>>>> > >>>>> Log: > >>>>> Add an example of rebuilding a single piece of userspace. > >>>>> > >>>>> Modified: > >>>>> head/share/man/man7/development.7 > >>>>> > >>>>> Modified: head/share/man/man7/development.7 > >>>>> > >>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D > >>>>> --- head/share/man/man7/development.7 Fri Nov 30 15:52:03 > >>>>> 2018 (r341342) > >>>>> +++ head/share/man/man7/development.7 Fri Nov 30 15:56:14 > >>>>> 2018 (r341343) > >>>>> @@ -118,6 +118,14 @@ After reboot: > >>>>> cd src > >>>>> make -j8 installworld > >>>>> reboot > >>>>> +.Ed > >>>>> +.Pp > >>>>> +Rebuild and reinstall a single piece of userspace, in this > >>>>> +case > >>>>> +.Xr ls 1 : > >>>>> +.Bd -literal -offset indent > >>>>> +cd src/bin/ls > >>>>> +make clean all install > >>>> > >>>> I always thought the proper sequence was: make clean cleandepend > >>>> obj > >>>> depend all install > >>>> > >>>> However I have recently figured that it=E2=80=99s not actually true = as > >>>> building inside an individual user space source directory seems to > >>>> pick > >>>> up headers etc from the installed machine and not from the source > >>>> tree. > >>>> I keep arguing with myself if that had always been the case or > >>>> not.. I > >>>> am sure some people here do know better than me (so please see this > >>>> as > >>>> asking for help/advise). > >>>> > >>>> /bz > >>>> > >>>> > >>>> When I need the build headers I use > >>> > >>> > >>> make buildenv > >>> ... cd bin/ls > >>> ... make > >>> > >> > >> You can also do cd bin/ls ; make buildenv now too :) > >> > >> Warner > >> > > > > I learn something new everyday! Thanks! > > I guess that should be documented as part of the needed steps then? It should, but as a separate example. I'd like the default to be as simple (and quick) as possible.