From Fedora Project Wiki
No edit summary
No edit summary
Line 41: Line 41:
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.


As of Apr 26, following packages would disappear from buildroot (number next to NEVRA is RPM size):
As of Apr 26, following packages would disappear from buildroot:


<pre>
<pre>
boost-regex-1.69.0-6.fc30.x86_64 295936
boost-regex-1.69.0-6.fc30.x86_64
ctags-5.8-25.fc30.x86_64 161740
ctags-5.8-25.fc30.x86_64
gdbm-libs-1:1.18-4.fc30.x86_64 50908
gdbm-libs-1:1.18-4.fc30.x86_64
libbabeltrace-1.5.6-2.fc30.x86_64 188264
libbabeltrace-1.5.6-2.fc30.x86_64
libicu-63.1-2.fc30.x86_64 9412856
libicu-63.1-2.fc30.x86_64
libipt-2.0-2.fc30.x86_64 51848
libipt-2.0-2.fc30.x86_64
python-pip-wheel-19.0.3-1.fc31.noarch 1189276
python-pip-wheel-19.0.3-1.fc31.noarch
python-setuptools-wheel-40.8.0-1.fc30.noarch 285204
python-setuptools-wheel-40.8.0-1.fc30.noarch
python3-3.7.3-2.fc31.x86_64 38832
python3-3.7.3-2.fc31.x86_64
python3-libs-3.7.3-2.fc31.x86_64 8274948
python3-libs-3.7.3-2.fc31.x86_64
python3-pip-19.0.3-1.fc31.noarch 1841456
python3-pip-19.0.3-1.fc31.noarch
python3-setuptools-40.8.0-1.fc30.noarch 650932
python3-setuptools-40.8.0-1.fc30.noarch
source-highlight-3.1.8-24.fc31.x86_64 664136
source-highlight-3.1.8-24.fc31.x86_64
sqlite-libs-3.27.2-3.fc31.x86_64 553384
sqlite-libs-3.27.2-3.fc31.x86_64
</pre>
</pre>



Revision as of 21:04, 26 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-26
  • 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/libexec/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)
  • 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