@@ -20,6 +20,14 @@ class Bazel(Package):
20
20
21
21
tags = ['build-tools' ]
22
22
23
+ version ('5.2.0' , sha256 = '820a94dbb14071ed6d8c266cf0c080ecb265a5eea65307579489c4662c2d582a' )
24
+ version ('5.1.1' , sha256 = '7f5d3bc1d344692b2400f3765fd4b5c0b636eb4e7a8a7b17923095c7b56a4f78' )
25
+ version ('5.1.0' , sha256 = '4de301f509fc6d0cbc697b2017384ecdc94df8f36245bbcbedc7ea6780acc9f5' )
26
+ version ('5.0.0' , sha256 = '072dd62d237dbc11e0bac02e118d8c2db4d0ba3ba09f1a0eb1e2a460fb8419db' )
27
+ version ('4.2.2' , sha256 = '9981d0d53a356c4e87962847750a97c9e8054e460854748006c80f0d7e2b2d33' )
28
+ version ('4.2.1' , sha256 = '12ea7aa11e2bdb12de1dceb9939a22e96f5a480437cb17c123379d8e0fdf5e82' )
29
+ version ('4.2.0' , sha256 = '74814b63920aaee47dbbbee7082e5c4317e4eebaf07e03c5fb5626e1716f1034' )
30
+ version ('4.1.0' , sha256 = 'f377d755c96a50f6bd2f423562598d822f43356783330a0b780ad442864d6eeb' )
23
31
version ('4.0.0' , sha256 = 'd350f80e70654932db252db380d2ec0144a00e86f8d9f2b4c799ffdb48e9cdd1' )
24
32
version ('3.7.2' , sha256 = 'de255bb42163a915312df9f4b86e5b874b46d9e8d4b72604b5123c3a845ed9b1' )
25
33
version ('3.7.1' , sha256 = 'c9244e5905df6b0190113e26082c72d58b56b1b0dec66d076f083ce4089b0307' )
@@ -113,14 +121,13 @@ class Bazel(Package):
113
121
variant ('nodepfail' , default = True , description = 'Disable failing dependency checks due to injected absolute paths - required for most builds using bazel with spack' )
114
122
115
123
depends_on ('java' , type = ('build' , 'run' ))
124
+ depends_on ('java@11' , when = '@5.3:' , type = ('build' , 'run' ))
125
+ depends_on ('java@8,11' , when = '@3.3:5.2' , type = ('build' , 'run' ))
126
+ depends_on ('java@8' , when = '@0.6:3.2' , type = ('build' , 'run' ))
127
+ depends_on ('java@7:8' , when = '@:0.5' , type = ('build' , 'run' ))
116
128
depends_on ('python+pythoncmd' , type = ('build' , 'run' ))
117
129
depends_on ('zip' , when = 'platform=linux' , type = ('build' , 'run' ))
118
130
119
- # make work on power9 (2x commits)
120
- # https://github.com/bazelbuild/bazel/commit/5cff4f1edf8b95bf0612791632255852332f72b5
121
- # https://github.com/bazelbuild/bazel/commit/ab62a6e097590dac5ec946ad7a796ea0e8593ae0
122
- patch ('linux_ppc-0.29.1.patch' , when = '@0.29.1' )
123
-
124
131
# Pass Spack environment variables to the build
125
132
patch ('bazelruleclassprovider-0.25.patch' , when = '@0.25:' )
126
133
patch ('bazelruleclassprovider-0.14.patch' , when = '@0.14:0.24' )
@@ -144,18 +151,30 @@ class Bazel(Package):
144
151
patch ('compile-0.4.patch' , when = '@0.4:0.5' )
145
152
patch ('compile-0.3.patch' , when = '@:0.3' )
146
153
147
- # for fcc
148
- patch ('patch_for_fcc.patch' , when = '@0.29.1:%fj' )
149
- patch ('patch_for_fcc2.patch' , when = '@0.25:%fj' )
154
+ # Disable dependency search
155
+ patch ('cppcompileaction-0.3.2.patch' , when = '@0.3.2:+nodepfail' )
156
+ patch ('cppcompileaction-0.3.0.patch' , when = '@0.3.0:0.3.1+nodepfail' )
157
+
158
+ # Fix build on power9 (2x commits)
159
+ # https://github.com/bazelbuild/bazel/commit/5cff4f1edf8b95bf0612791632255852332f72b5
160
+ # https://github.com/bazelbuild/bazel/commit/ab62a6e097590dac5ec946ad7a796ea0e8593ae0
161
+ patch ('build-0.29.1.patch' , when = '@0.29.1' )
162
+
163
+ # Fix build with Fujitsu compiler
164
+ patch ('blaze_util_posix-0.29.1.patch' , when = '@0.29.1:%fj' )
165
+ patch ('unix_cc_configure_fj-5.2.patch' , when = '@5.2:%fj' )
166
+ patch ('unix_cc_configure_fj-5.0.patch' , when = '@5.0:5.1%fj' )
167
+ patch ('unix_cc_configure_fj-0.29.1.patch' , when = '@0.29.1:4%fj' )
168
+ patch ('bazelruleclassprovider_fj-0.25.patch' , when = '@0.25:%fj' )
150
169
conflicts (
151
170
'%fj' ,
152
171
when = '@:0.24.1' ,
153
172
msg = 'Fujitsu Compiler cannot build 0.24.1 or less, '
154
173
'please use a newer release.'
155
174
)
156
175
157
- patch ( 'disabledepcheck.patch' , when = '@0.3.2:+nodepfail' )
158
- patch ( 'disabledepcheck_old.patch ' , when = '@0.3.0:0.3.1+nodepfail ' )
176
+ # https://blog.bazel.build/2021/05/21/bazel-4-1.html
177
+ conflicts ( 'platform=darwin target=aarch64: ' , when = '@:4.0 ' )
159
178
160
179
executables = ['^bazel$' ]
161
180
0 commit comments