public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/gdb] gdb-17.2-rebase-f44: Provide gdb-headless package (RH BZ 1195005).
Date: Sat, 27 Jun 2026 23:57:52 GMT	[thread overview]
Message-ID: <178260467255.1.5097435093814929801.rpms-gdb-303cd25eb959@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/gdb
Branch : gdb-17.2-rebase-f44
Commit : 303cd25eb9594f989a88efee8cebe24274c757ab
Author : Jan Kratochvil <jan.kratochvil@redhat.com>
Date   : 2016-09-14T23:33:09+02:00
Stats  : +39/-4 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/gdb/c/303cd25eb9594f989a88efee8cebe24274c757ab?branch=gdb-17.2-rebase-f44

Log:
Provide gdb-headless package (RH BZ 1195005).

---
diff --git a/gdb.spec b/gdb.spec
index 8ab9078..297ba9b 100644
--- a/gdb.spec
+++ b/gdb.spec
@@ -15,7 +15,6 @@
  %global _root_libdir %{_libdir}
 }
 
-Summary: A GNU source-level debugger for C, C++, Fortran, Go and other languages
 Name: %{?scl_prefix}gdb
 
 # Freeze it when GDB gets branched
@@ -28,7 +27,7 @@ Version: 7.12
 
 # The release always contains a leading reserved number, start it at 1.
 # `upstream' is not a part of `name' to stay fully rpm dependencies compatible for the testing.
-Release: 0.15.%{tardate}%{?dist}
+Release: 0.16.%{tardate}%{?dist}
 
 License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ and GPLv2+ with exceptions and GPL+ and LGPLv2+ and BSD and Public Domain and GFDL
 Group: Development/Debuggers
@@ -42,6 +41,25 @@ URL: http://gnu.org/software/gdb/
 %global gdb_src %{tarname}
 %global gdb_build build-%{_target_platform}
 
+# For DTS RHEL<=7 GDB it is better to use none than a Requires dependency.
+%if 0%{!?rhel:1} || 0%{?rhel} > 7
+Recommends: %{?scl_prefix}gcc-gdb-plugin%{?_isa}
+%endif
+
+%if 0%{!?scl:1}
+Summary: A stub package for GNU source-level debugger
+Requires: gdb-headless%{?_isa} = %{version}-%{release}
+
+%description
+'gdb' package is only a stub to install gcc-gdb-plugin for 'compile' commands.
+See package 'gdb-headless'.
+
+%package headless
+Group: Development/Debuggers
+%endif
+
+Summary: A GNU source-level debugger for C, C++, Fortran, Go and other languages
+
 # Make sure we get rid of the old package gdb64, now that we have unified
 # support for 32-64 bits in one single 64-bit gdb.
 %ifarch ppc64
@@ -70,7 +88,6 @@ Provides: bundled(md5-gcc) = %{snapsrc}
 %global buildisa %{?_with_buildisa:%{?_isa}}
 
 %if 0%{!?rhel:1} || 0%{?rhel} > 7
-Recommends: gcc-gdb-plugin%{?_isa}
 Recommends: dnf-command(debuginfo-install)
 # https://bugzilla.redhat.com/show_bug.cgi?id=1209492
 Recommends: default-yama-scope
@@ -718,7 +735,11 @@ BuildRequires: xz
 
 %{?scl:Requires:%scl_runtime}
 
+%if 0%{!?scl:1}
+%description headless
+%else
 %description
+%endif
 GDB, the GNU debugger, allows you to debug programs written in C, C++,
 Java, and other languages, by executing them in a controlled fashion
 and printing their data.
@@ -1235,6 +1256,12 @@ rm -rf $RPM_BUILD_ROOT
 
 make %{?_smp_mflags} install DESTDIR=$RPM_BUILD_ROOT
 
+%if 0%{!?scl:1}
+mkdir -p $RPM_BUILD_ROOT%{_prefix}/libexec
+mv -f $RPM_BUILD_ROOT%{_bindir}/gdb $RPM_BUILD_ROOT%{_prefix}/libexec/gdb
+ln -s -r $RPM_BUILD_ROOT%{_prefix}/libexec/gdb $RPM_BUILD_ROOT%{_bindir}/gdb
+%endif
+
 # Provide gdbtui for RHEL-5 and RHEL-6 as it is removed upstream (BZ 797664).
 %if 0%{?rhel:1} && 0%{?rhel} <= 6
 test ! -e $RPM_BUILD_ROOT%{_prefix}/bin/gdbtui
@@ -1366,9 +1393,14 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(-,root,root)
+%{_bindir}/gdb
+%if 0%{!?scl:1}
+%files headless
+%defattr(-,root,root)
+%{_prefix}/libexec/gdb
+%endif
 %doc COPYING3 COPYING COPYING.LIB README NEWS
 %{_bindir}/gcore
-%{_bindir}/gdb
 %config(noreplace) %{_sysconfdir}/gdbinit
 %{_sysconfdir}/gdbinit.d
 %{_mandir}/*/gdbinit.5*
@@ -1454,6 +1486,9 @@ then
 fi
 
 %changelog
+* Wed Sep 14 2016 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.12-0.16.20160907.fc25
+- Provide gdb-headless package (RH BZ 1195005).
+
 * Mon Sep 12 2016 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.12-0.15.20160907.fc25
 - [testsuite] More testsuite fixes.
 

                 reply	other threads:[~2026-06-27 23:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=178260467255.1.5097435093814929801.rpms-gdb-303cd25eb959@fedoraproject.org \
    --to=jan.kratochvil@redhat.com \
    --cc=git-commits@fedoraproject.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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox