Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 502332 - dev-lang/spidermonkey-17.0.0-r2 has missing sys-libs/zlib RDEPEND and DEPEND
Summary: dev-lang/spidermonkey-17.0.0-r2 has missing sys-libs/zlib RDEPEND and DEPEND
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 500758
  Show dependency tree
 
Reported: 2014-02-24 14:11 UTC by Nikoli
Modified: 2014-02-24 19:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikoli 2014-02-24 14:11:38 UTC
$ objdump -p /usr/lib64/libmozjs-17.0.so|grep NEEDED|sort
  NEEDED               libc.so.6
  NEEDED               libm.so.6
  NEEDED               libnspr4.so
  NEEDED               libpthread.so.0
  NEEDED               libstdc++.so.6
  NEEDED               libz.so.1

$ grep -R zlib js/*
js/src/config/Makefile.in:# Force wrap zlib system header if building js as a shared library.
js/src/config/system-headers:zlib.h
js/src/config/system-headers:bzlib.h
js/src/Makefile.in:# Enable zlib usage if zlib has been located. When building the browser on
js/src/Makefile.in:# Windows, MOZ_ZLIB_LIBS is empty because zlib is part of libmozglue. We thus
js/src/Makefile.in:# also enable zlib if mozglue is present.
js/src/configure:  --with-system-zlib[=PFX]
js/src/configure:# Check whether --with-system-zlib or --without-system-zlib was given.
js/src/configure:if test "${with_system_zlib+set}" = set; then
js/src/configure:  withval="$with_system_zlib"
js/src/configure:                             #include <zlib.h> 
js/src/configure:                             #error "Insufficient zlib version ($MOZZLIBNUM required)."
js/src/configure:  { echo "configure: error: Insufficient zlib version for --with-system-zlib ($MOZZLIB required)" 1>&2; exit 1; }
js/src/aclocal.m4:builtin(include, build/autoconf/zlib.m4)dnl
js/src/build/autoconf/zlib.m4:MOZ_ARG_WITH_STRING(system-zlib,
js/src/build/autoconf/zlib.m4:[  --with-system-zlib[=PFX]
js/src/build/autoconf/zlib.m4:                             #include <zlib.h> ],
js/src/build/autoconf/zlib.m4:                             #error "Insufficient zlib version ($MOZZLIBNUM required)."
js/src/build/autoconf/zlib.m4:                           AC_MSG_ERROR([Insufficient zlib version for --with-system-zlib ($MOZZLIB required)]))
js/src/jsutil.h:#include "zlib.h"
js/src/jsutil.h:    /* Number of bytes we should hand to zlib each compressMore() call. */
js/src/configure.in:dnl system zlib Support
js/src/configure.in:dnl Standalone js defaults to system zlib
js/src/jsutil.cpp:#include "zlib.h"
js/src/jsutil.cpp:zlib_alloc(void *cx, uInt items, uInt size)
js/src/jsutil.cpp:zlib_free(void *cx, void *addr)
js/src/jsutil.cpp:    zs.zalloc = zlib_alloc;
js/src/jsutil.cpp:    zs.zfree = zlib_free;
js/src/jsutil.cpp:    zs.zalloc = zlib_alloc;
js/src/jsutil.cpp:    zs.zfree = zlib_free;
Comment 1 Ian Stakenvicius (RETIRED) gentoo-dev 2014-02-24 19:38:26 UTC
Yep, that's a missing dep.  Other mozilla ebuilds get this via inheriting mozcoreconf-2.eclass, but spidermonkey doesn't inherit this.  Fixed.

+  24 Feb 2014; Ian Stakenvicius (_AxS_) <axs@gentoo.org>
+  -spidermonkey-17.0.0-r1.ebuild, spidermonkey-17.0.0-r2.ebuild,
+  spidermonkey-24.2.0.ebuild:
+  added missing zlib dep, bug 502332 ; remove old
+