Le mardi 29 août 2023 à 07:00 -0600, Landry Breuil a écrit :
> CVSROOT: /cvs
> Module name: ports
> Changes by: [email protected] 2023/08/29 07:00:13
>
> Modified files:
> www/mozilla-firefox: Tag: OPENBSD_7_3 Makefile distinfo
> www/mozilla-firefox/patches: Tag: OPENBSD_7_3
> patch-build_moz_configure_nss_configure
> www/mozilla-firefox/pkg: Tag: OPENBSD_7_3 PLIST
>
> Log message:
> www/mozilla-firefox: MFC update to 117.0.
>
> see https://www.mozilla.org/en-US/firefox/117.0/releasenotes/
> fixes https://www.mozilla.org/en-US/security/advisories/mfsa2023-34/
>
it doesn't compile for me, on aarch64 and amd64
here are the last ~50 lines of the build log
/build/tmp/pobj//firefox-117.0/bin/c++ -std=gnu++17 -o vaapitest.o -c
-flto=thin -I/build/tmp/pobj/firefox-117.0/build-aarch64/dist/stl_wrappers
-I/build/tmp/pobj/firefox-117.0/build-
aarch64/dist/system_wrappers -include
/build/tmp/pobj/firefox-117.0/firefox-117.0/config/gcc_hidden.h
-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -DNDEBUG=1
-DTRIMMED=1 -
I/build/tmp/pobj/firefox-117.0/firefox-117.0/widget/gtk/vaapitest
-I/build/tmp/pobj/firefox-117.0/build-aarch64/widget/gtk/vaapitest
-I/build/tmp/pobj/firefox-117.0/firefox-117.0/media/mozva -
I/build/tmp/pobj/firefox-117.0/build-aarch64/dist/include
-I/usr/local/include/nspr -I/usr/local/include/nss -I/usr/local/include/nspr
-I/build/tmp/pobj/firefox-117.0/build-aarch64/dist/include/nss -
DMOZILLA_CLIENT -include
/build/tmp/pobj/firefox-117.0/build-aarch64/mozilla-config.h
-Wno-backend-plugin -fno-sized-deallocation -fno-aligned-new -O2 -pipe -g
-fno-exceptions -fPIC -fno-rtti -
ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread
-pipe -gdwarf-4 -O2 -pipe -g -fomit-frame-pointer -funwind-tables -Wall
-Wbitfield-enum-conversion -Wdeprecated-this-capture
-Wempty-body -Wformat-type-confusion -Wignored-qualifiers -Wpointer-arith
-Wshadow-field-in-constructor-modified -Wsign-compare
-Wtautological-constant-in-range-compare -Wtype-limits -Wno-
error=tautological-type-limit-compare -Wunreachable-code
-Wunreachable-code-return -Wunused-but-set-parameter -Wno-invalid-offsetof
-Wclass-varargs -Wempty-init-stmt -Wfloat-overflow-conversion -
Wfloat-zero-conversion -Wloop-analysis -Wno-range-loop-analysis -Wc++2a-compat
-Wenum-compare-conditional -Wenum-float-conversion -Wno-error=deprecated
-Wno-error=deprecated-anon-enum-enum-conversion
-Wno-error=deprecated-enum-enum-conversion -Wno-error=deprecated-this-capture
-Wcomma -Wimplicit-fallthrough -Wstring-conversion -Wno-inline-new-delete
-Wno-error=deprecated-declarations -Wno-
error=array-bounds -Wno-error=free-nonheap-object -Wno-error=atomic-alignment
-Wformat -Wformat-security -Wno-psabi -Wthread-safety
-Wno-error=builtin-macro-redefined -Wno-unknown-warning-option -
I/usr/local/include/gtk-3.0/unix-print -I/usr/local/include/gtk-3.0
-I/usr/local/include/at-spi2-atk/2.0 -I/usr/local/include/at-spi-2.0
-I/usr/X11R6/include -I/usr/local/include/dbus-1.0 -
I/usr/local/lib/dbus-1.0/include -I/usr/local/include
-I/usr/X11R6/include/libdrm -I/usr/local/include/pango-1.0
-I/usr/local/include/harfbuzz -I/usr/local/include/fribidi
-I/usr/local/include/atk-1.0
-I/usr/local/include/cairo -I/usr/X11R6/include/freetype2
-I/usr/X11R6/include/pixman-1 -I/usr/local/include/gdk-pixbuf-2.0
-I/usr/local/include/libpng16 -I/usr/local/include/gio-unix-2.0 -pthread -
I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
-I/usr/local/include/pango-1.0 -I/usr/local/include -pthread
-I/usr/local/include/fribidi -I/usr/X11R6/include -I/usr/local/include/cairo
-I/usr/local/include/libpng16 -I/usr/X11R6/include/pixman-1
-I/usr/local/include/harfbuzz -I/usr/X11R6/include/freetype2
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -fno-strict-
aliasing -ffp-contract=off
-fprofile-use=/build/tmp/pobj//firefox-117.0/merged.profdata
-Wno-error=backend-plugin -MD -MP -MF .deps/vaapitest.o.pp
/build/tmp/pobj/firefox-117.0/firefox-
117.0/widget/gtk/vaapitest/vaapitest.cpp
/build/tmp/pobj/firefox-117.0/firefox-117.0/toolkit/xre/glxtest/glxtest.cpp:196:3:
warning: code will never be executed [-Wunreachable-code]
log("GLX_TEST: get_pci_status start\n");
^~~
1 warning generated.
gmake[3]: Leaving directory
'/build/tmp/pobj/firefox-117.0/build-aarch64/toolkit/xre/glxtest'
gmake[3]: Entering directory
'/build/tmp/pobj/firefox-117.0/build-aarch64/security/manager/ssl/builtins'
security/manager/ssl/builtins/force-cargo-library-build
/usr/local/bin/cargo rustc -j4 --release --frozen --manifest-path
/build/tmp/pobj/firefox-117.0/firefox-117.0/security/manager/ssl/builtins/Cargo.toml
-vv --lib --target=aarch64-unknown-openbsd --
features 'mozilla-central-workspace-hack' -- -Clto=thin
warning: a `-j` argument was passed to Cargo but Cargo is also configured with
an external jobserver in its environment, ignoring the `-j` parameter
gmake[3]: Leaving directory
'/build/tmp/pobj/firefox-117.0/build-aarch64/toolkit/components/telemetry/pingsender'
gmake[3]: Entering directory
'/build/tmp/pobj/firefox-117.0/build-aarch64/browser/app'
mkdir -p '../../dist/bin/'
browser/app/firefox
/build/tmp/pobj//firefox-117.0/bin/c++ -std=gnu++17 -o ../../dist/bin/firefox
-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong
-Wno-backend-plugin -fno-sized-deallocation -fno-aligned-
new -O2 -pipe -g -fno-exceptions -fPIC -fno-rtti -ffunction-sections
-fdata-sections -fno-exceptions -fno-math-errno -pthread -pipe -gdwarf-4 -O2
-pipe -g -fomit-frame-pointer -funwind-tables
/build/tmp/pobj/firefox-117.0/build-aarch64/browser/app/firefox.list
-flto=thin -Wl,-plugin-opt=-import-instr-limit=10
-Wl,-plugin-opt=-import-hot-multiplier=30 -pthread -Wl,--threads=2 -Wl,-
z,noexecstack -Wl,-z,text -Wl,-z,relro -Wl,-z,nocopyreloc
-Wl,-Bsymbolic-functions -Wl,--build-id=sha1 -fstack-protector-strong -rdynamic
-Wl,-rpath-link,/build/tmp/pobj/firefox-117.0/build-
aarch64/dist/bin -Wl,-rpath-link,/usr/local/lib -Wl,-rpath-link,/usr/X11R6/lib
-pie
gmake[3]: Leaving directory
'/build/tmp/pobj/firefox-117.0/build-aarch64/widget/gtk/vaapitest'
gmake[3]: Entering directory
'/build/tmp/pobj/firefox-117.0/build-aarch64/config/external/wasm2c_sandbox_compiler'
config/external/wasm2c_sandbox_compiler/wasm2c
/build/tmp/pobj//firefox-117.0/bin/c++ -std=gnu++17 -o
../../../dist/host/bin/wasm2c -O2 -pipe -g -Wno-implicit-fallthrough
host_opcode-code-table.o host_apply-names.o host_binary-reader-ir.o
host_binary-reader-logging.o host_binary-reader-objdump.o
host_binary-reader-opcnt.o host_binary-reader.o host_binary-writer-spec.o
host_binary-writer.o host_binary.o host_binding-hash.o host_c-
writer.o host_color.o host_common.o host_config.o host_decompiler.o
host_emscripten-helpers.o host_error-formatter.o host_expr-visitor.o
host_feature.o host_filenames.o host_generate-names.o host_ir-
util.o host_ir.o host_leb128.o host_lexer-source-line-finder.o
host_lexer-source.o host_literal.o host_opcode.o host_option-parser.o
host_wasm2c_header_bottom.o host_wasm2c_header_top.o
host_wasm2c_simd_source_declarations.o host_wasm2c_source_declarations.o
host_wasm2c_source_includes.o host_resolve-names.o host_sha256.o
host_shared-validator.o host_stream.o host_token.o
host_wasm2c.o host_tracing.o host_type-checker.o host_utf8.o host_validator.o
host_wast-lexer.o host_wast-parser.o host_wat-writer.o
/build/tmp/pobj/firefox-117.0/firefox-117.0/widget/gtk/v4l2test/v4l2test.cpp:12:10:
fatal error: 'linux/videodev2.h' file not found
#include <linux/videodev2.h>
^~~~~~~~~~~~~~~~~~~
1 error generated.
gmake[3]: Leaving directory
'/build/tmp/pobj/firefox-117.0/build-aarch64/config/external/wasm2c_sandbox_compiler'
gmake[3]: *** [/build/tmp/pobj/firefox-117.0/firefox-117.0/config/rules.mk:661:
v4l2test.o] Error 1
gmake[3]: Leaving directory
'/build/tmp/pobj/firefox-117.0/build-aarch64/widget/gtk/v4l2test'
gmake[2]: ***
[/build/tmp/pobj/firefox-117.0/firefox-117.0/config/recurse.mk:72:
widget/gtk/v4l2test/target-objects] Error 2
gmake[2]: *** Waiting for unfinished jobs....
gmake[3]: Entering directory
'/build/tmp/pobj/firefox-117.0/build-aarch64/config'
gmake[3]: Nothing to be done for 'host'.
gmake[3]: Leaving directory '/build/tmp/pobj/firefox-117.0/build-aarch64/config'
BinaryPath.h:262
(/build/tmp/pobj/firefox-117.0/firefox-117.0/xpcom/build/BinaryPath.h:262)(lto.tmp:(InitXPCOMGlue(mozilla::LibLoadingStrategy))):
warning: sprintf() is often misused, please use
snprintf()
nsXPCOMGlue.cpp:313
(/build/tmp/pobj/firefox-117.0/firefox-117.0/xpcom/glue/standalone/nsXPCOMGlue.cpp:313)(lto.tmp:(mozilla::GetBootstrap(char
const*, mozilla::LibLoadingStrategy))): warning:
strcpy() is almost always misused, please use strlcpy()
/build/tmp/pobj/firefox-117.0/firefox-117.0/.mozbuild/srcdirs/firefox-117.0-2f0c24c9c0bb/_virtualenvs/build/bin/python
-m mozbuild.action.check_binary ../../dist/bin/firefox
Fresh unicode-ident v1.0.6
Fresh proc-macro2 v1.0.59
Fresh quote v1.0.28
Fresh glob v0.3.1
Fresh syn v2.0.18
Fresh cfg-if v1.0.0
Fresh minimal-lexical v0.2.1
Fresh libloading v0.7.4
Fresh nom v7.1.3
Fresh bitflags v1.3.2
Fresh bitflags v2.999.999
(/build/tmp/pobj/firefox-117.0/firefox-117.0/build/rust/bitflags)
Fresh cexpr v0.6.0
Fresh clang-sys v1.6.0
Fresh rustc-hash v1.1.0
Fresh peeking_take_while v0.1.2
Fresh shlex v1.1.0
Fresh lazycell v1.3.0
warning: use of deprecated associated function
`core::sync::atomic::AtomicUsize::compare_and_swap`: Use `compare_exchange` or
`compare_exchange_weak` instead
-->
/build/tmp/pobj/firefox-117.0/firefox-117.0/third_party/rust/lazycell/src/lib.rs:269:31
|
269 | if NONE != self.state.compare_and_swap(NONE, LOCK,
Ordering::Acquire) {
| ^^^^^^^^^^^^^^^^
|
= note: `#[warn(deprecated)]` on by default
warning: use of deprecated associated function
`core::sync::atomic::AtomicUsize::compare_and_swap`: Use `compare_exchange` or
`compare_exchange_weak` instead
-->
/build/tmp/pobj/firefox-117.0/firefox-117.0/third_party/rust/lazycell/src/lib.rs:275:31
|
275 | if LOCK != self.state.compare_and_swap(LOCK, SOME,
Ordering::Release) {
| ^^^^^^^^^^^^^^^^
Fresh lazy_static v1.4.0
warning: `lazycell` (lib) generated 2 warnings
Fresh bindgen v0.66.1
Fresh memchr v2.5.0
Fresh serde_derive v1.0.163
Fresh serde v1.0.163
Fresh aho-corasick v0.7.20
Fresh regex-syntax v0.6.28
Fresh libc v0.2.139
Fresh regex v1.7.1
Fresh smallvec v1.10.0
Compiling builtins-static v0.1.0
(/build/tmp/pobj/firefox-117.0/firefox-117.0/security/manager/ssl/builtins)
Fresh pkcs11-bindings v0.1.5
Running `CARGO=/usr/local/bin/cargo CARGO_CRATE_NAME=build_script_build
CARGO_MANIFEST_DIR=/build/tmp/pobj/firefox-117.0/firefox-117.0/security/manager/ssl/builtins
CARGO_PKG_AUTHORS='John
Schanck <[email protected]>' CARGO_PKG_DESCRIPTION='' CARGO_PKG_HOMEPAGE=''
CARGO_PKG_LICENSE=MPL-2.0 CARGO_PKG_LICENSE_FILE=''
CARGO_PKG_NAME=builtins-static CARGO_PKG_REPOSITORY=''
CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.1.0 CARGO_PKG_VERSION_MAJOR=0
CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE=''
CARGO_PRIMARY_PACKAGE=1
LD_LIBRARY_PATH='/build/tmp/pobj/firefox-117.0/build-aarch64/release/deps:/usr/local/lib'
/usr/local/bin/rustc --crate-name build_script_build --edition=2021
security/manager/ssl/builtins/build.rs --
error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat
--crate-type bin --emit=dep-info,link -C opt-level=1 -C embed-bitcode=no --cfg
'feature="mozilla-central-workspace-hack"' -C
metadata=502e3620cc54e5ab -C extra-filename=-502e3620cc54e5ab --out-dir
/build/tmp/pobj/firefox-117.0/build-aarch64/release/build/builtins-static-502e3620cc54e5ab
-C linker=/build/tmp/pobj/firefox-
117.0/firefox-117.0/build/cargo-linker -L
dependency=/build/tmp/pobj/firefox-117.0/build-aarch64/release/deps --extern
bindgen=/build/tmp/pobj/firefox-117.0/build-aarch64/release/deps/libbindgen-
2e77021ba2d39577.rlib --extern
nom=/build/tmp/pobj/firefox-117.0/build-aarch64/release/deps/libnom-a2cdb129d25e49cf.rlib`
Compiling mozilla-central-workspace-hack v0.1.0
(/build/tmp/pobj/firefox-117.0/firefox-117.0/build/workspace-hack)
Running `CARGO=/usr/local/bin/cargo
CARGO_CRATE_NAME=mozilla_central_workspace_hack
CARGO_MANIFEST_DIR=/build/tmp/pobj/firefox-117.0/firefox-117.0/build/workspace-hack
CARGO_PKG_AUTHORS=''
CARGO_PKG_DESCRIPTION='Workspace hack for mozilla-central'
CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MPL-2.0 CARGO_PKG_LICENSE_FILE=''
CARGO_PKG_NAME=mozilla-central-workspace-hack
CARGO_PKG_REPOSITORY='' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.1.0
CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=0
CARGO_PKG_VERSION_PRE=''
LD_LIBRARY_PATH='/build/tmp/pobj/firefox-117.0/build-aarch64/release/deps:/usr/local/lib'
/usr/local/bin/rustc --crate-name mozilla_central_workspace_hack
build/workspace-hack/src/lib.rs --error-
format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat
--crate-type lib --emit=dep-info,metadata,link -C opt-level=2 -C panic=abort -C
linker-plugin-lto --cfg 'feature="builtins-
static"' -C metadata=452f83b4fa17453e -C extra-filename=-452f83b4fa17453e
--out-dir
/build/tmp/pobj/firefox-117.0/build-aarch64/aarch64-unknown-openbsd/release/deps
--target aarch64-unknown-openbsd -C
linker=/build/tmp/pobj/firefox-117.0/firefox-117.0/build/cargo-linker -L
dependency=/build/tmp/pobj/firefox-117.0/build-aarch64/aarch64-unknown-openbsd/release/deps
-L
dependency=/build/tmp/pobj/firefox-117.0/build-aarch64/release/deps --extern
libc=/build/tmp/pobj/firefox-117.0/build-aarch64/aarch64-unknown-openbsd/release/deps/liblibc-c66bb1c612cbd305.rmeta
--
extern
regex=/build/tmp/pobj/firefox-117.0/build-aarch64/aarch64-unknown-openbsd/release/deps/libregex-501ecaf8f7509310.rmeta
--extern serde=/build/tmp/pobj/firefox-117.0/build-aarch64/aarch64-
unknown-openbsd/release/deps/libserde-1ac1308f3ee40c36.rmeta --extern
smallvec=/build/tmp/pobj/firefox-117.0/build-aarch64/aarch64-unknown-openbsd/release/deps/libsmallvec-e5c286c72e0310ef.rmeta
-C
debuginfo=2 --cap-lints warn -Cembed-bitcode=yes -C codegen-units=1`
BUILDTASK {"argv":
["/build/tmp/pobj/firefox-117.0/firefox-117.0/python/mozbuild/mozbuild/action/check_binary.py",
"../../dist/bin/firefox"], "start": 5804557.340923013, "end":
5804557.743157746,
"context": null}
gmake[3]: Leaving directory
'/build/tmp/pobj/firefox-117.0/build-aarch64/browser/app'
Running
`/build/tmp/pobj/firefox-117.0/build-aarch64/release/build/builtins-static-502e3620cc54e5ab/build-script-build`
[builtins-static 0.1.0]
cargo:rerun-if-changed=../../../nss/lib/ckfw/builtins/certdata.txt
[builtins-static 0.1.0]
cargo:rerun-if-changed=../../../nss/lib/ckfw/builtins/nssckbi.h
[builtins-static 0.1.0] Failed to run rustfmt: No such file or directory (os
error 2) (non-fatal, continuing)
Running `CARGO=/usr/local/bin/cargo CARGO_CRATE_NAME=builtins_static
CARGO_MANIFEST_DIR=/build/tmp/pobj/firefox-117.0/firefox-117.0/security/manager/ssl/builtins
CARGO_PKG_AUTHORS='John Schanck
<[email protected]>' CARGO_PKG_DESCRIPTION='' CARGO_PKG_HOMEPAGE=''
CARGO_PKG_LICENSE=MPL-2.0 CARGO_PKG_LICENSE_FILE=''
CARGO_PKG_NAME=builtins-static CARGO_PKG_REPOSITORY=''
CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.1.0 CARGO_PKG_VERSION_MAJOR=0
CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE=''
CARGO_PRIMARY_PACKAGE=1
LD_LIBRARY_PATH='/build/tmp/pobj/firefox-117.0/build-aarch64/release/deps:/usr/local/lib'
OUT_DIR=/build/tmp/pobj/firefox-117.0/build-aarch64/aarch64-unknown-openbsd/release/build/builtins-static-
020cb2b16edc21f2/out /usr/local/bin/rustc --crate-name builtins_static
--edition=2021 security/manager/ssl/builtins/src/lib.rs --error-format=json
--json=diagnostic-rendered-ansi,artifacts,future-
incompat --crate-type staticlib --emit=dep-info,link -C opt-level=2 -C
panic=abort -C lto=thin -Clto=thin --cfg
'feature="mozilla-central-workspace-hack"' -C metadata=6c0ea28120e054e2 -C
extra-
filename=-6c0ea28120e054e2 --out-dir
/build/tmp/pobj/firefox-117.0/build-aarch64/aarch64-unknown-openbsd/release/deps
--target aarch64-unknown-openbsd -C
linker=/build/tmp/pobj/firefox-117.0/firefox-
117.0/build/cargo-linker -L
dependency=/build/tmp/pobj/firefox-117.0/build-aarch64/aarch64-unknown-openbsd/release/deps
-L dependency=/build/tmp/pobj/firefox-117.0/build-aarch64/release/deps --extern
mozilla_central_workspace_hack=/build/tmp/pobj/firefox-117.0/build-aarch64/aarch64-unknown-openbsd/release/deps/libmozilla_central_workspace_hack-452f83b4fa17453e.rlib
--extern
pkcs11_bindings=/build/tmp/pobj/firefox-117.0/build-aarch64/aarch64-unknown-openbsd/release/deps/libpkcs11_bindings-d7c8f240af8fa5d5.rlib
--extern smallvec=/build/tmp/pobj/firefox-117.0/build-
aarch64/aarch64-unknown-openbsd/release/deps/libsmallvec-e5c286c72e0310ef.rlib
-C debuginfo=2 --cap-lints warn -Cembed-bitcode=yes -C codegen-units=1`
Finished release [optimized] target(s) in 57.65s
:
gmake[3]: Leaving directory
'/build/tmp/pobj/firefox-117.0/build-aarch64/security/manager/ssl/builtins'
gmake[2]: Leaving directory '/build/tmp/pobj/firefox-117.0/build-aarch64'
gmake[1]: ***
[/build/tmp/pobj/firefox-117.0/firefox-117.0/config/recurse.mk:34: compile]
Error 2
gmake[1]: Leaving directory '/build/tmp/pobj/firefox-117.0/build-aarch64'
gmake: *** [/build/tmp/pobj/firefox-117.0/firefox-117.0/config/rules.mk:361:
all] Error 2
*** Error 2 in www/mozilla-firefox
(/home/ports//infrastructure/mk/bsd.port.mk:2960
'/build/tmp/pobj//firefox-117.0/build-aarch64/.build_done')
*** Error 2 in www/mozilla-firefox
(/home/ports//infrastructure/mk/bsd.port.mk:2132
'/home/packages/aarch64/all/firefox-117.0.tgz': @cd /hom...)
*** Error 2 in www/mozilla-firefox
(/home/ports//infrastructure/mk/bsd.port.mk:2621 '_internal-package': @case
X${_DEPENDS_CACHE} in X) _DE...)
*** Error 2 in www/mozilla-firefox
(/home/ports//infrastructure/mk/bsd.port.mk:2600 'package':
@lock=firefox-117.0; export _LOCKS_HELD=" fi...)