ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Andrey Savchenko <bircoph@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: [devel] [RFC] %make_build: улучшение читаемости логов
Date: Mon, 18 May 2020 10:30:18 +0300
Message-ID: <20200518103018.f954eafad058ebf4ffefaabb@altlinux.org> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 742 bytes --]

Добрый день!

Открыл для себя опцию make -O, которая сильно улучшает читаемость
логов при параллельной сборке за счёт группирования вывода по целям
и отсутствия перемешивания вывода от разных потоков. Там есть
разные режимы работы, подробности можно посмотреть в man, но на мой
взгляд, лучше всего использовать просто -O для сборки произвольных
пакетов.

Патч для макроса rpm прилагается.

Best regards,
Andrew Savchenko

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: rpm-make_build.patch --]
[-- Type: text/x-diff; name="rpm-make_build.patch", Size: 523 bytes --]

diff --git a/platform.in b/platform.in
index bb35a2673..1f9cae667 100644
--- a/platform.in
+++ b/platform.in
@@ -315,7 +315,7 @@
 @alt@
 @alt@%__nprocs	%(N=`nproc`; [ "$N" -gt 0 ] 2>/dev/null && echo "$N" || echo 1)
 @alt@%_smp_mflags	-j${NPROCS:-%__nprocs}
-@alt@%make_build	%_make_bin %_smp_mflags
+@alt@%make_build	%_make_bin -O %_smp_mflags
 @alt@
 @alt@%make_install	%_make_bin INSTALL="%__install -p"
 @alt@%makeinstall_std	%make_install %{?_makeinstall_target:%{_makeinstall_target}} DESTDIR=%buildroot

[-- Attachment #2: Type: application/pgp-signature, Size: 833 bytes --]

             reply	other threads:[~2020-05-18  7:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-18  7:30 Andrey Savchenko [this message]
2020-05-18 11:09 ` Dmitry V. Levin
2020-05-18 11:39   ` Andrey Savchenko

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=20200518103018.f954eafad058ebf4ffefaabb@altlinux.org \
    --to=bircoph@altlinux.org \
    --cc=devel@lists.altlinux.org \
    /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

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git