From owner-freebsd-gecko@freebsd.org Sat Jun 16 13:08:24 2018 Return-Path: Delivered-To: freebsd-gecko@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4B57B10164AB for ; Sat, 16 Jun 2018 13:08:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id D9CD7816A0 for ; Sat, 16 Jun 2018 13:08:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 9E34910164AA; Sat, 16 Jun 2018 13:08:23 +0000 (UTC) Delivered-To: gecko@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8C8BF10164A9 for ; Sat, 16 Jun 2018 13:08:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2A8E28169F for ; Sat, 16 Jun 2018 13:08:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 7637B889E for ; Sat, 16 Jun 2018 13:08:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w5GD8Mgf072157 for ; Sat, 16 Jun 2018 13:08:22 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w5GD8MUc072156 for gecko@FreeBSD.org; Sat, 16 Jun 2018 13:08:22 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 229064] Warnings from Mk/Uses/gecko.mk when creating INDEX Date: Sat, 16 Jun 2018 13:08:22 +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: rhurlin@gwdg.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gecko@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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 MIME-Version: 1.0 X-BeenThere: freebsd-gecko@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Gecko Rendering Engine issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Jun 2018 13:08:24 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D229064 Rainer Hurling changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rhurlin@gwdg.de --- Comment #1 from Rainer Hurling --- There is a new behaviour of www/firefox, introduced since version 60.x, see [1][2]. Running Firefox as root is not supported any more. So, gecko.mk fails, when it tries to run 'firefox --version'. If you use the same command as a regular (non root) user, it does not fail. I think we have to find another way to do the version check in /usr/ports/Mk/Uses/gecko.mk:48 as root. For me, the following patch helps a= s a workaround: --- gecko.mk.orig 2018-05-01 08:57:58.482882000 +0200 +++ gecko.mk 2018-05-23 20:20:53.518158000 +0200 @@ -45,7 +45,7 @@ 60_DEPENDS=3D ${LOCALBASE}/lib/firefox/firefox:www/firefox .if exists(${LOCALBASE}/bin/firefox) -_GECKO_INSTALLED_VER!=3D ${LOCALBASE}/bin/firefox --version 2>/dev/null +_GECKO_INSTALLED_VER!=3D su -m www -c '${LOCALBASE}/bin/firefox --version' 2>/dev/null _GECKO_INSTALLED_VER:=3D ${_GECKO_INSTALLED_VER:M[0-9][0-9]*:C/([0-9][0-9]).*/\1/g} .endif Of course, that's not optimal and I am not sure, if it brings in new securi= ty issues(?). [1] https://bugzilla.mozilla.org/show_bug.cgi?id=3D1323302 [2] https://hg.mozilla.org/integration/autoland/rev/90a06cdcb48f --=20 You are receiving this mail because: You are the assignee for the bug.=