Commit graph

587 commits

Author SHA1 Message Date
Jan Beich
a594b0fc91 www/firefox: move llvm* dep into Mk/bsd.gecko.mk
MFH:		2017Q4
2017-11-04 11:33:37 +00:00
Jan Beich
98002fdeba gecko: unbreak build with GCC after r453437
MFH:		2017Q4
2017-11-04 10:10:57 +00:00
Jan Beich
9474ce236d gecko: speed up HTML5 video scaling on i386
MFH:		2017Q4
2017-11-03 23:58:45 +00:00
Jan Beich
abc447c525 gecko: better detect FLAC after r453085
MFH:		2017Q4
2017-10-30 21:47:20 +00:00
Jan Beich
81dcc5c369 gecko: speed up VP9 decoding on i386
Disable bundled FFmpeg decoders for VP* and FLAC on i386 as those don't
support SIMD optimizations due to build issues upstream. More recent
versions of those are already provided by multimedia/ffmpeg, anyway.

MFH:		2017Q4
2017-10-28 23:47:31 +00:00
Jan Beich
624f4a1028 gecko: double-click on tab bar crashfix for some WMs
Obtained from:	upstream (Firefox 58)
PR:		222693
Submitted by:	tobik
MFH:		2017Q4
2017-10-28 15:42:21 +00:00
Jan Beich
5efff1a1e2 www/firefox: unbreak JS debugger
console.error:
  Message: TypeError: KEYS[os] is undefined
  Stack:
    getKeyForOS@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/client/debugger/new/debugger.js:29496:4
getKey@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/client/debugger/new/debugger.js:29492:11
formatKey@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/client/debugger/new/debugger.js:29500:14
renderPauseButton@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/client/debugger/new/debugger.js:29575:94
render@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/client/debugger/new/debugger.js:29603:58
[...]

PR:		223257
Reported by:	rodrigo
MFH:		2017Q4
2017-10-26 07:48:15 +00:00
Jan Beich
2e3f730fb0 www/firefox: better support ffmpeg 3.4 for media.ffvpx.enabled=false
Obtained from:	upstream (Firefox 58)
2017-10-26 00:59:24 +00:00
Jan Beich
00a5cedc0a www/firefox: backport privacy.resistFingerprinting fix for User-Agent
If users are going to "pkg lock" due to addons better pretend to be an
ESR on the off chance JS malware is stupid enough to only check
User-Agent to filter out non-vulnerable Firefox versions.

Obtained from:	upstream (Firefox 57)
MFH:		2017Q4
2017-10-25 09:53:41 +00:00
Jan Beich
93980f424c www/firefox: update to 56.0.2
Changes:	https://www.mozilla.org/firefox/56.0.2/releasenotes/
MFH:		2017Q4
2017-10-25 06:15:49 +00:00
Jan Beich
03b1a75e35 lang/rust: unbreak FFI for returning struct on i386
As this fixes Stylo on i386, remove the workaround in www/firefox.

PR:		223047
Suggested by:	Sebastien Marie <semarie@openbsd.org>
Approved by:	rust (dumbbell)
MFH:		2017Q4 (required by Firefox 57 scheduled on 2017-11-14)
2017-10-23 22:58:48 +00:00
Jan Beich
84e727457f multimedia/ffmpeg: update to 3.4
Notable changes:
- i386/amd64 now depend on NASM per https://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff/4f9297ac3b39
- NETCDF is now MYSOFA but the dependency doesn't exist in ports yet
- SCHROEDINGER is gone per https://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff/220b24c7c9
- DRM, LIBRSVG2, LIBXML2 are new options
- ABI isn't completely compatible: some structs have changed

Minor cleanup:
- Don't pass --disable-{in,out}dev when it's already blocked by disabled dependency
- Drop redundant "Enable" from option descriptions
- Switch CDIO_DESC to use Mk/bsd.options.desc.mk

Changes:	https://git.ffmpeg.org/gitweb/ffmpeg.git/blob/n3.4:/Changelog
ABI:		https://abi-laboratory.pro/tracker/timeline/ffmpeg/
PR:		223057
Exp-run by:	antoine
2017-10-21 06:50:49 +00:00
Jan Beich
922e2f127c www/firefox: unbreak with Rust >= 1.21
error: doc comment not used by rustdoc
   --> servo/components/style/values/specified/image.rs:689:17
    |
