[haiku] Re: Haunted by libstdc++.r4.so!

  • From: miqlas <miqlas@xxxxxxxxx>
  • To: haiku@xxxxxxxxxxxxx
  • Date: Tue, 11 Feb 2020 14:10:26 +0100

Pete Goodeve <pete.goodeve@xxxxxxxxxxxx> ezt írta (időpont: 2020. febr.
11., K, 4:28):


** But why did installing glib insist on also installing python3 ??!!
Sorry, but this is one of the really irritating things about HaikuDepot.
It always seems to want to add apparently totally unwanted things!


Please, try to zoom out a bit to have a better picture about the whole
ecosystem instead of ranting, let me ask better questions and give some
answers in the same time:

Why pyton3 required?
Because it is marked as requirement in the recipe for the devel subpackage:
https://github.com/haikuports/haikuports/blob/master/dev-libs/glib/glib2-2.62.0.recipe#L81
Notice, that only the _devel package depends on it.

Why the devel package depends on Python3?
Because it provides python interface in the developer package, so to make
it sure it will work it is marked as dep.

Does it makes sense to depend on python3?
Obviously, for the better user-experience.

Does it have to depend on python3 at all?
Good question, maybe not neccesarily. Notice: gentoo, arch and ubuntu
packages built also with Python enabled, however according to the glib2
docs it is just optional.

If it optional dep, then why it is enabled in the recipe at all?
Maybe some other ports needs it.

But it is unwanted for my task!
Try to remove python3 from the recipe (be careful, it is listed 2 times,
you have to remove both. Rebuild the package with haikuporter and build
every package what depends on glib. If all of them works, then create a PR
at haikuports and we will merge, so it won't be needed anymore.

Yep, Haiku could have take the gentoo way to let the user decide for each
port abbout the optional packages, but then then end-users would be
required to build everything manually, as HiakuPorts would be unable to
host every combination of every package, i fear.

Hope it helps.

---
Mizsei Zoltán
(aka. miqlas)

Other related posts: