mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-27 11:29:53 -05:00
Move superenv make_fuss output back to stderr
In6e3a585607("Improve superenv add/remove message."), more debugging information was added to the "make_fuss" output generated by the superenv compiler wrapper. This resulted in some breakage in configure scripts that inspect stderr, so ine1bd9b9e98("Don't use stderr for make_fuss output."), the output was moved to stdout. This only appeared to solve the problem, since stdout is buffered but stderr is not. Later, infb749e4750, Homebrew started generating logs even in verbose mode. This had the side effect of moving stdout/stderr from a TTY to a pipe, and thus stdout was no longer line-buffered. Since it was not line-buffered, and Ruby's internal buffers were not flushed, the debug output was being lost. This was addressed in2d5724af86("cc: ensure wrapper output is always flushed"). This caused stdout to be flushed during configure, which resurfaced the original bug that promptede1bd9b9e98. This was fixed by disabling the debug output during configure, inf1779837a4. Since the original bug has been addressed in a more robust way, we can move the debug output back to stderr. Fixes #23923.
This commit is contained in:
1 parent
d847fda581
commit
2cdb430bba
1 file changed
+3
-3
+3
-3
@@ -232,9 +232,9 @@ class Cmd
|
||||
adds = args - @args
|
||||
dups = dels & args
|
||||
|
||||
puts "brew: superenv removed: #{dels*' '}" unless dels.empty?
|
||||
puts "brew: superenv deduped: #{dups}" unless dups.empty?
|
||||
puts "brew: superenv added: #{adds*' '}" unless adds.empty?
|
||||
STDERR.puts "brew: superenv removed: #{dels*' '}" unless dels.empty?
|
||||
STDERR.puts "brew: superenv deduped: #{dups}" unless dups.empty?
|
||||
STDERR.puts "brew: superenv added: #{adds*' '}" unless adds.empty?
|
||||
end
|
||||
def verbose?
|
||||
!ENV['VERBOSE'].nil? || !ENV['HOMEBREW_VERBOSE'].nil?
|
||||
|
||||
Reference in new issue
Block a user