Re: distroprefs, skip file -newbie questions

2009-02-16 Thread David Cantrell
On Sun, Feb 15, 2009 at 06:01:49PM +0100, Slaven Rezic wrote:

 The distroprefs files are YAML files (usually) and used not only for
 exclusion of distribution, but also for all kind of setting
 interactive and noninteractive options...

They can also be Data::Dumper-style files - kinda handy when your
testing boxes don't have YAML installed.  I use this shell script to
automatically generate DD from YAML:

#!/bin/sh

for i in *yml; do
if [[ ! -e $i.dd || $i -nt $i.dd ]]; then
  echo Rebuilding $i
  ysh  $i  $i.dd
fi
done

Obviously this requires that ysh is in your path, which in turn requires
that you have *a* perl with YAML installed, but in my case, that's the
system-wide perl in /usr/bin, whereas my testers all use
~/cpantesting/perl-$VERSION/bin/perl.

-- 
David Cantrell | Godless Liberal Elitist

Immigration: making Britain great since AD43


Re: distroprefs, skip file -newbie questions

2009-02-15 Thread Slaven Rezic
Mike mw...@yahoo.com writes:

 Where the rubber meets the road-

 What is the default full pathname of the distroprefs file for CPAN.pm?  Can 
 someone post a file they use as an example?


Specify the directory within the CPAN shell with

   o conf prefs_dir /path/to/distroprefs

and save with

   o conf commit

The distroprefs files are YAML files (usually) and used not only for
exclusion of distribution, but also for all kind of setting
interactive and noninteractive options. My collection of distropref
files may be found in this CVS repository:

cvs -d :pserver:anonym...@srezic.cvs.sourceforge.net:/cvsroot/srezic login
cvs -d :pserver:anonym...@srezic.cvs.sourceforge.net:/cvsroot/srezic co 
srezic-misc/cpan-prefs

Search for disabled for an example how to skip a distribution.

 Same for CPANPLUS.pm- What is the default full pathname of the
 distroprefs file for CPANPLUS.pm?  Can someone post a file they use?

Does CPANPLUS have already adopted distroprefs? I don't think so. But
the CPANPLUS based smokers should have at least some kind of skip
file.

Regards,
Slaven

-- 
Slaven Rezic - slaven at rezic dot de

tkrevdiff - graphical display of diffs between revisions (RCS, CVS or SVN)
http://ptktools.sourceforge.net/#tkrevdiff


Re: distroprefs, skip file -newbie questions

2009-02-15 Thread Mike



--- On Sun, 2/15/09, David Golden xda...@gmail.com wrote:

 Mike -- the directory is set from the CPAN
 'prefs_dir' option.  By
 default, I think it is ~/.cpan/prefs  (unfortunately, on
 Windows,
 that's like c:\documents and
 settings\david\Local
 Settings\.cpan\prefs)
 
 My current distroprefs are in my git repository -- you can
 browse them here:

 You should at least look at the never.yml file.


Thanks, this is very helpful- the default, the setting, an example file.  How 
does that translate for CPANPLUS?

Thanks.


  


Re: distroprefs, skip file -newbie questions

2009-02-15 Thread Chris 'BinGOs' Williams
On Sun, Feb 15, 2009 at 01:52:15PM -0800, Mike wrote:
 
 I see the documented method, but what I do not see is the default location of 
 the INI file.  In one place, it is said that CPANPLUS config is used, so I am 
 confused.
 
 

Yeah, the location where CPANPLUS stores it's configuration files, ie. the 
.cpanplus/ directory. This is where
it locates the cpansmoke.ini file and puts the cpansmoke.dat.* files that are 
the SDBM test report history files.

CPANPLUS usually locates the .cpanplus in $HOME, but it will check the 
following ENV vars in order:

APPDATA HOME USERPROFILE WINDIR SYS$LOGIN

On Windows I tend to set APPDATA to something I control, like C:\Strawberry for 
Strawberry Perl or C:\Perl for 
ActiveState Perl. That way I have separate environments for CPANPLUS on those 
two perls.

I also tend to unset APPDATA in my cygwin.bat launcher, so it picks up $HOME 
instead of $APPDATA.

Cheers,

-- 
Chris Williams
aka BinGOs
PGP ID 0x4658671F
http://www.gumbynet.org.uk
==


pgpDwmxKn6bTQ.pgp
Description: PGP signature