bug-automake
[Top][All Lists]
Advanced

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

Re: automake 1.7.2 & DJGPP: test names too long for uniqueness in8+3


From: Richard Dawe
Subject: Re: automake 1.7.2 & DJGPP: test names too long for uniqueness in8+3
Date: Sat, 11 Jan 2003 10:07:28 +0000

Hello.

Alexandre Duret-Lutz wrote:
> 
> >>> "Richard" == Richard Dawe <address@hidden> writes:
> 
> [...]
> 
>  Richard> They can be longer than 8 characters in the stem and 3
>  Richard> in the extension, so long as they truncate into
>  Richard> something unique in 8 characters in the stem and 3
>  Richard> characters in the extension - DJGPP will still accept
>  Richard> the long filenames in these situations and they will
>  Richard> be truncated "behind the scenes".
> 
> Has anyone ever written some code to check for such conflicts?

Yes, there's a program called 'doschk'. I can't remember if it's gnu or
non-gnu, but you can get from GNU FTP mirrors.

> Maybe Automake should provide such a feature.  For instance
> `AUTOMAKE_OPTIONS = dos-check' could cause `make distcheck'
> to check the source and build trees for conflicting names.

That would be very cool.
 
> [...]
> 
>  Richard> What is the general feeling about renaming the tests to fit 8+3?
> 
> Does this causes any issue besides running the same test several
> times?  It would be nice if we could wait for the 1.7.x branch
> to fade out before we do such a great renaming.

The problem is with unpacking the archive. The user will have to choose new
names for the conflicting files and then update tests/Makefile.am
appropriately. I hadn't considered what happens afterwards, but I think the
same test will be run multiple times.

This is not a problem for the actual DJGPP packages, since we have a way of
coping with it. The DJGPP archiver, djtar, allows you to specify a filename
change list (format: one line per file: old-name new-name) and renames files
as they are extracted. tests/Makefile.{am,in} as shipped in the DJGPP packages
are patched with the new names.

It would be nice for the automake tests to work "out of the box" with DJGPP
without renaming. But there are other more important issues to fix ("bigger
fish to fry"), to make it work well with DJGPP.

>  Richard> The ChangeLog files also conflict, because .2000 and
>  Richard> .2001 both truncate to .200. My mapping is to drop the
>  Richard> century.
> 
> So I guess you won't like these either:
> 
> lib/Automake/Conditional.pm
> lib/Automake/ConditionalSet.pm
> lib/Automake/tests/Conditional.pl
> lib/Automake/tests/ConditionalSet.pl
> 
> This is from CVS HEAD (what will be Automake 1.8), and there are
> many reference to the Conditional or ConditionalSet modules all
> around the code.  Crap.

Ah. How about Cond.{pm,pl} and CondSet.{pm,pl}?

Thanks, bye, Rich =]

-- 
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]




reply via email to

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