On Tue, 11 Apr 2006 15:04:25 +1000, "Brendan O'Dea" <[EMAIL PROTECTED]> wrote:

> forwarded 139537 [email protected]
> thanks
> 
> On Mon, Apr 10, 2006 at 07:40:30PM -0400, Ian Zimmerman wrote:
> >Package: perl
> >Version: 5.8.8-3
> >Followup-For: Bug #139537
> >
> >For example, $Config{'tail'} is also undefined.  /usr/bin/tail comes from 
> >coreutils,
> >a required package, so $Config{'tail'} should always be set to 
> >"/usr/bin/tail".
> 
> Configure doesn't actually test for tail (nor sendmail as noted in the
> initial bug report).

Actually, it should, but the syntax used in the metaunit to generate that
part of Configure (Loc.U) us *only* used in Loc.U, and I have not found
either the documentation of that syntax, nor a reason why tail is not put
inside the list in Configure.

The list that should be probed is:
    awk cat chgrp chmod chown comm cp echo expr find grep
    ls mkdir mv rm sed sleep sort tail touch tr uniq 
The list that ended up in Configure:
    awk cat chmod comm cp echo expr grep ls mkdir rm sed
    sort touch tr uniq

Why chmod, but not chgrp and chown? Why grep, but not find?
Why rm, but not mv?

  37604 100755 -r-x    1     root    240412  13 Sep 2005 02:44 /usr/bin/awk -> 
/bin/awk -> gawk -> /bin/gawk
  37604 100755 -r-x    1     root    240412  13 Sep 2005 02:44 /bin/awk -> gawk
  40746 100755 -r-x    1     root     19220  31 Jan 2006 17:28 /bin/cat
  40771 100755 -r-x    1     root     37020  31 Jan 2006 17:28 /bin/chgrp
  40772 100755 -r-x    1     root     36044  31 Jan 2006 17:28 /bin/chmod
  40776 100755 -r-x    1     root     40284  31 Jan 2006 17:28 /bin/chown
  42727 100755 -r-x    1     root     17804  31 Jan 2006 17:28 /usr/bin/comm
  40777 100755 -r-x    1     root     61548  31 Jan 2006 17:28 /bin/cp
  42699 100755 -r-x    1     root     16532  31 Jan 2006 17:28 /bin/echo
  42736 100755 -r-x    1     root     23456  31 Jan 2006 17:28 /usr/bin/expr
  40451 100755 -r-x    1     root     76196   9 Sep 2005 18:26 /usr/bin/find
  41057 100755 -r-x    1     root    135276   9 Sep 2005 18:27 /usr/bin/grep -> 
/bin/grep
  41057 100755 -r-x    1     root    135276   9 Sep 2005 18:27 /bin/grep
  42704 100755 -r-x    1     root     82640  31 Jan 2006 17:28 /bin/ls
  42705 100755 -r-x    1     root     26840  31 Jan 2006 17:28 /bin/mkdir
  42707 100755 -r-x    1     root     67876  31 Jan 2006 17:28 /bin/mv
  42709 100755 -r-x    1     root     36236  31 Jan 2006 17:28 /bin/rm
  41229 100755 -r-x    1     root     41540   9 Sep 2005 18:08 /usr/bin/sed -> 
/bin/sed
  41229 100755 -r-x    1     root     41540   9 Sep 2005 18:08 /bin/sed
  42711 100755 -r-x    1     root     16916  31 Jan 2006 17:28 /bin/sleep
  42712 100755 -r-x    1     root     49972  31 Jan 2006 17:28 /usr/bin/sort -> 
/bin/sort
  42712 100755 -r-x    1     root     49972  31 Jan 2006 17:28 /bin/sort
  42770 100755 -r-x    1     root     39480  31 Jan 2006 17:28 /usr/bin/tail
  42716 100755 -r-x    1     root     34276  31 Jan 2006 17:28 /usr/bin/touch 
-> /bin/touch
  42716 100755 -r-x    1     root     34276  31 Jan 2006 17:28 /bin/touch
  42774 100755 -r-x    1     root     31592  31 Jan 2006 17:28 /usr/bin/tr
  42778 100755 -r-x    1     root     26004  31 Jan 2006 17:28 /usr/bin/uniq

> I'm not sure why these empty variables are included in Config{.pm,_heavy.pl}
> if they're not actually searched for--forwarding to p5p for comments.

I know why they are there. I just cannot explain (yet) why they are not
initialized.

> About the only thing which springs my mind is that you can explicity set
> such variables by passing -Dtail=/usr/local/bin/tail (or whatever) to
> Configure.

And if you want a more generic approach, you can create a Policy.sh and put
the defines in there, so you do not have to add all the -D.... to Configure
all the time.

> This presumes that any program using these variables does so as:
> 
>     my $tail = $Config{tail} || 'tail';
>     my $sendmail = $Config{sendmail} || '/usr/sbin/sendmail';

-- 
H.Merijn Brand        Amsterdam Perl Mongers (http://amsterdam.pm.org/)
using & porting perl 5.6.2, 5.8.x, 5.9.x  on HP-UX 10.20, 11.00, 11.11,
& 11.23, SuSE 10.0, AIX 4.3 & 5.2, and Cygwin.       http://qa.perl.org
http://mirrors.develooper.com/hpux/           http://www.test-smoke.org
                       http://www.goldmark.org/jeff/stupid-disclaimers/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to