From nobody Tue Sep 20 23:09:46 2022 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MXHLv0CP8z4cZDl for ; Tue, 20 Sep 2022 23:09:59 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MXHLt6tPqz3ZWB; Tue, 20 Sep 2022 23:09:58 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663715399; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=t6sCLKHkBPOMUakWRlQi490FGQQxBC9yn7Y8V8iBMI4=; b=tHxMPPi9h7vQB7dSFLYnDp/7Su3SenQsClSOFYRER/kN5UCi8/1ChB7+PfXvEhhDV6QHug /RyrqmkRFgUu/vRhK2fhh1JTBFo5LlRMKktV4un8QZnJfU7E8EqHUOfUs/ARAG5GSQK29K ZJbLqJYKbqZggN7dtg+sqUjJcqyyObH5nEqaah6YbgFhkhTFSQqaFf8Ca7ohEpGdle/gpU qp4cuYTfGyFIgfOhto9I/lB1tKJ+qaNI5/g2bsDRFTjLXvu7i6hOXD9GpIzk13/15jTgR6 dJrL9svyg/519hYrUR7XzvV/v3rgZ2TRSxWegRrQYEWMEWh5mEjdl7tuIXbLFA== Received: from mail-vk1-f172.google.com (mail-vk1-f172.google.com [209.85.221.172]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: eduardo) by smtp.freebsd.org (Postfix) with ESMTPSA id 4MXHLt5dNlz1Cmq; Tue, 20 Sep 2022 23:09:58 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-vk1-f172.google.com with SMTP id v192so2253772vkv.7; Tue, 20 Sep 2022 16:09:58 -0700 (PDT) X-Gm-Message-State: ACrzQf2ro2XOWxuluY1QIptzj9SofPAIxGptSeeem/cst4Ez8rgWbyLh KQv4qynQiOfY8lYXzgtSYX610fMIHJ3uxFtlaC8= X-Google-Smtp-Source: AMsMyM4QMgQlQh9kzvi0G8MPA+ERyEznKZgi++2tsdyqx07cMENx+5IooSCP9Yp8FDfHkOi8JZEodEGHecWxHmVpP7I= X-Received: by 2002:a05:6122:990:b0:3a2:e74e:5995 with SMTP id g16-20020a056122099000b003a2e74e5995mr9088841vkd.25.1663715398373; Tue, 20 Sep 2022 16:09:58 -0700 (PDT) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Nuno Teixeira Date: Wed, 21 Sep 2022 00:09:46 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Good practices with bectl To: Alan Somers Cc: FreeBSD CURRENT Content-Type: multipart/alternative; boundary="00000000000053d8e805e923edf7" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663715399; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=t6sCLKHkBPOMUakWRlQi490FGQQxBC9yn7Y8V8iBMI4=; b=GqK+KA6DlzuV7igvUwHq9e1o5C7INjocpPa6LheHjv7eRgVTcM03OP1WQCPg4i3z5Ls6Wh yxqId6rODPtD2Eylxr/fKk7/EQtv/gFO6QPo6DKnby/ZmIeLyCDbJpHxjeBpWNqclfV+4E /ijSCzgC1Wp3pOkKPAxURYstOgZfs06wuTwGTa7RCqXqQ615X6bT3TiMr+6GjoxDk/JqXH 7gw78I63Yo5FvR5WAz+JmcV2yWtTOwpbQz3oSy9iRf9JlsL/0VMX8+ZJrqoC1Uyvipi2kY A1upEBBxRbQ8ybWbt6lSXcrmrg/DAbi9EH3v6eW6HIzFDIPc4Kz8WPYn8lqfsQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1663715399; a=rsa-sha256; cv=none; b=e/BxXwmM5r8epVEWLiWruWomRciaarbRNPzueZqi7IX2jc/Uq+Yp5wTBT3u8zz5sXt0E6T yL9jymiCPDXake24VDD7Hd88dd9hpA/n99mZbxIdmXXrrpulepva2EocDRfHAGUWjDlgc8 /6qV4zhV3gPS933Knmvtk5dGklAFtOvxj/NZZsYz7yWz7tHjPY4GyWn3llPJkmXa/9w6N/ JuBlkLnD5YZlkRvYwGfylOWAqMLhopym3VPwMc1/zvnMaddUyMd4XgG8G7Ly3uZuQDh6z0 rAxx9Zk88GulfHWL6ZnWRupP2m8RMOXPwUqOA3oB4ioHzVFIB9QUfjtOitv3GQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N --00000000000053d8e805e923edf7 Content-Type: text/plain; charset="UTF-8" Hi Alan, This general procedure works just as well if you're upgrading from source, > too. > > sudo make DESTDIR=${BASEDIR} installworld > sudo mergemaster -m $PWD -D $BASEDIR -U > (mergemaster -m -D ) using etcupdate: (etcupdate -s -D ), source defaults to /usr/src > etcupdate -D $BASEDIR Need to find how to execute: `make delete-old delete-old-libs` since $BASEDIR don't have /usr/src Thanks -- Nuno Teixeira FreeBSD Committer (ports) --00000000000053d8e805e923edf7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Alan,

This general procedure works just as well if you're upgrading from sour= ce, too.

sudo make DESTDIR=3D${BASEDIR} installworld
sudo mergemaster -m $PWD -D $BASEDIR -U

(mergemaster -m </path/to/sources> -D </destdir/path>)

using etcupdate:
(etcupdate -s <source&g= t; -D <destdir>), source defaults to /usr/src

> etcupdate -D $BASEDIR

Need to find how to e= xecute:
`make delete-old delete-old-libs` since $BASEDIR don&= #39;t have /usr/src

Thanks
--
Nuno Teixeira
FreeBSD Committer (ports)
--00000000000053d8e805e923edf7--