IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 22, 2009, 2:52:46 PM (17 years ago)
Author:
eugene
Message:

Fixed a number of build issues:

1) magic and gpcsw had problems with collisions in multithreaded build (-j4)
2) some missing perl dependencies (at least on my ubuntu box)
3) XML-NamespaceSupport-1.10.tar.gz requires an additional flag of the build line to avoid

having it run a CPAN query. I added a feature to supply such build line options, requiring
an update of the perl table

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psconfig/pscheckperl

    r25893 r26256  
    7878    if ($line =~ m|^\s*\#|) { next; }
    7979
    80     ($N, $module, $tarball, $modver, $prompts) = split (" ", $line);
     80    $Nvalue = ($N, $module, $tarball, $modver, $buildopts, $prompts) = split (" ", $line);
     81    if ($Nvalue < 6) {
     82        print "Error in perl module config line $line\n";
     83        exit 1;
     84    }
     85    # print "N: $N, module: $module, tarball: $tarball, modver: $modver, buildopts: $buildopts, prompts: $prompts\n";
    8186
    82     if ($modver eq "") { $modver = 0; }
     87    # we require the number of fields to be fixed, so this test is now invalid:
     88    # if ($modver eq "") { $modver = 0; }
     89
    8390    system ("pscheckmods $module $modver");
    8491    if (($? == 0) and not defined $force{$module} and not defined $force{'all'}) {
     
    109116    chdir $tardir;
    110117
     118    # we use NONE as the empty word
     119    if ($buildopts eq "NONE") { $buildopts = ""; }
     120    if ($prompts eq "NONE") { $prompts = ""; }
     121
    111122    if (-e "Build.PL") {
    112123        # vsystem("perl Build.PL --install_path lib=$perldir ");
    113         vsystem("perl Build.PL --install_base $prefix");
     124        vsystem("perl Build.PL --install_base $prefix $buildopts");
    114125        vsystem("Build");
    115126        vsystem("Build install");
     
    118129        if ($prompts) {
    119130            @answers = split (",", $prompts);
    120             open (PIPE, "|perl Makefile.PL PREFIX=$prefix LIB=$perldir");
     131            open (PIPE, "|perl Makefile.PL PREFIX=$prefix LIB=$perldir $buildopts");
    121132            foreach $answer (@answers) {
    122133                print PIPE "$answer\n";
     
    124135            close (PIPE);
    125136        } else {
    126             vsystem ("perl Makefile.PL PREFIX=$prefix LIB=$perldir");
     137            vsystem ("perl Makefile.PL PREFIX=$prefix LIB=$perldir $buildopts");
    127138        }
    128 
    129139        vsystem ("make < /dev/null");
    130140        vsystem ("make install");
Note: See TracChangeset for help on using the changeset viewer.