ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: devel@lists.altlinux.org
Subject: Re: [devel] %python3_build_debug
Date: Sat, 21 Nov 2020 20:01:52 +0300
Message-ID: <20201121170152.GA11650@altlinux.org> (raw)
In-Reply-To: <abcfb4cf57ccdc43f6a066888f72b8d3@etersoft.ru>

On Sat, Nov 21, 2020 at 07:52:38PM +0300, Vitaly Lipatov wrote:
> Dmitry V. Levin писал 21.11.20 16:31:
> > On Sat, Nov 21, 2020 at 04:01:40PM +0300, Vitaly Lipatov wrote:
> ...
> > Отладочная информация (-g) настраивается в другом месте, не имеющем
> > никакого отношения к питону.  По умолчанию -g уже включена в %optflags.
> > 
> > Что меняет %python3_build_debug по сравнению с %python3_build?
> 
> Проверил на пакете python3-module-Pillow
> 
> --debug добавляет больше отладочного вывода:
> +Looking for xcb
> +Checking for include file xcb/xcb.h in /usr/include/freetype2
> +Checking for include file xcb/xcb.h in /usr/include/openjpeg-2.3
> +Checking for include file xcb/xcb.h in 
> /usr/src/RPM/BUILD/python3-module-Pillow-7.2.0/src/libImaging
> +Checking for include file xcb/xcb.h in 
> /usr/src/RPM/BUILD/python3-module-Pillow-7.2.0
> +Checking for include file xcb/xcb.h in /usr/include
> +Checking for include file xcb/xcb.h in /usr/local/include
> +Checking for include file xcb/xcb.h in /usr/include/python3.8
> 
> 
> и добавляет четвёртый флаг -g при компиляции:
> -x86_64-alt-linux-gcc -pthread -Wno-unused-result -Wsign-compare 
> -DNDEBUG -g -fwrapv -O3 -Wall -pipe -frecord-gcc-switches -Wall -g -O3 
> -pipe -frecord-gcc-switches -Wall -g -O2 -fPIC -DHAVE_LIBJPEG 
> -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBIMAGEQUANT -DHAVE_L
> +x86_64-alt-linux-gcc -pthread -Wno-unused-result -Wsign-compare 
> -DNDEBUG -g -fwrapv -O3 -Wall -pipe -frecord-gcc-switches -Wall -g -O3 
> -pipe -frecord-gcc-switches -Wall -g -O2 -fPIC -g -DHAVE_LIBJPEG 
> -DHAVE_OPENJPEG

Вот четвёртого-то флага -g нам как раз и не хватало.
А ещё мне понравилось чередование -O3 и -O2.

> Соответственно, для пакетов без компиляции не меняется ничего.

А для пакетов с компиляцией меняется только запись, которую делает
-frecord-gcc-switches.


-- 
ldv


  reply	other threads:[~2020-11-21 17:01 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-10 12:41 [devel] Перевод пакетов на python3-module- Vitaly Lipatov
2020-11-10 12:52 ` Anton Farygin
2020-11-10 15:19   ` Vitaly Lipatov
2020-11-10 13:01 ` [devel] пакеты из тарбола легко и удобно собираются в git Sergey V Turchin
2020-11-10 14:27   ` Andrey Savchenko
2020-11-10 14:41     ` Sergey V Turchin
2020-11-10 15:19     ` [devel] ***UNCHECKED*** " Vitaly Lipatov
2020-11-10 16:00       ` [devel] " Andrey Savchenko
2020-11-11  8:02         ` [devel] git bisect Sergey V Turchin
2020-11-11  9:11           ` Andrey Savchenko
2020-11-11 11:04             ` Sergey V Turchin
2020-11-11 13:24     ` [devel] Offtopic: git bisect (Was: пакеты из тарбола легко и удобно собираются в git) Vladimir D. Seleznev
2020-11-11 13:33       ` Andrey Savchenko
2020-11-11 14:08         ` Vladimir D. Seleznev
2020-11-11 14:21           ` Alexey V. Vissarionov
2020-11-11 14:27           ` Andrey Savchenko
2020-11-21  2:59 ` [devel] Перевод пакетов на python3-module- Vladimir D. Seleznev
2020-11-21 11:34   ` Vitaly Lipatov
2020-11-21 12:21     ` Vladimir D. Seleznev
2020-11-21 13:01       ` Vitaly Lipatov
2020-11-21 13:31         ` [devel] %python3_build_debug Dmitry V. Levin
2020-11-21 16:52           ` Vitaly Lipatov
2020-11-21 17:01             ` Dmitry V. Levin [this message]
2020-11-21 17:35               ` Vitaly Lipatov
2020-11-22  4:44             ` Vladimir D. Seleznev
2020-11-22  9:59               ` Vitaly Lipatov
2020-11-21 13:45         ` [devel] Перевод пакетов на python3-module- Vladimir D. Seleznev
2020-11-21 16:07           ` Vitaly Lipatov
2020-11-21 16:22             ` Dmitry V. Levin

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=20201121170152.GA11650@altlinux.org \
    --to=ldv@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