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.0 required=5.0 tests=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 827ad7e6 for ; Tue, 8 Oct 2019 20:50:00 +0000 (UTC) Received: (qmail 28788 invoked by alias); 8 Oct 2019 20:49:53 -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: 44806 Received: (qmail 22993 invoked by uid 1010); 8 Oct 2019 20:49:53 -0000 X-Qmail-Scanner-Diagnostics: from 173-228-5-241.dsl.static.fusionbroadband.com 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(173.228.5.241):SA:0(-1.9/5.0):. Processed in 1.912177 secs); 08 Oct 2019 20:49:53 -0000 X-Envelope-From: doctor@fruitbat.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at fruitbat.org designates 173.228.5.241 as permitted sender) Date: Tue, 8 Oct 2019 13:47:23 -0700 From: "Peter A. Castro" To: Coden Cc: "zsh-workers@zsh.org" Subject: Re: Portable rootless ZSH Message-ID: <20191008204722.GU6761@ming.fruitbat.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.0 (2018-05-17) 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 with static library paths inside zsh binary. > > There is no way to plase zsh in any directory and run. Is it right? Could anyone from zsh maintainers help me? > > My last try to pack zsh to AppImage was described here - https://discourse.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=static", 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! -- --=> Peter A. Castro Email: doctor at fruitbat dot org / Peter dot Castro at oracle dot com "Cats are just autistic Dogs" -- Dr. Tony Attwood