All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 00/51] TLP/PPS: intro, package cleanup.
Date: Tue, 25 Oct 2016 11:29:22 +0200	[thread overview]
Message-ID: <d37629a7-1570-9065-9a3b-5f768761cd2a@mind.be> (raw)
In-Reply-To: <3048503.7rCYbyTDax@sagittea>



On 25-10-16 09:59, J?r?me Pouiller wrote:
> Hello Arnoult,
> 
> On Monday 17 October 2016 18:52:43 Arnout Vandecappelle wrote:
>> On 17-10-16 18:02, Gustavo Zacarias wrote:
>> [snip]
>>
>>> And then there's PPL (Per-Package Logging) since looking at the
>>> output when building TLP makes debugging very hard, so having a
>>> per-package configure/build/install/etc log will make life easier
>>> (with a decent playback when things go bad).
>>
>>  Would be great, but isn't that super-complicated or wouldn't it
>> require major surgery to the infrastructure? You'd need to somehow
>> amend the _CMDS to redirect their output, or run every package in a
>> separate sub-make, or something like that...
> 
> Even if I think it can't be an official solution, some time ago I 
> suggested a hack to redirect output of Buildroot in separate log files:
> 
>   http://lists.busybox.net/pipermail/buildroot/2014-November/112991.html
> 
> I think it should also work with top level parallelization.

 I don't think it will, because $$PPID will be the same make process for all
packages that are built in parallel. So when starting the build of package 1,
you're redirecting to logfile 1; as soon as package 2 starts to build, the
output is redirected to logfile 2, so any new process spawned for package 1 will
also be redirected. It will probably seem to work in many cases, because
_BUILD_CMDS typically contains only a single call to $(MAKE) and that *probably*
gets executed before the hook of package 2 is called. But I think you will get
some occasional weird mixups of different packages.


 But I have thought of a possible approach:

export BR_CURRENT_LOGFILE = $(BUILD_DIR)/$($(PKG)_RAWNAME).log
export SHELL = $(TOPDIR)/support/scripts/shell_logwrapper

and in shell_logwrapper:

exec >> $(BR_CURRENT_LOGFILE) 2>&1
exec /bin/bash "$@"


 Regards,
 Arnout


-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF

  reply	other threads:[~2016-10-25  9:29 UTC|newest]

