Opened 18 years ago

Closed 18 years ago

#10763 closed defect (duplicate)

BUG: svk-1.08 runs CPAN.pm and gets stuck in loop

Reported by: cmconnelly (Claire Connelly) Owned by: danielluke (Daniel J. Luke)
Priority: High Milestone:
Component: ports Version:
Keywords: Cc:
Port:

Description

When installing svk, the svk installer starts CPAN.pm and gets looped in configuring it. I had thought that the problem was a missing dependncy (p5-file-spec), but installing p5-file-spec by hand doesn't fix the loop.

The problem may be that p5-file-spec from DP/MP is 0.70, whereas svk wants 3.18.

Following is the output from the install process (after having installed p5-file-spec from DP/MP):

sharrow% sudo port -v install svk
--->  Configuring svk
*** Module::AutoInstall version 1.02
*** Checking for Perl dependencies...
[Core Features]
- Algorithm::Annotate       ...loaded. (0.10)
- Algorithm::Diff           ...loaded. (1.1901)
- YAML                      ...loaded. (0.58 >= 0.38)
- Regexp::Shellish          ...loaded. (0.93)
- Data::Hierarchy           ...loaded. (0.21 >= 0.21)
- File::Temp                ...loaded. (0.16 >= 0.14)
- Clone                     ...loaded. (0.20)
- Pod::Escapes              ...loaded. (1.04)
- Pod::Simple               ...loaded. (3.02)
- PerlIO::via::dynamic      ...loaded. (0.12 >= 0.11)
- PerlIO::via::symlink      ...loaded. (0.05 >= 0.02)
- IO::Digest                ...loaded. (0.10)
- SVN::Simple::Edit         ...loaded. (0.27 >= 0.27)
- Date::Parse               ...loaded. (2.27 >= 2.27)
- File::Type                ...loaded. (0.22)
- URI                       ...loaded. (1.35)
- PerlIO::eol               ...loaded. (0.13 >= 0.13)
- Class::Autouse            ...loaded. (1.26 >= 1.15)
- Getopt::Long              ...loaded. (2.35 >= 2.34)
- Encode                    ...loaded. (2.12 >= 2.10)
- File::Spec                ...missing. (would need 3.18)
- SVN::Mirror               ...loaded. (0.70 >= 0.66)
==> Auto-install the 1 mandatory module(s) from CPAN? [Y/n] y
[Localized messages]
- Locale::Maketext::Lexicon ...loaded. (0.61 >= 0.42)
- Locale::Maketext::Simple  ...loaded. (0.16 >= 0.12)
[Message display through a pager]
- IO::Pager                 ...loaded. (0.05)
[Patch management]
- Compress::Zlib            ...loaded. (1.42)
- FreezeThaw                ...loaded. (0.43)
We have to reconfigure CPAN.pm due to following uninitialized parameters:

cpan_home, keep_source_where, build_dir, build_cache, scan_cache, index_expire, gzip, tar, unzip, make, pager, makepl_arg, make_arg, make_install_arg, urllist, inhibit_startup_message, ftp_proxy, http_proxy, no_proxy, prerequisites_policy, cache_metadata

/opt/local/lib/perl5/5.8.8/CPAN/Config.pm initialized.


CPAN is the world-wide archive of perl resources. It consists of about
100 sites that all replicate the same contents all around the globe.
Many countries have at least one CPAN site already. The resources
found on CPAN are easily accessible with the CPAN.pm module. If you
want to use CPAN.pm, you have to configure it properly.

If you do not want to enter a dialog now, you can answer 'no' to this
question and I'll try to autoconfigure. (Note: you can revisit this
dialog anytime later by typing 'o conf init' at the cpan prompt.)

Are you ready for manual configuration? [yes] yes


The following questions are intended to help you with the
configuration. The CPAN module needs a directory of its own to cache
important index files and maybe keep a temporary mirror of CPAN files.
This may be a site-wide directory or a personal directory.



I see you already have a  directory
    /Users/cmc/.cpan
Shall we use it as the general CPAN build and cache directory?

CPAN build and cache directory? [/Users/cmc/.cpan] /Users/cmc/.cpan


If you want, I can keep the source files after a build in the cpan
home directory. If you choose so then future builds will take the
files from there. If you don't want to keep them, answer 0 to the
next question.



How big should the disk cache be for keeping the build directories
with all the intermediate files?

Cache size for build directory (in MB)? [10] 10


By default, each time the CPAN module is started, cache scanning
is performed to keep the cache size in sync. To prevent from this,
disable the cache scanning with 'never'.

Perform cache scanning (atstart or never)? [atstart] atstart


To considerably speed up the initial CPAN shell startup, it is
possible to use Storable to create a cache of metadata. If Storable
is not available, the normal index mechanism will be used.

Cache metadata (yes/no)? [yes] yes


The next option deals with the charset your terminal supports. In
general CPAN is English speaking territory, thus the charset does not
matter much, but some of the aliens out there who upload their
software to CPAN bear names that are outside the ASCII range. If your
terminal supports UTF-8, you say no to the next question, if it
supports ISO-8859-1 (also known as LATIN1) then you say yes, and if it
supports neither nor, your answer does not matter, you will not be
able to read the names of some authors anyway. If you answer no, names
will be output in UTF-8.

Your terminal expects ISO-8859-1 (yes/no)? [yes] yes