689 |                 /// `to` keyword is mandatory in modern syntax.
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
note: lint level defined here
   --> servo/components/style/lib.rs:26:9
    |
26  | #![deny(warnings)]
    |         ^^^^^^^^
    = note: #[deny(unused_doc_comment)] implied by #[deny(warnings)]

error: doc comment not used by rustdoc
   --> servo/components/style/values/specified/image.rs:695:17
    |
695 |                 /// There is no `to` keyword in webkit prefixed syntax. If it's consumed,
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: doc comment not used by rustdoc
    --> obj-x86_64-unknown-freebsd10.3/toolkit/library/x86_64-unknown-freebsd/release/build/style-65761c79245bf99f/out/gecko_properties.rs:9131:9
     |
9131 |         /// XXXManishearth this should also handle text zoom
     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0106]: missing lifetime specifier
   --> obj-x86_64-unknown-freebsd10.3/toolkit/library/x86_64-unknown-freebsd/release/build/style-65761c79245bf99f/out/gecko/bindings.rs:569:9
    |
569 |      -> RawGeckoNodeBorrowedOrNull;
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected lifetime parameter
    |
    = help: this function's return type contains a borrowed value with an elided lifetime, but the lifetime cannot be derived from the arguments
    = help: consider giving it an explicit bounded or 'static lifetime

error[E0106]: missing lifetime specifier
   --> obj-x86_64-unknown-freebsd10.3/toolkit/library/x86_64-unknown-freebsd/release/build/style-65761c79245bf99f/out/gecko/bindings.rs:841:9
    |
841 |      -> RawServoAnimationValueBorrowedOrNull;
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected lifetime parameter
    |
    = help: this function's return type contains a borrowed value with an elided lifetime, but the lifetime cannot be derived from the arguments
    = help: consider giving it an explicit bounded or 'static lifetime

error: aborting due to 5 previous errors
error: Could not compile `style`.

Obtained from:	upstream (Firefox 57)
Ping:		@dumbbell @riggs- (unblocks lang/rust update)
2017-10-20 05:27:08 +00:00
Jan Beich
b5c8d84a0c www/firefox: trim package by ~50 Mb
DTRACE=on and PROFILE=on builds only want non-debug symbols.

MFH:		2017Q4
2017-10-19 03:39:42 +00:00
Jan Beich
684f31685c www/firefox: update to 56.0.1 (nop)
Changes:	https://hg.mozilla.org/releases/mozilla-release/rev/3e4ce49f3214
MFH:		2017Q4 (just in case)
2017-10-04 09:19:57 +00:00
Jan Beich
f658a12c7f gecko: enable PROFILE by default (like official builds)
This stops passing -fomit-frame-pointer which is detrimental for stack
unwinding as used by dtrace, pmcstat or gdb/lldb.

MFH:		2017Q4
2017-10-02 05:52:06 +00:00
Jan Beich
5f81b8df55 gecko: reword pkg-message slightly 2017-09-27 04:22:13 +00:00
Jan Beich
c850240ad1 gecko: oops, drop bogus comma 2017-09-27 04:15:11 +00:00
Jan Beich
d77b258ef8 www/firefox: update to 56.0 (rust required)
This is slightly early but due to recent PORTREVISION bump there's no
point doing QA for 55.0.* anymore.

Changes:	https://www.mozilla.org/firefox/56.0/releasenotes/
PR:		221335
Security:	1098a15b-b0f6-42b7-b5c7-8a8646e8be07
MFH:		2017Q3 not possible: requires r447450 and r450556
2017-09-27 04:12:34 +00:00
Jan Beich
cfc5748080 gecko: add JACK option (enabled by default)
PR:		221464
2017-09-27 04:12:05 +00:00
Jan Beich
6a4926cea1 www/firefox: oops, drop redundant check 2017-09-25 17:22:59 +00:00
Jan Beich
a78910ced1 www/firefox: unbreak on powerpc64, sparc64
In file included from toolkit/crashreporter/google-breakpad/src/third_party/curl/curl.h:44:0,
                 from toolkit/components/telemetry/pingsender/pingsender_unix_common.cpp:13,
                 from objdir/toolkit/components/telemetry/pingsender/Unified_cpp_pingsender0.cpp:11:
