A service for adding support for running portable binaries built for most linux distributions that use the filesystem hierarchy standard

  • Open
  • quality assurance status badge
Details
2 participants
  • Efraim Flashner
  • pkill9
Owner
unassigned
Submitted by
pkill9
Severity
normal
P
P
pkill9 wrote on 26 Jun 2019 01:00
(name . guix-patches)(address . guix-patches@gnu.org)
E1hfuQY-00072D-74@rmmprod06.runbox
Hi Guix, for a while now I have been using a service I wrote that allows you to run portable binaries, such as AppImages, which expect to be run on distros that respect the filesystem hierarchy standard i.e store required libraries in /usr, /lib, etc, which is most distros.

I think it could be a valuable tool to have in Guix, as it allows you to run software that hasn't yet been packaged in Guix that is distributed as binaries by the author. Also, if builds are failing in Guix, it's useful to have the alternative - for example, calibre currently can't be built due to build failure of a dependency (qtwebkit), so I use the Calibre tar bundle distributed by the website for now.

This still requires some work before it's ready for inclusion in Guix - decisions on how it's implemented need to be made, and the code needs cleanup. But if I don't submit it in it's imperfect state, i won't get anything done on it.

I've done a little writeup on how it works here: http://miha.info/2019/June/24/guix-fhs-service

I've attached a patch for it. To build a guix system with it, add to the guix system services:

(service fhs-binaries-compatibility-service-type
(fhs-configuration
(lib-packages <list of package objects to provide libraries for the binaries>)
(additional-special-files <more special files to add>)
(additional-profile-packages <packages to add to system profile>)))

The additional-special-files and additional-profile-packages are functionally exactly the same as using special-files-service-type and profile-service-type separately, it's purely for organising the config so the admin knows why those special files and profile packages were added.
E
E
Efraim Flashner wrote on 4 Jul 2019 09:16
(address . pkill9@runbox.com)(address . 36382@debbugs.gnu.org)
20190704071626.GC1085@macbook41
Attachment: file
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl0dp8YACgkQQarn3Mo9
g1EWsBAAgMtEjuQQ9jh9OaI46B3g6wlHeMOSjlRD5wzFRNSMt2Z3F0c2p+fp6b0F
NHbj8bMxrAY2yki6ME8FnP/T2I15IBOLhrj8+lZohTY62P0wuTPEuxkrdn1WHW7e
oUH3rRrUNXBg10qnu2lrrdVYujEDFBiiFzC6P2tbaT7MynM+nhToZMqwz4FaVs2Y
5i4b16rN4OrtKD9Lr1PNYURh8Y4SR9S0/0/+3Nk8TVgRt3SrqvpHv7xem2lX93AL
OpJ8sH20GK0DqmQwGnnjD4jWUFAXdpOIGGjdjx8hQ++L17brXx7MMGxlnL3wty1p
CdpAEaMV59hrLdDXXFLhV4x+gIE99yIsL8CsMS16cJRD8amWNwJZS0LAO7UR6Puj
GySKeB3v53j3NgnREh7it+Aii/pEF7hQgUhgo1a7FjStL20NeRLlweO84f75ENFM
akpFOGXIutnADzBujmRLnu+xq5SHswjhPRd5TRKfDniqBx67OR40JSWCVoxrNKgv
7y81Iqc87uFjOUtWYr/uFBMe0VwM24LVsiktfbHvyqy5ZgvkgFVnPK1e+9J4Mksy
g6pwzhFBwFY0YU3AskkoacpHtYzxGajdyC+WGVqKH57QE8o7MLtUYDQx0NQ41huX
ChWffxNjCmfa4LCl2b5QcKln3qc1jAXckAbJGwQkLjDDXajO4VA=
=yUmw
-----END PGP SIGNATURE-----


?