autoproj 1.8.2.b12 → 1.8.2.b13

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,6 +7,7 @@ bin/aup
7
7
  bin/autolocate
8
8
  bin/autoproj
9
9
  bin/autoproj-clean
10
+ bin/autoproj-inspect
10
11
  bin/autoproj-locate
11
12
  bin/autoproj-query
12
13
  bin/autoproj_bootstrap
@@ -0,0 +1,29 @@
1
+ #! /usr/bin/env ruby
2
+
3
+ require 'autoproj'
4
+ require 'autoproj/cmdline'
5
+ require 'pp'
6
+
7
+ Autoproj.silent = true
8
+ root_dir = Autoproj::CmdLine.initialize_root_directory
9
+ selection = Autoproj::CmdLine.initialize_and_load(ARGV)
10
+
11
+ selection.each do |name|
12
+ puts "resolved '#{name}' with"
13
+ resolved = Autoproj.manifest.resolve_package_name(name)
14
+
15
+ packages, osdeps = resolved.partition { |type, name| type == :package }
16
+ packages = packages.map(&:last)
17
+ osdeps = osdeps.map(&:last)
18
+
19
+ puts "#{packages.size} source packages"
20
+ puts " " + packages.sort.join("\n ")
21
+ puts "#{osdeps.size} OS dependencies"
22
+ osdeps.each do |pkg_name|
23
+ puts " the osdep '#{pkg_name}'"
24
+ Autoproj.osdeps.resolve_os_dependencies(pkg_name).each do |manager, packages|
25
+ puts " #{manager.names.first}: #{packages.map { |*subnames| subnames.join(" ") }.join(", ")}"
26
+ end
27
+ end
28
+ end
29
+
@@ -948,7 +948,6 @@ fi
948
948
  #
949
949
  def partition_osdep_entry(osdep_name, dep_def, handler_names, excluded, *keys)
950
950
  keys, *additional_keys = *keys
951
- keys ||= []
952
951
  found = false
953
952
  nonexistent = false
954
953
  result = []
@@ -980,7 +979,7 @@ fi
980
979
  end
981
980
  result.concat(rec_result)
982
981
  end
983
- else
982
+ elsif keys
984
983
  if names.respond_to?(:to_str) # names could be an array already
985
984
  names = names.split(',')
986
985
  end
@@ -1747,86 +1746,86 @@ module Autoproj
1747
1746
  end
1748
1747
 
1749
1748
  DEFS = <<EODEFS
1750
- ---
1751
- zlib:
1752
- debian,ubuntu: zlib1g-dev
1753
- git:
1754
- arch: git
1755
- ubuntu: git-core
1756
- debian:
1757
- default: git-core
1758
- lenny: git
1759
- gentoo: dev-vcs/git
1760
- cvs:
1761
- debian,ubuntu: cvs
1762
- cmake:
1763
- arch: cmake
1764
- gentoo: dev-util/cmake
1765
- debian,ubuntu: cmake
1766
- build-essential:
1767
- arch: ignore
1768
- gentoo: ignore
1769
- debian,ubuntu: build-essential
1770
- autoproj: gem
1771
- autobuild: gem
1772
- lsb_release:
1773
- arch: ignore
1774
- gentoo: sys-apps/lsb-release
1775
- debian,ubuntu: lsb-release
1749
+ ---
1776
1750
  none: ignore
1777
- svn:
1778
- arch: subversion
1779
- gentoo: dev-util/subversion
1780
- debian,ubuntu: subversion
1781
- archive:
1782
- arch:
1783
- - tar
1784
- - unzip
1785
- gentoo:
1786
- - app-arch/tar
1787
- - app-arch/unzip
1788
- debian,ubuntu:
1789
- - tar
1790
- - unzip
1791
- autotools:
1792
- arch: automake autoconf
1793
- gentoo:
1794
- - sys-devel/automake:1.9
1795
- - sys-devel/autoconf
1796
- debian,ubuntu:
1797
- - automake1.9
1798
- - autoconf
1799
- ruby19:
1800
- arch:
1801
- - ruby
1751
+ ruby18:
1752
+ debian,ubuntu:
1753
+ - ruby1.8-dev
1754
+ - ruby1.8
1755
+ - rubygems1.8
1756
+ - ri1.8
1757
+ - libopenssl-ruby1.8
1802
1758
  - rake
