Re: 2 Qs about Module::Build

2010-02-10 Thread Eric Wilhelm
# from cr...@animalhead.com
# on Sunday 07 February 2010 23:25:

 I can
add the optimization I want to the extra_compiler_flags parameter,
but the optimization from the Perl build is included in the cc
command also.  I feel sorry for the compiler which is told to
optimize two different ways...

Passing options to ExtUtils::CBuilder from the Build.PL needs some work. 
I'm sure there are about a dozen hacked-up build classes on the CPAN 
which are trying to work with this in one way or another.  
Module::Build needs some way to give authors a lot more rope, but in a 
way that will allows it and EU::CBuilder to change.  Test cases and 
patches are most welcomed.

--Eric
-- 
I arise in the morning torn between a desire to improve the world and a
desire to enjoy the world. This makes it hard to plan the day.
--E.B. White
---
http://scratchcomputing.com
---


Spam to CPAN Developers? (Fwd: Betonmarkets CTO position)

2010-02-10 Thread Jonathan Yu
Hi,

Has anyone else got a message like this to their CPAN Developer e-mail
address? I'm curious if this is the beginning of a really bad trend
toward CPAN author spamming :/


-- Forwarded message --
From: Jean-Yves Sireau j...@regent-markets.com
Date: Wed, Feb 10, 2010 at 9:18 AM
Subject: Betonmarkets CTO position
To: jaw...@cpan.org


Dear Jonathan,

Betonmarkets.com, the leading financial betting company, is looking to
recruit a CTO.  As a Perl expert, I was wondering whether you may be
interested in the position?

The Betonmarkets website and underlying systems are developed entirely
in Perl and typically conduct 20,000 transactions per day. We are
looking for a CTO who is expert and enthusiastic about Perl, as well as
experienced in management and team leadership, and able to assume the
role of CTO of a successful e-commerce company.

We are located in Cyberjaya, Malaysia, which offers a high quality as
well as low cost of living.  We are a multi-national company, with
staff from 14 countries (including the US, Europe, and Asia).  Our
company, and its location in Cyberjaya, offer a unique living and
working experience for expatriates.

If you would be interested to know more about this position, kindly
email me your CV.  Please feel free to forward this email to any person
in the Perl community who may be interested in the opportunity.

Best regards,
Jean-Yves Sireau

--
Jean-Yves Sireau, CEO
Regent Markets Group Ltd.
Genseq Ltd.


Re: Spam to CPAN Developers? (Fwd: Betonmarkets CTO position)

2010-02-10 Thread Nicholas Clark
On Wed, Feb 10, 2010 at 12:20:51PM -0500, Jonathan Yu wrote:
 Hi,
 
 Has anyone else got a message like this to their CPAN Developer e-mail
 address? I'm curious if this is the beginning of a really bad trend
 toward CPAN author spamming :/

Yes. I replied to him with a polite but sarky note about it, finishing by
suggesting that he used http://jobs.perl.org/

Nicholas Clark


Re: Spam to CPAN Developers? (Fwd: Betonmarkets CTO position)

2010-02-10 Thread Andy Lester


On Feb 10, 2010, at 11:20 AM, Jonathan Yu wrote:


Has anyone else got a message like this to their CPAN Developer e-mail
address? I'm curious if this is the beginning of a really bad trend
toward CPAN author spamming :/



Yes. Maybe, but I doubt it.

I'm praying that we can chalk it up to some guy in Malaysia sending us  
all mail, and this doesn't turn into a huge metadiscussion.


Please?

xoxo,
Andy

--
Andy Lester = a...@petdance.com = www.theworkinggeek.com = AIM:petdance






Re: 2 Qs about Module::Build

2010-02-10 Thread craig

I'm sorry, I worked through it but forgot to post what the
solutions were, for anyone following this as a thread in the
future.  Restating my Qs with As:

Q: How do I block the optimization from the Perl build being
included the cc command?  I would prefer to leave it in
the optimization variable in Config for future installs.

A: After the
  $build = Module::Build-new( ...operands... );
   one can (just for this build not permanently) override
   parameters under which perl was built (from Config).
   The one I wanted, to override the optimization in the C
   compiler used by perl, came out to
  $build-config(optimize = $opt);

   There are lots of other Config() items that one can apply
   this to.  I was just spoiled because ExtUtils::MakeMaker
   had an explicit
   OPTIMIZE = $opt,
   in its WriteMakefile() operands.

Q2: What's the easiest way to communicate something from
  the Build.PL code to test code?

A2: Similar to the above, after the -new() I did

my $cmd = $build-prompt(
Enter a shell command to be run when the sky is falling:);
if ($cmd) {$build-config_data('cmd' = $cmd)};

Test code can access $cmd with:
$cmd = Module::Build-current-config_data('cmd');

Code that will run after installation of My::Module can access
$cmd with:
use My::Module::ConfigData;  # this gets created during the install
$cmd = My::Module::ConfigData-config('cmd');

There's a parallel capability that communicates booleans
called feature(), but since booleans are a subset of
GP values, I suspect features() will be less popular
than config_data.

The web pages Module::Build::API and Module::Build::Cookbook
are where one can learn good stuff like this.

Best Regards to all,
cmac


On Feb 10, 2010, at 8:48 AM, Eric Wilhelm wrote:


# from cr...@animalhead.com
# on Sunday 07 February 2010 23:25:


I can
add the optimization I want to the extra_compiler_flags parameter,
but the optimization from the Perl build is included in the cc
command also.  I feel sorry for the compiler which is told to
optimize two different ways...


Passing options to ExtUtils::CBuilder from the Build.PL needs some  
work.

I'm sure there are about a dozen hacked-up build classes on the CPAN
which are trying to work with this in one way or another.
Module::Build needs some way to give authors a lot more rope, but in a
way that will allows it and EU::CBuilder to change.  Test cases and
patches are most welcomed.

--Eric
--
I arise in the morning torn between a desire to improve the world  
and a

desire to enjoy the world. This makes it hard to plan the day.
--E.B. White
---
http://scratchcomputing.com
---