Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
[PATCH] Detects presence of perldoc at configuration time
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
James deBoer  
View profile  
 More options Nov 1 2004, 5:56 pm
Newsgroups: perl.perl6.internals
From: parrotbug-follo...@parrotcode.org (James deBoer)
Date: Mon, 01 Nov 2004 14:56:59 -0800
Local: Mon, Nov 1 2004 5:56 pm
Subject: [perl #32280] [PATCH] Detects presence of perldoc at configuration time

# New Ticket Created by  James deBoer
# Please include the string:  [perl #32280]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org:80/rt3/Ticket/Display.html?id=32280 >

Some systems, notable Debian, ship perldoc and perl as seperate
packages. The presence of Perl does not imply the presence of perldoc.

This patch will test to see if perldoc actually works, aborting the
configuration if it does not.

I was considering making the build system not build the documentation if perldoc
did not exist. However, I felt that (a) a perldoc-less Perl is a broken
Perl, and (b) currently, parrot should ship with a lot of documentation. If
somebody feels otherwise, I would be happy to revise the patch.

- James

[ config_perldoc.patch 1K ]
diff -uNr config_o2/auto/perldoc.pl config/auto/perldoc.pl
--- config_o2/auto/perldoc.pl   1970-01-01 00:00:00.000000000 +0000
+++ config/auto/perldoc.pl      2004-11-01 22:27:54.000000000 +0000
@@ -0,0 +1,31 @@
+#! perl -w
+# Copyright: 2004 James deBoer.  All Rights Reserved.
+
+=head1 NAME
+
+config/auto/perldoc - Perldoc
+
+=head1 DESCRIPTION
+
+Determines if Perldoc exists on the system.
+
+=cut
+
+package Configure::Step;
+
+use strict;
+use vars qw($description @args);
+use Parrot::Configure::Step ':auto';
+
+$description="Determining if your system has perldoc installed...";
+
+@args=qw(verbose);
+
+sub runstep {
+    my $a = `perldoc perldoc`;
+    unless ($a =~ m/perldoc/) {
+       die "Configure.pl: Could not find the perldoc package, which is required.\n";
+    }
+}
+
+1;
Index: lib/Parrot/Configure/RunSteps.pm
===================================================================
RCS file: /cvs/public/parrot/lib/Parrot/Configure/RunSteps.pm,v
retrieving revision 1.44
diff -u -r1.44 RunSteps.pm
--- lib/Parrot/Configure/RunSteps.pm    28 Sep 2004 08:51:47 -0000      1.44
+++ lib/Parrot/Configure/RunSteps.pm    1 Nov 2004 22:44:50 -0000
@@ -56,6 +56,7 @@
     auto/aio.pl
     auto/gmp.pl
     auto/snprintf.pl
+    auto/perldoc.pl
     gen/icu.pl
     gen/config_h.pl
     gen/core_pmcs.pl


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Leopold Toetsch  
View profile  
 More options Nov 2 2004, 5:41 am
Newsgroups: perl.perl6.internals
From: l...@toetsch.at (Leopold Toetsch)
Date: Tue, 2 Nov 2004 11:41:50 +0100
Local: Tues, Nov 2 2004 5:41 am
Subject: Re: [perl #32280] [PATCH] Detects presence of perldoc at configuration time

James deBoer <parrotbug-follo...@parrotcode.org> wrote:
> Some systems, notable Debian, ship perldoc and perl as seperate
> packages. The presence of Perl does not imply the presence of perldoc.
> This patch will test to see if perldoc actually works, aborting the
> configuration if it does not.
> I was considering making the build system not build the documentation
> if perldoc did not exist. However, I felt that (a) a perldoc-less Perl
> is a broken Perl ...

Is ok for me.

> - James

[ patch looks fine, let's hear some more opinions on that issue ]

leo


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andy Dougherty  
View profile  
 More options Nov 2 2004, 9:22 am
Newsgroups: perl.perl6.internals
From: dough...@lafayette.edu (Andy Dougherty)
Date: Tue, 2 Nov 2004 09:22:36 -0500 (EST)
Local: Tues, Nov 2 2004 9:22 am
Subject: Re: [perl #32280] [PATCH] Detects presence of perldoc at configuration time

On Mon, 1 Nov 2004, James deBoer wrote:
> Some systems, notable Debian, ship perldoc and perl as seperate
> packages. The presence of Perl does not imply the presence of perldoc.

> This patch will test to see if perldoc actually works, aborting the
> configuration if it does not.

I don't feel strongly about this, but I think aborting during
configuration is a bit extreme at present.  If I don't have perldoc, the
'make' process currently ends with a loud failure, but at least I can
still see if parrot Configures and builds at all, and I can still run
'make test'.  The only thing I can't do is install the documentation,
which really isn't relevant yet because the whole installation system
isn't really designed yet, and because there isn't really much to do (for
most of us) with an installed parrot anyway.

This is not a mere hypothetical case.  In the main build environment I use
to test parrot, no perldoc is available, though I certainly have lots of
other copies of perldoc elsewhere available to me. In the long run, parrot
won't be using perldoc to extract documentation anyway.  The reliance on
perl is a "temporary" convenience.

If you want to have Configure.pl complain loudly, that's probably a good
idea -- some users may not be aware that there's a separate perldoc
package -- but I don't see the need to require stuff that's not really
necessary.

--
    Andy Dougherty              dough...@lafayette.edu


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dan Sugalski  
View profile  
 More options Nov 2 2004, 9:34 am
Newsgroups: perl.perl6.internals
From: d...@sidhe.org (Dan Sugalski)
Date: Tue, 2 Nov 2004 09:34:31 -0500
Local: Tues, Nov 2 2004 9:34 am
Subject: Re: [perl #32280] [PATCH] Detects presence of perldoc at configuration time
At 11:41 AM +0100 11/2/04, Leopold Toetsch wrote:

>James deBoer <parrotbug-follo...@parrotcode.org> wrote:

>>  Some systems, notable Debian, ship perldoc and perl as seperate
>>  packages. The presence of Perl does not imply the presence of perldoc.

>>  This patch will test to see if perldoc actually works, aborting the
>>  configuration if it does not.

>>  I was considering making the build system not build the documentation
>>  if perldoc did not exist. However, I felt that (a) a perldoc-less Perl
>>  is a broken Perl ...

>Is ok for me.

And me as well.
--
                                Dan

--------------------------------------it's like this-------------------
Dan Sugalski                          even samurai
d...@sidhe.org                         have teddy bears and even
                                       teddy bears get drunk


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nicholas Clark  
View profile  
 More options Nov 7 2004, 11:08 am
Newsgroups: perl.perl6.internals
From: n...@ccl4.org (Nicholas Clark)
Date: Sun, 7 Nov 2004 16:08:41 +0000
Local: Sun, Nov 7 2004 11:08 am
Subject: Re: [perl #32280] [PATCH] Detects presence of perldoc at configuration time

I don't like the build blowing up on me when there is no perldoc, and on
some machines that I use I'm not in a position to change this. So I'd
like a way of overriding Configure to skip building the documentation.
I don't see overriding a bail out as incompatible with the sentiment that
the default should be to bail out at Configure time if not found.

I'd prefer it to bail out at Configure time than at make time, as it
results in the problem being shown up far earlier. Unattended builds that
fail at the end for detectable reasons annoy me. Particularly when
something else time consuming was depending on them to pass, and so did
not run.

Nicholas Clark


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Leopold Toetsch  
View profile  
 More options Nov 7 2004, 3:05 pm
Newsgroups: perl.perl6.internals
From: l...@toetsch.at (Leopold Toetsch)
Date: Sun, 7 Nov 2004 21:05:23 +0100
Local: Sun, Nov 7 2004 3:05 pm
Subject: Re: [perl #32280] [PATCH] Detects presence of perldoc at configuration time

Nicholas Clark <n...@ccl4.org> wrote:
> I don't like the build blowing up on me when there is no perldoc, and on
> some machines that I use I'm not in a position to change this.

So, as opinions aren't really matching, let's try this approach:

The configure step from that patch doesn't bail out, but prints a big
fat warning about the lack of accessing perl and parrot docs, disables
the parrot doc make target and continues.

> Nicholas Clark

leo

    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Leopold Toetsch  
View profile  
 More options Nov 13 2004, 5:10 pm
Newsgroups: perl.perl6.internals
From: l...@toetsch.at (Leopold Toetsch)
Date: Sat, 13 Nov 2004 23:10:15 +0100
Local: Sat, Nov 13 2004 5:10 pm
Subject: Re: [perl #32280] [PATCH] Detects presence of perldoc at configuration time

James deBoer <parrotbug-follo...@parrotcode.org> wrote:

[ to OP ]

> This patch will test to see if perldoc actually works, aborting the
> configuration if it does not.

Can you convert that test to produce a fat warning and skip targets
relying on perldoc?

Thanks,
leo


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James deBoer  
View profile  
 More options Nov 19 2004, 4:49 pm
Newsgroups: perl.perl6.internals
From: ja...@huronbox.com (James deBoer)
Date: Fri, 19 Nov 2004 16:49:04 -0500
Local: Fri, Nov 19 2004 4:49 pm
Subject: Re: [perl #32280] [PATCH] Detects presence of perldoc at configuration time

Sorry for the delay, but here is a revised patch to detect perldoc.

- If Perldoc is detected, no warning messages will be printed and things
will work as before
- If Perldoc is not detected
     - Configure.pl will print a message saying that the docs will not
be built
     - docs/ will not be built
     - When 'make docs' or 'make html' is run, a message will be echoed
to the screen explaining that perldoc is required.

James

  config_perldoc.patch
5K Download

    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Leopold Toetsch  
View profile  
 More options Nov 20 2004, 5:43 am
Newsgroups: perl.perl6.internals
From: l...@toetsch.at (Leopold Toetsch)
Date: Sat, 20 Nov 2004 11:43:49 +0100
Local: Sat, Nov 20 2004 5:43 am
Subject: Re: [perl #32280] [PATCH] Detects presence of perldoc at configuration time

James deBoer <ja...@huronbox.com> wrote:
> Sorry for the delay, but here is a revised patch to detect perldoc.

No problem, and thanks, applied.

This looks a bit bulky ...

> +  Configure::Data->set(perldoc => 0);
> +  Configure::Data->set(notperldoc => 1);

... but given that I didn't even know that ...

> +#CONDITIONED_LINE(notperldoc):docs : docs.stub

... this syntax exists, it's a nice solution.

Slightly more elegant is probably a small extension in
lib/Parrot/Configure/Step.pm that handles something like:

 #CONDITIONED_LINE(! perldoc):docs : docs.stub

leo


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google