<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>34561</bug_id>
          
          <creation_ts>2018-02-18 13:05:34 +0300</creation_ts>
          <short_desc>(.spec) optional --enable-debug</short_desc>
          <delta_ts>2019-04-19 07:24:18 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>libgtk+2</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan Zakharyaschev">imz</reporter>
          <assigned_to name="Yuri N. Sedunov">aris</assigned_to>
          <cc>aris</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>169115</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2018-02-18 13:05:34 +0300</bug_when>
    <thetext>2.24.32-alt2

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

hsh --build-args=&apos;--enable debug&apos;

(Отладочные сообщения можно будет увидеть как-то так: 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 \</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>169431</commentid>
    <comment_count>1</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2018-03-05 17:53:36 +0300</bug_when>
    <thetext>Ради того, чтобы легче было узнать по установленному пакету, какой он:

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 \</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>180979</commentid>
    <comment_count>2</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2019-04-19 07:24:18 +0300</bug_when>
    <thetext>libgtk+2-2.24.32-alt3 -&gt; sisyphus:

Wed Apr 17 2019 Yuri N. Sedunov &lt;aris@altlinux&gt; 2.24.32-alt3
- enabled SMP build
- introduced &quot;debug&quot; knob (ALT #34561)
- mike@: fixed man knob (unbuilt manpages can&apos;t be packaged)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>