Re: Windows PPM release?

2004-04-14 Thread Christian Hansen
Robert Eden wrote:
Has there been any progress on a windows PPM release?  (or fixing whatever
problem the automated tool has)
It seems that ActiveStates build tool fails on DateTime::Locale [1] and 
 since DateTime depends on it, every DateTime module fails [2].

[1] 
http://ppm.activestate.com/BuildStatus/5.8-windows/windows-5.8/DateTime-Locale-0.09.txt
[2] http://ppm.activestate.com/BuildStatus/5.8-D.html

 I'm considering using DateTime instead of
Date::Manip in XMLTV, but don't have M$ VC++ and Cygwin perl can't work with
PerlApp (for our windows exe distribution)
I have compiled a couple of DateTime modules.

Available at http://home.ngmedia.net/chansen/DateTime/

--

Hansen


FIX: problem making .21

2004-04-14 Thread Ken Burcham
Well, I was finally able to get it to work by making 
a bunch of changes to the Makefile.  Then I also had 
to copy the binary stuff by hand ( mv 
./blib/arch/auto/DateTime 
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-
multi/auto/.).

Here are the changes I had to make in case anyone is 
interested...  I don't know why the Makefile got so 
mashed, but it looks like it did.  I don't usually 
have any trouble building stuff, so it seems like 
something maybe wrong with Makefile.PL?  Dunno...  

thanks,

ken.

Here's the diff of my 'fixed' makefile and the 
generated one (perl Makefile.PL --xs)---

[EMAIL PROTECTED] DateTime-0.21]# diff Makefile 
Makefile.ken
49,51c49,51
 LIB_EXT = .a'
 libc='
 OBJ_EXT = ub
---
 LIB_EXT = .a
 libc=/lib/libc-2.3.2.so
 OBJ_EXT = .o
54c54
 RANLIB = _
---
 RANLIB = :
75c75
 VENDORPREFIX = buti
---
 VENDORPREFIX = /usr
77,89c77,79
 INSTALLSITELIB = /usr/lib/perl5/site_perl/5.8.0'
 installsiteman1='/usr/share/man/man1'
 installsiteman3='/usr/share/man/man3'
 installsitescript='/usr/bin'
 installstyle='lib/perl5'
 installusrbinperl='define'
 
installvendorarch='/usr/lib/perl5/vendor_perl/5.8.0/i
386-linux-thread-multi'
 installvendorbin='/usr/bin'
 installvendorhtml1=''
 installvendorhtml3=''
 installvendorlib='/usr/lib/perl5/vendor_perl/5.8.
 INSTALLVENDORLIB = ib/perl5'
 installusrbinperl='def
---
 INSTALLSITELIB = /usr/lib/perl5/site_perl/5.8.0
 INSTALLVENDORARCH = 
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-
multi
 INSTALLVENDORLIB = /usr/lib/perl5/vendor_perl/5.8.0
92,101c82,84
 INSTALLVENDORARCH = /usr/lib/perl5/ven
 INSTALLBIN = /usr/bin'
 installhtml1dir=''
 installhtml3dir=''
 installman1
 INSTALLSITEBIN = /usr
 INSTALLVENDORBIN = /usr/bin'
 installvendorhtml1=''
 installvendorhtml3=''
 installvendorlib='/u
---
 INSTALLBIN = /usr/bin
 INSTALLSITEBIN = /usr/bin
 INSTALLVENDORBIN = /usr/bin
105,109c88,90
 SITELIBEXP = '/usr/lib/perl5/site_perl'
 sit
 SITEARCHEXP = /usr/lib/pe
 LIBPERL_A = libperl.a'
 libc='
---
 SITELIBEXP = /usr/lib/perl5/site_perl/5.8.0
 SITEARCHEXP = /usr/lib/perl5/site_perl/5.8.0/i386-
linux-thread-multi
 LIBPERL_A = libperl.a
154,155c135,136
 O_FILES = DateTimeub \
   testub
---
 O_FILES = DateTime.o \
   test.o
248,249c229
 SHELL = /bin/sh'
 shar='
---
 SHELL = /bin/sh
-- 
Ken Burcham
Ken Burcham Consulting, Inc.
http://www.capemaystation.com




problem making .21

2004-04-14 Thread Ken Burcham
Hi guys,

  I'm still a relative newbie, but I'm having a problem 
