Bug 213202 - lang/v8: Seriously outdated port
Summary: lang/v8: Seriously outdated port
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Sunpoet Po-Chuan Hsieh
Depends on:
Reported: 2016-10-04 18:39 UTC by german.mb
Modified: 2020-07-09 12:43 UTC (History)
5 users (show)

See Also:
bugzilla: maintainer-feedback? (sunpoet)

patch (50.75 KB, patch)
2020-06-18 18:26 UTC, Mikael Urankar
no flags Details | Diff
patch (66.85 KB, patch)
2020-06-18 18:59 UTC, Mikael Urankar
no flags Details | Diff
patch (70.96 KB, patch)
2020-06-19 11:37 UTC, Mikael Urankar
no flags Details | Diff
patch (60.24 KB, patch)
2020-06-27 19:53 UTC, Mikael Urankar
no flags Details | Diff
patch (68.85 KB, patch)
2020-07-02 15:51 UTC, Mikael Urankar
no flags Details | Diff
v5 (68.90 KB, patch)
2020-07-03 09:34 UTC, Mikael Urankar
no flags Details | Diff
v6 (69.72 KB, patch)
2020-07-03 16:18 UTC, Mikael Urankar
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description german.mb 2016-10-04 18:39:51 UTC
The V8 port hasn't been updated since 2013 it seems.

V8 is a very popular Javascript engine by Google. The latest stable release is v5.1 (April 23, 2016); but we still have lang/v8 v3.18.5 (April 30, 2013), and lang/v8-devel v3.27.7 (May 19, 2014) in FreeBSD ports.

There have been *very* important improvements in between, including API changes and many performance and stability improvements on all platforms.

Maybe lang/v8 should be at v5.1 and lang/v8-devel at v5.5 (or at least v8-devel should be at v5.1)

Thank you very much.
Comment 1 Kurt Jaeger freebsd_committer 2017-08-10 05:32:21 UTC
The problem is the build structure, so someone needs to provide a patch
for the update.
Comment 2 Gleb Popov freebsd_committer 2019-07-31 20:31:58 UTC
I think, maintainers of www/chromium or devel/electron4 can help with that. Current release of v8 uses gn build system, which is also used by chromium and electron.
Comment 3 Jason W. Bacon freebsd_committer 2020-06-09 18:25:03 UTC


The 5.1 port referenced here fails with a gyp error, but maybe it's an easy fix.
Comment 4 Mikael Urankar freebsd_committer 2020-06-14 10:15:40 UTC
I have a wip port: https://github.com/MikaelUrankar/v8-ports
Comment 5 Mikael Urankar freebsd_committer 2020-06-18 18:26:45 UTC
Created attachment 215743 [details]
Comment 6 Mikael Urankar freebsd_committer 2020-06-18 18:59:09 UTC
Created attachment 215746 [details]
Comment 7 Mikael Urankar freebsd_committer 2020-06-19 11:37:48 UTC
Created attachment 215773 [details]
Comment 8 Kurt Jaeger freebsd_committer 2020-06-27 18:24:48 UTC
I have testbuilt in poudriere on cur-amd, cur-i386, 11.4-amd and it was fine.
It somehow failed on 12.1 ?
Comment 9 Kurt Jaeger freebsd_committer 2020-06-27 18:25:37 UTC
Comment 10 Mikael Urankar freebsd_committer 2020-06-27 19:42:17 UTC
(In reply to Kurt Jaeger from comment #9)
It requires llvm10, I've uploaded the wrong patch :(
Comment 11 Mikael Urankar freebsd_committer 2020-06-27 19:53:26 UTC
Created attachment 215995 [details]
Comment 12 Kurt Jaeger freebsd_committer 2020-06-27 20:34:38 UTC
(In reply to Mikael Urankar from comment #11)
Comment 13 Kurt Jaeger freebsd_committer 2020-06-28 06:49:38 UTC
Thanks, built was fine on cur-a, cur-i, 12.1a and 11.4a.
Comment 14 Mikael Urankar freebsd_committer 2020-07-02 15:51:55 UTC
Created attachment 216145 [details]

Only install llvm10 on 12.1 (11.4 and 13 already ship clang10 in base)
Add cppgc include
Comment 15 Kurt Jaeger freebsd_committer 2020-07-03 03:39:17 UTC
testbuilds are fine after I added on pkg-plist line for:

Error: Orphaned: include/cppgc/internal/caged-heap-local-data.h
Comment 16 Mikael Urankar freebsd_committer 2020-07-03 09:34:49 UTC
Created attachment 216165 [details]
Comment 17 Mikael Urankar freebsd_committer 2020-07-03 16:18:51 UTC
Created attachment 216175 [details]

add do-fetch
put distfiles on freefall
Comment 18 Kurt Jaeger freebsd_committer 2020-07-03 18:04:01 UTC
testbuilds are fine, thanks!
Comment 19 Sunpoet Po-Chuan Hsieh freebsd_committer 2020-07-08 19:58:16 UTC
Thanks, Mikael. I'll test it ASAP.

BTW, lang/v8 should track the stable release (8.3) which is now.
Comment 20 Mikael Urankar freebsd_committer 2020-07-09 12:43:59 UTC