From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 6d477f71 for ; Fri, 11 Oct 2019 11:54:50 +0000 (UTC) Received: (qmail 17687 invoked by alias); 11 Oct 2019 11:54:44 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 44823 Received: (qmail 22270 invoked by uid 1010); 11 Oct 2019 11:54:44 -0000 X-Qmail-Scanner-Diagnostics: from mail-40130.protonmail.ch by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.0/25598. spamassassin: 3.4.2. Clear:RC:0(185.70.40.130):SA:0(-2.7/5.0):. Processed in 2.595548 secs); 11 Oct 2019 11:54:44 -0000 X-Envelope-From: codenb@protonmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.protonmail.ch designates 185.70.40.130 as permitted sender) Date: Fri, 11 Oct 2019 11:54:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=default; t=1570794845; bh=VCdhfOK1nIZqgKYBZaApWJMwZPvkjvmBW7CwQNvlzaA=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References: Feedback-ID:From; b=mw9FZf+RrMKaQfCFR41WU6uPtO7uwdM0Mp3HQMqkWTz+KN82+BD4eAVdwUcodUFFa H9uzfniMM8BB4GBmtku5LiVZd2q5fCsR49s07Zn+6MSCcc+4hqQnJTugJJHYMjnwTh D8lnOZug72CNSUYmwWP8PGQ0g1iv1nApAY6t+iRc= To: "zsh-workers@zsh.org" From: Coden Cc: "Peter A. Castro" Reply-To: Coden Subject: Re: Portable rootless ZSH Message-ID: <-1Pz0W4MKe73f-nCkejafEE_SNaTME3zWtRpz26zC_wtj9KNc0hpsLeZA60x2YG1GSs5D7RW10p5kfmsy5HRFiXl3oHHx3wt2NHVKUGfX_0=@protonmail.com> In-Reply-To: References: <20191008204722.GU6761@ming.fruitbat.org> Feedback-ID: 1g_EZM5cadEHcIg82x2qZXWXT-U_XXBlI7kN837NwaZpram7G2oom_E1e2DIYhFQFmC50rpRJhWFHjVSm_Y7-w==:Ext:ProtonMail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello! I've tried to resolve the errors but have no result. Do you have any thoughts or plans to make ZSH portable rootless? Bash is widely spreaded in the default installations. Instead of try to ins= tall zsh on every system I want to use zsh binary (packed in AppImage for e= xample). I want to just upload it and run. It could looks like: scp ./zsh host:~/ && ssh host -t "~/zsh" And you're in without using bash! If I should install zsh with root access on every system where I'm going it= is a pice of hell. If portable rootless zsh is not in your plans and not so interesting it's v= ery sad and short-sighted I think. Coden B =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On Wednesday, October 9, 2019 11:07 PM, Coden wrote= : > Peter, thank you for the fast response! > > I faced with this: > > 1. Build ./configure --disable-dynamic --disable-gdbm && make > 2. Run ./Src/zsh > > (I already have zsh so I have home dir with .zshrc and oh-my-zsh and = $ZDOTDIR is /root) > > /root/.oh-my-zsh/oh-my-zsh.sh:69: compinit: function definition file = not found > /root/.oh-my-zsh/lib/directories.zsh:32: command not found: compdef > /root/.oh-my-zsh/lib/theme-and-appearance.zsh:2: colors: function def= inition file not found > /root/.oh-my-zsh/plugins/git/git.plugin.zsh:19: command not found: co= mpdef > /root/.oh-my-zsh/plugins/git/git.plugin.zsh:89: command not found: co= mpdef > /root/.oh-my-zsh/plugins/git/git.plugin.zsh:104: command not found: c= ompdef > /root/.oh-my-zsh/plugins/git/git.plugin.zsh:109: command not found: c= ompdef > /root/.oh-my-zsh/plugins/git/git.plugin.zsh:119: command not found: c= ompdef > /root/.oh-my-zsh/plugins/git/git.plugin.zsh:129: command not found: c= ompdef > /root/.oh-my-zsh/plugins/git/git.plugin.zsh:138: command not found: c= ompdef > /root/.oh-my-zsh/plugins/git/git.plugin.zsh:144: command not found: c= ompdef > /root/.oh-my-zsh/plugins/git/git.plugin.zsh:229: is-at-least: functio= n definition file not found > /root/.oh-my-zsh/custom/themes/powerlevel10k/internal/p10k.zsh:1: is-= at-least: function definition file not found > > 3. As result I've got zsh prompt without any theme. > > It looks like something went wrong. Are these errors related with bui= ld? > > Coden > > =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Origi= nal Message =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80= =90 > On Tuesday, October 8, 2019 11:47 PM, Peter A. Castro doctor@fruitbat= .org wrote: > > > > On Tue, Oct 08, 2019 at 06:44:10PM +0000, Coden wrote: > > > > > Hello! > > > > Greetings, Coden, > > > > > I've tried to create portable version zsh along with couple tools whi= ch I can run without installation and root access. I've tried build zsh wit= h brew or conda and packaging with modern AppImage but every time I faced w= ith static library paths inside zsh binary. > > > There is no way to plase zsh in any directory and run. Is it right? C= ould anyone from zsh maintainers help me? > > > My last try to pack zsh to AppImage was described here - https://disc= ourse.appimage.org/t/shell-with-tools-in-appimage/1455/5 . You can find cas= e description. AppImage maintainer recommend me to ask you about the abilit= y to packaging zsh with flexible paths. > > > > I know nothing about AppImage, but looking at what you posted there, it > > seems like the problem is the plethora of zsh modules, though only zle > > is implicated at the moment. > > Configure for zsh has options to disable module generation: > > --disable-dynamic > > Have you tried running configure with that? > > You may lose some functionality this way, though. > > You may also find gdbm get's pulled in, which may also be a problem for > > your environment, so disable that too: > > --disable-gdbm > > % ./configure --disable-dynamic --disable-gdbm > > ... > > zsh configuration > > > > zsh version : 5.7.1 > > host operating system : x86_64-pc-linux-gnu > > source code location : . > > compiler : gcc > > preprocessor flags : > > executable compiler flags : -Wall -Wmissing-prototypes -O2 > > executable linker flags : -s > > library flags : -lnsl -lncursesw -lrt -lm -lc > > installation basename : zsh > > binary install path : /usr/local/bin > > man page install path : /usr/local/share/man > > info install path : /usr/local/share/info > > functions install path : /usr/local/share/zsh/5.7.1/functions > > See config.modules for installed modules and functions. > > If you look at config.modules you will see many modules are > > "link=3Dstatic", including zle. > > You can run "./configure --help" to see what other options might be of > > value to you. > > Hope that is of some help. Good luck! > > > > > Thanks for responses and advises! > > > > -- > > --=3D> Peter A. Castro > > Email: doctor at fruitbat dot org / Peter dot Castro at oracle dot com > > "Cats are just autistic Dogs" -- Dr. Tony Attwood