toolkit/crashreporter/google-breakpad/src/third_party/curl/curlrules.h:144:41: error: size of array '__curl_rule_01__' is negative
     [CurlchkszEQ(long, CURL_SIZEOF_LONG)];
                                         ^

Reported by:	jhibbits
2017-09-25 17:19:37 +00:00
Jan Beich
a382198617 devel/icu: update to 59.1
- Temporarily keep C++98 working in consumers for Clang's default -std=

Changes:	http://site.icu-project.org/download/59
PR:		218788
Submitted by:	takefu@airport.fm, dcarmich@dcarmichael.net (early version)
Exp-run by:	antoine
2017-09-25 00:02:36 +00:00
Jean-Sébastien Pédron
0cc13b3d48 lang/rust: Install Cargo + use bundled crates
This port now provides Cargo. This is the recommended now because Cargo
won't be provided separately in the future.

To build Cargo, we set `extended = true` in `config.toml`. As a side
effect, this flag also installs Rust source code. The port has a new
`SOURCES` option (disabled by default) to keep those sources.

As a consequence of this, `devel/cargo` is removed. Several ports
and Makefiles in Mk were updated to depend on `lang/rust` instead of
`devel/cargo`.

The other big change in this patch is the use of the bundled crates,
instead of relying on Cargo's registry (which was part of the distfiles,
in order to allow offline builds). So now, we don't need to prepare the
registry when updating this port.

This has several other benefits:
    * It fixes the build with sudo(8).
    * It fixes the use of the ino-64 patch (it was not applied to the
      registry, thus not used).

Compilation errors were fixed in the ino-64 patch.

Various `.cargo-checksum.json` files are updated after the sources are
patched (FBSD10_FIX, ino-64, and so on). This fixes builds which were
failing with errors such as:

    error: the listed checksum of `.../rustc-1.19.0-src/src/vendor/lzma-sys/xz-5.2.3/build-aux/config.rpath` has changed:
    expected: c8b4c017079da9dfb3086a0583e60ffe736184d89005dc5973f0bb0fd17c04bb
    actual:   561b00eb30ecaef2c9da17bc195e7d2a7ea63facea38ea9849fbb0ed340bebba

PR:		221088
Reported by:	joneum@, nwhitehorn@, romain@,
		Ekaterina Vaartis <vaartis@cock.li>,
		david@catwhisker.org,
		fullermd@over-yonder.net,
		rum1cro@yandex.ru,
		w.schwarzenfeld@utanet.at
Differential Revision:	https://reviews.freebsd.org/D11783
2017-09-15 18:01:17 +00:00
Jan Beich
b3e9e2c72a www/firefox: unbreak on powerpc64, sparc64
In file included from objdir/dist/include/mozilla/dom/EventTarget.h:12:0,
                 from dom/base/nsPIDOMWindow.h:15,
                 from objdir/dist/include/mozilla/DOMEventTargetHelper.h:13,
                 from dom/presentation/PresentationAvailability.h:10,
                 from dom/presentation/AvailabilityCollection.cpp:10,
                 from objdir/dom/presentation/Unified_cpp_dom_presentation0.cpp:2:
dom/base/nsWrapperCache.h:48:1: error: static assertion failed: Only support 32-bit and 64-bit
 static_assert(sizeof(void*) == 4, "Only support 32-bit and 64-bit");
 ^

Reported by:	Martin Husemann (via upstream bug)
2017-09-12 05:48:43 +00:00
Jan Beich
faf403b675 www/firefox: update to 55.0.3
Changes:	https://www.mozilla.org/firefox/55.0.3/releasenotes/
MFH:		2017Q3
2017-08-24 22:26:30 +00:00
Jan Beich
a7b616bc63 gecko: stop calling home to check for updates after r436423
Upstream seems to define "default" as Nightly (custom build), not safe
to update automatically. Once we switched to proper channels updater
kicked in, except Mozilla never built binaries for FreeBSD. Not to
mention, vendor updates conflict with system package manager.