If you have one of the readline packages (Term::ReadLine::Perl,
Term::ReadLine::Gnu, possibly others) installed, the interactive CPAN
shell will have history support. The next two questions deal with the
filename of the history file and with its size. If you do not want to
set this variable, please hit SPACE RETURN to the following question.

File to save your history? [/Users/cmc/.cpan/histfile] /Users/cmc/.cpan/histfile
Number of lines to save? [100] 100


The CPAN module can detect when a module that which you are trying to
build depends on prerequisites. If this happens, it can build the
prerequisites for you automatically ('follow'), ask you for
confirmation ('ask'), or just ignore them ('ignore'). Please set your
policy to one of the three values.

Policy on building prerequisites (follow, ask or ignore)? [ask] ask


The CPAN module will need a few external programs to work properly.
Please correct me, if I guess the wrong path for a program. Don't
panic if you do not have some of them, just press ENTER for those. To
disable the use of a download program, you can type a space followed
by ENTER.

Where is your gzip program? [/usr/bin/gzip] /usr/bin/gzip
Where is your tar program? [/usr/bin/tar] /usr/bin/tar
Where is your unzip program? [/usr/bin/unzip] /usr/bin/unzip
Where is your make program? [/usr/bin/make] /usr/bin/make
Warning: lynx not found in PATH
Where is your lynx program? [] 
Where is your wget program? [/opt/local/bin/wget] /opt/local/bin/wget
Warning: ncftpget not found in PATH
Where is your ncftpget program? [] 
Warning: ncftp not found in PATH
Where is your ncftp program? [] 
Where is your ftp program? [/usr/bin/ftp] /usr/bin/ftp
Where is your gpg program? [/opt/local/bin/gpg] /opt/local/bin/gpg
What is your favorite pager program? [less] less
What is your favorite shell? [/bin/tcsh] /bin/tcsh


Every Makefile.PL is run by perl in a separate process. Likewise we
run 'make' and 'make install' in processes. If you have any
parameters (e.g. PREFIX, LIB, UNINST or the like) you want to pass
to the calls, please specify them here.

If you don't understand this question, just press ENTER.

Parameters for the 'perl Makefile.PL' command?
Typical frequently used settings:

    PREFIX=~/perl       non-root users (please see manual for more hints)

Your choice:  [] 
Parameters for the 'make' command?
Typical frequently used setting:

    -j3              dual processor system

Your choice:  [] 
Parameters for the 'make install' command?
Typical frequently used setting:

    UNINST=1         to always uninstall potentially conflicting files

Your choice:  [] 


Sometimes you may wish to leave the processes run by CPAN alone
without caring about them. As sometimes the Makefile.PL contains
question you're expected to answer, you can set a timer that will
kill a 'perl Makefile.PL' process after the specified time in seconds.

If you set this value to 0, these processes will wait forever. This is
the default and recommended setting.

Timeout for inactivity during Makefile.PL? [0] 0


If you're accessing the net via proxies, you can specify them in the
CPAN configuration or via environment variables. The variable in
the $CPAN::Config takes precedence.

Your ftp_proxy?  
Your http_proxy?  
Your no_proxy?  
Found /Users/cmc/.cpan/sources/MIRRORED.BY as of Wed Sep 20 23:10:13 2006

I'd use that as a database of CPAN sites. If that is OK for you,
please answer 'y', but if you want me to get a new database now,
please answer 'n' to the following question.

Shall I use the local database in /Users/cmc/.cpan/sources/MIRRORED.BY? [y] y


Now we need to know where your favorite CPAN sites are located. Push
a few sites onto the array (just in case the first on the array won't
work). If you are mirroring CPAN to your local workstation, specify a
file: URL.

First, pick a nearby continent and country (you can pick several of
each, separated by spaces, or none if you just want to keep your
existing selections). Then, you will be presented with a list of URLs
of CPAN mirrors in the countries you selected, along with previously
selected URLs. Select some of those URLs, or just keep the old list.
Finally, you will be prompted for any extra URLs -- file:, ftp:, or
http: -- that host a CPAN mirror.

(1) Africa
(2) Asia
(3) Central America
(4) Europe
(5) North America
(6) Oceania
(7) South America
Select your continent (or several nearby continents) [] 
Sorry! since you don't have any existing picks, you must make a
geographic selection.

(1) Africa
(2) Asia
(3) Central America
(4) Europe
(5) North America
(6) Oceania
(7) South America
Select your continent (or several nearby continents) [] 
Sorry! since you don't have any existing picks, you must make a
geographic selection.

(loop until C-c)

Change History (3)

comment:1 Changed 18 years ago by cmconnelly (Claire Connelly)

On further investigation, it turns out that File::Spec is included in File::PathTools, which conflicts with perl5.8. That's bug #10563, so this bug is a dupe.

comment:2 Changed 18 years ago by markd@…

Owner: changed from yeled@… to dluke@…
Summary: svk not installableBUG: svk-1.08 runs CPAN.pm and gets stuck in loop

comment:3 Changed 18 years ago by danielluke (Daniel J. Luke)

Resolution: duplicate
Status: newclosed

p5-pathtools needs -f to install, per the ui_msg:

"You must install or activate this package with '-f' (force) as it needs to overwrite files installed by the perl5.8 port"

svk needs the newer p5-pathtools.

Note: See TracTickets for help on using tickets.