installing DateTime...  I tried to install via cpan but got an 
error so popped out to the directory to try manually...  Here's 
what I get:

[EMAIL PROTECTED] DateTime-0.21]# perl Makefile.PL
Testing if you have a C compiler
Makefile:96: *** missing separator.  Stop.

 I cannot determine if you have a C compiler
 so I will install a perl-only implementation

 You can force installation of the XS version with

perl Makefile.PL --xs


Warning: I could not locate your pod2man program. Please make 
sure,
 your pod2man program is in your PATH before you execute 
'make'

Writing Makefile for DateTime
[EMAIL PROTECTED] DateTime-0.21]#

I do fershure have a c compiler...  So I tried:

[EMAIL PROTECTED] DateTime-0.21]# perl Makefile.PL --xs
Writing Makefile for DateTime
[EMAIL PROTECTED] DateTime-0.21]#

so far so good...

then:

[EMAIL PROTECTED] DateTime-0.21]# make
Makefile:96: *** missing separator.  Stop.
[EMAIL PROTECTED] DateTime-0.21]#

hmm...  So not to be deterred, I looked at line 96 of the 
makefile and here's the weird stuff I find:

94:installhtml1dir=''
95:installhtml3dir=''
96:installman1
97:INSTALLSITEBIN = /usr
98:INSTALLVENDORBIN = /usr/bin'

(line numbers mine)...  So notice the hanging apostrophe on line 
98...  there are many lines with unmatched apostrophes...  So I 
did what anyone who doesn't have a clue would do and edited the 
Makefile and took out all of the 'extra' apostrophes...

On line 248 and 249 is:

SHELL = /bin/sh'
shar='

108 and 109:

LIBPERL_A = libperl.a'
libc='

and 101:

installvendorlib='/u

etc...

So after some guess editing, I was able to run make.  But none of 
the tests pass and I get:

[EMAIL PROTECTED] GCX]$ perl testdate.pl
Can't locate loadable object for module DateTime in @INC (@INC 
contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi 
/usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-
thread-multi /usr/lib/perl5/site_perl/5.8.0 
/usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-
linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 
/usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-
thread-multi /usr/lib/perl5/5.8.0 .) at 
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/XSLoader.pm line 44
BEGIN failed--compilation aborted at 
/usr/lib/perl5/site_perl/5.8.0/DateTime.pm line 44.
Compilation failed in require at testdate.pl line 1.
BEGIN failed--compilation aborted at testdate.pl line 1.

Which makes sense since I guess the c stuff isn't getting 
compiled...  anyhow, all of this to me seems to be a problem with 
the Makefile?  But I'm afraid I don't know where to go from here.

This is on Redhat Linux 9, perl 5.8.0 on i386.

Thanks a lot!

ken.

Happy to post any files that might be helpful...






-- 
Ken Burcham
Ken Burcham Consulting, Inc.
http://www.capemaystation.com




Re: problem making .21

2004-04-14 Thread Dave Rolsky
On Wed, 14 Apr 2004, Ken Burcham wrote:

 [EMAIL PROTECTED] DateTime-0.21]# make
 Makefile:96: *** missing separator.  Stop.
 [EMAIL PROTECTED] DateTime-0.21]#

 hmm...  So not to be deterred, I looked at line 96 of the
 makefile and here's the weird stuff I find:

 94:installhtml1dir=''
 95:installhtml3dir=''
 96:installman1
 97:INSTALLSITEBIN = /usr
 98:INSTALLVENDORBIN = /usr/bin'

 (line numbers mine)...  So notice the hanging apostrophe on line
 98...  there are many lines with unmatched apostrophes...  So I
 did what anyone who doesn't have a clue would do and edited the
 Makefile and took out all of the 'extra' apostrophes...

Woah, that is weird.  I think you may have a broken Config.pm file, which
is the module that Perl uses to store information about the system it was
compiled on.  This info is used to generate these makefiles.  You might
want to check that file out and see if contains something like /usr/bin'
with that extra apostrophe.

Also, maybe try upgrading to the latest version of ExtUtils::MakeMaker and
see if that fixes anything.


-dave

/*===
House Absolute Consulting
www.houseabsolute.com
===*/


Re: FIX: problem making .21

