unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Marius via <help-guix@gnu.org>
To: woshilapin <woshilapin@tuziwo.info>, dev@icepic.de
Cc: help-guix@gnu.org
Subject: Re: How to: How to wrap executablea?
Date: Thu, 21 Nov 2024 13:31:19 +0000	[thread overview]
Message-ID: <E7728D29-32CE-421F-AE3A-797F1681EBBB@disroot.org> (raw)
In-Reply-To: <yBv4IGSfah4Kd08ez6gECLTyOC2rmZLZueOhx1b-c6qhErZu7FK6nx6B2jWm3pkTwL3cKpO0cTM-CtYBl3-XlyrxW_hJWsFxUL9JLXgZqq8=@tuziwo.info>

Thank you all,


I've recently found this possible solution that it's native to Guix: <https://guix.gnu.org/en/blog/2023/the-filesystem-hierarchy-standard-comes-to-guix-containers/>. So there we have the technical words we were looking for, since Guix System does not conform with FHS the binary did not work. But if I execute it in a shell container with a FHS emulated file system then it would probably work (I've to try it yet)!


Best regards,
Marius.

El 21 de noviembre de 2024 11:31:33 UTC, woshilapin <woshilapin@tuziwo.info> escribió:
>Hi Marius,
> 
>> I'm trying to execute a pre compiled program (on a Guix System) that I think is trying to call /lib64/ld-linux-x86-64.so.2 by its absolute path. Since Guix System does use the store and usually makes use of variables like "SHELL", "LIBRARY_PATH", etc. How do I wrap executables that technically are gnu-linux cross platform but use absolute paths that depend on distribution?
>
>It might not be exactly the same problem, but I remember getting around this kind of problem by providing guix's version of the library with `LD_LIBRARY_PATH`. Doing something like this.
>
>```
>eval "$(guix shell --search-paths)"
>export LD_LIBRARY_PATH="${LIBRARY_PATH}"
>```
>
>It's probably a horrible hack (I honestly don't know enough to know if it's nice or horrible), but it got me something to work with.
>
>Hope this helps, and I'd be happy to know of a cleaner solution.
>
>Sincerely,
>--
>woshilapin / Jean

  reply	other threads:[~2024-11-21 13:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-19 18:24 How to: How to wrap executablea? Marius via
2024-11-21 11:31 ` woshilapin
2024-11-21 13:31   ` Marius via [this message]
2024-11-21 12:00 ` Dev@icepic
2024-11-21 12:26   ` Andreas Enge

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E7728D29-32CE-421F-AE3A-797F1681EBBB@disroot.org \
    --to=help-guix@gnu.org \
    --cc=dev@icepic.de \
    --cc=mariusgr@disroot.org \
    --cc=woshilapin@tuziwo.info \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).