unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Path-agnostic binaries
@ 2018-10-01 10:01 Eric Myhre
  2018-10-01 11:43 ` Vincent Legoll
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Myhre @ 2018-10-01 10:01 UTC (permalink / raw)
  To: guix-devel

Hey Guix,

Some of us have chatted in the past while gathered at the repro builds
summits about "relocatable binaries".  I've been continuing to chew on
that thought for a while now, and might have made some interesting progress.

For starters, I'd like to offer a new name for this: "path-agnostic
binaries".  I've tossed the "relocatable" term out among a few dozen
different groups of people now, and while it hits home and self-explains
to about 60% of them instantly, the other 40% seem to think it sounds
like "position independent code"/PIE and thus find it confusing. 
"Path-agnostic", while a bit more of a mouthful, seems to successfully
avoid all confusion.

I did a little more development of a definition for this, and splunked
some ld flags and ELF headers, and turned this into a whole talk
recently at All Systems Go.  And they were kind enough to record it, so
for the interested, here's the video as well as the slides (and mea
culpa for the heinuously nonfree host of the slides):

Video:
https://media.ccc.de/v/ASG2018-204-path-agnostic_binaries_co-installable_libraries_and_how_to_have_nice_things

Slides:
https://docs.google.com/presentation/d/e/2PACX-1vRUkAAMNNEPbK4HR1OEYfqktsOiDtKqlLLiBsNdg9DL73W2lGNr5OpEsM7fhwZ1xnXQwl57DheDejNR/pub

There's some mention of Nix/Guix at the end.  I was able to describe
them interchangeably for the parts relevant to the talk, so I mostly
ended up saying "Nix" for brevity, and again I beg pardon, heh.  I hope
I've not misquoted anything when talking about Guix paths.  (Someone
from Nix informed me after the talk that there's a distinction in
hashing for atoms vs derivations in the store, but I think the gist is
still close enough to correct.)

I hope this can be useful to someone!  If not any of the linker flags in
particular, then at least the terminology might be useful.  And I'd love
to accept feedback and other ideas for better developing terminology
around this area.

Cheers!

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Path-agnostic binaries
  2018-10-01 10:01 Path-agnostic binaries Eric Myhre
@ 2018-10-01 11:43 ` Vincent Legoll
  2018-10-02 13:32   ` Pierre Neidhardt
  0 siblings, 1 reply; 3+ messages in thread
From: Vincent Legoll @ 2018-10-01 11:43 UTC (permalink / raw)
  To: hash; +Cc: guix-devel

Hello,

On Mon, Oct 1, 2018 at 12:02 PM Eric Myhre <hash@exultant.us> wrote:
> For starters, I'd like to offer a new name for this: "path-agnostic
> binaries".  I've tossed the "relocatable" term out among a few dozen
> different groups of people now, and while it hits home and self-explains
> to about 60% of them instantly, the other 40% seem to think it sounds
> like "position independent code"/PIE and thus find it confusing.
> "Path-agnostic", while a bit more of a mouthful, seems to successfully
> avoid all confusion.

I completely agree on this naming. I've mostly heard / read "relocatable"
in the context of binary code.

-- 
Vincent Legoll

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Path-agnostic binaries
  2018-10-01 11:43 ` Vincent Legoll
@ 2018-10-02 13:32   ` Pierre Neidhardt
  0 siblings, 0 replies; 3+ messages in thread
From: Pierre Neidhardt @ 2018-10-02 13:32 UTC (permalink / raw)
  To: Vincent Legoll; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 558 bytes --]

Nice video!

And thanks for advertising for the Nix / Guix projects ;)

Near the end of the talk, you seem to imply that Nix/Guix don't suffice for full
path-agnosticism because libraries still contain absolute path.  This is not
completely accurate: "guix pack --relocatable" outputs binaries that can be run
on absolutely any Linux distro, despite the absolute paths.  See

	https://guix.info/blog/2018/tarballs-the-ultimate-container-image-format/

for more information, you might love this! :D

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-10-02 13:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-01 10:01 Path-agnostic binaries Eric Myhre
2018-10-01 11:43 ` Vincent Legoll
2018-10-02 13:32   ` Pierre Neidhardt

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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).