PR:		221541
MFH:		2017Q3
2017-08-18 21:39:46 +00:00
Jan Beich
772b35519e www/firefox: update to 55.0.2
Changes:	https://www.mozilla.org/firefox/55.0.2/releasenotes/
MFH:		2017Q3
2017-08-16 09:23:01 +00:00
Jan Beich
66a6a8db0e www/firefox: document a few known issues
MFH:		2017Q3
2017-08-13 14:24:35 +00:00
Jan Beich
b589d80c30 www/firefox: unbreak on big-endians (e.g. powerpc*, sparc64)
ERROR: --disable-skia is not supported anymore

In file included from objdir/gfx/2d/Unified_cpp_gfx_2d1.cpp:101:
gfx/2d/ScaledFontBase.cpp:217:39: error: use of undeclared identifier 'PathSkia'
    RefPtr<Path> path = MakeAndAddRef<PathSkia>(skPath, FillRule::FILL_WINDING);
                                      ^
2017-08-12 03:49:56 +00:00
Jan Beich
a084e09df8 www/firefox: unbreak with JIT (e.g. on powerpc*, sparc64)
In file included from js/src/builtin/RegExp.cpp:22:
In file included from js/src/jsobjinlines.h:33:
In file included from js/src/vm/TypeInference-inl.h:19:
In file included from js/src/jit/BaselineJIT.h:18:
In file included from js/src/jit/MacroAssembler.h:28:
js/src/jit/none/MacroAssembler-none.h:51:27: error: chosen constructor is
      explicit in copy-initialization
static constexpr Register WasmIonExitTlsReg = { Registers::invalid_reg };
                          ^                   ~~~~~~~~~~~~~~~~~~~~~~~~~~
js/src/jit/Registers.h:39:24: note: explicit constructor declared here
    explicit constexpr Register(Encoding e)
                       ^
1 error generated.
2017-08-10 18:55:47 +00:00
Jan Beich
4acc15f6fc www/firefox: update to 55.0.1
Changes:	https://www.mozilla.org/firefox/55.0.1/releasenotes/
MFH:		2017Q3
2017-08-10 00:38:03 +00:00
Jan Beich
ebe2b6e6c0 www/firefox: update to 55.0
This is the last release to support RUST=off. Later versions
remove non-Rust codepaths e.g., via encoding_rs.

Changes:	https://www.mozilla.org/firefox/55.0/releasenotes/
PR:		216541 219963
Security:	555b244e-6b20-4546-851f-d8eb7d6c1ffa
MFH:		2017Q3
2017-08-07 18:22:51 +00:00
Jan Beich
a85b06a12b www/firefox: unbreak aarch64 after r444090
error[E0412]: cannot find type `c_long` in this scope
   --> third_party/rust/libc/src/lib.rs:192:45
    |
192 |     pub fn fseek(stream: *mut FILE, offset: c_long, whence: c_int) -> c_int;
    |                                             ^^^^^^ not found in this scope
    |
    = help: possible candidate is found in another module, you can import it into scope:
              `use core::os::raw::c_long;`

Reported by:	pkg-fallout
2017-06-29 15:43:50 +00:00
Jan Beich
cf37b48797 www/firefox: update to 54.0.1
Changes:	https://www.mozilla.org/firefox/54.0.1/releasenotes/
Changes:	https://hg.mozilla.org/releases/mozilla-release/shortlog/
MFH:		2017Q2
2017-06-28 22:31:12 +00:00
Jan Beich
2d5bde07c7 www/firefox: enable RUST on aarch64 after r443777 and r443780
PR:		216143
2017-06-22 01:19:16 +00:00
Jan Beich
e6b4626363 www/firefox: fix some JIT warnings on aarch64
MFH:		2017Q2
2017-06-14 12:55:29 +00:00
Jan Beich
6637365a51 www/firefox: update to 54.0
Changes:	https://www.mozilla.org/firefox/54.0/releasenotes/
PR:		218912
Security:	6cec1b0a-da15-467d-8691-1dea392d4c8d
MFH:		2017Q2 (requires r439925)
2017-06-13 19:55:46 +00:00
Matthew Rezny
b760897dde Revision bump of all ports with USE_GL after consolidation of mesa-libs
Approved by:	swills (mentor)
Differential Revision:	https://reviews.freebsd.org/D10845
2017-05-23 05:03:14 +00:00
Jan Beich
3eaafe7452 www/firefox: update to 53.0.3
Changes:	https://www.mozilla.org/firefox/53.0.3/releasenotes/
Changes:	https://hg.mozilla.org/releases/mozilla-release/shortlog/FIREFOX_53_0_3_RELEASE
MFH:		2017Q2
2017-05-20 02:43:11 +00:00
Jan Beich
82bbf7113b www/firefox: update to 53.0.2
Changes:	https://www.mozilla.org/firefox/53.0.2/releasenotes/
Changes:	https://hg.mozilla.org/releases/mozilla-release/shortlog/FIREFOX_53_0_2_RELEASE
MFH:		2017Q2 (maybe security, see commits for restricted bugs)
2017-05-06 02:30:30 +00:00
Jan Beich
19f82f50c0 www/firefox: use X29 as frame pointer like aarch64 kernel does 2017-05-02 23:53:47 +00:00
Jan Beich
a7fec0e97a gecko: unbreak RUST=on with cargo >= 0.18
error[E0463]: can't find crate for `cheddar`
 --> media/libstagefright/binding/mp4parse_capi/build.rs:1:1
  |
