Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Sep 2025 11:31:27 GMT
From:      Mateusz Piotrowski <0mp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: c7608bcae4e0 - stable/14 - ports.7: Fix example of passing variables on the command line
Message-ID:  <202509131131.58DBVR1g075221@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by 0mp:

URL: https://cgit.FreeBSD.org/src/commit/?id=c7608bcae4e008a8b9c7f59ee4ab9a0804fe2c9e

commit c7608bcae4e008a8b9c7f59ee4ab9a0804fe2c9e
Author:     Mateusz Piotrowski <0mp@FreeBSD.org>
AuthorDate: 2025-09-10 08:52:15 +0000
Commit:     Mateusz Piotrowski <0mp@FreeBSD.org>
CommitDate: 2025-09-13 11:31:22 +0000

    ports.7: Fix example of passing variables on the command line
    
    make(1)'s -D flag does not allow for setting the value of the variable.
    It just defines the variable and sets its value to 1. In fact, make(1)
    treats "=" as just another character in the variable name:
    
    ```
    $ make -DA=2 -V A  # Output is just an empty line.
    
    $ make -DA=2 -V A=2  # Variable "A=2" is defined and set to "1".
    1
    ```
    
    Fixes:  d25f7d324a9d ports.7: Document DEBUG_FLAGS and the process of debugging ports
    MFC after:      3 days
    
    (cherry picked from commit 9365a328596c9f156deaa15fa018b76b3a6e6b18)
---
 share/man/man7/ports.7 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/share/man/man7/ports.7 b/share/man/man7/ports.7
index 6650399cfc67..2b6f17965fce 100644
--- a/share/man/man7/ports.7
+++ b/share/man/man7/ports.7
@@ -25,7 +25,7 @@
 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd March 21, 2025
+.Dd September 10, 2025
 .Dt PORTS 7
 .Os
 .Sh NAME
@@ -683,7 +683,7 @@ WITH_DEBUG_PORTS=	mail/dovecot security/krb5
 .Pp
 It is also possible to use the debug variables on the command line:
 .Bd -literal -offset 2n
-.Li # Ic make -DWITH_DEBUG DEBUG_FLAGS="-g -O0" build
+.Li # Ic make WITH_DEBUG DEBUG_FLAGS="-g -O0" build
 .Ed
 .Pp
 See the



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202509131131.58DBVR1g075221>