Change:
Describe the bug elinks, although built with spidermonkey / JavaScript support enabled, fails to detect spidermonkey during its configure phase. This is not fatal to the configure phase, so the build continues without issue, resulting in elinks without javascript support To Reproduce Steps to reproduce the behavior: This shows during build that Spidermonkey is enable via : But later ... shows no JavaScript support; same from within elinks Expected behavior elinks should have JavaScript support enabled Metadata Output of (please note that nixpkgs below is not relevant; 19.09 release used): system: host os: multi-user?: sandbox: version: channels(musteresel): channels(root): nixpkgs: Maintainer information:
is not the cause of this; building with nixpkgs set to the parent commit yields the same result. This seems to be broken since a long time ...
of that elinks version searches for libraries , or . The libraries of spidermonkey are named , or for later versions (38, 52, 60 are on my system). Patching to use the correct lib and using Spidermonkey 1.8.5 again ... ... fails then during built; with errors like ... ... and lots of warnings. Other Spidermonkey versions (38, 52, 60) seem to have a different API; there the configure checks fail to compile their test programs.
Thank you for your contributions. This has been automatically marked as stale because it has had no activity for 180 days. If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity. Here are suggestions that might help resolve this more quickly: for maintainers and people that previously touched the related code and @ mention them in a comment. on the . 3. Ask on the on .

Discussion:
<del> # Generated by debian-patches.sh from debian-patches.txt let prefix = "https://sources.debian.org/data/main/e/elinks/0.13.2-1/debian/patches"; in [ { url = "${prefix}/03_459467_ui.leds.enable_0.diff"; sha256 = "0l35lglmnvyzz3xyy18nksra14gsp7yc67rskbzmr61szg8b9jqr"; } { url = "${prefix}/04_436817_nostrip.diff"; sha256 = "0ixvxaba1ww375gpdh7r67srp3xsfb5vyz2sfv1pgj6mczwg8v24"; } { url = "${prefix}/07_617713_cache_control.diff"; sha256 = "0drn4r33ywvmihr0drsp2jwz7mlf5z5fv8ra7fpkdavx45xqaf15"; } { url = "${prefix}/10-reproducible-build.diff"; sha256 = "024yp3xsh0hw29l1wikfmk9j3mqval6pdr4xi7rzffrlaknh58h5"; } { url = "${prefix}/14_debug_disable_Werror.diff"; sha256 = "0s620r88ikfljflb5nd133cww2wc0i85ag8lzpvrsmg0q00hfmax"; } { url = "${prefix}/16_POST_BUFFER_SIZE.diff"; sha256 = "17vkvy0d0rabmgk8iqwgdsrgjn6dbb9cf6760qbz82zlb37s09nh"; } { url = "${prefix}/11-reproducible-build.diff"; sha256 = "1z17g9z68lh12fs6fkralfghh8bs1bs5mlq83d15l4bn3za3s0sl"; } ] </del>

<del> elinks/0.13.2-1 03_459467_ui.leds.enable_0.diff 04_436817_nostrip.diff 07_617713_cache_control.diff 10-reproducible-build.diff 14_debug_disable_Werror.diff 16_POST_BUFFER_SIZE.diff 11-reproducible-build.diff </del>

<del> { stdenv, fetchurl, fetchpatch, ncurses, xlibsWrapper, bzip2, zlib, brotli, openssl, autoconf, automake, gettext, pkgconfig, libev , gpm </del> <ins> { stdenv, fetchFromGitHub, fetchpatch, ncurses, xlibsWrapper, bzip2, zlib , brotli, zstd, lzma, openssl, autoreconfHook, gettext, pkgconfig, libev , gpm, libidn, tre, expat </ins> , # Incompatible licenses, LGPLv3 - GPLv2 enableGuile        ? false,                                         guile ? null , enablePython       ? false,                                         python ? null , enablePerl         ? (stdenv.hostPlatform == stdenv.buildPlatform), perl ? null <del> , enableSpidermonkey ? (stdenv.hostPlatform == stdenv.buildPlatform), spidermonkey_38 ? null </del> <ins> # re-add javascript support when upstream supports modern spidermonkey </ins> }: assert enableGuile -> guile != null; assert enablePython -> python != null; stdenv.mkDerivation rec { <del> pname = "elinks-0.13.2"; version = "0.13.2"; src = fetchurl { url = "https://deb.debian.org/debian/pool/main/e/elinks/elinks_${version}.orig.tar.gz"; sha256 = "0xkpqnqy0x8sizx4snca0pw3q98gkhnw5a05yf144j1x1y2nb14c"; </del> <ins> pname = "elinks"; version = "0.13.5"; src = fetchFromGitHub { owner = "rkd77"; repo = "felinks"; rev = "v${version}"; sha256 = "067l9m47j40039q8mvvnxd1amwrac3x6vv0c0svimfpvj4ammgkg"; </ins> }; <del> patches = map fetchurl (import ./debian-patches.nix); postPatch = (stdenv.lib.optional stdenv.isDarwin) '' patch -p0 < ${fetchpatch { url = "https://raw.githubusercontent.com/macports/macports-ports/72bed7749e76b9092ddd8d9fe2d8449c5afb1d71/www/elinks/files/patch-perl.diff"; sha256 = "14q9hk3kg2n2r5b062hvrladp7b4yzysvhq07903w9kpg4zdbyqh"; }} ''; buildInputs = [ ncurses xlibsWrapper bzip2 zlib brotli openssl libev ] </del> <ins> buildInputs = [ ncurses xlibsWrapper bzip2 zlib brotli zstd lzma openssl libidn tre expat libev ] </ins> ++ stdenv.lib.optional stdenv.isLinux gpm ++ stdenv.lib.optional enableGuile guile ++ stdenv.lib.optional enablePython python ++ stdenv.lib.optional enablePerl perl <del> ++ stdenv.lib.optional enableSpidermonkey spidermonkey_38 </del> ; <del> nativeBuildInputs = [ autoconf automake gettext pkgconfig ]; </del> <ins> nativeBuildInputs = [ autoreconfHook gettext pkgconfig ]; </ins> configureFlags = [ "--enable-finger"

"--enable-bittorrent" "--enable-nntp" "--enable-256-colors" <ins> "--enable-true-color" "--with-lzma" </ins> "--with-libev" <ins> "--with-terminfo" </ins> ] ++ stdenv.lib.optional enableGuile        "--with-guile" ++ stdenv.lib.optional enablePython       "--with-python" ++ stdenv.lib.optional enablePerl         "--with-perl" <del> ++ stdenv.lib.optional enableSpidermonkey "--with-spidermonkey=${spidermonkey_38}" </del> ; <del> preConfigure = '' patchShebangs ./autogen.sh ./autogen.sh ''; </del> meta = with stdenv.lib; { description = "Full-featured text-mode web browser (package based on the fork felinks)"; homepage = "https://github.com/rkd77/felinks"; license = licenses.gpl2; platforms = with platforms; linux ++ darwin; <del> maintainers = with maintainers; [ iblech ]; </del> <ins> maintainers = with maintainers; [ iblech gebner ]; </ins> }; }