You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by Justin Mason <jm...@jmason.org> on 2007/03/07 16:18:33 UTC

Re: Win32 and Buildbot

Doc Schneider writes:
> I'm going to be using my WinXP Pro as a buildbot and am just now reading 
> what JM sent in a ticket on bugzilla.
> 
> Just wanted to start a message here.
> 
> Questions: Should the buildbot be run in a cygwin app? or using 
> something like ActivePerl? I know most of the applications have win32 
> counterparts. ie. python and the like....
> 
> If any of you have setup this please let me know.

I think Sidney may have given it a go?

for what it's worth, I'd say Cygwin is the only way to go -- I doubt
much of it has been actively ported to run on native win32.

--j.

Re: Win32 and Buildbot

Posted by Doc Schneider <ma...@maddoc.net>.
Doc Schneider wrote:
> Sidney Markowitz wrote:
>> Doc Schneider wrote, On 11/4/07 9:47 AM:
>>> ARG. I have been trying to get  a buildbot slave running on ActivePerl
>>> on Win XP (Pro) but without installing cygein or something like MSVC++
>>> it won't make things (like spamc/ some perl mods not actually available
>>> from ppg [ppg is AP's only cpan type thing] and all together it is a
>>> b*tch to build without any C tools.) But am wondering if I run the BB
>>> Slave from cygwin would that be good enough to say "this works" on
>>> Win32? Or else I'm going to have to find, again, that free c compiler I
>>> ran across somewhere but didn't bookmark. To make SA install without
>>> using Cygwin. I did bookmark that stolennotebook.com but it doesn't seem
>>> to be all that helpful. Could be just me too. 8*)
>>>
>> Microsoft has a free (as in beer, not libre) version of Visual C++ 2005
>> for download at:
>>
>> http://msdn.microsoft.com/vstudio/express/visualc/
>>
>> I haven't tried building with this version. The last time I did this I
>> used the free version of Visual C++ 2003.
>>
>> I was sure that there is an option to Makefile.PL to disable building
>> spamc, but that doesn't help you if you need a C compiler to get some
>> necessary module from ppg.
>>
>> It would _not_ be sufficient to test only the Cygwin build, as that has
>> more in common with the *nix builds than it does with Win32 build.
>>
>> It does help to also have Cygwin on the same machine because that allows
>> you to run spamd under Cygwin and configure the Win32 tests to assume a
>> spamd on localhost when doing the spamc tests.
>>
>>  -- sidney
>>
> 
> Ok am installing this Free compiler on my WinXP box now. Will let you
> know how it works.
> 
> I have everything else mostly working as far as buildbot goes. It is
> Python and, although it used an older version, it does build and tested
> ok. Just the perl stuff was driving me up a tree. Thanks a bunch Sidney!
> 

Working on this crap again today, got all the M$ components but when I
issue nmake it errors out when building spamc.exe
Fatal Error: don't know how to make 'replace/getopts.c'

I'm working with the current trunk also. I see no replace directory in
spamc\

I've also read the README.WIN file and nothing in there seems to help.
-- 

 -Doc

 Penguins: Do it on the ice.
   8:44am  up 4 days, 16:55, 17 users,  load average: 0.18, 0.30, 0.37

 SARE HQ  http://www.rulesemporium.com/

Re: Win32 and Buildbot

Posted by Doc Schneider <ma...@maddoc.net>.
Sidney Markowitz wrote:
> Doc Schneider wrote, On 11/4/07 9:47 AM:
>> ARG. I have been trying to get  a buildbot slave running on ActivePerl
>> on Win XP (Pro) but without installing cygein or something like MSVC++
>> it won't make things (like spamc/ some perl mods not actually available
>> from ppg [ppg is AP's only cpan type thing] and all together it is a
>> b*tch to build without any C tools.) But am wondering if I run the BB
>> Slave from cygwin would that be good enough to say "this works" on
>> Win32? Or else I'm going to have to find, again, that free c compiler I
>> ran across somewhere but didn't bookmark. To make SA install without
>> using Cygwin. I did bookmark that stolennotebook.com but it doesn't seem
>> to be all that helpful. Could be just me too. 8*)
>>
> 
> Microsoft has a free (as in beer, not libre) version of Visual C++ 2005
> for download at:
> 
> http://msdn.microsoft.com/vstudio/express/visualc/
> 
> I haven't tried building with this version. The last time I did this I
> used the free version of Visual C++ 2003.
> 
> I was sure that there is an option to Makefile.PL to disable building
> spamc, but that doesn't help you if you need a C compiler to get some
> necessary module from ppg.
> 
> It would _not_ be sufficient to test only the Cygwin build, as that has
> more in common with the *nix builds than it does with Win32 build.
> 
> It does help to also have Cygwin on the same machine because that allows
> you to run spamd under Cygwin and configure the Win32 tests to assume a
> spamd on localhost when doing the spamc tests.
> 
>  -- sidney
> 

Ok am installing this Free compiler on my WinXP box now. Will let you
know how it works.

I have everything else mostly working as far as buildbot goes. It is
Python and, although it used an older version, it does build and tested
ok. Just the perl stuff was driving me up a tree. Thanks a bunch Sidney!

-- 

 -Doc

 Penguins: Do it on the ice.
   8:44am  up 4 days, 16:55, 17 users,  load average: 0.18, 0.30, 0.37

 SARE HQ  http://www.rulesemporium.com/