1 | extern crate cheddar;
  | ^^^^^^^^^^^^^^^^^^^^^ can't find crate

error: aborting due to previous error

fatal runtime error: failed to initiate panic, error 5
error: Could not compile `mp4parse_capi`.

Caused by:
  process didn't exit successfully: `/usr/local/bin/rustc --crate-name build_script_build media/libstagefright/binding/mp4parse_capi/build.rs --crate-type bin --emit=dep-info,link -C opt-level=2 -C debuginfo=2 -C metadata=13cd8b0152b68b4e -C extra-filename=-13cd8b0152b68b4e--out-dir obj-x86_64-unknown-freebsd12.0/toolkit/library/rust/./release/build/mp4parse_capi-13cd8b0152b68b4e -L dependency=obj-x86_64-unknown-freebsd12.0/toolkit/library/rust/./release/deps` (exit code: 1)
Build failed, waiting for other jobs to finish...
error: build failed
2017-05-02 03:43:15 +00:00
Jan Beich
90e0005427 www/firefox: try to unbreak aarch64 after r438264
In file included from /wrkdirs/usr/ports/www/firefox/work/firefox-53.0/obj-aarch64-unknown-freebsd11.0/js/src/Unified_cpp_js_src12.cpp:29:
/wrkdirs/usr/ports/www/firefox/work/firefox-53.0/js/src/jit/Ion.cpp:3528:30: error: no member named 'cacheFlush' in 'js::jit::ExecutableAllocator'
        ExecutableAllocator::cacheFlush((void*)start_, size_t(stop_ - start_));
        ~~~~~~~~~~~~~~~~~~~~~^

Reported by:	pkg-fallout
2017-04-27 14:32:09 +00:00
Thomas Zander
b50a4186ce Chase ffmpeg 3.3 update (ABI changes)
PR:		218658
Submitted by:	riggs
2017-04-25 08:20:30 +00:00
Jan Beich
b8bd1babad www/firefox: work around bogus semaphores limit
NotImplementedError: system provides too few semaphores (30 available, 256 necessary)

PR:		218581
Reported by:	pkg-fallout (releases cannot be fixed retroactively)
Requested by:	antoine
MFH:		2017Q2
2017-04-18 19:38:18 +00:00
Jan Beich
2573d1060b www/firefox: update to 53.0 (rc6)
Changes:	https://hg.mozilla.org/releases/mozilla-release/shortlog
MFH:		2017Q2
2017-04-14 15:19:30 +00:00
Jan Beich
302df39b4b www/firefox: update to 53.0 (rc5)
Changes:	https://hg.mozilla.org/releases/mozilla-release/shortlog
MFH:		2017Q2
2017-04-13 05:50:13 +00:00
Jan Beich
af01abc322 www/firefox: drop broken GTK2 option following upstream
https://www.mail-archive.com/dev-platform@lists.mozilla.org/msg20523.html

PR:		218569
Reported by:	Walter Schwarzenfeld, Jakub Lach <jakub_lach@mailplus.pl>
Submitted by:	rezny (based on)
MFH:		2017Q2 (r436907 followup)
2017-04-11 21:39:47 +00:00
Jan Beich
99fa13796b www/firefox: chase build-dep versions in 53.0 2017-04-11 18:49:00 +00:00