zsh-users
 help / color / mirror / code / Atom feed
From: Roman Perepelitsa <roman.perepelitsa@gmail.com>
To: Sebastian Gniazdowski <sgniazdowski@gmail.com>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: [ANN] zsh-bin: statically-linked, hermetic, relocatable zsh
Date: Sat, 28 Mar 2020 15:02:45 +0100	[thread overview]
Message-ID: <CAN=4vMr_=ogXTYQKO_Y91NZf3dcRSsza3g6GGtMU+NvRwAJKpg@mail.gmail.com> (raw)
In-Reply-To: <CAKc7PVBbgoEM63Q6_1UGHOzHCAibfYbvMXaXxBG6AyYwEcSDUQ@mail.gmail.com>

On Sat, Mar 28, 2020 at 1:24 AM Ray Andrews <rayandrews@eastlink.ca> wrote:
> What is 'hermetic'?

It means Zsh from zsh-bin doesn't require any files from outside of
its installation directory to function. Perhaps "self-contained" would
be a better word.

> Does relocatable mean that I can just move the target directory
> to anything/anywhere and so long as 'zsh' if found, all else will
> work?

Relocatable means you can install Zsh from zsh-bin into any directory.
This isn't the case for other distributions. Usually, after Zsh is
compiled, it can work only when placed in a specific directory.

You can find more details in https://github.com/romkatv/zsh-bin/#how-it-works.

> Which of the three methods below would be recommended?

Installation with the install script is the easiest by far. It's also
safer thanks to signature verification and extra care to avoid
clobbering an existing installation.

Manual installation is for those who like to tinker. It also serves as
an explanation of what `install` does.

The option to build your own archive is for those who like to tinker
even more. Note that you can also use the install script to install
Zsh from an archive you've built yourself.

> I'm running Debian 'amd64' so which image?
> I'm thinking: zsh-5.8-linux-x86_64.tar.gz

That's right. The manual installation instructions show the basic
algorithm for deriving the name of the archive from the OS kernel name
and CPU architecture.

  kernel=$(uname -s | tr '[A-Z]' '[a-z]')
  arch=$(uname -m | tr '[A-Z]' '[a-z]')
  name="zsh-5.8-${kernel}-${arch}"

See https://github.com/romkatv/zsh-bin#manual-installation. The
install script is a bit smarter than this.

Since the name of your OS kernel is Linux and CPU architecture is
x86_64, zsh-5.8-linux-x86_64.tar.gz will work.

> And do I understand that the whole thing will be in one subdirectory?

Yes. You can simply remove this directory to "uninstall".

On Sat, Mar 28, 2020 at 11:37 AM Sebastian Gniazdowski
<sgniazdowski@gmail.com> wrote:
> I've ran the script and the resulting zsh seems to not support dynamic
> loading at all.

Indeed. I've added this limitation to the documentation:

  Zsh from zsh-bin cannot load user-defined compiled modules. There
  no way to guarantee that user-defined modules have been linked
  with the same libc as `zsh`, so it's unsafe to load them. This
  limitation likely cannot be removed.

Roman.

  reply	other threads:[~2020-03-28 14:03 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-26 14:20 Roman Perepelitsa
2020-03-28  0:23 ` Ray Andrews
2020-03-28 10:37 ` Sebastian Gniazdowski
2020-03-28 14:02   ` Roman Perepelitsa [this message]
2020-03-28 16:06     ` Ray Andrews
2020-03-28 16:16       ` Roman Perepelitsa
2020-03-28 16:27         ` Ray Andrews
2020-04-05 15:46 ` Ray Andrews
2020-04-05 15:55   ` Roman Perepelitsa
2020-04-05 16:38     ` Ray Andrews
2020-04-05 16:45       ` Roman Perepelitsa
2020-04-05 18:47         ` Ray Andrews
2020-04-05 18:57           ` Roman Perepelitsa
2020-04-05 19:15             ` Ray Andrews
2020-04-05 19:19               ` Roman Perepelitsa

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

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

  git send-email \
    --in-reply-to='CAN=4vMr_=ogXTYQKO_Y91NZf3dcRSsza3g6GGtMU+NvRwAJKpg@mail.gmail.com' \
    --to=roman.perepelitsa@gmail.com \
    --cc=sgniazdowski@gmail.com \
    --cc=zsh-users@zsh.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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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 NNTP newsgroup(s).