Page MenuHomeFreeBSD

Introduce policy of preferring verbose logs
ClosedPublic

Authored by AMDmi3 on Aug 16 2016, 4:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 13, 11:07 AM
Unknown Object (File)
Fri, Apr 12, 6:09 PM
Unknown Object (File)
Fri, Apr 12, 8:32 AM
Unknown Object (File)
Thu, Apr 11, 6:35 PM
Unknown Object (File)
Wed, Apr 10, 6:21 PM
Unknown Object (File)
Wed, Apr 10, 2:06 PM
Unknown Object (File)
Feb 27 2024, 10:25 PM
Unknown Object (File)
Jan 4 2024, 9:50 AM
Subscribers
None

Details

Summary

Some ports build silently, hiding executed commands under non-informative summary, such as

CC     source1.o
CC     source2.o
CCLD   someprogram

This is unacceptable as build logs are crucial to debugging port
build problems both on the cluster and based on end user feedback
and also global mining of build problems such as non-respected
C(XX)FLAGS and incorrect -I/-L ordering. Lets start with documenting
the policy of verbose build in the PHB.

Diff Detail

Repository
rD FreeBSD doc repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

AMDmi3 retitled this revision from to Introduce policy of preferring verbose logs.
AMDmi3 updated this object.
AMDmi3 edited the test plan for this revision. (Show Details)
en_US.ISO8859-1/books/porters-handbook/porting-dads/chapter.xml
328 ↗(On Diff #19360)

Don't use should, it is feeble and suggests unsureness. Attempt to be imperative: "do this" rather than "you should do this".

346–349 ↗(On Diff #19360)

I think this should go in bsd.port.mk, so that all GNU_CONFIGURE ports use it.

AMDmi3 edited edge metadata.

Better wording

AMDmi3 added inline comments.
en_US.ISO8859-1/books/porters-handbook/porting-dads/chapter.xml
346–349 ↗(On Diff #19360)

See D7534, that doesn't seem to be possible.

This is waiting on exp-run https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212075 to check whether adding --disable-silent-rules to CONFIGURE_ARGS for GNU_CONFIGURE case is possible. If it is, this will need simplification and removal of last paragraphs.

AMDmi3 edited edge metadata.

Seems like it's feasible to add --disable-silent-rules to CONFIGURE_ARGS
by default, so remove mention of manual actions.

Looks good to me, add Warren for the english :-)

en_US.ISO8859-1/books/porters-handbook/porting-dads/chapter.xml
328 ↗(On Diff #20091)

s/output/display/

329 ↗(On Diff #20091)

"verbosely" is redundant here. Also, split sentence here:

during the build stage.  Do not hide the output with a
347 ↗(On Diff #20091)

Split sentence, and missing comma:

verbose logging by the ports framework.  In other cases, ports
348 ↗(On Diff #20091)

s/may/might/

AMDmi3 edited edge metadata.

Fix as suggested by wblock

AMDmi3 added inline comments.
en_US.ISO8859-1/books/porters-handbook/porting-dads/chapter.xml
329 ↗(On Diff #20091)

Removed "do not hide part", seems unneeded.

en_US.ISO8859-1/books/porters-handbook/porting-dads/chapter.xml
347 ↗(On Diff #20091)

Still needs the comma after "cases".

AMDmi3 marked an inline comment as done.
AMDmi3 edited edge metadata.

Done

wblock edited edge metadata.

I find this cromulent.

This revision was automatically updated to reflect the committed changes.