1803
- ubuntu:
1759
+ gentoo:
1760
+ - dev-lang/ruby:1.8
1761
+ - rake
1762
+ ruby19:
1763
+ debian:
1804
1764
  - ruby1.9.1
1805
1765
  - ruby1.9.1-dev
1806
1766
  - rubygems1.9.1
1807
- - ri1.9.1
1808
- - libopenssl-ruby1.9.1
1809
1767
  - rake
1810
- debian:
1768
+ - rubygems-integration
1769
+ ubuntu:
1811
1770
  - ruby1.9.1
1812
1771
  - ruby1.9.1-dev
1813
1772
  - rubygems1.9.1
1773
+ - ri1.9.1
1774
+ - libopenssl-ruby1.9.1
1814
1775
  - rake
1815
- - rubygems-integration
1816
- gentoo:
1776
+ gentoo:
1817
1777
  - dev-lang/ruby:1.9
1818
1778
  - rake
1819
- ruby18:
1820
- gentoo:
1821
- - dev-lang/ruby:1.8
1822
- - rake
1823
- debian,ubuntu:
1824
- - ruby1.8-dev
1825
- - ruby1.8
1826
- - rubygems1.8
1827
- - ri1.8
1828
- - libopenssl-ruby1.8
1779
+ arch:
1780
+ - ruby
1829
1781
  - rake
1782
+ build-essential:
1783
+ debian,ubuntu: build-essential
1784
+ gentoo: ignore
1785
+ arch: ignore
1786
+ zlib:
1787
+ debian,ubuntu: zlib1g-dev
1788
+ autobuild: gem
1789
+ autoproj: gem
1790
+ git:
1791
+ debian:
1792
+ lenny: git
1793
+ default: git-core
1794
+ ubuntu: git-core
1795
+ gentoo: dev-vcs/git
1796
+ arch: git
1797
+ svn:
1798
+ debian,ubuntu: subversion
1799
+ gentoo: dev-util/subversion
1800
+ arch: subversion
1801
+ cmake:
1802
+ debian,ubuntu: cmake
1803
+ gentoo: dev-util/cmake
1804
+ arch: cmake
1805
+ autotools:
1806
+ debian,ubuntu:
1807
+ - automake1.9
1808
+ - autoconf
1809
+ gentoo:
1810
+ - sys-devel/automake:1.9
1811
+ - sys-devel/autoconf
1812
+ arch: automake autoconf
1813
+ lsb_release:
1814
+ debian,ubuntu: lsb-release
1815
+ gentoo: sys-apps/lsb-release
1816
+ arch: ignore
1817
+ archive:
1818
+ debian,ubuntu:
1819
+ - tar
1820
+ - unzip
1821
+ gentoo:
1822
+ - app-arch/tar
1823
+ - app-arch/unzip
1824
+ arch:
1825
+ - tar
1826
+ - unzip
1827
+ cvs:
1828
+ debian,ubuntu: cvs
1830
1829
 
1831
1830
  EODEFS
1832
1831
 
@@ -684,3 +684,17 @@ def default_packages(*names)
684
684
  metapackage(pkg_set.name, *names)
685
685
  end
686
686
 
687
+ # This can be used only during the load of a package set
688
+ #
689
+ # It removes the given packages from the set of packages that will be built if
690
+ # 'package_set_name' is used. By default, all of the package set's packages are
691
+ # included. After a call to default_packages, only the packages listed (and
692
+ # their dependencies) are.
693
+ def remove_from_default(*names)
694
+ pkg_set = Autoproj.current_package_set
695
+ Autoproj.manifest.metapackage(pkg_set.name).packages.delete_if do |pkg|
696
+ names.include?(pkg.name)
697
+ end
698
+ puts Autoproj.manifest.metapackage(pkg_set.name).packages.map(&:name).sort.join(", ")
699
+ end
700
+
@@ -849,7 +849,6 @@ fi
849
849
  #
850
850
  def partition_osdep_entry(osdep_name, dep_def, handler_names, excluded, *keys)
