9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: uriel@cat-v.org
To: 9fans@cse.psu.edu
Subject: [9fans] Re: patch/list applied/ape-dumb-autohell-fixes
Date: Mon, 13 Feb 2006 17:17:51 +0100	[thread overview]
Message-ID: <6e0a93d2952defd6f4258eab2dc26322@cat-v.org> (raw)
In-Reply-To: <7c5561c3fea402ccac05d5762e3d2aa7@plan9.bell-labs.com>

> total applied/ape-dumb-autohell-fixes
> drwxrwxr-x 1 uriel sys 0 Feb 13 09:35 applied/ape-dumb-autohell-fixes
> from uriel@cat-v.org
> 	/rc/bin/ape/printf
> 	/sys/src/ape/cmd/ls.c
> 	Small 'fixes' to APE to make auto*hell a bit happier.
> 	
> 	Had to create a fork of ls to better emulate Unix ls:
> 	Auto*hell tries to use ls -L because some sort of symlink braindamage
> 	which obviously doesn't apply to Plan 9, allow that flag but ignore it.
> 	
> 	Auto hell does some weird tests comparing the arguments it gives to ls
> 	with the output of ls, cleanname() breaks those tests by rewriting parts
> 	of the path, so removed the calls to cleanname().
> 	
> 	Auto*hell also often calls printf with a single argument and no formating,
> 	so I created a really dummy printf that just prints it's first argument.
> 	
> 	This patch is not of much value, but when trying to wade thru auto*hell
> 	land it removes lots of noise. Further patches might follow as I go thru
> 	the experience of trying to get a single auto*hell script to run, if I
> 	don't go mad first.
> 
> Mon Feb 13 09:31:40 EST 2006 rsc
>     I put in a shell script to simulate Unix ls better.
>     I do not want to fork ls.  
That is what I did at first, but then I hit a wall, eg.,:

% grep '\$srcdir/configure' SDL-1.2.9/configure
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
      set X `ls -t $srcdir/configure conftest.file`
   if test "$*" != "X $srcdir/configure conftest.file" \
      && test "$*" != "X conftest.file $srcdir/configure"; then

($srcdir is '.')

I don't like the idea of forking stuff, but in the end it's going to be the only
way if APE is going to emulate all the lunix crap well enough to be useful.

>     I do not believe that cleanname needs to come out.
>     I used to run ./configure scripts all the time without
>     needing to touch ls.
Maybe it's a recent "improvement" to the auto*hell world.

uriel



       reply	other threads:[~2006-02-13 16:17 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <7c5561c3fea402ccac05d5762e3d2aa7@plan9.bell-labs.com>
2006-02-13 16:17 ` uriel [this message]
2006-02-13 17:29   ` Russ Cox
2006-02-13 19:46     ` uriel
2006-02-13 15:19       ` Russ Cox
2006-02-13 19:51       ` Lyndon Nerenberg
2006-02-13 20:23         ` Ronald G Minnich
2006-02-13 20:44           ` Lyndon Nerenberg
2006-02-13 22:54             ` Ronald G Minnich
2006-02-14 15:57           ` David Leimbach
2006-02-13 20:21       ` Ronald G Minnich
2006-02-13 20:47         ` Steve Simon
2006-02-13 20:55           ` Paul Lalonde
2006-02-13 20:58             ` Steve Simon
2006-02-13 23:02           ` Ronald G Minnich
2006-02-13 21:07         ` andrey mirtchovski
2006-02-14  0:39         ` Latchesar Ionkov
2006-02-14  0:41           ` Paul Lalonde
2006-02-14  0:59             ` Latchesar Ionkov
2006-02-14  0:50           ` Joel Salomon
2006-02-14  0:53             ` Joel Salomon
2006-02-14  1:04             ` Latchesar Ionkov
2006-02-14  1:12               ` Joel Salomon
2006-02-14  9:47                 ` Charles Forsyth
2006-02-14 11:37                   ` Brantley Coile
2006-02-14 14:43                     ` Ronald G Minnich
2006-02-14 10:12                       ` Russ Cox
2006-02-14 15:10                         ` Ronald G Minnich
2006-02-14 15:53         ` David Leimbach
2006-02-14  1:31 quanstro
2006-02-15  0:53 quanstro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6e0a93d2952defd6f4258eab2dc26322@cat-v.org \
    --to=uriel@cat-v.org \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).