From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id cGZHLesKI2Zh2gAA62LTzQ:P1 (envelope-from ) for ; Sat, 20 Apr 2024 02:23:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id cGZHLesKI2Zh2gAA62LTzQ (envelope-from ) for ; Sat, 20 Apr 2024 02:23:07 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=quic.us header.s=default header.b=AsN7VW6j; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1713572587; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=HoQ401FPmQ5X3NcP13hcWerOX+KwyidctZR8azLtHzs=; b=cKL38n0tJsxv9WLbqarb/2KqYt4d9/dOvefnn+Zf8t1djufzQ4zKKEiLn9r7ZmX51XnzDR ejQBk3BPL0Fquj/Va+lUE80X8RG1zvO6jutVUbOGeIaVdcjVf1swzrfleXvzA/hMuonbDm mjywm0AjajWWwHOYKtOsWEkvYyuQbpNiSvxNuoXYtrM7xnHosCegn1fasS/yWiqnnwFKaV 49Wb1TY0HOwralWrLyz4+cK93FjBr0oinf0/5J2d4WVpaQLCtAJqYhcUcLQpI/fZSqt8vw Uo5PcWGgx3/6wE8pjsNuX307suACV3AJ7ZVfkaSIv7l5/78EtvkWEcX8Nrbw7g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1713572587; a=rsa-sha256; cv=none; b=upMw32VsdO9f3bdVt1yl55K8LltQ8tRJ83FVRva5JSvQVjmFm3K3c1pPa0R+PmFuIBo2FC 3JACYBD0HdRmq9bBNASXWa3tEVpmin48t2Rv7WkseZLdy+H5mgsHmdgsr/2QMapyRiSHDZ vTTUjePZty1b5ixj86TA/YHodQNehjT7Mn2LRoSYxwU5VTWm39r7YAyN1wS+fRMslhE4nu HXqL67tzGClUQquhWaXbGtXrR6oZZ2b+EUL9yfpsm/6Yhlan8Mm71pK+xoKR0Pen7kQmlO TTEGw9Kb7zw8fInRlm0bSfW6/Om56VDsKGOLViREfDA0HhW20SSv0tm4FU18LA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=quic.us header.s=default header.b=AsN7VW6j; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 755D96F3BC for ; Sat, 20 Apr 2024 02:23:07 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rxyVK-0002ol-V8; Fri, 19 Apr 2024 20:22:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rxyVI-0002oD-Op for guix-patches@gnu.org; Fri, 19 Apr 2024 20:22:52 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rxyVI-0006H3-Ga for guix-patches@gnu.org; Fri, 19 Apr 2024 20:22:52 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rxyVW-0003A5-9u for guix-patches@gnu.org; Fri, 19 Apr 2024 20:23:06 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70446] [PATCH v3] gnu: webkitgtk: Add locale and dri access to gtk sandbox in order to silence gtk locale warnings and enable hardware accelerated video, respectively. Adjust bubblewrap wrapper to add user profile locale and dri directories. Resent-From: Abhishek Cherath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 20 Apr 2024 00:23:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70446 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Liliana Marie Prikler Cc: Vivien Kraus , Maxim Cournoyer , 70446@debbugs.gnu.org Received: via spool by 70446-submit@debbugs.gnu.org id=B70446.171357256411996 (code B ref 70446); Sat, 20 Apr 2024 00:23:06 +0000 Received: (at 70446) by debbugs.gnu.org; 20 Apr 2024 00:22:44 +0000 Received: from localhost ([127.0.0.1]:32935 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rxyV7-00037Q-26 for submit@debbugs.gnu.org; Fri, 19 Apr 2024 20:22:43 -0400 Received: from mta-14-3.privateemail.com ([198.54.127.110]:31927) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rxyV2-00036N-CL for 70446@debbugs.gnu.org; Fri, 19 Apr 2024 20:22:38 -0400 Received: from mta-14.privateemail.com (localhost [127.0.0.1]) by mta-14.privateemail.com (Postfix) with ESMTP id 98C3918000E1; Fri, 19 Apr 2024 20:22:15 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=quic.us; s=default; t=1713572535; bh=thwK0VhULm3bc45q9r++USEIvvsc+8rUUmacrcW86Yk=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=AsN7VW6jc8KF1vzLYmhwBOWqAsFPPbmFRNkEUeOR5rsbHj4sLvtIldX7bLTYhZpfe bzA5kP7EnbGX+yTC/dTJ6TGlVCLgSwgXGZqHlIL5HiLe7K/YayCkOOCVRejUCPWo5d uwZpokA3sCK5UvttafLHPMxixg0HRqs8+0Ac6CGxMMJ8IghIbfXnktX6IqNnUMZE8H gOTZf5ggqAqUUCewc4XfnbMTpDmbUPhhXoEaTu4ONFyPIppX2b4gXVJjT2ob3ZdqU9 nl3HcJ5VIGThN0x0HVY0ga3QwEi9FUKorasVUPkCqYpMvTONY/g5OeXbRHXGxg93YC CS7HmXAiwtgFA== Received: from localhost (207-237-25-55.s5642.c3-0.wsd-cbr1.qens-wsd.ny.cable.rcncustomer.com [207.237.25.55]) by mta-14.privateemail.com (Postfix) with ESMTPA; Fri, 19 Apr 2024 20:22:10 -0400 (EDT) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 346396c6; Sat, 20 Apr 2024 00:22:09 +0000 (UTC) From: Abhishek Cherath In-Reply-To: <0c1de95d697742f7ede4d8e967b5bc272ea40004.camel@gmail.com> (Liliana Marie Prikler's message of "Sat, 20 Apr 2024 00:43:56 +0200") References: <34830675a6123b15bd652b2aae0922ff95d15f54.1713408724.git.abhi@quic.us> <0c1de95d697742f7ede4d8e967b5bc272ea40004.camel@gmail.com> Date: Fri, 19 Apr 2024 20:22:08 -0400 Message-ID: <871q70993j.fsf@quic.us> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: ClamAV using ClamSMTP X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.81 X-Spam-Score: -1.81 X-Migadu-Queue-Id: 755D96F3BC X-Migadu-Scanner: mx13.migadu.com X-TUID: m2u22KduS2mm Hello, >> ++=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "--ro-bind-try", userLocale= Dir, userLocaleDir, >> ++ >> ++=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 // Bind mount the dri dir i= n profile >> ++=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "--ro-bind-try", userDriDir= , userDriDir, > For reference, why are these two needed here? Can't we do this with > the locales and drivers referenced below? Should we perhaps expand > GUIX_LOCPATH here? Initially, I only had the system paths below those. I added these so that people could have hardware accel by only installing the required drivers in their local profiles (as recommended in 69971, unless I entirely misunderstood) I'm afraid I don't really know what adding stuff to GUIX_LOCPATH would do. That's for foreign distros, correct? To reiterate, The locale problem here is that the bubblewrapped process doesn't have access to the locales, without which it throws warnings. > Note that any item you add here which references the user home will > fail to be loaded correctly when using `guix shell' in a way that hides > it; or even just using `guix shell' normally with a user who doesn't > have the hardware-accelerated drivers in their home. For system paths, > this is somewhat different, since we can more or less expect them to > exist and mirror the layout of other distros to some extent. Hmm, since it's in an ro-bind-try, that'll cause the drivers not to work, and fall back to trying the system drivers. Is there a better solution you could recommend? Yours sincerely, Abhishek Cherath.