hpkgs icon indicating copy to clipboard operation
hpkgs copied to clipboard

Split .so files into -rt packages

Open andrewchambers opened this issue 5 years ago • 2 comments

Generally we want to be able to garbage collect development files away when they are no longer needed. One way to do this is to split library packages into multiple packages.

  • foo - Package containing .pc files and .h files and bin files.
  • foo-rt Package containing .so files.

If we make sure RUNPATH point to the foo-rt package, the other files should be garbage collectable. Packages that follow this idea have a very small runtime closure size.

Generating such split packages might not be so easy in all cases, programs like openssl which contain both bins and libs present one set of problems.

andrewchambers avatar Jun 04 '20 00:06 andrewchambers

May be we can identify some candidates to make attempts on?

Would ncurses and fontconfig count as similar to the openssl case? They both have both bins and libs -- where the bins require the libs.

sogaiu avatar Jun 04 '20 01:06 sogaiu

Maybe you can get some inspiration from the HaikuPorts repo: we also split the packages, however the naming strategy is different. In Haiku world the main package contains the runtimes and or exes with their manpages/user docs, while the _devel subpackage contains the development symlinks, the headers, .pc and cmake files, examples and development docs. We have expertise in package-chopping.

extrowerk avatar Jun 16 '20 16:06 extrowerk