autoproj 1.3.1 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +3 -0
- data/bin/autoproj +35 -40
- data/lib/autoproj/version.rb +1 -1
- metadata +2 -2
data/History.txt
CHANGED
data/bin/autoproj
CHANGED
@@ -440,6 +440,7 @@ report(debug) do
|
|
440
440
|
# Set up some important autobuild parameters
|
441
441
|
Autoproj.env_inherit 'PATH', 'PKG_CONFIG_PATH', 'RUBYLIB', 'LD_LIBRARY_PATH'
|
442
442
|
Autoproj.env_set 'GEM_HOME', Autoproj.gem_home
|
443
|
+
Autoproj.env_add 'PATH', File.join(Autoproj.gem_home, 'bin')
|
443
444
|
Autoproj.env_set 'RUBYOPT', "-rubygems"
|
444
445
|
Autobuild.prefix = Autoproj.build_dir
|
445
446
|
Autobuild.srcdir = root_dir
|
@@ -471,16 +472,15 @@ report(debug) do
|
|
471
472
|
set << source.vcs.type if !source.local?
|
472
473
|
end
|
473
474
|
|
474
|
-
# If we need to install some packages to import our remote sources, do it
|
475
|
-
if !no_os_deps && !source_os_dependencies.empty?
|
476
|
-
STDERR.puts color("autoproj: installing prepackaged dependencies to access the source definitions", :bold)
|
477
|
-
osdeps = manifest.known_os_packages
|
478
|
-
osdeps.install(source_os_dependencies)
|
479
|
-
end
|
480
|
-
|
481
475
|
# Update the remote sources if there are any
|
482
476
|
if manifest.has_remote_sources?
|
483
477
|
STDERR.puts color("autoproj: updating remote definitions of package sets", :bold)
|
478
|
+
# If we need to install some packages to import our remote sources, do it
|
479
|
+
if !no_os_deps
|
480
|
+
osdeps = manifest.known_os_packages
|
481
|
+
osdeps.install(source_os_dependencies)
|
482
|
+
end
|
483
|
+
|
484
484
|
manifest.update_remote_sources
|
485
485
|
STDERR.puts
|
486
486
|
end
|
@@ -492,7 +492,7 @@ report(debug) do
|
|
492
492
|
end
|
493
493
|
|
494
494
|
# Load the required autobuild definitions
|
495
|
-
STDERR.puts color("autoproj: loading
|
495
|
+
STDERR.puts color("autoproj: loading ...", :bold)
|
496
496
|
if !Autoproj.reconfigure?
|
497
497
|
STDERR.puts color("run 'autoproj --reconfigure' to change configuration values", :bold)
|
498
498
|
end
|
@@ -590,14 +590,6 @@ report(debug) do
|
|
590
590
|
end
|
591
591
|
selected_packages = selected_packages.to_set
|
592
592
|
|
593
|
-
# Install prepackaged dependencies needed to import and build the packages
|
594
|
-
if !no_os_deps
|
595
|
-
STDERR.puts
|
596
|
-
STDERR.puts color("autoproj: installing prepackaged dependencies for build system & version control", :bold)
|
597
|
-
osdeps = manifest.known_os_packages
|
598
|
-
osdeps.install(Autoproj.build_system_dependencies - source_os_dependencies)
|
599
|
-
end
|
600
|
-
|
601
593
|
# Now starts a different stage of the whole build. Until now, we were
|
602
594
|
# working on the whole package set. Starting from now, we need to build the
|
603
595
|
# package sets based on the layout file
|
@@ -632,6 +624,14 @@ report(debug) do
|
|
632
624
|
exit(0)
|
633
625
|
end
|
634
626
|
|
627
|
+
STDERR.puts
|
628
|
+
STDERR.puts color("autoproj: importing and loading selected packages", :bold)
|
629
|
+
|
630
|
+
# Install prepackaged dependencies needed to import and build the packages
|
631
|
+
if !no_os_deps
|
632
|
+
osdeps = manifest.known_os_packages
|
633
|
+
osdeps.install(Autoproj.build_system_dependencies - source_os_dependencies)
|
634
|
+
end
|
635
635
|
|
636
636
|
# First thing: do the import. We are handling the imports ourselves as it
|
637
637
|
# allows us to complete the enabled_packages set with the package
|
@@ -661,8 +661,6 @@ report(debug) do
|
|
661
661
|
seen |= packages
|
662
662
|
end
|
663
663
|
|
664
|
-
STDERR.puts
|
665
|
-
STDERR.puts color("autoproj: importing and loading selected packages", :bold)
|
666
664
|
all_packages = Set.new
|
667
665
|
all_enabled_packages = Set.new
|
668
666
|
all_sublayouts = Set.new
|
@@ -709,31 +707,23 @@ report(debug) do
|
|
709
707
|
Autobuild.do_update = old_update_flag
|
710
708
|
end
|
711
709
|
|
712
|
-
|
713
|
-
|
714
|
-
if
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
io.puts "source #{Autoproj.root_dir}/env.sh"
|
723
|
-
end
|
710
|
+
missing_packages = all_packages.find_all { |pkg_name| !File.directory?(Autobuild::Package[pkg_name].srcdir) }
|
711
|
+
if missing_packages.empty?
|
712
|
+
# Backward compatibility: check if name/env.sh exists, and if it is
|
713
|
+
# the case, simply replace it with a link to the root one. And issue
|
714
|
+
# a warning
|
715
|
+
all_sublayouts.each do |name|
|
716
|
+
env_file = File.join(Autoproj.root_dir, name, "env.sh")
|
717
|
+
if name != '/' && File.file?(env_file)
|
718
|
+
File.open(env_file, 'w') do |io|
|
719
|
+
io.puts "source #{Autoproj.root_dir}/env.sh"
|
724
720
|
end
|
725
721
|
end
|
726
|
-
Autoproj.export_env_sh
|
727
|
-
else
|
728
|
-
STDERR.puts color("WARN: #{missing_packages.join(", ")} are not yet imported, #{Autoproj.root_dir}/env.sh might not be up to date", :magenta)
|
729
|
-
end
|
730
|
-
end
|
731
|
-
|
732
|
-
if !no_os_deps
|
733
|
-
if !all_enabled_packages.empty?
|
734
|
-
STDERR.puts color("autoproj: installing prepackaged dependencies", :bold)
|
735
|
-
manifest.install_os_dependencies(all_enabled_packages)
|
736
722
|
end
|
723
|
+
Autoproj.export_env_sh
|
724
|
+
STDERR.puts color("autoproj: updated #{Autoproj.root_dir}/env.sh", :green)
|
725
|
+
else
|
726
|
+
STDERR.puts color("autoproj: #{missing_packages.join(", ")} are not yet imported, #{Autoproj.root_dir}/env.sh might not be up to date", :red)
|
737
727
|
end
|
738
728
|
|
739
729
|
if all_enabled_packages.empty?
|
@@ -744,6 +734,11 @@ report(debug) do
|
|
744
734
|
else
|
745
735
|
STDERR.puts color("autoproj: building and installing packages", :bold)
|
746
736
|
end
|
737
|
+
|
738
|
+
if !no_os_deps
|
739
|
+
manifest.install_os_dependencies(all_enabled_packages)
|
740
|
+
end
|
741
|
+
|
747
742
|
Autobuild.apply(all_enabled_packages, "autoproj-build")
|
748
743
|
end
|
749
744
|
|
data/lib/autoproj/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: autoproj
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sylvain Joyeux
|
@@ -90,7 +90,7 @@ dependencies:
|
|
90
90
|
requirements:
|
91
91
|
- - ">="
|
92
92
|
- !ruby/object:Gem::Version
|
93
|
-
version: 2.
|
93
|
+
version: 2.4.0
|
94
94
|
version:
|
95
95
|
description: |-
|
96
96
|
What is Autoproj
|