Thread overview: 75+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-13 22:13 [Buildroot] [PATCH 00/51] TLP/PPS: intro, package cleanup gustavo.zacarias at free-electrons.com
2016-10-13 22:13 ` [Buildroot] [PATCH 01/51] lsof: use $(TARGET_MAKE_ENV) when calling $(MAKE) gustavo.zacarias at free-electrons.com
2016-10-14 15:09   ` Arnout Vandecappelle
2016-10-13 22:13 ` [Buildroot] [PATCH 02/51] wf111: " gustavo.zacarias at free-electrons.com
2016-10-13 22:13 ` [Buildroot] [PATCH 03/51] p910nd: " gustavo.zacarias at free-electrons.com
2016-10-13 22:13 ` [Buildroot] [PATCH 04/51] lz4: " gustavo.zacarias at free-electrons.com
2016-10-14 14:40   ` Arnout Vandecappelle
2016-10-14 14:45     ` Gustavo Zacarias
2016-10-13 22:13 ` [Buildroot] [PATCH 05/51] zlog: " gustavo.zacarias at free-electrons.com
2016-10-13 22:13 ` [Buildroot] [PATCH 06/51] ed: " gustavo.zacarias at free-electrons.com
2016-10-14 14:41   ` Arnout Vandecappelle
2016-10-14 14:45     ` Arnout Vandecappelle
2016-10-14 14:56       ` Arnout Vandecappelle
2016-10-13 22:13 ` [Buildroot] [PATCH 07/51] arptables: " gustavo.zacarias at free-electrons.com
2016-10-13 22:13 ` [Buildroot] [PATCH 08/51] librtas: " gustavo.zacarias at free-electrons.com
2016-10-14 15:03   ` Arnout Vandecappelle
2016-10-13 22:13 ` [Buildroot] [PATCH 09/51] wireless_tools: " gustavo.zacarias at free-electrons.com
2016-10-13 22:13 ` [Buildroot] [PATCH 10/51] pifmrds: " gustavo.zacarias at free-electrons.com
2016-10-13 22:13 ` [Buildroot] [PATCH 11/51] hans: " gustavo.zacarias at free-electrons.com
2016-10-13 22:13 ` [Buildroot] [PATCH 12/51] irda-utils: " gustavo.zacarias at free-electrons.com
2016-10-13 22:13 ` [Buildroot] [PATCH 13/51] xvkbd: " gustavo.zacarias at free-electrons.com
2016-10-13 22:13 ` [Buildroot] [PATCH 14/51] tinyalsa: " gustavo.zacarias at free-electrons.com
2016-10-13 22:13 ` [Buildroot] [PATCH 15/51] openssl: " gustavo.zacarias at free-electrons.com
2016-10-14 14:43   ` Arnout Vandecappelle
2016-10-13 22:13 ` [Buildroot] [PATCH 16/51] mplayer: " gustavo.zacarias at free-electrons.com
2016-10-13 22:13 ` [Buildroot] [PATCH 17/51] tcping: " gustavo.zacarias at free-electrons.com
2016-10-13 22:13 ` [Buildroot] [PATCH 18/51] ncurses: " gustavo.zacarias at free-electrons.com
2016-10-14 15:13   ` Arnout Vandecappelle
2016-10-13 22:13 ` [Buildroot] [PATCH 19/51] smstools3: " gustavo.zacarias at free-electrons.com
2016-10-13 22:13 ` [Buildroot] [PATCH 20/51] rtmpdump: " gustavo.zacarias at free-electrons.com
2016-10-13 22:13 ` [Buildroot] [PATCH 21/51] iputils: " gustavo.zacarias at free-electrons.com
2016-10-13 22:13 ` [Buildroot] [PATCH 22/51] open2300: " gustavo.zacarias at free-electrons.com
2016-10-13 22:13 ` [Buildroot] [PATCH 23/51] opentyrian: " gustavo.zacarias at free-electrons.com
2016-10-13 22:13 ` [Buildroot] [PATCH 24/51] poco: " gustavo.zacarias at free-electrons.com
2016-10-14 15:18   ` Arnout Vandecappelle
2016-10-13 22:13 ` [Buildroot] [PATCH 25/51] pppd: " gustavo.zacarias at free-electrons.com
2016-10-14 15:18   ` Arnout Vandecappelle
2016-10-13 22:13 ` [Buildroot] [PATCH 26/51] statserial: " gustavo.zacarias at free-electrons.com
2016-10-13 22:13 ` [Buildroot] [PATCH 27/51] ti-utils: " gustavo.zacarias at free-electrons.com
2016-10-13 22:13 ` [Buildroot] [PATCH 28/51] blktrace: " gustavo.zacarias at free-electrons.com
2016-10-13 22:13 ` [Buildroot] [PATCH 29/51] boost: " gustavo.zacarias at free-electrons.com
2016-10-13 22:13 ` [Buildroot] [PATCH 30/51] bsdiff: " gustavo.zacarias at free-electrons.com
2016-10-13 22:13 ` [Buildroot] [PATCH 31/51] feh: " gustavo.zacarias at free-electrons.com
2016-10-13 22:13 ` [Buildroot] [PATCH 32/51] gadgetfs-test: " gustavo.zacarias at free-electrons.com
2016-10-13 22:13 ` [Buildroot] [PATCH 33/51] iw: " gustavo.zacarias at free-electrons.com
2016-10-13 22:13 ` [Buildroot] [PATCH 34/51] jack2: " gustavo.zacarias at free-electrons.com
2016-10-14 14:50   ` Arnout Vandecappelle
2016-10-13 22:13 ` [Buildroot] [PATCH 35/51] libnss: " gustavo.zacarias at free-electrons.com
2016-10-13 22:13 ` [Buildroot] [PATCH 36/51] lmbench: " gustavo.zacarias at free-electrons.com
2016-10-13 22:13 ` [Buildroot] [PATCH 37/51] moarvm: " gustavo.zacarias at free-electrons.com
2016-10-14 15:10   ` Arnout Vandecappelle
2016-10-13 22:13 ` [Buildroot] [PATCH 38/51] mongoose: " gustavo.zacarias at free-electrons.com
2016-10-13 22:13 ` [Buildroot] [PATCH 39/51] libfreeimage: " gustavo.zacarias at free-electrons.com
2016-10-13 22:13 ` [Buildroot] [PATCH 40/51] live555: " gustavo.zacarias at free-electrons.com
2016-10-13 22:13 ` [Buildroot] [PATCH 41/51] pptp-linux: " gustavo.zacarias at free-electrons.com
2016-10-13 22:13 ` [Buildroot] [PATCH 42/51] unrar: " gustavo.zacarias at free-electrons.com
2016-10-13 22:13 ` [Buildroot] [PATCH 43/51] mtdev2tuio: " gustavo.zacarias at free-electrons.com
2016-10-13 22:13 ` [Buildroot] [PATCH 44/51] ushare: " gustavo.zacarias at free-electrons.com
2016-10-13 22:13 ` [Buildroot] [PATCH 45/51] libtommath: " gustavo.zacarias at free-electrons.com
2016-10-13 22:13 ` [Buildroot] [PATCH 46/51] odhcploc: " gustavo.zacarias at free-electrons.com
2016-10-13 22:13 ` [Buildroot] [PATCH 47/51] espeak: " gustavo.zacarias at free-electrons.com
2016-10-13 22:13 ` [Buildroot] [PATCH 48/51] duma: " gustavo.zacarias at free-electrons.com
2016-10-13 22:13 ` [Buildroot] [PATCH 49/51] aufs-util: " gustavo.zacarias at free-electrons.com
2016-10-13 22:13 ` [Buildroot] [PATCH 50/51] ocrad: " gustavo.zacarias at free-electrons.com
2016-10-14 15:16   ` Arnout Vandecappelle
2016-10-13 22:13 ` [Buildroot] [PATCH 51/51] dmidecode: " gustavo.zacarias at free-electrons.com
2016-10-14 15:48 ` [Buildroot] [PATCH 00/51] TLP/PPS: intro, package cleanup Arnout Vandecappelle
2016-10-15 12:19   ` Thomas Petazzoni
2016-10-17 16:02   ` Gustavo Zacarias
2016-10-17 16:52     ` Arnout Vandecappelle
2016-10-23  8:52       ` Peter Korsgaard
2016-10-25  7:59       ` Jérôme Pouiller
2016-10-25  9:29         ` Arnout Vandecappelle [this message]
2016-10-28 21:25           ` Gustavo Zacarias
2016-10-15 17:42 ` Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d37629a7-1570-9065-9a3b-5f768761cd2a@mind.be \
    --to=arnout@mind.be \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.