[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#148172: command -v in postinsts violating policy



On Sat, May 25, 2002 at 09:39:28PM -0400, Joey Hess wrote:
> Clint Adams wrote:
> > > Such as?
> > 
> > test -x /usr/sbin/install-docs || echo hi
> 
> Personally, the only such paths I ever hard code are /etc, #!/bin/sh,
> and #!/usr/bin/perl, and I've been thinking about using the env trick
> for that last. ess hardcoded paths is good for flexability, and avoid
> possible future nasty transitions if the file moves.


It also makes it easier to do Stupid Package Tricks like post-
processing packages to install into /opt/debian/ (on a non-Debian
system, of course), where the path is /opt/debian/bin:/opt/debian/usr/bin.

Yes, I've tried this.  (I claim no sanity.)  No, this doesn't work
even remotely well right now.  But it may be interesting in the
distant future, given how well dpkg-cross works.



dave...


-- 
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: