gnu-arch-users
[Top][All Lists]
Advanced

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

Re: [Gnu-arch-users] Re: darcs vs tla


From: John A Meinel
Subject: Re: [Gnu-arch-users] Re: darcs vs tla
Date: Thu, 18 Nov 2004 15:02:57 -0600
User-agent: Mozilla Thunderbird 0.9 (Windows/20041103)

John A Meinel wrote:
Erik de Castro Lopo wrote:

On Wed, 17 Nov 2004 18:23:52 -0600
John A Meinel <address@hidden> wrote:


I have a branch of the current tla code at

address@hidden/tla--short-path--1.3

My archive is available on the supermirror at:
http://mirrors.sourcecontrol.net/address@hidden



<snip>

I run cygwin, and have never really had the need to setup Msys. If you have that, do you want to try compiling?

You need to use "configure --with-short-paths=1".

If you're interested, thanks. If not, no big deal.



John,

I grabbed a copy of that, but I couldn't figure out how to build it.
There only seems to be one configure script and thats in the libneon directory.

Erik


Sorry, I wasn't very clear (and didn't respond fast because I was sleeping :).

The easiest way is probably to build from a configuration. So you start with:

tla get address@hidden/dists--tla--1.3 tla-1.3
cd tla-1.3
tla build-config tla-short-path.cfg
cd src
mkdir +build
cd +build
../configure --with-short-paths=1
    (optionally --prefix=/usr/local or whatever)
make
make test
make install (if you want)

These are the normal steps to build tla, so I didn't repeat them. You will also need to have registered the official tla archive, since I only modify one portion of it.

So you will probably also need to
tla register-archive http://www.seyza.com/archives/address@hidden/

John
=:->


I just double checked, and there are 2 caveats with the current system, both of them from libhackerlab (which I did not modify.).

1) The first time you run make it will fail. Just run make again and it will succeed. (hackerlab creates a temporary executable to generate an output file and then deletes it. But on cygwin/windows the file ends with a .exe, so rm cannot find it to delete it. Don't worry, though, the dependency is filled)

2) make test will fail on "unidata-tests". The problem is cygwin picks a different line ending if you pipe something through sed, then it does if you cat it directly to a file. (sed opens it's input in text mode, removing CRLF, while just a redirect preserves the endings).

  The simplest workaround is to edit the file:
    src/hackerlab/tests/unidata-tests/unit-unidata.sh line 16
  and change the line from
   ./unit-unidata > ,tmp2
  to
   ./unit-unidata | sed -e '' > ,tmp2

sed -e '' does nothing, but it allows the output to be filtered through the same program.

I'm pretty sure with those 2 workarounds, everything plays nice.
John
=:->

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]