Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Feb 2017 03:42:39 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 213446] Configurable verbose build output
Message-ID:  <bug-213446-13-V23alCVFqK@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-213446-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-213446-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213446

--- Comment #28 from lightside <lightside@gmx.com> ---
Created attachment 180096
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D180096&action=
=3Dedit
The custom.bsd.port.mk file to use for BSDPORTMK variable (v2)

(In reply to comment #25)
Added some (user level) solution for following cases:
MAKE_ARGS+=3DV=3D1
https://github.com/freebsd/freebsd-ports/blob/b83b2ba2ca7ca69c7c3a5ccd4dd00=
ce146bfe9e8/devel/cgit/Makefile#L26
MAKE_ARGS+=3DVERBOSE=3D1
https://github.com/freebsd/freebsd-ports/blob/4687be62e6ec86ba48a6447122a6c=
ab409334540/devel/icu/Makefile#L27
MAKE_ARGS+=3Dverbose=3Dyes
https://github.com/freebsd/freebsd-ports/blob/6c1e55158cb18ae1b2213a452b9f1=
bd861b14944/multimedia/libvpx/Makefile#L42
MAKE_ARGS+=3Dverbose=3D1
https://github.com/freebsd/freebsd-ports/blob/38843cd6da919e19590c9aa97c12d=
9cffffdf537/devel/xsd/Makefile#L35
MAKE_ENV+=3DV=3D1
https://github.com/freebsd/freebsd-ports/blob/70558fc7a7b0973c0ca323e82e585=
d11f0df5593/devel/git/Makefile#L31
MAKE_ENV+=3DVERBOSE=3D1
https://github.com/freebsd/freebsd-ports/blob/fce8f50432e2ce4ade7801cfaa867=
93c2b971955/x11-toolkits/girara/Makefile#L20
MAKE_ENV+=3Dverbose=3Dyes
https://github.com/freebsd/freebsd-ports/blob/d7cb557b47478b4047ff701030e93=
09f957ab6b2/multimedia/xawtv/Makefile#L27

and other V=3D*, VERBOSE=3D* (case insensitive) variants:
-8<--
.ifndef ALLOW_CUSTOM_VERBOSE

.if !defined(_MAKE_ARGS_CHECKED) && !defined(_NINJA_MAKE_ARGS_CHANGED) &&
!defined(_WAF_MAKE_ARGS_CHANGED) && defined(MAKE_ARGS)
_MAKE_ARGS_CHECKED=3D     yes
.if ${MAKE_ARGS:M[vV]=3D*}
MAKE_ARGS:=3D     ${MAKE_ARGS:N[vV]=3D*}
_MAKE_ARGS_CHECKED+=3D    v
.endif
.if ${MAKE_ARGS:M[vV][eE][rR][bB][oO][sS][eE]=3D*}
MAKE_ARGS:=3D     ${MAKE_ARGS:N[vV][eE][rR][bB][oO][sS][eE]=3D*}
_MAKE_ARGS_CHECKED+=3D    verbose
.endif
.endif

.if !defined(_MAKE_ENV_CHECKED) && defined(MAKE_ENV)
_MAKE_ENV_CHECKED=3D      yes
.if ${MAKE_ENV:M[vV]=3D*}
MAKE_ENV:=3D      ${MAKE_ENV:N[vV]=3D*}
_MAKE_ENV_CHECKED+=3D     v
.endif
.if ${MAKE_ENV:M[vV][eE][rR][bB][oO][sS][eE]=3D*}
MAKE_ENV:=3D      ${MAKE_ENV:N[vV][eE][rR][bB][oO][sS][eE]=3D*}
_MAKE_ENV_CHECKED+=3D     verbose
.endif
.endif

.endif
-->8-

Possible to disable this with using ALLOW_CUSTOM_VERBOSE or ALLOW_VERBOSE
variable(s):
% make ALLOW_CUSTOM_VERBOSE=3D1
or (also to disable other checks):
% make ALLOW_VERBOSE=3D1

To check what cases were used (v and/or verbose):
% make -V _MAKE_ARGS_CHECKED -V _MAKE_ENV_CHECKED

To check what was removed from MAKE_ARGS and/or MAKE_ENV variables (with us=
ing
shells/bash):
$ diff <(make ALLOW_VERBOSE=3D1 -V MAKE_ARGS -V MAKE_ENV) <(make -V MAKE_AR=
GS -V
MAKE_ENV)

For example:
% cd /usr/ports/devel/icu
% make -V _MAKE_ARGS_CHECKED -V _MAKE_ENV_CHECKED
yes verbose
yes
% bash
$ diff <(make ALLOW_VERBOSE=3D1 -V MAKE_ARGS -V MAKE_ENV) <(make -V MAKE_AR=
GS -V
MAKE_ENV)
1c1
< VERBOSE=3D1 DESTDIR=3D/usr/ports/devel/icu/work/stage
---
> DESTDIR=3D/usr/ports/devel/icu/work/stage
$ exit

The mentioned solution provided as is, without warranty (especially, becaus=
e it
may change variables, which may have different meaning in different context=
).

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-213446-13-V23alCVFqK>