andrewchambers / hpkgs

A package repository for hermes
45 stars 3 forks source link

Split .so files into -rt packages #105

Open andrewchambers opened 4 years ago

andrewchambers commented 4 years ago

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.

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.

sogaiu commented 4 years ago

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.

extrowerk commented 4 years ago

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.