[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Seeking help to create link to in /lib64

From: Milind Kamble
Subject: Seeking help to create link to in /lib64
Date: Sun, 30 Oct 2022 22:38:31 -0500

    I want to create a link in /lib64 that points to
That target file is present in the gcc:lib package (not in the
gcc:out). Following the recommendation in Guix info manual (Base
Services), I have used the following construct in my operating-system
   ;; snip other stuff
         ;; snip other stuff
         (extra-special-file "/lib64/"
                    (file-append gcc "/lib/")))))

This creates the link to
/gnu/store/somehash-gcc-10.3.0/lib/ which is a broken
link because is available in gcc:lib and not gcc:out

I am unable to specify (file-append gcc:lib "/lib/")
because guile complains that gcc:lib is unbound

I understand it is hacky to create link in /lib64/ and the purer
solution is to port the desired app into a guix package. But I don't
have the expertise to craft a package definition yet. I am trying to
use the Deskreen app for screen sharing, which is available as an
AppImage. I have managed to run the AppImage by crafting my
LD_LIBRARY_PATH and "patchelf --set-interpreter" of the AppImage
binary and wanted to make these links in /lib64 where the AppImage
expects it's shared libraries.

Rather than getting a recommendation to not create the link, I would
like to know what syntax change will achieve the desired outcome in
the operating-system spec. This will help me learn the nuances and
concepts of gexp.

If instead of file-append, I use string-append like this:
#~(string-append $#gcc:lib "/lib/")
it works to the extent that gcc:lib is expanded correctly, but then
activate-service.scm script contains
(activate-special-files (quote (("/lib64/"
(string-append "/gnu/store/6d0pl5khj08j3c2619jnypc8bznspgx8-gcc-10.3.0-lib"

and which results in an error:
wrong type (expecting string): (string-append

So string-append needs to get evaluated in host side before dispatch
to the guix daemon
 Any help would be educative and appreciated.
Milind Kamble

reply via email to

[Prev in Thread] Current Thread [Next in Thread]