@ -176,9 +176,12 @@ ldd hellop
and it still works. To relocate stuff, I'll want to retain the hash
value. But this is just a first try. I think I have the pieces now to
relocate Guix built binaries into other dirs.
and it still works. To patch the interpreter ld-xxx.so.2 also patchelf
can be used.
To relocate stuff, I'll want to retain the hash value. But this is
just a first try. I think I have the pieces now to relocate Guix built
binaries into other dirs.
Other tools of interest for dealing with elf binaries are [[http://linux.die.net/man/1/readelf][readelf]],
[[http://www.gentoo.org/proj/en/hardened/pax-utils.xml][dumpelf]], [[http://www.eresi-project.org/][eresi]] and [[https://sourceware.org/binutils/docs/binutils/objcopy.html][objdump]].
@ -144,6 +144,17 @@ This implies we can combine any number of software packages with
dependencies and tar it all up for distribution. It will also unpack
in a Docker container without special privileges.
* Install script
* Create relocatable installer
Starting from above tar ball we can make a relocatable binary
installer using a few tricks. Unpack the tar ball somewhere
: mkdir hello
: cd hello
: tar xvzf ../test.tgz
Now the files should be in ./gnu/store
: ls ./gnu/store