From Fedora Project Wiki
m (Announcing the change on mailing lists)
(The binary will be named "/usr/bin/gdb.minimal")
Line 36: Line 36:
== Detailed Description ==
== Detailed Description ==
Create subpackage in <code>gdb</code> source package called <code>gdb-minimal</code> that will contain 2 files:
Create subpackage in <code>gdb</code> source package called <code>gdb-minimal</code> that will contain 2 files:
* <code>/usr/libexec/gdb-minimal</code> — GDB executable built without optional unneeded features
* <code>/usr/bin/gdb.minimal</code> — GDB executable built without optional unneeded features
* <code>/usr/bin/gdb-add-index</code> — Executable script shared with gdb-headless package (modified to fallback to gdb-minimal if exists)
* <code>/usr/bin/gdb-add-index</code> — Executable script shared with gdb-headless package (modified to fallback to gdb.minimal if exists)


debuginfo code in RPM needs just gdb-add-index and that one doesn't need any syntax highlight or python plugins to work.
debuginfo code in RPM needs just gdb-add-index and that one doesn't need any syntax highlight or python plugins to work.

Revision as of 00:50, 29 April 2019

Minimal GDB in buildroot

Summary

Create gdb-minimal package (without XML support, Python support, Syntax Highlight and such) and switch to it in buildroot.

Owner

Current status

  • Targeted release: Fedora 31
  • Last updated: 2019-04-29
  • Tracker bug: <will be assigned by the Wrangler>

Detailed Description

Create subpackage in gdb source package called gdb-minimal that will contain 2 files:

  • /usr/bin/gdb.minimal — GDB executable built without optional unneeded features
  • /usr/bin/gdb-add-index — Executable script shared with gdb-headless package (modified to fallback to gdb.minimal if exists)

debuginfo code in RPM needs just gdb-add-index and that one doesn't need any syntax highlight or python plugins to work.

As of Apr 26, following packages would disappear from buildroot:

boost-regex-1.69.0-6.fc30.x86_64
ctags-5.8-25.fc30.x86_64
gdbm-libs-1:1.18-4.fc30.x86_64
libbabeltrace-1.5.6-2.fc30.x86_64
libicu-63.1-2.fc30.x86_64
libipt-2.0-2.fc30.x86_64
python-pip-wheel-19.0.3-1.fc31.noarch
python-setuptools-wheel-40.8.0-1.fc30.noarch
python3-3.7.3-2.fc31.x86_64
python3-libs-3.7.3-2.fc31.x86_64
python3-pip-19.0.3-1.fc31.noarch
python3-setuptools-40.8.0-1.fc30.noarch
source-highlight-3.1.8-24.fc31.x86_64
sqlite-libs-3.27.2-3.fc31.x86_64

Benefit to Fedora

  • Python 3 will disappear from buildroot (yes, it was there just because of GDB)
  • RPM download size for buildroot preparation will go down from 101M to 85M
  • installed buildroot size will go down from 439M to 350M

Scope

  • Proposal owners: Create a subpackage in gdb, Add Suggests: gdb-minimal into rpm-build
  • Other developers: N/A (not a System Wide Change)
  • Release engineering: #8311 (a check of an impact with Release Engineering is needed)
  • Policies and guidelines: N/A (not a System Wide Change)
  • Trademark approval: N/A (not needed for this Change)

Upgrade/compatibility impact

N/A (not a System Wide Change)

How To Test

N/A (not a System Wide Change)

User Experience

Python 3 will disappear from buildroot, but nobody should have ever relied on it since we have guidelines about that for long time: https://docs.fedoraproject.org/en-US/packaging-guidelines/#buildrequires

Dependencies

N/A (not a System Wide Change)

Contingency Plan

  • Contingency mechanism: (What to do? Who will do it?) N/A (not a System Wide Change)
  • Contingency deadline: N/A (not a System Wide Change)
  • Blocks release? N/A (not a System Wide Change), Yes/No
  • Blocks product? product

Documentation

N/A (not a System Wide Change)

Release Notes