851
851
  keys, *additional_keys = *keys
852
- keys ||= []
853
852
  found = false
854
853
  nonexistent = false
855
854
  result = []
@@ -881,7 +880,7 @@ fi
881
880
  end
882
881
  result.concat(rec_result)
883
882
  end
884
- else
883
+ elsif keys
885
884
  if names.respond_to?(:to_str) # names could be an array already
886
885
  names = names.split(',')
887
886
  end
@@ -1,3 +1,3 @@
1
1
  module Autoproj
2
- VERSION = "1.8.2.b12"
2
+ VERSION = "1.8.2.b13"
3
3
  end
@@ -342,20 +342,6 @@ class TC_OSDependencies < Test::Unit::TestCase
342
342
  assert_equal expected, osdeps.resolve_package('pkg')
343
343
  end
344
344
 
345
- def test_resolve_mixed_os_and_osindep_dependencies
346
- data = { 'pkg' =>
347
- { 'test' => { 'default' => ['ospkg', 'gem' => 'gempkg'] }
348
- }
349
- }
350
-
351
- osdeps = create_osdep(data)
352
- expected = [
353
- [osdeps.os_package_handler, FOUND_PACKAGES, ['ospkg']],
354
- [osdeps.package_handlers['gem'], FOUND_PACKAGES, ['gempkg']]
355
- ].to_set
356
- assert_equal expected, osdeps.resolve_package('pkg').to_set
357
- end
358
-
359
345
  def test_availability_of
360
346
  osdeps = flexmock(OSDependencies.new)
361
347
  osdeps.should_receive(:resolve_package).with('pkg0').once.and_return(
@@ -440,7 +426,7 @@ class TC_OSDependencies < Test::Unit::TestCase
440
426
  osdeps.should_receive(:resolve_package).with('pkg0').once.and_return(nil)
441
427
  osdeps.should_receive(:resolve_package).with('pkg1').never
442
428
  osdeps.should_receive(:resolve_package).with('pkg2').never
443
- assert_raises(Autoproj::OSDependencies::MissingOSDep) { osdeps.resolve_os_dependencies(['pkg0', 'pkg1', 'pkg2']) }
429
+ assert_raises(ConfigError) { osdeps.resolve_os_dependencies(['pkg0', 'pkg1', 'pkg2']) }
444
430
 
445
431
  osdeps.should_receive(:resolve_package).with('pkg0').once.and_return(
446
432
  [[osdeps.os_package_handler, FOUND_PACKAGES, ['pkg0']]])
@@ -451,13 +437,13 @@ class TC_OSDependencies < Test::Unit::TestCase
451
437
  expected =
452
438
  [[osdeps.os_package_handler, ['pkg0']],
453
439
  [osdeps.package_handlers['gem'], ['gempkg1', 'gempkg2']]]
454
- assert_raises(Autoproj::OSDependencies::MissingOSDep) { osdeps.resolve_os_dependencies(['pkg0', 'pkg1', 'pkg2']) }
440
+ assert_raises(ConfigError) { osdeps.resolve_os_dependencies(['pkg0', 'pkg1', 'pkg2']) }
455
441
 
456
442
  osdeps.should_receive(:resolve_package).with('pkg0').once.and_return(
457
443
  [[osdeps.os_package_handler, FOUND_NONEXISTENT, ['pkg0']]])
458
444
  osdeps.should_receive(:resolve_package).with('pkg1').never
459
445
  osdeps.should_receive(:resolve_package).with('pkg2').never
460
- assert_raises(Autoproj::OSDependencies::MissingOSDep) { osdeps.resolve_os_dependencies(['pkg0', 'pkg1', 'pkg2']) }
446
+ assert_raises(ConfigError) { osdeps.resolve_os_dependencies(['pkg0', 'pkg1', 'pkg2']) }
461
447
 
462
448
  osdeps.should_receive(:resolve_package).with('pkg0').once.and_return(
463
449
  [[osdeps.os_package_handler, FOUND_PACKAGES, ['pkg0']]])
@@ -465,7 +451,7 @@ class TC_OSDependencies < Test::Unit::TestCase
465
451
  [[osdeps.os_package_handler, FOUND_PACKAGES, ['pkg1']],
466
452
  [osdeps.package_handlers['gem'], FOUND_NONEXISTENT, ['gempkg1']]])
