IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16092 for trunk/psconfig


Ignore:
Timestamp:
Jan 15, 2008, 6:01:17 PM (18 years ago)
Author:
eugene
Message:

fixing various build issues: where to get mysql, options passed to extlibs, name cleanups

Location:
trunk/psconfig
Files:
2 added
3 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/psconfig/psbuild

    r15222 r16092  
    88$rebuild = 0;
    99$optimize = 0;
     10$developer = 0;
    1011$start = "";
    1112$stop = "";
     
    3233    if ($ARGV[0] eq "-optimize") {
    3334        $optimize = 1;
     35        shift; next;
     36    }
     37    if ($ARGV[0] eq "-dev") {
     38        $developer = 1;
    3439        shift; next;
    3540    }
     
    155160        $start = "";
    156161
    157         ($do_tag, $do_build, $do_package, $do_update) = $mode[$i] =~ m|(\S)(\S)(\S)(\S)|;
     162        ($do_tag, $do_build, $do_package, $do_update, $dev_build) = $mode[$i] =~ m|(\S)(\S)(\S)(\S)(\S)|;
     163        if ($developer) { $do_build = $dev_build; }
    158164        if ($do_build eq "N") { next; }
    159165
     
    192198        if ($rebuild && $clean) {
    193199            if (-e "configure") { unlink "Makefile"; }
    194             if (-e "configure.ac" && -e "autogen.sh") { unlink "configure"; }
     200            if ($developer && -e "configure.ac" && -e "autogen.sh") { unlink "configure"; }
    195201        }
    196202        $rebuild_this = $rebuild;
     
    201207        #  run autogen
    202208        $skip_configure = 0;
    203         if ($rebuild_this && ! -e "configure" && -e "autogen.sh") {
     209        if ($developer && $rebuild_this && ! -e "configure" && -e "autogen.sh") {
    204210            $skip_configure = 1;
    205211            vsystem ("$psautogen $psopts");
     
    296302    print STDERR "     : -version (version) : specify alternate psconfig installation version\n";
    297303    print STDERR "     : -clean             : clean the source directories before building\n";
    298     print STDERR "     : -rebuild           : run 'autogen' (C code)\n";
     304    print STDERR "     : -rebuild           : run 'configure (and autogen for developer)' (C code)\n";
    299305    print STDERR "     : -optimize          : set flags for optimized code\n";
    300306    print STDERR "     : -only (module)     : only build the specified module\n";
    301307    print STDERR "     : -start (module)    : begin build at specified module\n";
    302308    print STDERR "     : -stop (module)     : stop build after specified module\n\n";
     309    print STDERR "     : -developer         : build modules not distributed in tarball\n\n";
    303310    print STDERR "     : psbuild -list      : list the available distributions\n";
    304311    print STDERR "     : psbuild -h         : this help listing\n";
  • trunk/psconfig/pschecklibs

    r16043 r16092  
    6363$mandir      = `csh psconfig.csh --man $version`;         chomp $mandir;
    6464$incdir      = `csh psconfig.csh --include $version`;     chomp $incdir;
     65$prefix      = `csh psconfig.csh --prefix $version`;      chomp $prefix;
     66
     67$homedir     = `pwd`; chomp $homedir;
     68$psconfdir   = `csh psconfig.csh --psconfdir $version`;   chomp $psconfdir;
    6569$psconfigure = `csh psconfig.csh --psconfigure $version`; chomp $psconfigure;
    66 $prefix      = `csh psconfig.csh --prefix $version`;      chomp $prefix;
    67 $homedir     = `pwd`; chomp $homedir;
    6870
    6971print "psconfig version: $version\n";
     
    113115print "\n";
    114116
    115 if ($build && ! -d $PSCONFDIR) {
    116     mkdir $PSCONFDIR || die "unable to create psconfig dir $PSCONFDIR";
     117if ($build && ! -d $psconfdir) {
     118    mkdir $psconfdir || die "unable to create psconfig dir $psconfdir";
    117119}
    118120
     
    200202    # build the library using psconfigure, make, make install
    201203    if ($configure_opts eq "NONE") {
    202         if ($use_equals eq "Y") {
    203             vsystem ("configure --prefix=$prefix");
    204         } else {
    205             vsystem ("configure --prefix $prefix");
    206         }
     204        vsystem ("$psconfigure");
    207205    } else {
    208206        $configure_opts = join (' ', split (',', $configure_opts));
    209         vsystem ("configure --prefix=$prefix $configure_opts");
     207        vsystem ("$psconfigure $configure_opts");
    210208    }
    211209    if ($?) { &failure($name, "failure in configure"); }
  • trunk/psconfig/pscheckperl

    r16052 r16092  
    7272
    7373    if ($modver eq "") { $modver = 0; }
    74     system ("ckmodule.pl $module $modver");
     74    system ("pscheckmods $module $modver");
    7575    if ($? == 0) {
    7676        # print "$module: found\n";
  • trunk/psconfig/psconfig.csh

    r15158 r16092  
    243243  endif
    244244end
     245
     246## XXX mysql (and others?) are not installed in the correct location: they go into
     247## prefix/lib/mysql regardless of configure options
    245248if ("$PSCONFIG" == "none") then
    246249  if ("$newpath" == "") then
    247250    unsetenv CPATH
    248251  else
    249     setenv CPATH {$newpath}
    250   endif
    251 else
    252   if ("$newpath" == "") then
    253     setenv CPATH {$incdir}:
    254   else
    255     setenv CPATH {$incdir}:{$newpath}
     252    setenv CPATH {$newpath}:
     253  endif
     254else
     255  if ("$newpath" == "") then
     256    setenv CPATH {$incdir}:{$PSCONFDIR}/{$PSCONFIG}/include/mysql:
     257  else
     258    setenv CPATH {$incdir}:{$PSCONFDIR}/{$PSCONFIG}/include/mysql:{$newpath}:
    256259  endif
    257260endif
     
    270273  endif
    271274end
     275
     276## XXX mysql (and others?) are not installed in the correct location: they go into
     277## prefix/lib/mysql regardless of configure options
    272278if ("$PSCONFIG" == "none") then
    273279  if ("$newpath" == "") then
     
    275281    unsetenv LIBRARY_PATH
    276282  else
    277     setenv LD_LIBRARY_PATH {$newpath}
    278     setenv LIBRARY_PATH {$newpath}
    279   endif
    280 else
    281   if ("$newpath" == "") then
    282     setenv LD_LIBRARY_PATH {$libdir}:
    283     setenv LIBRARY_PATH {$libdir}:
    284   else
    285     setenv LD_LIBRARY_PATH {$libdir}:{$newpath}
    286     setenv LIBRARY_PATH {$libdir}:{$newpath}
     283    setenv LD_LIBRARY_PATH {$newpath}:
     284    setenv LIBRARY_PATH {$newpath}:
     285  endif
     286else
     287  if ("$newpath" == "") then
     288    setenv LD_LIBRARY_PATH {$libdir}:{$PSCONFDIR}/{$PSCONFIG}/lib/mysql:
     289    setenv LIBRARY_PATH {$libdir}:{$PSCONFDIR}/{$PSCONFIG}/lib/mysql:
     290  else
     291    setenv LD_LIBRARY_PATH {$libdir}:{$PSCONFDIR}/{$PSCONFIG}/lib/mysql:{$newpath}:
     292    setenv LIBRARY_PATH {$libdir}:{$PSCONFDIR}/{$PSCONFIG}/lib/mysql:{$newpath}:
    287293  endif
    288294endif
     
    312318  if ("$newpath" == "") then
    313319    setenv PERL5LIB {$plibdir}:
    314     # setenv PERL5LIB {$plibdir}:{$plib5dir}:
    315320  else
    316321    setenv PERL5LIB {$plibdir}:{$newpath}
    317     # setenv PERL5LIB {$plibdir}:{$plib5dir}:{$newpath}
    318322  endif
    319323endif
  • trunk/psconfig/tagsets/ipp-2.4.dist

    r16082 r16092  
    33# ||-- build?
    44# |||-- package?
    5 # ||||-- update?
    6 # ||||
    7 # ||||  CVS module             CVS branch tag   CVS branch version   
    8 # ||||
    9   NYNN  Ohana
    10   NNYY  ohana.base             ipp-2-4          -0
    11   NNYY  libohana               ipp-2-4          -0
    12   NNYY  libfits                ipp-2-4          -0
    13   NNYY  libautocode            ipp-2-4          -0
    14   NNYY  libdvo                 ipp-2-4          -0
    15   NNYY  libkapa                ipp-2-4          -0
    16   NNYY  libtap.ohana           ipp-2-4          -0
    17   NNYY  addstar                ipp-2-4          -0
    18   NNYY  delstar                ipp-2-4          -0
    19   NNYY  getstar                ipp-2-4          -0
    20   NNYY  ohana.tools            ipp-2-4          -0
    21   NNYY  kapa2                  ipp-2-4          -0
    22   NNYY  relphot                ipp-2-4          -0
    23   NNYY  relastro               ipp-2-4          -0
    24   NNYY  uniphot                ipp-2-4          -0
    25   NNYY  opihi.base             ipp-2-4          -0
    26   NNYY  mana                   ipp-2-4          -0
    27   NNYY  dvo                    ipp-2-4          -0
    28   NNYY  pantasks               ipp-2-4          -0
    29   NNYY  pcontrol               ipp-2-4          -0
    30   NNYY  pclient                ipp-2-4          -0     
    31 
    32   NYNN  Nebulous/nebclient     ipp-2-4          -0
    33   YYYN  Nebulous               ipp-2-4          -0
    34   YYYY  PS-IPP-Metadata-Config ipp-2-4          -0
    35   YYYY  PS-IPP-Config          ipp-2-4          -0     
    36 
    37   NYYY  psLib                  ipp-2-4          -0
    38   NYYY  psModules              ipp-2-4          -0
    39   YYYY  psphot                 ipp-2-4          -0
    40   YYYY  psastro                ipp-2-4          -0
    41   YYYY  ppStats                ipp-2-4          -0
    42   YYYY  ppConfigDump           ipp-2-4          -0
    43   YYYY  ppImage                ipp-2-4          -0
    44   YYYY  ppNorm                 ipp-2-4          -0
    45   YYYY  ppMerge                ipp-2-4          -0
    46   YYYY  pedestal               ipp-2-4          -0
    47   YYYY  dvoTools               ipp-2-4          -0
    48   YYYY  pswarp                 ipp-2-4          -0
    49   YYYY  ppArith                ipp-2-4          -0
    50   YYYY  ppStack                ipp-2-4          -0
    51   YYYY  ppSub                  ipp-2-4          -0
    52   YYYY  ppSim                  ipp-2-4          -0
    53   YNYY  ppstamp                ipp-2-4          -0
    54 
    55   YYYY  glueforge              ipp-2-4          -0
    56   YYYY  dbconfig               ipp-2-4          -0
    57   NYNN  ippdb.src                             
    58   YYYY  ippTools               ipp-2-4          -0
    59   YYYY  ippScripts             ipp-2-4          -0
    60   YYYY  ippTasks               ipp-2-4          -0
    61 
    62   YYYY  ippconfig              ipp-2-4          -0
    63   YYYY  simtest                ipp-2-4          -0
    64   YNYY  psconfig               ipp-2-4          -0
    65   YNYY  ippMonitor             ipp-2-4          -0
     5# ||||-- update directory from CVS?
     6# |||||-- build for developer?
     7# |||||
     8# |||||  CVS module             CVS branch tag   CVS branch version   
     9# |||||
     10  NYNNY  Ohana
     11  NNYYN  ohana.base             ipp-2-4          -0
     12  NNYYN  libohana               ipp-2-4          -0
     13  NNYYN  libfits                ipp-2-4          -0
     14  NNYYN  libautocode            ipp-2-4          -0
     15  NNYYN  libdvo                 ipp-2-4          -0
     16  NNYYN  libkapa                ipp-2-4          -0
     17  NNYYN  libtap.ohana           ipp-2-4          -0
     18  NNYYN  addstar                ipp-2-4          -0
     19  NNYYN  delstar                ipp-2-4          -0
     20  NNYYN  getstar                ipp-2-4          -0
     21  NNYYN  ohana.tools            ipp-2-4          -0
     22  NNYYN  kapa2                  ipp-2-4          -0
     23  NNYYN  relphot                ipp-2-4          -0
     24  NNYYN  relastro               ipp-2-4          -0
     25  NNYYN  uniphot                ipp-2-4          -0
     26  NNYYN  opihi.base             ipp-2-4          -0
     27  NNYYN  mana                   ipp-2-4          -0
     28  NNYYN  dvo                    ipp-2-4          -0
     29  NNYYN  pantasks               ipp-2-4          -0
     30  NNYYN  pcontrol               ipp-2-4          -0
     31  NNYYN  pclient                ipp-2-4          -0     
     32         
     33  NYNNY  Nebulous/nebclient     ipp-2-4          -0
     34  YYYNY  Nebulous               ipp-2-4          -0
     35  YYYYY  PS-IPP-Metadata-Config ipp-2-4          -0
     36  YYYYY  PS-IPP-Config          ipp-2-4          -0     
     37         
     38  NYYYY  psLib                  ipp-2-4          -0
     39  NYYYY  psModules              ipp-2-4          -0
     40  YYYYY  psphot                 ipp-2-4          -0
     41  YYYYY  psastro                ipp-2-4          -0
     42  YYYYY  ppStats                ipp-2-4          -0
     43  YYYYY  ppConfigDump           ipp-2-4          -0
     44  YYYYY  ppImage                ipp-2-4          -0
     45  YYYYY  ppNorm                 ipp-2-4          -0
     46  YYYYY  ppMerge                ipp-2-4          -0
     47  YYYYY  pedestal               ipp-2-4          -0
     48  YYYYY  dvoTools               ipp-2-4          -0
     49  YYYYY  pswarp                 ipp-2-4          -0
     50  YYYYY  ppArith                ipp-2-4          -0
     51  YYYYY  ppStack                ipp-2-4          -0
     52  YYYYY  ppSub                  ipp-2-4          -0
     53  YYYYY  ppSim                  ipp-2-4          -0
     54  YNYYN  ppstamp                ipp-2-4          -0
     55         
     56  YNNYY  glueforge              ipp-2-4          -0
     57  YNNYY  dbconfig               ipp-2-4          -0
     58  NNNNY  ippdb.src             
     59  NYYNN  ippdb                  ipp-2-4          -0
     60  YYYYY  ippTools               ipp-2-4          -0
     61  YYYYY  ippScripts             ipp-2-4          -0
     62  YYYYY  ippTasks               ipp-2-4          -0
     63         
     64  YYYYY  ippconfig              ipp-2-4          -0
     65  YYYYY  simtest                ipp-2-4          -0
     66  YNYYN  psconfig               ipp-2-4          -0
     67  YNYYN  ippMonitor             ipp-2-4          -0
    6668
    6769# there are externally required C libraries and perl modules (see INSTALL)
  • trunk/psconfig/tagsets/ipp-2.4.libs

    r15739 r16092  
    2424lib libz                 NONE           NONE   zlib-1.2.3.tar.gz        zlib-1.2.3       Y --shared NONE NONE
    2525lib libpng               NONE           NONE   libpng-1.2.15.tar.gz     libpng-1.2.15    Y NONE NONE NONE
    26 lib libjpeg              NONE           jpeg   jpegsrc.v6b.tar.gz       jpeg-6b          Y NONE NONE install-lib
     26lib libjpeg              NONE           jpeg   jpegsrc.v6b.tar.gz       jpeg-6b          Y --enable-shared NONE install-lib
    2727# lib libcfitsio         NONE           NONE   cfitsio2510.tar.gz       cfitsio          Y NONE NONE NONE
    2828lib libcfitsio           NONE           NONE   cfitsio3060.tar.gz       cfitsio          Y NONE NONE NONE
     
    3030lib libgsl               NONE           NONE   gsl-1.6.tar.gz           gsl-1.6          Y NONE NONE NONE
    3131lib libfftw3f            NONE           NONE   fftw-3.0.1.tar.gz        fftw-3.0.1       Y --enable-float,--enable-shared,--disable-fortran NONE NONE
     32# lib libfftw3             NONE           NONE   fftw-3.0.1.tar.gz        fftw-3.0.1       Y --enable-shared,--disable-fortran NONE NONE
     33# paul claims we are not currently using double-point FFTs anywhere
    3234
    3335bin pkg-config           NONE           NONE   pkg-config-0.22.tar.gz   pkg-config-0.22  Y NONE NONE NONE
Note: See TracChangeset for help on using the changeset viewer.