Re: Win32 and Buildbot

Posted by Sidney Markowitz <si...@sidney.com>.
Doc Schneider wrote, On 11/4/07 9:47 AM:
> ARG. I have been trying to get  a buildbot slave running on ActivePerl
> on Win XP (Pro) but without installing cygein or something like MSVC++
> it won't make things (like spamc/ some perl mods not actually available
> from ppg [ppg is AP's only cpan type thing] and all together it is a
> b*tch to build without any C tools.) But am wondering if I run the BB
> Slave from cygwin would that be good enough to say "this works" on
> Win32? Or else I'm going to have to find, again, that free c compiler I
> ran across somewhere but didn't bookmark. To make SA install without
> using Cygwin. I did bookmark that stolennotebook.com but it doesn't seem
> to be all that helpful. Could be just me too. 8*)
> 

Microsoft has a free (as in beer, not libre) version of Visual C++ 2005
for download at:

http://msdn.microsoft.com/vstudio/express/visualc/

I haven't tried building with this version. The last time I did this I
used the free version of Visual C++ 2003.

I was sure that there is an option to Makefile.PL to disable building
spamc, but that doesn't help you if you need a C compiler to get some
necessary module from ppg.

It would _not_ be sufficient to test only the Cygwin build, as that has
more in common with the *nix builds than it does with Win32 build.

It does help to also have Cygwin on the same machine because that allows
you to run spamd under Cygwin and configure the Win32 tests to assume a
spamd on localhost when doing the spamc tests.

 -- sidney



Re: Win32 and Buildbot

Posted by Doc Schneider <ma...@maddoc.net>.
Sidney Markowitz wrote:
> Justin Mason wrote, On 8/3/07 4:18 AM:
>> Doc Schneider writes:
>>> I'm going to be using my WinXP Pro as a buildbot and am just now reading 
>>> what JM sent in a ticket on bugzilla.
>>>
>>> Just wanted to start a message here.
>>>
>>> Questions: Should the buildbot be run in a cygwin app? or using 
>>> something like ActivePerl? I know most of the applications have win32 
>>> counterparts. ie. python and the like....
> 
> I no longer have the vmware images I used to use for Windows buildbots
> for SpamAssassin, but I vaguely recall that I did have it working both
> in straight Windows XP and with CygWin. If you can get the plain Windows
> one to work that would be good, as the code and failure modes are different.
> 
> Googling for
> 
>  buildbot windows xp
> 
> reveals that there are buildbot slaves running under Windows using
> ActivePython. The first hit I got was a discussion of running it as a
> service
> 
> http://www.stolennotebook.com/anthony/2007/01/15/buildbot-as-a-windows-xp-service-part-2/
> 
> You can run svn, build spamassassin, and make test on a Windows XP
> platform. You can't test anything that requires spamd to run (the spamd
> and most of the spamc tests) unless you set things up to do the spamc
> tests using an external spamd such as running in CygWin on localhost. I
> think I made sure that make test does work under plain Windows, skipping
> whatever can't be tested. So it does make sense to have a Windows
> buildbot slave in addition to a CygWin one.
> 
>  - sidney

ARG. I have been trying to get  a buildbot slave running on ActivePerl
on Win XP (Pro) but without installing cygein or something like MSVC++
it won't make things (like spamc/ some perl mods not actually available
from ppg [ppg is AP's only cpan type thing] and all together it is a
b*tch to build without any C tools.) But am wondering if I run the BB
Slave from cygwin would that be good enough to say "this works" on
Win32? Or else I'm going to have to find, again, that free c compiler I
ran across somewhere but didn't bookmark. To make SA install without
using Cygwin. I did bookmark that stolennotebook.com but it doesn't seem
to be all that helpful. Could be just me too. 8*)

-- 

 -Doc

 Penguins: Do it on the ice.
   8:44am  up 4 days, 16:55, 17 users,  load average: 0.18, 0.30, 0.37

 SARE HQ  http://www.rulesemporium.com/

Re: Win32 and Buildbot

Posted by Sidney Markowitz <si...@sidney.com>.
Justin Mason wrote, On 8/3/07 4:18 AM:
> Doc Schneider writes:
>> I'm going to be using my WinXP Pro as a buildbot and am just now reading 
>> what JM sent in a ticket on bugzilla.
>>
>> Just wanted to start a message here.
>>
>> Questions: Should the buildbot be run in a cygwin app? or using 
>> something like ActivePerl? I know most of the applications have win32 
>> counterparts. ie. python and the like....

I no longer have the vmware images I used to use for Windows buildbots
for SpamAssassin, but I vaguely recall that I did have it working both
in straight Windows XP and with CygWin. If you can get the plain Windows
one to work that would be good, as the code and failure modes are different.

Googling for

 buildbot windows xp

reveals that there are buildbot slaves running under Windows using
ActivePython. The first hit I got was a discussion of running it as a
service

http://www.stolennotebook.com/anthony/2007/01/15/buildbot-as-a-windows-xp-service-part-2/

You can run svn, build spamassassin, and make test on a Windows XP
platform. You can't test anything that requires spamd to run (the spamd
and most of the spamc tests) unless you set things up to do the spamc
tests using an external spamd such as running in CygWin on localhost. I
think I made sure that make test does work under plain Windows, skipping
whatever can't be tested. So it does make sense to have a Windows
buildbot slave in addition to a CygWin one.

 - sidney