467
453
  osdeps.should_receive(:resolve_package).with('pkg2').never
468
- assert_raises(Autoproj::OSDependencies::MissingOSDep) { osdeps.resolve_os_dependencies(['pkg0', 'pkg1', 'pkg2']) }
454
+ assert_raises(ConfigError) { osdeps.resolve_os_dependencies(['pkg0', 'pkg1', 'pkg2']) }
469
455
  end
470
456
 
471
457
  def test_install
metadata CHANGED
@@ -1,124 +1,93 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: autoproj
3
- version: !ruby/object:Gem::Version
4
- hash: 126413845
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.8.2.b13
5
5
  prerelease: 6
6
- segments:
7
- - 1
8
- - 8
9
- - 2
10
- - b
11
- - 12
12
- version: 1.8.2.b12
13
6
  platform: ruby
14
- authors:
7
+ authors:
15
8
  - Rock Core Developers
16
9
  autorequire:
17
10
  bindir: bin
18
11
  cert_chain: []
19
-
20
- date: 2012-10-04 00:00:00 Z
21
- dependencies:
22
- - !ruby/object:Gem::Dependency
12
+ date: 2012-10-08 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
23
15
  name: autobuild
24
- prerelease: false
25
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &18481040 !ruby/object:Gem::Requirement
26
17
  none: false
27
- requirements:
28
- - - ">="
29
- - !ruby/object:Gem::Version
30
- hash: 3197745649
31
- segments:
32
- - 1
33
- - 6
34
- - 0
35
- - rc
36
- - 1
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
37
21
  version: 1.6.0.rc1
38
22
  type: :runtime
39
- version_requirements: *id001
40
- - !ruby/object:Gem::Dependency
41
- name: utilrb
42
23
  prerelease: false
43
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *18481040
25
+ - !ruby/object:Gem::Dependency
26
+ name: utilrb
27
+ requirement: &18480280 !ruby/object:Gem::Requirement
44
28
  none: false
45
- requirements:
46
- - - ">="
47
- - !ruby/object:Gem::Version
48
- hash: 15
49
- segments:
50
- - 1
51
- - 6
52
- - 0
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
53
32
  version: 1.6.0
54
33
  type: :runtime
55
- version_requirements: *id002
56
- - !ruby/object:Gem::Dependency
57
- name: highline
58
34
  prerelease: false
59
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *18480280
36
+ - !ruby/object:Gem::Dependency
37
+ name: highline
38
+ requirement: &18479460 !ruby/object:Gem::Requirement
60
39
  none: false
61
- requirements:
62
- - - ">="
63
- - !ruby/object:Gem::Version
64
- hash: 3
65
- segments:
66
- - 1
67
- - 5
68
- - 0
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
69
43
  version: 1.5.0
70
44
  type: :runtime
71
- version_requirements: *id003
72
- - !ruby/object:Gem::Dependency
73
- name: rdoc
74
45
  prerelease: false
75
- requirement: &id004 !ruby/object:Gem::Requirement
46
+ version_requirements: *18479460
47
+ - !ruby/object:Gem::Dependency
48
+ name: rdoc
49
+ requirement: &18478320 !ruby/object:Gem::Requirement
76
50
  none: false
77
- requirements:
51
+ requirements:
78
52
  - - ~>
79
- - !ruby/object:Gem::Version
80
- hash: 19
81
- segments:
82
- - 3
83
- - 10
84
- version: "3.10"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.10'
85
55
  type: :development
86
- version_requirements: *id004
87
- - !ruby/object:Gem::Dependency
88
- name: hoe
89
56
  prerelease: false
90
- requirement: &id005 !ruby/object:Gem::Requirement
57
+ version_requirements: *18478320
58
+ - !ruby/object:Gem::Dependency
59
+ name: hoe
60
+ requirement: &18477520 !ruby/object:Gem::Requirement
91
61
  none: false
92
- requirements:
62
+ requirements:
93
63
  - - ~>
