unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Marius via <help-guix@gnu.org>
To: help-guix@gnu.org
Subject: How to: How to wrap executablea?
Date: Tue, 19 Nov 2024 18:24:47 +0000	[thread overview]
Message-ID: <9D8BC476-2680-474E-A5C0-1708487C905E@disroot.org> (raw)

Good evening,

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?

I've read the entire Guix Ref. Manual but I'm too scared to do anything and don't know exactly what to do.

Should I use "guix shell --container -S" and create a symbolic link in the virtual shell?

Or should I make a package definition?

I know this is not really a guix problem... More like the people that programmed the executable hardcoded everything to their distribution (I think they used Ubuntu)...


I would like to know how to deal with this kind of problem, because the majority of code is hardcoded like this (for example hardcoded call to /usr/bin/bash).


Thank you.

Best regards,
Marius.
-- 
Enviado desde mi dispositivo Android con K-9 Mail. Por favor, disculpa mi brevedad.

             reply	other threads:[~2024-11-19 20:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-19 18:24 Marius via [this message]
2024-11-21 11:31 ` How to: How to wrap executablea? woshilapin
2024-11-21 13:31   ` Marius via
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=9D8BC476-2680-474E-A5C0-1708487C905E@disroot.org \
    --to=help-guix@gnu.org \
    --cc=mariusgr@disroot.org \
    /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).