GNU bug report logs - #7403
Unused variable `$source' in the depcomp script?

Previous Next

Package: automake;

Reported by: Stefano Lattarini <stefano.lattarini <at> gmail.com>

Date: Sun, 14 Nov 2010 23:59:02 UTC

Severity: normal

Tags: wontfix

Done: Ralf Wildenhues <Ralf.Wildenhues <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 7403 <at> debbugs.gnu.org (full text, mbox):

From: Ralf Wildenhues <Ralf.Wildenhues <at> gmx.de>
To: Stefano Lattarini <stefano.lattarini <at> gmail.com>
Cc: 7403 <at> debbugs.gnu.org
Subject: Re: bug#7403: Unused variable `$source' in the depcomp script?
Date: Sat, 20 Nov 2010 13:29:10 +0100
* Stefano Lattarini wrote on Mon, Nov 15, 2010 at 01:03:04AM CET:
>  $ grep '\<source\>' lib/depcomp 
>    source      Source file read by `PROGRAMS ARGS'.
>  if test -z "$depmode" || test -z "$source" || test -z "$object"; then
>    echo "depcomp: Variables source, object and depmode must be set" 1>&2
>      # the object too, otherwise makedepend will parse it as a source file.
> 
> Does this mean that the `$source' variable is really not required
> by depcomp, or am I missing something?

It seems that $source is indeed not required.

I'd still be wary of removing it: users might have modified depcomp
scripts which use the variable.  Yes, I consider that public API,
documented in 'depcomp --help', and with example usage in the manual.

In a sort of transposed way, there are packages using depcomp (plus some
custom macros) which do not use Automake; we should not break them
either.

Thanks,
Ralf




This bug report was last modified 14 years and 181 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.