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 23a2d459 for ; Wed, 9 Oct 2019 20:08:56 +0000 (UTC) Received: (qmail 2629 invoked by alias); 9 Oct 2019 20:08:48 -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: 44807 Received: (qmail 23175 invoked by uid 1010); 9 Oct 2019 20:08:47 -0000 X-Qmail-Scanner-Diagnostics: from mail-40136.protonmail.ch by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25594. spamassassin: 3.4.2. Clear:RC:0(185.70.40.136):SA:0(-2.7/5.0):. Processed in 3.760617 secs); 09 Oct 2019 20:08:47 -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.136 as permitted sender) Date: Wed, 09 Oct 2019 20:07:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=default; t=1570651686; bh=bLTE5p5Lf8SF6eXnsivdWcGW0Dr0ujQQvbT47K99w1w=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References: Feedback-ID:From; b=Hw58Jtnuyyu1zoNHsJaM3oxdP4Vd6UpO0eWZ9ulONBmdIfMkf+hDvDr4ZsluqqgG/ 09DT3mjWjb6ohZZtNdGTgmUxxVfRsczrAxl5CVlKEHK7YFfywJVNNeYlKbYt7by2Ci upJpu+0tVe21YsdYJKaK78gg0ifIXL8jej3zkxsU= To: "Peter A. Castro" From: Coden Cc: "zsh-workers@zsh.org" Reply-To: Coden Subject: Re: Portable rootless ZSH Message-ID: In-Reply-To: <20191008204722.GU6761@ming.fruitbat.org> 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 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 $ZDOTD= IR is /root) /root/.oh-my-zsh/oh-my-zsh.sh:69: compinit: function definition file not fo= und /root/.oh-my-zsh/lib/directories.zsh:32: command not found: compdef /root/.oh-my-zsh/lib/theme-and-appearance.zsh:2: colors: function definitio= n file not found /root/.oh-my-zsh/plugins/git/git.plugin.zsh:19: command not found: compdef /root/.oh-my-zsh/plugins/git/git.plugin.zsh:89: command not found: compdef /root/.oh-my-zsh/plugins/git/git.plugin.zsh:104: command not found: compdef /root/.oh-my-zsh/plugins/git/git.plugin.zsh:109: command not found: compdef /root/.oh-my-zsh/plugins/git/git.plugin.zsh:119: command not found: compdef /root/.oh-my-zsh/plugins/git/git.plugin.zsh:129: command not found: compdef /root/.oh-my-zsh/plugins/git/git.plugin.zsh:138: command not found: compdef /root/.oh-my-zsh/plugins/git/git.plugin.zsh:144: command not found: compdef /root/.oh-my-zsh/plugins/git/git.plugin.zsh:229: is-at-least: function defi= nition file not found /root/.oh-my-zsh/custom/themes/powerlevel10k/internal/p10k.zsh:1: is-at-lea= st: function definition file not found 4. As result I've got zsh prompt without any theme. It looks like something went wrong. Are these errors related with build? Coden =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 Tuesday, October 8, 2019 11:47 PM, Peter A. Castro = 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 which= I can run without installation and root access. I've tried build zsh with = brew or conda and packaging with modern AppImage but every time I faced wit= h static library paths inside zsh binary. > > There is no way to plase zsh in any directory and run. Is it right? Cou= ld anyone from zsh maintainers help me? > > My last try to pack zsh to AppImage was described here - https://discou= rse.appimage.org/t/shell-with-tools-in-appimage/1455/5 . You can find case = description. AppImage maintainer recommend me to ask you about the ability = 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