Re: distroprefs, skip file -newbie questions
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
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
Re: distroprefs, skip file -newbie questions
--- On Sun, 2/15/09, Chris 'BinGOs' Williams wrote: > CPANPLUS itself doesn't have the equivalent of > 'distprefs'. > > If you use CPAN(PLUS)::YACSmoke there is a documented > mechanism in both modules for excluding > particular distributions. 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.
Re: distroprefs, skip file -newbie questions
On Sun, Feb 15, 2009 at 11:09:15AM -0800, Mike wrote: > > Thanks, this is very helpful- the default, the setting, an example file. How > does that translate for CPANPLUS? > CPANPLUS itself doesn't have the equivalent of 'distprefs'. If you use CPAN(PLUS)::YACSmoke there is a documented mechanism in both modules for excluding particular distributions. Cheers, -- Chris Williams aka BinGOs PGP ID 0x4658671F http://www.gumbynet.org.uk == pgpGTo0MWD8VH.pgp Description: PGP signature
Re: distroprefs, skip file -newbie questions
--- On Sun, 2/15/09, David Golden 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
FWIW, I've created a distroprefs page on the wiki: http://wiki.cpantesters.org/wiki/Distroprefs Anyone should feel free to write better instructions or add links to other distroprefs collections. -- David On Sun, Feb 15, 2009 at 12:01 PM, Slaven Rezic wrote: > Mike 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 rezic de > >tkrevdiff - graphical display of diffs between revisions (RCS, CVS or SVN) >http://ptktools.sourceforge.net/#tkrevdiff >
Re: distroprefs, skip file -newbie questions
Mike 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 rezic de tkrevdiff - graphical display of diffs between revisions (RCS, CVS or SVN) http://ptktools.sourceforge.net/#tkrevdiff
Re: distroprefs, skip file -newbie questions
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: http://echo.dagolden.com/git/?p=distroprefs;a=tree If you want to clone them, if you have git you can do this: $ git clone git://echo.dagolden.com/git/distroprefs Note -- I'm not terribly consistent as to which file I put things. I also have never gone back to remove things if newer releases fixed the problem. You should at least look at the "never.yml" file. -- David On Sun, Feb 15, 2009 at 11:34 AM, Mike wrote: > 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? > > Same for CPANPLUS.pm- What is the default full pathname of the distroprefs > file for CPANPLUS.pm? Can someone post a file they use? > > I see lots of discussion that assumes a lot of knowledge, and I am just a > newbie. Like the caution recently circulated about an ACME distribution. > > Sorry if this topic is actually posted somewhere obscure that I missed- I > have tried. > > Thanks. > > > > >