From owner-svn-doc-all@freebsd.org Fri Sep 9 20:04:28 2016 Return-Path: Delivered-To: svn-doc-all@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 64749BD4F8B; Fri, 9 Sep 2016 20:04:28 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1AF2CC28; Fri, 9 Sep 2016 20:04:28 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u89K4RG9048002; Fri, 9 Sep 2016 20:04:27 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u89K4Rix048001; Fri, 9 Sep 2016 20:04:27 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201609092004.u89K4Rix048001@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Fri, 9 Sep 2016 20:04:27 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r49378 - head/en_US.ISO8859-1/books/porters-handbook/porting-dads X-SVN-Group: doc-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the entire doc trees \(except for " user" , " projects" , and " translations" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Sep 2016 20:04:28 -0000 Author: amdmi3 (ports committer) Date: Fri Sep 9 20:04:27 2016 New Revision: 49378 URL: https://svnweb.freebsd.org/changeset/doc/49378 Log: - Document that verbose builds are strongly preferred Submitted by: amdmi3 Reviewed by: mat, wblock Approved by: mat, wblock Differential Revision: D7533 Modified: head/en_US.ISO8859-1/books/porters-handbook/porting-dads/chapter.xml Modified: head/en_US.ISO8859-1/books/porters-handbook/porting-dads/chapter.xml ============================================================================== --- head/en_US.ISO8859-1/books/porters-handbook/porting-dads/chapter.xml Fri Sep 9 17:31:58 2016 (r49377) +++ head/en_US.ISO8859-1/books/porters-handbook/porting-dads/chapter.xml Fri Sep 9 20:04:27 2016 (r49378) @@ -322,6 +322,32 @@ exec %%LOCALBASE%%/bin/java -jar %%DATAD CFLAGS+= -DHAVE_SOUND + + Verbose Build Logs + + Make the port build system display all commands executed + during the build stage. Complete build logs are crucial to + debugging port problems. + + Non-informative build log example (bad): + + CC source1.o + CC source2.o + CCLD someprogram + + Verbose build log example (good): + + cc -O2 -pipe -I/usr/local/include -c -o source1.o source1.c +cc -O2 -pipe -I/usr/local/include -c -o source2.o source2.c +cc -o someprogram source1.o source2.o -L/usr/local/lib -lsomelib + + Some build systems such as CMake, + ninja, and GNU + configure are set up for verbose logging by + the ports framework. In other cases, ports might need + individial tweaks. + + Feedback