From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14157 invoked by alias); 17 Mar 2015 18:57:12 -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: X-Seq: 34732 Received: (qmail 8182 invoked from network); 17 Mar 2015 18:56:58 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_PASS autolearn=ham version=3.3.2 X-AuditID: cbfec7f4-b7f126d000001e9a-54-55087608da2f Date: Tue, 17 Mar 2015 18:46:46 +0000 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: fndir introspection, site-packages documentation Message-id: <20150317184646.32cbb43c@pwslap01u.europe.root.pri> In-reply-to: <150317085233.ZM16331@torch.brasslantern.com> References: <20150313224121.GO4524@isis.sigpipe.cz> <150313203904.ZM25016@torch.brasslantern.com> <20150315021436.GQ4524@isis.sigpipe.cz> <150315121447.ZM27996@torch.brasslantern.com> <20150316080819.GR4524@isis.sigpipe.cz> <150316090829.ZM15335@torch.brasslantern.com> <20150316171312.40dbec76@pwslap01u.europe.root.pri> <150317085233.ZM16331@torch.brasslantern.com> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrCLMWRmVeSWpSXmKPExsVy+t/xq7ocZRyhBisXS1ocbH7I5MDoserg B6YAxigum5TUnMyy1CJ9uwSujO5Dz1gK9vFU7N47jamBcRZXFyMHh4SAicSZHQ5djJxAppjE hXvr2boYuTiEBJYySjQdOcYO4Sxhkjj5djMzhLONUWLLlGYmkBYWAVWJE2uWsYDYbAKGElM3 zWYEsUUExCXOrj3PArJBWMBWYk6nE4jJK2Av8fafIEgFp4CVRNuVbqhlf5kk9u79ADaSX0Bf 4urfT0wQF9lLzLxyBmwkr4CgxI/J98BWMQtoSWze1sQKYctLbF7zlhnEFhJQl7hxdzf7BEah WUhaZiFpmYWkZQEj8ypG0dTS5ILipPRcQ73ixNzi0rx0veT83E2MkJD9soNx8TGrQ4wCHIxK PLwNeeyhQqyJZcWVuYcYJTiYlUR477hzhArxpiRWVqUW5ccXleakFh9iZOLglGpgZGm92xei tKW2wizR7XGWqeWmHTlqn9mFePL7y9QF+6YYTnM4LMPXljflQUNy88It6/c/KmgteiNedlTy fuoG6VSLzzwfpn17XyH49c/boPm8Rjf7xZ/1LRCMStTo0VxRtoVJ5JtKWcn9lEff0i/GRnN6 3+5JFvORjxH1FHq9cPmhpH176tcpsRRnJBpqMRcVJwIA8v7WPjcCAAA= On Tue, 17 Mar 2015 08:52:33 -0700 Bart Schaefer wrote: > On Mar 16, 5:13pm, Peter Stephenson wrote: > } Subject: Re: fndir introspection, site-packages documentation > } > } On Mon, 16 Mar 2015 09:08:29 -0700 > } Bart Schaefer wrote: > } > I will > } > however note that I think --disable-site-fndir ought to do exactly that, > } > and the documentation blurb is what needs fixing. If the shell is being > } > configured for some kind of secure/embedded environment, removing all > } > access to locally added functions is perfectly reasonable. > } > } Yes, that seems right. > > OK, but that's not actually what happens if you change the --prefix. You > can't currently get both a different prefix and no extra directory in fpath. I think you're suggesting the following. Let we know explicitly how this needs to change if not. pws diff --git a/configure.ac b/configure.ac index 7e770cd..e4de193 100644 --- a/configure.ac +++ b/configure.ac @@ -318,7 +318,8 @@ fi], [sitefndir=${datadir}/${tzsh_name}/site-functions]) dnl Add /usr/local/share/zsh/site-functions if not yet present dnl owing to $sitefndir, whether or not explicitly given. dnl If not explicitly given, it hasn't been expanded yet. -if test X$sitefndir = X/usr/local/share/zsh/site-functions +if test X$sitefndir = X/usr/local/share/zsh/site-functions || \ + test X$sitefndir = Xno then fixed_sitefndir='' elif test X$prefix != X/usr/local; then if test X$prefix = XNONE && test X$ac_default_prefix = X/usr/local; then