2004-04-14 Thread Dave Rolsky
On Wed, 14 Apr 2004, Ken Burcham wrote:

 Well, I was finally able to get it to work by making
 a bunch of changes to the Makefile.  Then I also had
 to copy the binary stuff by hand ( mv
 ./blib/arch/auto/DateTime
 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-
 multi/auto/.).

Well, the Makefile is generated at install time, so diffs against it
aren't very helpful, since it's not something I create before shipping the
distro.

See my other email in response to you for some possible
solutions/explanations.


-dave

/*===
House Absolute Consulting
www.houseabsolute.com
===*/


Re: Windows PPM release of DateTime?

2004-04-14 Thread Yitzchak Scott-Thoennes
On Wed, Apr 14, 2004 at 06:55:26AM +0200, Christian Hansen [EMAIL PROTECTED] wrote:
 Robert Eden wrote:
 Has there been any progress on a windows PPM release?  (or fixing whatever
 problem the automated tool has)
 
 It seems that ActiveStates build tool fails on DateTime::Locale [1] and 
  since DateTime depends on it, every DateTime module fails [2].
 
 [1] 
 http://ppm.activestate.com/BuildStatus/5.8-windows/windows-5.8/DateTime-Locale-0.09.txt
 [2] http://ppm.activestate.com/BuildStatus/5.8-D.html

Hmm.  Looks to me like ActiveState should use Build.PL in preference to
Makefile.PL when both exist. 

Or is the problem that nothing is indicating that Module::Build is a
dependency of DateTime-Locale?


Re: [Module::Build] Re: Windows PPM release of DateTime?

2004-04-14 Thread Ken Williams
On Apr 14, 2004, at 1:30 PM, Yitzchak Scott-Thoennes wrote:

On Wed, Apr 14, 2004 at 06:55:26AM +0200, Christian Hansen  
[EMAIL PROTECTED] wrote:
Robert Eden wrote:
Has there been any progress on a windows PPM release?  (or fixing  
whatever
problem the automated tool has)
It seems that ActiveStates build tool fails on DateTime::Locale [1]  
and
 since DateTime depends on it, every DateTime module fails [2].

[1]
http://ppm.activestate.com/BuildStatus/5.8-windows/windows-5.8/ 
DateTime-Locale-0.09.txt
[2] http://ppm.activestate.com/BuildStatus/5.8-D.html
Hmm.  Looks to me like ActiveState should use Build.PL in preference to
Makefile.PL when both exist.
Or is the problem that nothing is indicating that Module::Build is a
dependency of DateTime-Locale?
The problem is that CPAN.pm is trying to auto-reconfigure itself, and  
failing miserably when using the default responses to all questions  
(there's no default continent, so it keeps asking the user to provide  
one).

Making the build tool prefer Build.PL wouldn't help matters here unless  
they've already got Module::Build installed on that machine.

 -Ken



RE: Windows PPM release?

2004-04-14 Thread Hill, Ronald
Hi All,

I guess I should chime in on this.

Robert Eden wrote:
 Has there been any progress on a windows PPM release?  (or fixing
 whatever problem the automated tool has)

Hmn!! Automated tool :) I wish we had one :)
Well, I have started something along the lines of an
automated tool. It is by far no means ready for production but
it kinda works.

It took some time (to write the script) but I was able 
to generate ppm's for the following:
(for perl 5.8.3)