94
- - !ruby/object:Gem::Version
95
- hash: 7
96
- segments:
97
- - 3
98
- - 0
99
- version: "3.0"
64
+ - !ruby/object:Gem::Version
65
+ version: '3.0'
100
66
  type: :development
101
- version_requirements: *id005
102
- description: autoproj is a manager for sets of software packages. It allows the user to import and build packages from source, still using the underlying distribution's native package manager for software that is available on it.
67
+ prerelease: false
68
+ version_requirements: *18477520
69
+ description: autoproj is a manager for sets of software packages. It allows the user
70
+ to import and build packages from source, still using the underlying distribution's
71
+ native package manager for software that is available on it.
103
72
  email: rock-dev@dfki.de
104
- executables:
73
+ executables:
105
74
  - amake
106
75
  - aup
107
76
  - autolocate
108
77
  - autoproj
109
78
  - autoproj-clean
79
+ - autoproj-inspect
110
80
  - autoproj-locate
111
81
  - autoproj-query
112
82
  - autoproj_bootstrap
113
83
  - autoproj_stress_test
114
84
  extensions: []
115
-
116
- extra_rdoc_files:
85
+ extra_rdoc_files:
117
86
  - History.txt
118
87
  - Manifest.txt
119
88
  - README.txt
120
89
  - samples/autoproj/README.txt
121
- files:
90
+ files:
122
91
  - History.txt
123
92
  - Manifest.txt
124
93
  - README.txt
@@ -128,6 +97,7 @@ files:
128
97
  - bin/autolocate
129
98
  - bin/autoproj
130
99
  - bin/autoproj-clean
100
+ - bin/autoproj-inspect
131
101
  - bin/autoproj-locate
132
102
  - bin/autoproj-query
133
103
  - bin/autoproj_bootstrap
@@ -157,49 +127,39 @@ files:
157
127
  - test/data/test_manifest/autoproj/manifest
158
128
  - test/test_debian.rb
159
129
  - test/test_manifest.rb
130
+ - test/test_package_manifest.rb
160
131
  - test/test_os_dependencies.rb
161
132
  - test/package_managers/test_gem.rb
162
- - test/test_package_manifest.rb
163
133
  - .gemtest
164
134
  homepage: http://rock-robotics.org/documentation/autoproj
165
135
  licenses: []
166
-
167
136
  post_install_message:
168
- rdoc_options:
137
+ rdoc_options:
169
138
  - --main
170
139
  - README.txt
171
- require_paths:
140
+ require_paths:
172
141
  - lib
173
- required_ruby_version: !ruby/object:Gem::Requirement
142
+ required_ruby_version: !ruby/object:Gem::Requirement
174
143
  none: false
175
- requirements:
176
- - - ">="
177
- - !ruby/object:Gem::Version
178
- hash: 3
179
- segments:
180
- - 0
181
- version: "0"
182
- required_rubygems_version: !ruby/object:Gem::Requirement
144
+ requirements:
145
+ - - ! '>='
146
+ - !ruby/object:Gem::Version
147
+ version: '0'
148
+ required_rubygems_version: !ruby/object:Gem::Requirement
183
149
  none: false
184
- requirements:
185
- - - ">"
186
- - !ruby/object:Gem::Version
187
- hash: 25
188
- segments:
189
- - 1
190
- - 3
191
- - 1
150
+ requirements:
151
+ - - ! '>'
152
+ - !ruby/object:Gem::Version
192
153
  version: 1.3.1
193
154
  requirements: []
194
-
195
155
  rubyforge_project: autobuild
196
- rubygems_version: 1.8.24
156
+ rubygems_version: 1.8.11
197
157
  signing_key:
198
158
  specification_version: 3
199
159
  summary: Easy installation and management of sets of software packages
200
- test_files:
201
- - test/test_os_dependencies.rb
202
- - test/package_managers/test_gem.rb
160
+ test_files:
203
161
  - test/test_manifest.rb
204
- - test/test_debian.rb
205
162
  - test/test_package_manifest.rb
163
+ - test/test_os_dependencies.rb
164
+ - test/test_debian.rb
165
+ - test/package_managers/test_gem.rb