Re: Fedora 31 Self-Contained Change proposal: Minimal GDB in buildroot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 29. 04. 19 8:16, Miro Hrončok wrote:
On 29. 04. 19 2:55, Sergio Durigan Junior wrote:
On Sunday, April 28 2019, Miroslav Suchý wrote:

Dne 26. 04. 19 v 23:49 Ben Cotton napsal(a):
https://fedoraproject.org/wiki/Changes/Minimal_GDB_in_buildroot

== Summary ==
Create <code>gdb-minimal</code> package (without XML support, Python
support, Syntax Highlight and such) and switch to it in buildroot.

The change will likely affect Mock and will slightly modify its behaviour.
Right now, it seems that I will add `--allowerasing` to dnf command.

If you are interrested, please join this RFC discussion:
   https://github.com/rpm-software-management/mock/issues/251

Hey Miroslav,

I just would like to clarify that the change will actually not require
any modification from mock's perspective.  The final split of the GDB
package will work like this:

- gdb-minimal will provide /usr/bin/gdb.minimal.

- gdb will probide /usr/bin/gdb, and /usr/bin/gdb-add-index (which is
   the script the buildroot ultimate uses).

- /usr/bin/gdb-add-index will check if there's a /usr/bin/gdb.minimal
   binary available, and use it.  Otherwise, it will fallback to
   /usr/bin/gdb.

Therefore, no Conflicts was needed, which means that even if a package
being built depends on gdb, no problems should arise.

Are you sure that the description is correct?

If /usr/bin/gdb-add-index is to be provided by "gdb" package, the "gdb-minimal" package has no reason.

It seems to me according to the change, that the thing needs to be done the other way around:

- gdb will probide /usr/bin/gdb
- gdb-minimal will provide /usr/bin/gdb.minimal and /usr/bin/gdb-add-index

- /usr/bin/gdb-add-index will check if there's a /usr/bin/gdb binary available, and use it.  Otherwise, it will fallback to /usr/bin/gdb.minimal

What am I not getting?

I've get gdb-minimal from https://koji.fedoraproject.org/koji/buildinfo?buildID=1259881

When I install gdb-minimal ito the buildroot and remove all othe gdb packages:

# rpm -qa | grep gdb
gdb-minimal-8.3.50.20190425-9.fc31.x86_64

I don't have /usr/bin/gdb-add-index:

# /usr/bin/gdb-add-index
sh: /usr/bin/gdb-add-index: No such file or directory

In order to get it, I need gdb-headless:

# dnf install gdb-headless
# rpm -qf /usr/bin/gdb-add-index
gdb-headless-8.3.50.20190425-9.fc31.x86_64

But that brings in the packages that we shall no longer have:

  gdb-headless-8.3.50.20190425-9.fc31.x86_64
  boost-regex-1.69.0-6.fc30.x86_64
  ctags-5.8-25.fc30.x86_64
  elfutils-default-yama-scope-0.176-1.fc30.noarch
  elfutils-libs-0.176-1.fc30.x86_64
  gdbm-libs-1:1.18-4.fc30.x86_64
  glib2-2.61.0-2.fc31.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.1-1.fc31.noarch
  python-setuptools-wheel-41.0.1-1.fc31.noarch
  python3-libs-3.7.3-2.fc31.x86_64
  source-highlight-3.1.8-24.fc31.x86_64
  sqlite-libs-3.27.2-3.fc31.x86_64

So that goes against the Change benefit/description.

--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux