Ravenports generated: 01 Apr 2018 23:40
[ravenports.git] / bucket_8B / spidermonkey
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               spidermonkey
4 VERSION=                52.6.0
5 KEYWORDS=               lang
6 VARIANTS=               standard
7 SDESC[standard]=        Standalone JS interpreter from Mozilla 52-esr
8 HOMEPAGE=               https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey
9 CONTACT=                Michael_Reim[kraileth@elderlinux.org]
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            https://queue.taskcluster.net/v1/task/PNGBJ8KgQuK9tX78Hajrbg/runs/0/artifacts/public/build/
13 DISTFILE[1]=            mozjs-52.6.0.tar.bz2:main
14 DF_INDEX=               1
15 SPKGS[standard]=        single
16
17 OPTIONS_AVAILABLE=      none
18 OPTIONS_STANDARD=       none
19
20 BUILD_DEPENDS=          autoconf213:single:standard
21                         zip:single:standard
22 BUILDRUN_DEPENDS=       icu:single:standard
23                         nspr:single:standard
24                         readline:single:standard
25                         zlib:complete:standard
26
27 USES=                   gmake perl pkgconfig python:py27,build
28
29 DISTNAME=               mozjs-52.6.0/js/src
30
31 MUST_CONFIGURE=         gnu
32 CONFIGURE_ARGS=         --disable-debug
33                         --disable-debug-symbols
34                         --enable-readline
35                         --enable-release
36                         --enable-shared-js
37                         --enable-tests
38                         --with-intl-api
39                         --with-pthreads
40                         --with-system-nspr
41                         --with-system-icu
42                         --with-system-zlib
43                         --prefix=/raven
44
45 PLIST_SUB=              MOZJS_MAJOR=52
46                         MOZJS_MINOR=6
47
48 post-patch:
49         touch ${WRKSRC}/configure
50
51 post-install:
52         ${LN} -s libmozjs-52.so \
53                 ${STAGEDIR}${PREFIX}/lib/libmozjs-52.6.so.1
54         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/js52
55         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libmozjs-52.so
56
57 post-extract:
58         ${CP} /port/files/configure ${WRKSRC}
59
60 [FILE:126:descriptions/desc.single]
61 SpiderMonkey is Mozilla's JavaScript engine written in C and C++. It is 
62 used in various Mozilla products, including Firefox.
63
64
65 [FILE:99:distinfo]
66 1617680d54b79fc32c21d1179669b970cc15af10c331a54b87db7193efe44b2c     30439120 mozjs-52.6.0.tar.bz2
67
68
69 [FILE:2615:manifests/plist.single]
70 bin/
71  js%%MOZJS_MAJOR%%
72  js%%MOZJS_MAJOR%%-config
73 include/mozjs-%%MOZJS_MAJOR%%/
74  fdlibm.h
75  jemalloc_types.h
76  js-config.h
77  js.msg
78 include/mozjs-%%MOZJS_MAJOR%%/js/
79  CallArgs.h
80  CallNonGenericMethod.h
81  CharacterEncoding.h
82  Class.h
83  Conversions.h
84  Date.h
85  Debug.h
86  GCAnnotations.h
87  GCAPI.h
88  GCHashTable.h
89  GCPolicyAPI.h
90  GCVariant.h
91  GCVector.h
92  HashTable.h
93  HeapAPI.h
94  Id.h
95  Initialization.h
96  LegacyIntTypes.h
97  MemoryMetrics.h
98  Principals.h
99  ProfilingFrameIterator.h
100  ProfilingStack.h
101  Proxy.h
102  Realm.h
103  RequiredDefines.h
104  RootingAPI.h
105  SliceBudget.h
106  StructuredClone.h
107  SweepingAPI.h
108  TraceKind.h
109  TracingAPI.h
110  TrackedOptimizationInfo.h
111  TypeDecls.h
112  UbiNode.h
113  UbiNodeBreadthFirst.h
114  UbiNodeCensus.h
115  UbiNodeDominatorTree.h
116  UbiNodePostOrder.h
117  UbiNodeShortestPaths.h
118  UniquePtr.h
119  Utility.h
120  Value.h
121  Vector.h
122  WeakMapPtr.h
123 include/mozjs-%%MOZJS_MAJOR%%/
124  jsalloc.h
125  jsapi.h
126  jsbytecode.h
127  jsclist.h
128  jscpucfg.h
129  jsfriendapi.h
130  jsperf.h
131  jsprf.h
132  jsprototypes.h
133  jspubtd.h
134  jstypes.h
135  jsversion.h
136  jswrapper.h
137 include/mozjs-%%MOZJS_MAJOR%%/mozilla/
138  Alignment.h
139  AllocPolicy.h
140  AlreadyAddRefed.h
141  Array.h
142  ArrayUtils.h
143  Assertions.h
144  Atomics.h
145  Attributes.h
146  BinarySearch.h
147  BloomFilter.h
148  BufferList.h
149  Casting.h
150  ChaosMode.h
151  Char16.h
152  CheckedInt.h
153  Compiler.h
154  Compression.h
155  DebugOnly.h
156  Decimal.h
157  double-conversion.h
158  EndianUtils.h
159  EnumeratedArray.h
160  EnumeratedRange.h
161  EnumSet.h
162  EnumTypeTraits.h
163  fallible.h
164  FastBernoulliTrial.h
165  FloatingPoint.h
166  Function.h
167  GuardObjects.h
168  HashFunctions.h
169  IndexSequence.h
170  IntegerPrintfMacros.h
171  IntegerRange.h
172  IntegerTypeTraits.h
173  JSONWriter.h
174  Likely.h
175  LinkedList.h
176  MacroArgs.h
177  MacroForEach.h
178  MathAlgorithms.h
179  Maybe.h
180  MaybeOneOf.h
181  MemoryChecking.h
182  MemoryReporting.h
183  Move.h
184  mozalloc_abort.h
185  mozalloc_oom.h
186  mozalloc.h
187  NotNull.h
188  NullPtr.h
189  Opaque.h
190  OperatorNewExtensions.h
191  Pair.h
192  PodOperations.h
193  Poison.h
194  Range.h
195  RangedArray.h
196  RangedPtr.h
197  ReentrancyGuard.h
198  RefCounted.h
199  RefCountType.h
200  RefPtr.h
201  ReverseIterator.h
202  RollingMean.h
203  Saturate.h
204  Scoped.h
205  ScopeExit.h
206  SegmentedVector.h
207  SHA1.h
208  SizePrintfMacros.h
209  SplayTree.h
210  Sprintf.h
211  StackWalk.h
212  StaticAnalysisFunctions.h
213  TaggedAnonymousMemory.h
214  TemplateLib.h
215  ThreadLocal.h
216  TimeStamp.h
217  ToString.h
218  Tuple.h
219  TypedEnumBits.h
220  Types.h
221  TypeTraits.h
222  UniquePtr.h
223  UniquePtrExtensions.h
224  Unused.h
225  utils.h
226  Variant.h
227  Vector.h
228  WeakPtr.h
229  XorShift128PlusRNG.h
230 include/mozjs-%%MOZJS_MAJOR%%/
231  mozmemory_wrap.h
232  mozmemory.h
233  mozzconf.h
234  zconf.h
235  zlib.h
236 lib/
237  libjs_static.ajs
238  libmozjs-%%MOZJS_MAJOR%%.so
239  libmozjs-%%MOZJS_MAJOR%%.%%MOZJS_MINOR%%.so.1
240 lib/pkgconfig/mozjs-%%MOZJS_MAJOR%%.pc
241
242
243 [FILE:540:patches/patch-build_moz.configure_init.configure]
244 --- ../../build/moz.configure/init.configure.orig       2018-01-11 18:49:42 UTC
245 +++ ../../build/moz.configure/init.configure
246 @@ -344,8 +344,8 @@ def split_triplet(triplet):
247      if cpu.endswith('86') or (cpu.startswith('i') and '86' in cpu):
248          canonical_cpu = 'x86'
249          endianness = 'little'
250 -    elif cpu in ('x86_64', 'ia64'):
251 -        canonical_cpu = cpu
252 +    elif cpu in ('x86_64', 'ia64', 'amd64'):
253 +        canonical_cpu = 'x86_64'
254          endianness = 'little'
255      elif cpu in ('s390', 's390x'):
256          canonical_cpu = cpu
257
258
259 [FILE:552:patches/patch-config_rules.mk]
260 --- ../../config/rules.mk.orig  2018-01-11 18:49:42 UTC
261 +++ ../../config/rules.mk
262 @@ -418,7 +418,7 @@ endif # AIX
263  #
264  # Linux: add -Bsymbolic flag for components
265  #
266 -ifeq ($(OS_ARCH),Linux)
267 +#ifeq ($(OS_ARCH),Linux)
268  ifdef IS_COMPONENT
269  EXTRA_DSO_LDOPTS += -Wl,-Bsymbolic
270  endif
271 @@ -426,7 +426,8 @@ ifdef LD_VERSION_SCRIPT
272  EXTRA_DSO_LDOPTS += -Wl,--version-script,$(LD_VERSION_SCRIPT)
273  EXTRA_DEPS += $(LD_VERSION_SCRIPT)
274  endif
275 -endif
276 +#endif
277 +EXTRA_DSO_LDOPTS += -Wl,-soname,lib$(JS_LIBRARY_NAME).so.0
278  
279  ifdef SYMBOLS_FILE
280  ifeq ($(OS_TARGET),WINNT)
281
282
283 [FILE:908:patches/patch-js_src_old-configure.in]
284 --- old-configure.in.orig       2018-01-11 18:49:44 UTC
285 +++ old-configure.in
286 @@ -1623,16 +1623,21 @@ dnl ====================================
287  dnl = Enable jemalloc
288  dnl ========================================================
289  
290 -case "${OS_TARGET}" in
291 -Android|WINNT|Darwin)
292 +dnl In stand-alone builds we always only want to link executables against mozglue.
293 +if test "$JS_STANDALONE"; then
294    MOZ_GLUE_IN_PROGRAM=
295 -  ;;
296 -*)
297 -  dnl On !Android !Windows !OSX, we only want to link executables against mozglue
298 -  MOZ_GLUE_IN_PROGRAM=1
299 -  AC_DEFINE(MOZ_GLUE_IN_PROGRAM)
300 -  ;;
301 -esac
302 +else
303 +  case "${OS_TARGET}" in
304 +  Android|WINNT|Darwin)
305 +    MOZ_GLUE_IN_PROGRAM=
306 +    ;;
307 +  *)
308 +    dnl On !Android !Windows !OSX, we only want to link executables against mozglue
309 +    MOZ_GLUE_IN_PROGRAM=1
310 +    AC_DEFINE(MOZ_GLUE_IN_PROGRAM)
311 +    ;;
312 +  esac
313 +fi
314  
315  if test "$MOZ_MEMORY"; then
316    if test "x$MOZ_DEBUG" = "x1"; then
317
318
319 [FILE:475:patches/patch-mozglue_build_moz.build]
320 --- ../../mozglue/build/moz.build.orig  2018-01-11 18:49:46 UTC
321 +++ ../../mozglue/build/moz.build
322 @@ -6,7 +6,7 @@
323  
324  # Build mozglue as a shared lib on Windows, OSX and Android.
325  # If this is ever changed, update MOZ_SHARED_MOZGLUE in browser/installer/Makefile.in
326 -if CONFIG['OS_TARGET'] in ('WINNT', 'Darwin', 'Android'):
327 +if CONFIG['OS_TARGET'] in ('WINNT', 'Darwin', 'Android') and not CONFIG['JS_STANDALONE']:
328      SharedLibrary('mozglue')
329  else:
330      Library('mozglue')
331
332
333 [FILE:379:patches/patch-python_mach_mach_mixin_process.py]
334 --- ../../python/mach/mach/mixin/process.py.orig        2018-04-01 13:37:29.893787000 +0200
335 +++ ../../python/mach/mach/mixin/process.py     2018-04-01 13:38:10.188973000 +0200
336 @@ -26,7 +26,7 @@
337  elif 'COMSPEC' in os.environ:
338      _current_shell = os.environ['COMSPEC']
339  else:
340 -    raise Exception('Could not detect environment shell!')
341 +    _current_shell = "/bin/sh"
342  
343  _in_msys = False
344  
345
346
347 [FILE:1099:patches/patch-python_mozbuild_mozbuild_backend_recursivemake.py]
348 --- ../../python/mozbuild/mozbuild/backend/recursivemake.py.orig        2018-01-11 18:49:46 UTC
349 +++ ../../python/mozbuild/mozbuild/backend/recursivemake.py
350 @@ -1307,11 +1307,11 @@ class RecursiveMakeBackend(CommonBackend
351                                  raise Exception("Wildcards are only supported in the filename part of "
352                                                  "srcdir-relative or absolute paths.")
353  
354 -                            install_manifest.add_pattern_symlink(basepath, wild, path)
355 +                            install_manifest.add_pattern_copy(basepath, wild, path)
356                          else:
357 -                            install_manifest.add_pattern_symlink(f.srcdir, f, path)
358 +                            install_manifest.add_pattern_copy(f.srcdir, f, path)
359                      else:
360 -                        install_manifest.add_symlink(f.full_path, dest)
361 +                        install_manifest.add_copy(f.full_path, dest)
362                  else:
363                      install_manifest.add_optional_exists(dest)
364                      backend_file.write('%s_FILES += %s\n' % (
365
366
367 [FILE:572:patches/patch-python_mozbuild_mozbuild_configure_____init____.py]
368 --- ../../python/mozbuild/mozbuild/configure/__init__.py.orig   2018-01-11 18:49:46 UTC
369 +++ ../../python/mozbuild/mozbuild/configure/__init__.py
370 @@ -356,7 +356,7 @@ class ConfigureSandbox(dict):
371          # All options should have been removed (handled) by now.
372          for arg in self._helper:
373              without_value = arg.split('=', 1)[0]
374 -            raise InvalidOptionError('Unknown option: %s' % without_value)
375 +            print('Ignoring', without_value, ': Unknown option')
376  
377          # Run the execution queue
378          for func, args in self._execution_queue:
379
380
381 [FILE:659:patches/patch-python_mozbuild_mozbuild_configure_options.py]
382 --- ../../python/mozbuild/mozbuild/configure/options.py.orig    2018-01-11 18:49:46 UTC
383 +++ ../../python/mozbuild/mozbuild/configure/options.py
384 @@ -402,7 +402,11 @@ class CommandLineHelper(object):
385  
386      def add(self, arg, origin='command-line', args=None):
387          assert origin != 'default'
388 -        prefix, name, values = Option.split_option(arg)
389 +        try:
390 +            prefix, name, values = Option.split_option(arg)
391 +        except InvalidOptionError as e:
392 +            print('Ignoring', arg, ':', e)
393 +            return
394          if args is None:
395              args = self._extra_args
396          if args is self._extra_args and name in self._extra_args:
397
398
399 [FILE:1175:files/configure]
400 #!/bin/sh
401 # This Source Code Form is subject to the terms of the Mozilla Public
402 # License, v. 2.0. If a copy of the MPL was not distributed with this
403 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
404 #
405 # Welcome to the new world of configure. We're working on moving to a
406 # python based configure. In the meanwhile, remains of the old autoconf
407 # based configure is in old-configure.in.
408 # If you need to add something, please come talk to the build system
409 # peers for now.
410 #
411 # Because adding a configure file in the tree is going to conflict with
412 # existing configure files in people's (and automation) work trees, and
413 # because some automation jobs are still running autoconf and configure
414 # "manually", this file is actually an m4 file that is processed by
415 # autoconf, but doesn't call any autoconf macros. The `divert` line
416 # below ensures the script that follows is output by autoconf.
417 : "divert(0)dnl"
418 #!/bin/sh
419
420 SRCDIR=$(dirname $0)
421 TOPSRCDIR="$SRCDIR"/../..
422 export OLD_CONFIGURE="$SRCDIR"/old-configure
423
424 set -- "$@" --enable-project=js
425
426 which python2.7 > /dev/null && exec python2.7 "$TOPSRCDIR/configure.py" "$@" || exec python "$TOPSRCDIR/configure.py" "$@"
427