Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| dd53f6a35e | |||
| 0e41fbd168 | |||
| ce0272bd29 | |||
| 4eee9a7fbc |
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
use Getopt::Long;
|
use Getopt::Long;
|
||||||
use v5.10;
|
use v5.10;
|
||||||
|
no feature "say";
|
||||||
|
|
||||||
my $profile = $ENV{BUILDER_PROFILE} // 3;
|
my $profile = $ENV{BUILDER_PROFILE} // 3;
|
||||||
my $jobs = $ENV{BUILDER_JOBS} // 1;
|
my $jobs = $ENV{BUILDER_JOBS} // 1;
|
||||||
@@ -90,7 +91,6 @@ sub calculate_missing {
|
|||||||
my @Available_Packages = @{+shift};
|
my @Available_Packages = @{+shift};
|
||||||
|
|
||||||
# Getting the package dependencies and the installed packages
|
# Getting the package dependencies and the installed packages
|
||||||
say "[$package] Getting the package dependencies and the installed packages";
|
|
||||||
my @dependencies = package_deps( $package, $depth, 1 );
|
my @dependencies = package_deps( $package, $depth, 1 );
|
||||||
|
|
||||||
my %install_dependencies = map { $_ => 1 } @dependencies;
|
my %install_dependencies = map { $_ => 1 } @dependencies;
|
||||||
@@ -135,11 +135,12 @@ sub help {
|
|||||||
"\t$0 app-foo/foobar --equo foo-misc/foobar --equo net-foo/foobar --layman foo --layman bar foo",
|
"\t$0 app-foo/foobar --equo foo-misc/foobar --equo net-foo/foobar --layman foo --layman bar foo",
|
||||||
"**************************", "",
|
"**************************", "",
|
||||||
"You can supply multiple overlays as well: $0 plasma-meta --layman kde plab",
|
"You can supply multiple overlays as well: $0 plasma-meta --layman kde plab",
|
||||||
|
"The documentation is available at https://github.com/Sabayon/devkit",
|
||||||
"";
|
"";
|
||||||
}
|
}
|
||||||
|
|
||||||
say
|
say
|
||||||
"************* IF YOU WANT TO SUPPLY ADDITIONAL ARGS TO EMERGE, pass to docker EMERGE_DEFAULT_OPTS env with your options *************";
|
"****************************************************";
|
||||||
|
|
||||||
if ( @overlays > 0 ) {
|
if ( @overlays > 0 ) {
|
||||||
say "Overlay(s) to add";
|
say "Overlay(s) to add";
|
||||||
@@ -148,11 +149,11 @@ if ( @overlays > 0 ) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
say "Installing:";
|
say "[*] Installing:";
|
||||||
|
|
||||||
say "\t* " . $_ for @ARGV;
|
say "\t* " . $_ for @ARGV;
|
||||||
|
|
||||||
say "* Syncing stuff for you, if it's the first time, can take a while";
|
say "[*] Syncing configurations files, Layman and Portage";
|
||||||
|
|
||||||
# Syncronizing portage configuration and adding overlays
|
# Syncronizing portage configuration and adding overlays
|
||||||
system("echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen"); #be sure about that.
|
system("echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen"); #be sure about that.
|
||||||
@@ -241,10 +242,9 @@ if ($use_equo) {
|
|||||||
if $equo_install_atoms;
|
if $equo_install_atoms;
|
||||||
push( @packages_deps, package_deps( $p, $dep_scan_depth, 0 ) )
|
push( @packages_deps, package_deps( $p, $dep_scan_depth, 0 ) )
|
||||||
if $equo_install_version;
|
if $equo_install_version;
|
||||||
say "[$p] Done"
|
|
||||||
}
|
}
|
||||||
@packages_deps = grep { defined() and length() } @packages_deps; #cleaning
|
@packages_deps = grep { defined() and length() } @packages_deps; #cleaning
|
||||||
say "", "[install] Installing missing dependencies with equo", @packages_deps, "";
|
say "", "[install] Those dependencies will be installed with equo :", @packages_deps, "";
|
||||||
if ($equo_split_install) {
|
if ($equo_split_install) {
|
||||||
system("equo i --bdeps $_") for (@packages_deps,@equo_install);
|
system("equo i --bdeps $_") for (@packages_deps,@equo_install);
|
||||||
if (@equo_remove > 0){
|
if (@equo_remove > 0){
|
||||||
@@ -257,7 +257,9 @@ if ($use_equo) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
say "* Ready to compile, finger crossed";
|
say "*** Ready to compile, finger crossed ***";
|
||||||
|
|
||||||
|
system("emerge --info"); #always give detailed information about the building environment, helpful to debug
|
||||||
|
|
||||||
my $rt;
|
my $rt;
|
||||||
|
|
||||||
@@ -271,8 +273,6 @@ else {
|
|||||||
$rt = system("emerge $emerge_defaults_args -j $jobs @packages");
|
$rt = system("emerge $emerge_defaults_args -j $jobs @packages");
|
||||||
}
|
}
|
||||||
|
|
||||||
my $rt = system("emerge $emerge_defaults_args -j $jobs @packages");
|
|
||||||
|
|
||||||
my $return = $rt >> 8;
|
my $return = $rt >> 8;
|
||||||
|
|
||||||
if ($preserved_rebuild) {
|
if ($preserved_rebuild) {
|
||||||
|
|||||||
Reference in New Issue
Block a user