Bug 34561 - (.spec) optional --enable-debug
Summary: (.spec) optional --enable-debug
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: libgtk+2 (show other bugs)
Version: unstable
Hardware: all Linux
: P3 enhancement
Assignee: Yuri N. Sedunov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-18 13:05 MSK by Ivan Zakharyaschev
Modified: 2019-04-19 07:24 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Zakharyaschev 2018-02-18 13:05:34 MSK
2.24.32-alt2

Такое вот несущественное пожелание, чтобы удобно и просто было пересобрать ради отладки так:

hsh --build-args='--enable debug'

(Отладочные сообщения можно будет увидеть как-то так: G_MESSAGES_DEBUG=printing GTK_DEBUG=printing atril /usr/share/doc/dia/en/dia.pdf )

diff --git a/libgtk+2.spec b/libgtk+2.spec
index 874a37b..3490e51 100644
--- a/libgtk+2.spec
+++ b/libgtk+2.spec
@@ -1,4 +1,5 @@
 %def_disable snapshot
+%def_disable debug
 
 %define _name gtk+
 %define api_ver 2.0
@@ -233,6 +234,7 @@ NOCONFIGURE=1 ./autogen.sh
 %autoreconf
 %endif
 %configure \
+    %{subst_enable debug} \
     %{subst_enable xkb} \
     %{subst_enable man} \
     --with-xinput=yes \
Comment 1 Ivan Zakharyaschev 2018-03-05 17:53:36 MSK
Ради того, чтобы легче было узнать по установленному пакету, какой он:

diff --git a/libgtk+2.spec b/libgtk+2.spec
index a3ed729..aaeaefc 100644
--- a/libgtk+2.spec
+++ b/libgtk+2.spec
@@ -1,4 +1,5 @@
 %def_disable snapshot
+%def_disable debug
 
 %define _name gtk+
 %define api_ver 2.0
@@ -82,6 +83,11 @@ BuildRequires: libXdamage-devel libXcomposite-devel libX11-devel libXcursor-deve
 GTK+ is a multi-platform toolkit for creating graphical user interfaces.
 Offering a complete set of widgets, GTK+ is suitable for projects
 ranging from small one-off projects to complete application suites.
+%if_enabled debug
+
+The library in this package has been built with --enable-debug;
+for debugging, set GTK_DEBUG environment variable to an appropriate value.
+%endif
 
 %package locales
 Summary: Internationalization for GTK+
@@ -233,6 +239,7 @@ NOCONFIGURE=1 ./autogen.sh
 %autoreconf
 %endif
 %configure \
+    %{subst_enable debug} \
     %{subst_enable xkb} \
     %{subst_enable man} \
     --with-xinput=yes \
Comment 2 Repository Robot 2019-04-19 07:24:18 MSK
libgtk+2-2.24.32-alt3 -> sisyphus:

Wed Apr 17 2019 Yuri N. Sedunov <aris@altlinux> 2.24.32-alt3
- enabled SMP build
- introduced "debug" knob (ALT #34561)
- mike@: fixed man knob (unbuilt manpages can't be packaged)