Lines Matching refs:installer

24 package installer::epmfile;
27 use installer::converter;
28 use installer::existence;
29 use installer::exiter;
30 use installer::files;
31 use installer::globals;
32 use installer::logger;
33 use installer::packagelist;
34 use installer::pathanalyzer;
35 use installer::remover;
36 use installer::scriptitems;
37 use installer::systemactions;
38 use installer::worker;
52 …if ( $packagemapname eq "" ) { installer::exiter::exit_program("ERROR: Property PACKAGEMAP must be…
54 $installer::logger::Lang->printf("\n");
55 $installer::logger::Lang->printf("\n");
56 $installer::logger::Lang->printf("nCollected abbreviations and package names:\n");
59 my $allpackagemapnames = installer::converter::convert_stringlist_into_hash(\$packagemapname, ",");
62 …my $packagemapref = installer::scriptitems::get_sourcepath_from_filename_and_includepath(\$onepack…
64 …if ( $$packagemapref eq "" ) { installer::exiter::exit_program("ERROR: Could not find package map …
66 my $packagemapcontent = installer::files::read_file($$packagemapref);
79 installer::packagelist::resolve_packagevariables(\$abbreviation, $allvariables, 0);
80 installer::packagelist::resolve_packagevariables(\$packagename, $allvariables, 0);
94 $installer::logger::Lang->printf("%s : %s : %s\n",
99 if ( exists($installer::globals::dependfilenames{$local_abbreviation}) )
101installer::exiter::exit_program("ERROR: Packagename for Solaris package $local_abbreviation alrea…
105 $installer::globals::dependfilenames{$local_abbreviation} = $local_packagename;
112 $installer::logger::Lang->printf("%s : %s\n", $abbreviation, $packagename);
114 if ( exists($installer::globals::dependfilenames{$abbreviation}) )
116installer::exiter::exit_program("ERROR: Packagename for Solaris package $abbreviation already def…
120 $installer::globals::dependfilenames{$abbreviation} = $packagename;
127installer::exiter::exit_program("ERROR: Wrong syntax in file \"$onepackagemapname\" (line $errorli…
132 $installer::logger::Lang->print("\n");
133 $installer::logger::Lang->print("\n");
200installer::exiter::exit_program("ERROR: No string found for $searchstring in epm header file (-h)"…
216 if ( $installer::globals::islinuxbuild )
261 if ( $installer::globals::islinuxbuild ) { $group = "root"; }
262 …if (( $installer::globals::issolarisbuild ) && ( $onefile->{'SolarisGroup'} )) { $group = $onefile…
275 if ( $installer::globals::islinuxbuild )
298 if ( $installer::globals::islinuxbuild ) { $group = "root"; }
347 installer::packagelist::resolve_packagevariables(\$productnamestring, $variableshashref, 0);
357 …if ( ! $onepackage->{'packageversion'} ) { installer::exiter::exit_program("ERROR: No packageversi…
358 $installer::globals::packageversion = $onepackage->{'packageversion'};
359installer::packagelist::resolve_packagevariables(\$installer::globals::packageversion, $variablesh…
360 …if ( $variableshashref->{'PACKAGEREVISION'} ) { $installer::globals::packagerevision = $variablesh…
362 $line = "%version" . " " . $installer::globals::packageversion . "\n";
365 $line = "%release" . " " . $installer::globals::packagerevision . "\n";
366 …if ( $installer::globals::islinuxrpmbuild ) { $line = "%release" . " " . $installer::globals::buil…
373 installer::packagelist::resolve_packagevariables(\$descriptionstring, $variableshashref, 0);
378 installer::packagelist::resolve_packagevariables(\$copyrightstring, $variableshashref, 0);
383 installer::packagelist::resolve_packagevariables(\$vendorstring, $variableshashref, 0);
389 if ( $installer::globals::iswindowsbuild || $installer::globals::isos2 )
400 …if (( $installer::globals::languagepack ) # in language packs the files LICENSE and README are rem…
403 if ( $installer::globals::iswindowsbuild || $installer::globals::isos2 )
417 if ( $installer::globals::issolarisbuild )
429 if ( $installer::globals::islinuxbuild )
456 …my $fileref = installer::scriptitems::get_sourcepath_from_filename_and_includepath(\$licensefilena…
458 …if ( $$fileref eq "" ) { installer::exiter::exit_program("ERROR: Could not find license file $lice…
462 …if (( $installer::globals::issolarispkgbuild ) && ( ! $variableshashref->{'NO_LICENSE_INTO_COPYRIG…
464 if ( ! $installer::globals::englishlicenseset ) { installer::worker::set_english_license() }
471 my $copyrightdir = installer::systemactions::create_directories("copyright", \$languagestring);
473 my $copyrightfile = installer::files::read_file($$fileref);
477 …for ( my $i = 0; $i <= $#{$installer::globals::englishlicense}; $i++ ) { push(@{$copyrightfile}, $…
480 …$$fileref = $copyrightdir . $installer::globals::separator . "solariscopyrightfile_" . $onepackage…
482 installer::files::save_file($$fileref, $copyrightfile);
485 $installer::logger::Lang->printf("Using license file: \"%s\"!\n", $$fileref);
503installer::exiter::exit_program("ERROR: Could not find license file $licensefilename (B)", "create…
508installer::exiter::exit_program("ERROR: Could not find readme file $readmefilename (C)", "create_e…
515 if (( $installer::globals::issolarispkgbuild ) && ( ! $installer::globals::patch ))
519 elsif (( $installer::globals::islinuxbuild ) && ( ! $installer::globals::patch ))
524 if (( $replaces ) && ( ! $installer::globals::patch ))
530 my $allreplaces = installer::converter::convert_stringlist_into_array(\$replacesstring, ",");
536 installer::packagelist::resolve_packagevariables(\$onereplaces, $variableshashref, 1);
537 if ( $installer::globals::linuxlinkrpmprocess ) { $onereplaces = $onereplaces . "u"; }
538 …if ( $installer::globals::debian ) { $onereplaces =~ s/_/-/g; } # Debian allows no underline in pa…
543 if ( $installer::globals::debian && $variableshashref->{'UNIXPRODUCTNAME'} eq 'openoffice' )
558 if ( $installer::globals::issolarispkgbuild )
563 elsif ( $installer::globals::isfreebsdpkgbuild )
568 elsif (( $installer::globals::islinuxrpmbuild ) &&
569 ( $installer::globals::patch ) &&
594 my $allprovides = installer::converter::convert_stringlist_into_array(\$providesstring, ",");
600 installer::packagelist::resolve_packagevariables(\$oneprovides, $variableshashref, 1);
601 if ( $installer::globals::linuxlinkrpmprocess ) { $oneprovides = $oneprovides . "u"; }
602 …if ( $installer::globals::debian ) { $oneprovides =~ s/_/-/g; } # Debian allows no underline in pa…
612 …if ( $installer::globals::add_required_package ) { $requiresstring = $requiresstring . "," . $inst…
621 …$requiresstring = installer::converter::replace_masked_separator($requiresstring, ",", "$replaceme…
623 my $allrequires = installer::converter::convert_stringlist_into_array(\$requiresstring, ",");
625 installer::converter::resolve_masked_separator($allrequires, ",", $replacementstring);
631 installer::packagelist::resolve_packagevariables2(\$onerequires, $variableshashref, 0, $isdict);
632 …if ( $installer::globals::debian ) { $onerequires =~ s/_/-/g; } # Debian allows no underline in pa…
653 if ( $installer::globals::add_required_package )
655 my $requiresstring = $installer::globals::add_required_package;
658 …$requiresstring = installer::converter::replace_masked_separator($requiresstring, ",", "$replaceme…
659 my $allrequires = installer::converter::convert_stringlist_into_array(\$requiresstring, ",");
660 installer::converter::resolve_masked_separator($allrequires, ",", $replacementstring);
666 installer::packagelist::resolve_packagevariables(\$onerequires, $variableshashref, 0);
667 …if ( $installer::globals::debian ) { $onerequires =~ s/_/-/g; } # Debian allows no underline in pa…
766 my $shellscriptsfileref = installer::files::read_file($shellscriptsfilename);
788 installer::logger::include_header_into_logfile("Check epm on system");
809 …my $epmref = installer::scriptitems::get_sourcepath_from_filename_and_includepath( \$epmname, $inc…
810 …if ($$epmref eq "") { installer::exiter::exit_program("ERROR: Could not find program $epmname (EPM…
815installer::exiter::exit_program("Environment variable EPM set (\"$ENV{'EPM'}\"), but file does not…
820 …my $epmfileref = installer::scriptitems::get_sourcepath_from_filename_and_includepath(\$epmname, $…
822 …if (($$epmfileref eq "") && (!($installer::globals::epm_in_path))) { installer::exiter::exit_progr…
823 …if (($$epmfileref eq "") && ($installer::globals::epm_in_path)) { $epmname = $installer::globals::…
827 $installer::logger::Lang->printf("Using epmfile: %s\n", $epmname);
850 if ( $_ =~ /Patched for .*OpenOffice/ ) { $installer::globals::is_special_epm = 1; last; }
851 if ( $_ =~ /Apache OpenOffice compatible/ ) { $installer::globals::is_special_epm = 1; last; }
856 if ( $installer::globals::is_special_epm )
858 $installer::logger::Lang->print("\n");
859 $installer::logger::Lang->print("Patch state: This is a patched version of epm!\n");
860 $installer::logger::Lang->print("\n");
864 $installer::logger::Lang->print("\n");
865 $installer::logger::Lang->print("Patch state: This is an unpatched version of epm!\n");
866 $installer::logger::Lang->print("\n");
869 …if ( ( $installer::globals::is_special_epm ) && (($installer::globals::islinuxrpmbuild) || ($insta…
872 $installer::globals::postprocess_specialepm = 1;
873 $installer::globals::postprocess_standardepm = 0;
877 $installer::globals::postprocess_specialepm = 0;
878 $installer::globals::postprocess_standardepm = 1;
899 installer::logger::include_header_into_logfile("epm call for $packagename");
901 my $packageformat = $installer::globals::packageformat;
905 if ( $installer::globals::debian ) { $localpackagename = lc($localpackagename); }
908 …if ( $installer::globals::epmoutpath ne "" ) { $outdirstring = " --output-dir $installer::globals:…
915 if ( $installer::globals::debian ) { $ldpreloadstring = get_ld_preload_string() . " "; }
921 if ( ! $installer::globals::quiet ) { $verboseflag = "-v2"; };
925 $installer::logger::Info->printf("... %s ...\n", $systemcall);
939 $installer::logger::Lang->printf("Systemcall (Try %d): \n", $i, $systemcall);
944 $installer::logger::Lang->print($epmoutput[$j]);
949 … $installer::logger::Lang->printf("Try %d : Could not execute \"%s\"!\n", $i, $systemcall);
950 …if ( $i == $maxepmcalls ) { installer::exiter::exit_program("ERROR: \"$systemcall\"!", "call_epm")…
954 …$installer::logger::Info->printf("Success: Executed (Try %d): \"%s\" successfully\n", $i, $systemc…
955 …$installer::logger::Lang->printf("Success: Executed (Try %d): \"%s\" successfully\n", $i, $systemc…
970 if ( $installer::globals::issolarispkgbuild )
975 if ( $installer::globals::islinuxrpmbuild )
991 …if (! $inserted_line) { installer::exiter::exit_program("ERROR: Did not find string \"Group:\" in …
995 … $installer::logger::Lang->printf("Success: Added line %s into file !\n", $insertline, $filename);
1007 my $revisionstring = "\,REV\=" . $installer::globals::packagerevision;
1029 $installer::logger::Lang->printf("Info: Changed in %s file: \"%s\" to \"\"!\n",
1040 if ( $installer::globals::issolarisx86build ) { $pkgversion = "SOLIAPKGVERSION"; }
1051 my $version = $installer::globals::packageversion;
1087 …$installer::logger::Lang->printf("Info: Changed in %s file: \"%s\" to \"\"!\n", $filename, $oldstr…
1106 if ( $installer::globals::issolarisx86build ) { $patchlistname = "SOLIAPATCHLISTFORRESPIN"; }
1117 …my $allpatches = installer::converter::convert_whitespace_stringlist_into_array(\$allpatchesstring…
1138installer::exiter::exit_program("ERROR: Unknown patch string: $patchdefinition", "set_patchlist_in…
1164 my $patchstring = installer::converter::convert_array_to_space_separated_string(\@usedpatches);
1177 …if ( ! $allvariables->{$key} ) { installer::exiter::exit_program("ERROR: No Patch info available i…
1308 $newepmdir = cwd() . $installer::globals::separator . $newepmdir; # only absolute path allowed
1319 …$installer::logger::Lang->printf("Info: Removed line \"%s\" from file %s!\n", $removeline, $filena…
1337 …$installer::logger::Lang->printf("Success: Added line %s into file %s!\n", $topdirline, $filename);
1341 …if (! $inserted_line) { installer::exiter::exit_program("ERROR: Did not find string \"Group:\" in …
1354 my $packager = $installer::globals::longmanufacturer;
1362 $installer::logger::Lang->printf("Info: Changed Packager in spec file from %s to %s!\n",
1387 … $installer::logger::Lang->printf("Info: Changed requirements in spec file from %s to %s!\n",
1422 … $installer::logger::Lang->printf("Success: Added line %s into spec file!\n", $autoreqprovline);
1444 … $installer::logger::Lang->printf("Info: Replaced Copyright with License: %s !\n", $license);
1483 … $installer::logger::Lang->printf("Info: Removed line \"%s\" from prototype file!\n", $line);
1495 …$installer::logger::Lang->printf("Info: Changed line in prototype file: %s !\n", ${$prototypefile}…
1531 $installer::logger::Lang->printf(
1558 $installer::logger::Lang->printf("Info: Substituting in %s %s by %s\n",
1587 $installer::logger::Lang->printf("Info: Substituting in %s %s by %s\n",
1593 $installer::logger::Lang->printf("Old Line: %s", $oldline);
1594 $installer::logger::Lang->printf("New Line: %s", ${$scriptfile}[$i]);
1618 $installer::logger::Lang->printf("Info: Directory created by epm: %s\n", $dirname);
1634 if ( $installer::globals::issolarispkgbuild )
1654 … $installer::logger::Lang->printf("TAB: Changing content from \"%s\" to \"%s\" .\n",
1658 if (! installer::existence::exists_in_array($onefile->{'SolarisClass'}, \@newclasses))
1669 $newclassesstring = installer::converter::convert_array_to_space_separated_string(\@newclasses);
1672 if ( $installer::globals::islinuxrpmbuild )
1696 $installer::logger::Lang->printf(
1727 … $installer::logger::Lang->printf("pkginfo file: Changing content from \"%s\" to \"%s\" .\n",
1797 my $path = $installer::globals::patchincludepath;
1799 $path = $path . $installer::globals::separator;
1806 for ( my $i = 0; $i <= $#installer::globals::solarispatchscriptsforextensions; $i++ )
1808 my $sourcefilename = $path . $installer::globals::solarispatchscriptsforextensions[$i];
1809 my $destfile = $installer::globals::solarispatchscriptsforextensions[$i];
1815 …my $extensiondir = installer::systemactions::create_directories("extensionscripts", $languagestrin…
1819 my $destdir = $extensiondir . $installer::globals::separator . $prototypefilename;
1820 if ( ! -d $destdir ) { installer::systemactions::create_directory($destdir); }
1821 my $destpath = $destdir . $installer::globals::separator . $destfile;
1825 my $scriptfile = installer::files::read_file($sourcefilename);
1832 installer::files::save_file($destpath, $scriptfile);
1841 for ( my $i = 0; $i <= $#installer::globals::solarispatchscripts; $i++ )
1843 …my $line = "i $installer::globals::solarispatchscripts[$i]=" . $path . $installer::globals::solari…
1878 if ( $installer::globals::issolarisx86build ) { $patchidname = "SOLIAPATCHID"; }
1880 …if ( ! $variableshashref->{$patchidname} ) { installer::exiter::exit_program("ERROR: Variable $pat…
1886 if ( $installer::globals::issolarisx86build ) { $patchobsoletesname = "SOLIAPATCHOBSOLETES"; }
1894 if ( $installer::globals::issolarisx86build ) { $patchrequiresname = "SOLIAPATCHREQUIRES"; }
1963 installer::packagelist::resolve_packagevariables(\$packagelistentry, $variableshashref, 1);
1971 installer::packagelist::resolve_packagevariables(\$packagelistentry, $variableshashref, 1);
1990 push(@installer::globals::patchfilecollector, $packagenamestring);
1996 if ( $installer::globals::islinuxrpmbuild )
2004 push(@installer::globals::patchfilecollector, $filename);
2008 if ( $installer::globals::issolarispkgbuild )
2015 push(@installer::globals::patchfilecollector, $filename);
2020 push(@installer::globals::patchfilecollector, "\n");
2042 …if ( $abbreviation =~ /\%/ ) { installer::exiter::exit_program("ERROR: Could not resolve all prope…
2044 if ( exists($installer::globals::dependfilenames{$abbreviation}) )
2046 my $packagename = $installer::globals::dependfilenames{$abbreviation};
2047 …if ( $packagename =~ /\%/ ) { installer::exiter::exit_program("ERROR: Could not resolve all proper…
2054installer::exiter::exit_program("ERROR: Missing packagename for Solaris package \"$abbreviation\"!…
2075 my $newepmdir = $installer::globals::epmoutpath . $installer::globals::separator;
2080 if ( $installer::globals::issolarispkgbuild )
2086 if ( $installer::globals::islinuxrpmbuild )
2095 …if ( ! -f $completefilename) { installer::exiter::exit_program("ERROR: Did not find file: $complet…
2096 my $changefile = installer::files::read_file($completefilename);
2100 installer::files::save_file($completefilename, $changefile);
2108 if ( $installer::globals::islinuxrpmbuild )
2111 …set_autoprovreq_in_specfile($changefile, $onepackage->{'findrequires'}, "$installer::globals::unpa…
2117 installer::files::save_file($completefilename, $changefile);
2118 …if ( $installer::globals::patch ) { collect_patch_files($changefile, $packagename, $localrelocatab…
2123 if ( $installer::globals::issolarispkgbuild )
2128 if ( $installer::globals::issolarisx86build ) { fix_architecture_setting($changefile); }
2129 …if ( ! $installer::globals::patch ) { set_patchlist_in_pkginfo_for_respin($changefile, $filename, …
2130 …if ( $installer::globals::patch ) { include_patchinfos_into_pkginfo($changefile, $filename, $varia…
2132 installer::files::save_file($completefilename, $changefile);
2136 …if (! -f $prototypefilename) { installer::exiter::exit_program("ERROR: Did not find prototype file…
2138 my $prototypefile = installer::files::read_file($prototypefilename);
2145 installer::files::save_file($completefilename, $changefile);
2148 …if ( $installer::globals::patch ) { add_scripts_into_prototypefile($prototypefile, $prototypefilen…
2150 installer::files::save_file($prototypefilename, $prototypefile);
2151 if ( $installer::globals::patch ) { collect_patch_files($prototypefile, $packagename, ""); }
2158 my $dependfile = installer::files::read_file($dependfilename);
2160 installer::files::save_file($dependfilename, $dependfile);
2187 $installer::logger::Lang->printf("Spec File: Changing content from \"%s\" to \"%s\".\n",
2212 installer::logger::include_header_into_logfile("Replacing variables in epm list file:");
2235 if ( $installer::globals::rpm ne "" )
2237 $systemcall = "$installer::globals::rpm --version |";
2252 $installer::logger::Lang->printf("Systemcall: %s\n", $systemcall);
2256 $installer::logger::Lang->printf("ERROR: Could not find file \"rpm\" !\n");
2260 $installer::logger::Lang->printf("Success: rpm version: %s\n", $rpmout);
2266 …else { installer::exiter::exit_program("ERROR: Unknown format: $rpmout ! Expected: \"a.b.c\", or \…
2281 $installer::logger::Lang->printf("\n");
2282 $installer::logger::Lang->printf("Logging rpmrc content using --showrc\n");
2283 $installer::logger::Lang->printf("\n");
2285 if ( $installer::globals::rpm ne "" )
2287 $systemcall = "$installer::globals::rpm --showrc |";
2309 $installer::logger::Lang->print($infoline);
2314 … $installer::logger::Lang->printf("Problem in systemcall: %s : No return value\n", $systemcall);
2317 $installer::logger::Lang->printf("End of logging rpmrc\n");
2318 $installer::logger::Lang->print("\n");
2333 if ( $installer::globals::issolarispkgbuild )
2336 …if (! -f $prototypefile) { installer::exiter::exit_program("ERROR: Did not find file: $prototypefi…
2339 installer::pathanalyzer::get_path_from_fullqualifiedname(\$destinationdir);
2344 $installer::logger::Info->printf("... %s ...\n", $systemcall);
2358 $installer::logger::Lang->printf("Systemcall (Try %d): %s\n", $i, $systemcall);
2363 $installer::logger::Lang->print($pkgmkoutput[$j]);
2368 $installer::logger::Lang->printf("Try %s : Could not execute \"%s\"!\n",
2370 …if ( $i == $maxpkgmkcalls ) { installer::exiter::exit_program("ERROR: \"$systemcall\"!", "create_p…
2374 … $installer::logger::Info->printf("Success: (Try %d): Executed \"%s\" successfully\n",
2376 … $installer::logger::Lang->printf("Success: (Try %d): Executed \"%s\" successfully\n",
2386 if ( ! $installer::globals::jds_language_controlled )
2388 my $correct_language = installer::worker::check_jds_language($allvariables, $languagestringref);
2389 $installer::globals::correct_jds_language = $correct_language;
2390 $installer::globals::jds_language_controlled = 1;
2393 if ( $installer::globals::correct_jds_language )
2395 if ( $installer::globals::saved_packages_path eq "" )
2397 $packagestempdir = installer::systemactions::create_directories("jds", $languagestringref);
2398 $installer::globals::saved_packages_path = $packagestempdir;
2399 push(@installer::globals::jdsremovedirs, $packagestempdir);
2402 …$systemcall = "cd $destinationdir; cp -p -R $packagename $installer::globals::saved_packages_path;…
2404 $installer::logger::Info->printf("... %s ...\n", $systemcall);
2410 $installer::logger::Info->printf("... %s ...\n", $systemcall);
2414 $installer::logger::Lang->printf("Systemcall: %s\n", $systemcall);
2418 … $installer::logger::Lang->printf("ERROR: Could not execute \"%s\"!\n", $systemcall);
2422 … $installer::logger::Lang->printf("Success: Executed \"%s\" successfully!\n", $systemcall);
2429 if ( ! $installer::globals::solarisdontcompress )
2433 …my $compressorref = installer::scriptitems::get_sourcepath_from_filename_and_includepath(\$faspac,…
2443 $installer::logger::Lang->printf("Found compressor: %s\n", $faspac);
2445 $installer::logger::Info->printf("... %s ...\n", $faspac);
2446 $installer::logger::Lang->add_timestamp("Starting $faspac");
2457 $installer::logger::Lang->add_timestamp("End of $faspac");
2461 $installer::logger::Lang->printf("Not found: %s\n", $faspac);
2468 $installer::logger::Info->printf("... %s ...\n", $systemcall);
2472 $installer::logger::Lang->printf("Systemcall: %s\n", $systemcall);
2476 $installer::logger::Lang->printf("ERROR: Could not execute \"%s\"!\n", $systemcall);
2480 … $installer::logger::Lang->printf("Success: Executed \"%s\" successfully!\n", $systemcall);
2486 if ( $installer::globals::islinuxrpmbuild )
2489 …if (! -f $specfilename) { installer::exiter::exit_program("ERROR: Did not find file: $specfilename…
2492 my $rpmcommand = $installer::globals::rpm;
2498 $installer::globals::rpmcommand = $rpmcommand;
2499 $installer::globals::rpmquerycommand = "rpm";
2502 if ( $installer::globals::compiler =~ /unxlngi/) { $target = "i586"; }
2503 elsif ( $installer::globals::compiler =~ /unxlng/) {$target = (POSIX::uname())[4]; }
2517 if ( ! $installer::globals::rpminfologged )
2520 $installer::globals::rpminfologged = 1;
2525 $installer::logger::Info->printf("... %s ...\n", $systemcall);
2540 $installer::logger::Lang->printf("Systemcall (Try %d): %s\n", $i, $systemcall);
2546 $installer::logger::Lang->print($rpmoutput[$j]);
2551 … $installer::logger::Lang->printf("Try %d : Could not execute \"%s\"!\n", $i, $systemcall);
2556 …$installer::logger::Info->printf("Success (Try %d): Executed \"%s\" successfully!\n", $i, $systemc…
2557 …$installer::logger::Lang->printf("Success (Try %d): Executed \"%s\" successfully!\n", $i, $systemc…
2572 $installer::logger::Info->printf("... %s ...\n", $rpmprog);
2584 $installer::logger::Lang->printf("\n");
2585 … $installer::logger::Lang->printf("Last try: Using %s directly (problem with LD_LIBARY_PATH)\n",
2588 $installer::logger::Lang->printf("\n");
2589 $installer::logger::Lang->printf("Systemcall: %s\n", $helpersystemcall);
2593 $installer::logger::Lang->print($helperrpmoutput[$j]);
2598 … $installer::logger::Lang->printf("Could not execute \"%s\"!\n", $helpersystemcall);
2602 … $installer::logger::Lang->printf("Success: Executed \"%s\" successfully!\n", $helpersystemcall);
2603 … $installer::logger::Info->printf("Success: Executed \"%s\" successfully!\n", $helpersystemcall);
2609 …if ( $rpm_failed ) { installer::exiter::exit_program("ERROR: \"$systemcall\"!", "create_packages_w…
2624 if ( $installer::globals::issolarispkgbuild )
2644 $installer::logger::Lang->printf("Systemcall: %s\n", $systemcall);
2648 if ( $installer::globals::islinuxrpmbuild )
2657 $installer::logger::Lang->printf("Systemcall: %s\n", $systemcall);
2665 $installer::logger::Info->printf("... %s ...\n", $systemcall);
2673 $installer::logger::Info->printf("... %s ...\n", $systemcall);
2677 $installer::logger::Lang->printf("Systemcall: %s\n", $systemcall);
2681 $installer::logger::Lang->printf("ERROR: Could not execute \"%s\"!\n", $systemcall);
2685 … $installer::logger::Lang->printf("Success: Executed \"%s\" successfully!\n", $systemcall);
2700 $installer::logger::Lang->printf("Systemcall: %s\n", $systemcall);
2704 $installer::logger::Lang->printf("ERROR: Could not execute \"%s\"!\n", $systemcall);
2708 $installer::logger::Lang->printf("Success: Executed \"%s\" successfully!\n", $systemcall);
2720 my $newdir = $installer::globals::epmoutpath;
2722 if ( $installer::globals::islinuxrpmbuild )
2726 if ( $installer::globals::compiler =~ /unxlngi/) {
2727 $rpmdir = "$installer::globals::epmoutpath/RPMS/i586";
2729 elsif ( $installer::globals::compiler =~ /unxlng/) {
2731 $rpmdir = "$installer::globals::epmoutpath/RPMS/$machine";
2733 …else { installer::exiter::exit_program("ERROR: rpmdir undefined !", "create_new_directory_structur…
2739 $installer::logger::Lang->printf("Systemcall: %s\n", $systemcall);
2743 $installer::logger::Lang->printf("ERROR: Could not move content of \"%s\" to \"%s\"!\n",
2748 $installer::logger::Lang->printf("Success: Moved content of \"%s\" to \"%s\"!\n",
2756installer::systemactions::remove_empty_directory("$installer::globals::epmoutpath/RPMS/$machine");
2758 installer::systemactions::remove_empty_directory("$installer::globals::epmoutpath/RPMS/x86_64");
2759 installer::systemactions::remove_empty_directory("$installer::globals::epmoutpath/RPMS/i586");
2760 installer::systemactions::remove_empty_directory("$installer::globals::epmoutpath/RPMS/i386");
2761 installer::systemactions::remove_empty_directory("$installer::globals::epmoutpath/RPMS");
2770 $installer::logger::Lang->printf("Systemcall: %s\n", $localcall);
2774 $installer::logger::Lang->printf("ERROR: Could not execute \"%s\"!\n", $localcall);
2778 $installer::logger::Lang->printf("Success: Executed \"%s\" successfully!\n", $localcall);
2843 my $oldcontent = installer::systemactions::read_directory($destdir);
2854 …my ($newcontent, $allcontent ) = installer::systemactions::find_new_content_in_directory($destdir,…
2856 installer::pathanalyzer::make_absolute_filename_to_relative_filename(\$newpackagename);
2880 … = $sopackpath . $installer::globals::separator . $installer::globals::compiler . $installer::glob…
2884 …my $sourcepathref = installer::scriptitems::get_sourcepath_from_filename_and_includepath(\$package…
2888 …if ( ! -f $sourcefile ) { installer::exiter::exit_program("ERROR: File not found: $sourcefile ($pa…
2891 $localdestdir = $localdestdir . $installer::globals::separator . $onemodule->{'Subdir'};
2892 if ( ! -d $localdestdir ) { installer::systemactions::create_directory($localdestdir); }
2894 installer::systemactions::copy_one_file($sourcefile, $localdestdir);
2896 …if ( $installer::globals::issolarispkgbuild ) { $packagename = unpack_tar_gz_file($packagename, $l…
2898 if (( $installer::globals::isxpdplatform ) && ( $allvariables->{'XPDINSTALLER'} ))
2900installer::xpdinstaller::create_xpd_file_for_childproject($onemodule, $localdestdir, $packagename,…
2931 …else { installer::exiter::exit_program("ERROR: Environment variable SO_PACK not set!", "put_childp…
2989 installer::pathanalyzer::make_absolute_filename_to_relative_filename(\$subdir);
2990 my $allpackages = installer::systemactions::read_directory(${$content}[$i]);
2994 …if (( $installer::globals::islinuxbuild ) && ( ! ( ${$allpackages}[$j] =~ /\.rpm\s*$/ ))) { next; }
3039 … $installer::logger::Lang->printf("Including into installation set: %s\n", $packagetarfilename);
3041 …my $sourcepathref = installer::scriptitems::get_sourcepath_from_filename_and_includepath(\$package…
3042 …if ( $$sourcepathref eq "" ) { installer::exiter::exit_program("ERROR: Source path not found for $…
3045 my $oldcontent = installer::systemactions::read_directory($destdir);
3050 …my ($newcontent, $allcontent ) = installer::systemactions::find_new_content_in_directory($destdir,…
3054 …if ( ! $installer::globals::issolarispkgbuild ) { ($newcontent, $subdir) = control_subdirectories(…
3057installer::globals::issolarispkgbuild ) && ( $installer::globals::englishlicenseset ) && ( ! $vari…
3059 if (( $installer::globals::isxpdplatform ) && ( $allvariables->{'XPDINSTALLER'} ))
3061installer::xpdinstaller::create_xpd_file_for_systemintegration($onemodule, $newcontent, $modulesar…
3119 …$$staticpathref = $rootpath . $installer::globals::separator . $installer::globals::officedirhostn…
3123 if ( $installer::globals::islinuxrpmbuild )
3126 …$$staticpathref = $installer::globals::officedirhostname; # to be used as replacement in shell scr…
3129 if ( $installer::globals::islinuxdebbuild )
3150 for ( my $i = 0; $i <= $#installer::globals::installsetfiles; $i++ )
3152 my $onefile = $installer::globals::installsetfiles[$i];
3155 if ( $installer::globals::addjavainstaller ) { $destfile = $onefile->{'Name'}; }
3156 else { $destfile = $destdir . $installer::globals::separator . $onefile->{'Name'}; }
3157 installer::systemactions::copy_one_file($sourcefile, $destfile);
3159 $installer::logger::Lang->printf("Adding to installation set \"%s\" from source \"%s\".\n",
3191 if ( $installer::globals::issolarissparcbuild ) { $architecture = "sparc"; }
3192 if ( $installer::globals::issolarisx86build ) { $architecture = "i386"; }
3196 …if ( ! $allvariables->{'SOLARISPATCHCORRECTS'} ) { installer::exiter::exit_program("ERROR: No sett…
3203 if ( $installer::globals::issolarissparcbuild ) { $requiresstring = "SOLSPARCPATCHREQUIRES"; }
3204 if ( $installer::globals::issolarisx86build ) { $requiresstring = "SOLIAPATCHREQUIRES"; }
3223 if ( $installer::globals::issolarisx86build ) { $patchidname = "SOLIAPATCHID"; }
3225 …if ( ! $allvariables->{$patchidname} ) { installer::exiter::exit_program("ERROR: Variable $patchid…
3227 installer::systemactions::rename_directory($newepmdir, $patchid);
3233 my $sourcepath = $installer::globals::patchincludepath;
3236 for ( my $i = 0; $i <= $#installer::globals::solarispatchfiles; $i++ )
3238 …my $sourcefile = $sourcepath . $installer::globals::separator . $installer::globals::solarispatchf…
3239 …my $destfile = $patchid . $installer::globals::separator . $installer::globals::solarispatchfiles[…
3240 installer::systemactions::copy_one_file($sourcefile, $destfile);
3245 my $patchinfofilename = $patchid . $installer::globals::separator . "patchinfo";
3246 my $patchinfofile = installer::files::read_file($patchinfofilename);
3248 installer::files::save_file($patchinfofilename, $patchinfofile);
3265 installer::logger::include_header_into_logfile("Creating Linux patch setup:");
3270 …my $scriptref = installer::scriptitems::get_sourcepath_from_filename_and_includepath(\$scriptfilen…
3271 …if ($$scriptref eq "") { installer::exiter::exit_program("ERROR: Could not find patch script templ…
3272 my $scriptfile = installer::files::read_file($$scriptref);
3274 $installer::logger::Lang->printf("Found script file %s: %s \n", $scriptfilename, $$scriptref);
3279 my $rpmfiles = installer::systemactions::find_file_with_file_extension($fileextension, $newepmdir);
3280 …if ( ! ( $#{$rpmfiles} > -1 )) { installer::exiter::exit_program("ERROR: Could not find rpm in dir…
3281 …for ( my $i = 0; $i <= $#{$rpmfiles}; $i++ ) { installer::pathanalyzer::make_absolute_filename_to_…
3311 …if ( ! $found_package ) { installer::exiter::exit_program("ERROR: No package containing \"-core01\…
3317 …$#{$scriptfile}; $j++ ) { ${$scriptfile}[$j] =~ s/PRODUCTDIRECTORYNAME/$installer::globals::office…
3324 … $installer::logger::Lang->printf("Adding productname %s into Linux patch script\n", $productname);
3331 installer::files::save_file($newscriptfilename, $scriptfile);
3333 $installer::logger::Lang->printf("Saved Linux patch setup %s\n", $newscriptfilename);