From nobody Tue Feb 01 01:01:03 2022 X-Original-To: gecko@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id A7D3B198979C for ; Tue, 1 Feb 2022 01:01:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Jnmp72qFzz4gsh for ; Tue, 1 Feb 2022 01:01:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 414B92644E for ; Tue, 1 Feb 2022 01:01:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 211113h3056277 for ; Tue, 1 Feb 2022 01:01:03 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 211113k9056276 for gecko@FreeBSD.org; Tue, 1 Feb 2022 01:01:03 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: gecko@FreeBSD.org Subject: [Bug 261642] www/firefox: update to 97 (phase: Beta, ETA: 2022-02-08) Date: Tue, 01 Feb 2022 01:01:03 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: evgeniy@khramtsov.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gecko@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: cc attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Gecko Rendering Engine issues List-Archive: https://lists.freebsd.org/archives/freebsd-gecko List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-gecko@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643677263; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+eCZn9B8wIfUaL6b6TSoCn79f07M/IKYPRWNu8wqhAw=; b=DYws8OBKqKKCeR37KVyCb1Fy/CEnroSNNpMShlp4LxqqeIZb7r64C8eD2A8M80CG9AI5ay FCPa4mflEiPozvCgd/TEpeLb4wtVfP38ONUM5GVJlXnJG8TCROeDDyd+2J1s7F23r+56tr X+/cpP6AsABdcCX6Eq9piMDXwlYhZ/9foqMQfVjdxUdgIylzlcUSfxKZ0QzkPBVk85PuvT keYTgFw0oinOn4Bl5a16d9Mvt8/lA8dOoPChIWZMqbSXne/bm9gUo6dxP49mp560plH/IK VgFECnYYfOmH43BgPo7AnPdyX9KRFnOwsIXROJsQ0itcDgo+xL6EQ/zIAZHCmA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1643677263; a=rsa-sha256; cv=none; b=EOU4VwPoyHh/SfOZomsu546qkzeRe5ofscAlK81BCbfnEAqLQnX0dAuTn4JZ7S7NR/EnhA Gcqsx8gTj3oWy2s7bsBCorh8d7du3cOioUQpIb0lxDN1sBO4ljO/FR0CkayO3oNM74LEb4 RiFUzJqJb9Jh6aA/AAUBuTQ1u5/62quVs0ACZ1AsI8Huhhz4wPmDzN83p76qTGt3PncqoF FuGlatQexDYzKibfKJQ3iXBrnt3bezoil7B343eVti7dJ/Bs5qVfy2nTT+CBalxlv1nW4J rYpznhjMkyKW5CYSJc+9vv02oM3ZPJR4c6dItTftq1v5fCuESQJnJKCobq5kJA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261642 Evgeniy Khramtsov changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |evgeniy@khramtsov.org --- Comment #1 from Evgeniy Khramtsov --- Created attachment 231479 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D231479&action= =3Dedit depot.patch # v1.0.patch and depot.patch are in /usr/ports # ppc64 related parts are commented out because chroot doesn't work cd /usr/ports && git am v1.0.patch rm /usr/ports/www/firefox/files/patch-libwebrtc-generated cd www/firefox export WRKDIR=3D/tmp/fox/src make patch (cd "$WRKDIR/firefox-97.0" ; git init && git add . && git commit -m init) cp ../../depot.patch $WRKDIR/firefox-97.0 pkg install qemu-user-static service qemu_user_static onestart poudriere jail -c -j clean-aarch64 -v 13.0-RELEASE -a arm64.aarch64 -X #poudriere jail -c -j clean-powerpc64 -v 13.0-STABLE -a powerpc.powerpc64 -X poudriere jail -c -j clean -v 13.0-RELEASE export ARMJAIL=3D/usr/local/poudriere/jails/clean-aarch64 #export PPCJAIL=3D/usr/local/poudriere/jails/clean-powerpc64 export CLNJAIL=3D/usr/local/poudriere/jails/clean mkdir $ARMJAIL/tmp/fox #mkdir $PPCJAIL/tmp/fox mkdir $CLNJAIL/tmp/fox mkdir $ARMJAIL/usr/ports #mkdir $PPCJAIL/usr/ports mkdir $CLNJAIL/usr/ports mount_nullfs /tmp/fox $CLNJAIL/tmp/fox mount_nullfs /usr/ports $CLNJAIL/usr/ports cp /etc/resolv.conf $ARMJAIL/etc/resolv.conf #cp /etc/resolv.conf $PPCJAIL/etc/resolv.conf cp /etc/resolv.conf $CLNJAIL/etc/resolv.conf mount -t devfs devfs $ARMJAIL/dev #mount -t devfs devfs $PPCJAIL/dev mount -t devfs devfs $CLNJAIL/dev mkdir $CLNJAIL/arm mkdir $CLNJAIL/ppc mount_nullfs $ARMJAIL $CLNJAIL/arm mount_nullfs $PPCJAIL $CLNJAIL/ppc service qemu_user_static onestop chroot $CLNJAIL export TERM=3Dxterm PS1=3D"(clean) # " # Check that chroot works (network, ports and gecko source) file /bin/echo /bin/echo test host example.com ls -alh /usr/ports ls -alh /tmp/fox pkg install -y qemu-user-static service qemu_user_static onestart mkdir -p /arm/usr/local/bin #mkdir -p /ppc/usr/local/bin cp /usr/local/bin/qemu-aarch64-static /arm/usr/local/bin #cp /usr/local/bin/qemu-ppc64-static /ppc/usr/local/bin mount_nullfs /tmp/fox /arm/tmp/fox #mount_nullfs /tmp/fox /ppc/tmp/fox mount_nullfs /usr/ports /arm/usr/ports #mount_nullfs /usr/ports /ppc/usr/ports # Check that qemu-user-static aarch64 chroot is OK chroot /arm file /bin/echo /bin/echo test host example.com ls -alh /usr/ports ls -alh /tmp/fox Ctrl^D # ppc64 related parts are commented out because of this, no further steps f= or ppc64 #Assertion failed: (!have_mmap_lock()), function cpu_exec, file /wrkdirs/usr/ports/emulators/qemu-user-static/work/qemu-bsd-user-6ffee39fe2= e4/accel/tcg/cpu-exec.c, line 697. #Abort trap #chroot /ppc # (this is a "goto" mark for steps from aarch64 chroot down below) PREPARE: export I_DONT_CARE_IF_MY_BUILDS_TARGET_THE_WRONG_RELEASE=3Dyes pkg install -y pkg # pkg is interactive, asks first to fetch packages, then to install # make install-missing-packages will install everything needed and unneeded, # saves a ton of time installing everything "./mach configure" asks for (cd /usr/ports/www/firefox ; make install-missing-packages) # Save the password from pw, one will need it when installing i686 Rust libs # if in qemu chroot, one may not need doas, but it's a good idea to save it anyway pkg install -y bash doas pw user add fox -d /tmp/fox/home -w random -s /usr/local/bin/bash mkdir /tmp/fox/home echo 'permit fox as root' > /usr/local/etc/doas.conf chown -R fox /tmp/fox chown -R fox /usr/ports/www/firefox ln -s /usr/local/bin/python3.8 /usr/local/bin/python3 ln -s /usr/local/bin/python3.8 /usr/local/bin/python ln -s /usr/local/bin/pip-3.8 /usr/local/bin/pip3 ln -s /usr/local/bin/bash /bin/bash su -l fox cd ../src/firefox-97.0/ # if in qemu chroot, don't git clone https://gn.googlesource.com/gn (cd gn && git checkout 8fe02009) # Use ninja from ports because the ports one is fine and building in qemu is slow export NINJA=3D/usr/local/bin/ninja (cd gn ; python build/gen.py && $NINJA -C out) export GN=3D`pwd`/gn/out/gn # if in qemu chroot, don't git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git (cd depot_tools && git checkout e7d1862b155a) (cd depot_tools && git apply ../depot.patch) export DEPOT_TOOLS=3D`pwd`/depot_tools export CC=3D/usr/local/bin/clang13 CPP=3D/usr/local/bin/clang-cpp13 CXX=3D/usr/local/bin/clang++13 # (will prompt you then download and build tons of stuff in /tmp/fox/home (Press Enter) # glean-sdk will fail in qemu but it apparently does not affect generate.sh: # "Could not install glean-sdk, so telemetry will not be collected. Continuing." ./mach configure --prefix=3D"/usr/local" --with-libclang-path=3D"/usr/local/llvm13/lib" --with-wasi-sysroot=3D"/usr/local/share/wasi-sysroot" # if in qemu chroot, don't fetch 'https://pkg.FreeBSD.org/FreeBSD:13:i386/quarterly/All/rust-1.57.0.pk= g' -o rust-i386.pkg mkdir ../rustlib tar -C ../rustlib -xf rust-i386.pkg --include=3D'*-unknown-freebsd*' --strip-components 5 doas cp -a ../rustlib /usr/local/lib rm -rf ../rustlib # if in qemu chroot, uncomment the arm64 CONFIG line, and comment out PC CO= NFIG lines # in dom/media/webrtc/third_party_build/gn-configs/generate-gn-build-files.= sh # "generate-gn-build-files.sh" in qemu is slow, be patient # If you get the following output, consider success: # "Done generating gn build files. You should now be able to build with ./m= ach build" DEBUG_GEN=3D1 ./dom/media/webrtc/third_party_build/gn-configs/generate-gn-build-files.sh git add "./*moz.build*" "dom/media/webrtc/third_party_build/gn-configs/*.js= on" # Do below if in (clean) non-qemu environment # If you don't delete the remaining PC binaries in home, # then qemu would hang git commit -m 'PC' rm -rf /tmp/fox/home/.cache /tmp/fox/home/.cargo /tmp/fox/home/.local \ /tmp/fox/home/.mozbuild gn/out # Do below if in qemu # Work is done after outputting to "patch-webrtc-generated" git commit -m 'ARM' git diff --no-prefix HEAD~2 HEAD -- ":(exclude)*/$1/*.json" > /usr/ports/www/firefox/files/patch-webrtc-generated # If in (clean) non-qemu environment # # Exit to (clean), mount /dev for qemu chroot # (Nested nullfs in chroot doesn't work the way it seems to, so # instead of starting from scratch and redoing the whole how-to, # just mount devfs to /arm/dev) Ctrl^D mount -t devfs devfs /arm/dev chroot /arm export PS1=3D"(aarch64) # " # Search for "PREPARE" in this how-to and repeat the same from there # Good luck and be patient goto PREPARE --- Here is a rustc wrapper script for cross-compiling as noted in bug 261410. Rust part will pass but then the clang cross-compile test would fail: /tmp/hello-25a9fd.o is incompatible with /usr/lib/crt1.o ENOTIME to work on cross-compile. mv /usr/local/bin/rustc /usr/local/bin/rustc-real cat >/usr/local/bin/rustc <<'EOF' #!/usr/local/bin/bash cmd=3D() VAR=3D() for i in "$@"; do cmd+=3D("$i") case $i in --target=3D*) TARGET=3D"${i#*=3D}" if [ "$TARGET" =3D "aarch64-unknown-freebsd" ]; then VAR+=3D("-C link-arg=3D--sysroot -C link-arg=3D/tmp/130-aarch64") fi shift ;; *) ;; esac done env RUSTFLAGS=3D"$VAR" /usr/local/bin/rustc-real "${cmd[@]}" EOF chmod +x /usr/local/bin/rustc --=20 You are receiving this mail because: You are the assignee for the bug.=