04/14/2004  07:26a 603 DateTime-0.21.ppd
04/14/2004  11:15a 892 DateTime-Calendar-Chinese.ppd
04/14/2004  11:17a 634 DateTime-Calendar-Christian.ppd
04/14/2004  10:36a 516 DateTime-Calendar-Coptic.ppd
04/14/2004  10:04a 564 DateTime-Calendar-FrenchRevolutionary
04/14/2004  11:14a 531 DateTime-Calendar-Hebrew.ppd
04/14/2004  08:23a 486 DateTime-Calendar-Hijri-0.00.ppd
04/14/2004  11:15a 521 DateTime-Calendar-Japanese-Era.ppd
04/14/2004  11:15a 738 DateTime-Calendar-Japanese.ppd
04/14/2004  11:15a 473 DateTime-Calendar-Julian.ppd
04/14/2004  10:05a 519 DateTime-Calendar-Mayan.ppd
04/14/2004  11:13a 605 DateTime-Calendar-Pataphysical.ppd
04/14/2004  11:13a 707 DateTime-Event-Chinese.ppd
04/14/2004  10:36a 578 DateTime-Event-Cron.ppd
04/14/2004  11:13a 639 DateTime-Event-Easter.ppd
04/14/2004  10:36a 514 DateTime-Event-ICal.ppd
04/14/2004  11:17a 740 DateTime-Event-Lunar.ppd
04/14/2004  11:13a 681 DateTime-Event-NameDay.ppd
04/14/2004  08:29a 512 DateTime-Event-Random-0.03.ppd
04/14/2004  11:22a 514 DateTime-Event-Recurrence.ppd
04/14/2004  11:15a 691 DateTime-Event-SolarTerm.ppd
04/14/2004  11:15a 557 DateTime-Event-Sunrise.ppd
04/14/2004  11:15a 549 DateTime-Fiction-JRRTolkien-Shire.ppd
04/14/2004  10:36a 485 DateTime-Fiscal-Year.ppd
04/14/2004  11:15a 508 DateTime-Format-Bork.ppd
04/14/2004  11:14a 582 DateTime-Format-Builder.ppd
04/14/2004  11:16a 521 DateTime-Format-DateManip.ppd
04/14/2004  10:03a 513 DateTime-Format-DBI.ppd
04/14/2004  11:13a 479 DateTime-Format-Epoch.ppd
04/14/2004  11:15a 467 DateTime-Format-Excel.ppd
04/14/2004  11:13a 497 DateTime-Format-HTTP.ppd
04/14/2004  11:16a 710 DateTime-Format-ICal.ppd
04/14/2004  10:37a 524 DateTime-Format-ISO8601.ppd
04/14/2004  11:15a 709 DateTime-Format-Japanese.ppd
04/14/2004  10:04a 531 DateTime-Format-Mail.ppd
04/14/2004  10:04a 587 DateTime-Format-Pg.ppd
04/14/2004  11:13a 528 DateTime-Format-Roman.ppd
04/14/2004  11:14a 650 DateTime-Format-Strptime.ppd
04/14/2004  11:15a 472 DateTime-Format-W3CDTF.ppd
04/14/2004  08:25a 463 DateTime-Functions-0.01.ppd
04/14/2004  10:05a 466 DateTime-HiRes.ppd
04/14/2004  10:04a 575 DateTime-Incomplete.ppd
04/14/2004  10:38a 421 DateTime-Locale.ppd
04/14/2004  10:03a 398 DateTime-Precise.ppd
04/14/2004  08:30a 485 DateTime-Set-0.16.ppd
04/14/2004  10:36a 406 DateTime-Stringify.ppd
04/14/2004  10:36a 528 DateTime-TimeZone-Alias.ppd
04/14/2004  10:36a 459 DateTime-TimeZone-LMT.ppd
04/14/2004  11:16a 498 DateTime-TimeZone.ppd
04/14/2004  08:00a 597 DateTime-Util-Astro-0.02.ppd
04/14/2004  10:35a 584 DateTime-Util-Calc.ppd
04/14/2004  11:22a 407 DateTimeCron-Simple.ppd
04/14/2004  11:22a 455 DateTimeFormat-Duration.ppd

Now, what can I do with these? I do not have a web page to put them
on. Grant it this needs a lot of work, but it is a start. Comments,
suggestions on how to proceed let me know.
(I'm tried :( )

Thanks

Ron Hill



the script
-
use strict;
use warnings;
use LWP::UserAgent;
use File::Basename;
use HTML::LinkExtor;
use URI::URL;
use PPM::Make;

#use Data::Dumper;

my $base_dir= 'f:/datetime_dest';
my $dest_source = 'f:/datetime_dest/archive';
my $url = http://cpan.org/modules/01modules.index.html;;

my %module = get_datetime_modules($url);

my @source_modules = get_files($dest_source);

#get the difference between the two

foreach my $filename(@source_modules) {
if ( exists( $module{$filename} ) ) {
delete $module{$filename};
}
}

#make the distro

while ( my ( $filename, $urlpath ) = each(%module) ) {

my $ppm = PPM::Make-new(
  dist   = $urlpath,
  vs = 'yes',
  ignore = 'yes',
  upload = {
  ar  =