From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <bug-guix-bounces+larch=yhetil.org@gnu.org>
Received: from mp11.migadu.com ([2001:41d0:306:2d92::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by ms9.migadu.com with LMTPS
	id aM31ODosIGUvggEA9RJhRA:P1
	(envelope-from <bug-guix-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Fri, 06 Oct 2023 17:48:11 +0200
Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp11.migadu.com with LMTPS
	id aM31ODosIGUvggEA9RJhRA
	(envelope-from <bug-guix-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Fri, 06 Oct 2023 17:48:11 +0200
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 A753030C8B
	for <larch@yhetil.org>; Fri,  6 Oct 2023 17:48:10 +0200 (CEST)
Authentication-Results: aspmx1.migadu.com;
	dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail3 header.b=IoChxKTv;
	spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org";
	dmarc=pass (policy=none) header.from=gnu.org
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
	s=key1; t=1696607290;
	h=from:from:sender:sender:reply-to: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=Ck4P9okk73WwSibmR6E/d/TabaWuH/d7KLBmtkGyGSg=;
	b=h1HH/ifJocWJXkC1J1AaGn/DVlJkUfufLe51Ya590GNuuZIOjLzsDTr3DogQa5TzqdfciT
	gXmum0iDlBWa/SIKgFmDTzuk7RWqbfG0Gw+jw2EpNACJnGn/j6BHvqU5AcXnz/9APlU5W3
	L3PH0hUTzckJpN06GsgSKDAeITGDCXjUql46eomJqa0Ti0CaJjDCdlN3qAiaPobGVlrdRs
	TFaHJBP76efvtLLRKpJBTp+T1bfLUw18zZZASuMNQ9OigiM1r5SBjGikKocldnECH6uAu1
	IGfkYwNGUbNQCobfyrvGsukr2p0eQe8Qa0R+apYBbyXVFaVLxuuKnCcoHHNkJg==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail3 header.b=IoChxKTv;
	spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org";
	dmarc=pass (policy=none) header.from=gnu.org
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1696607290; a=rsa-sha256; cv=none;
	b=QIOoSmr6PAMHIreSTUtKUHt5ONjrAoK3lILvc7wal1thkTO7Wd+nWFtPe2JdhE/ztPxR8z
	IUbcQbQrunWKVzvDZMjiUjDdjg0QpexnLhCvl7mJYZ7xgMfGY+bY+a7Mxp1s8oyzG1iCAu
	RFYSeGxUQEhDNaq3NFSoLcgKVSqWPJf5IGsrO8pZU23t/KFPApQ+SSundcD3DwL7CnXwDT
	xKaoH88zOBp80a5pGE+OgdWAeFyL+aT1Tqwt0Pu0lu7ZVBHDtadqr1Ab1/iVBFr80hBzkP
	Dx35W4jwc9xy3xK0toQCiCuU/a0YKj3U299q5yXJwpWEakA7EON3QxYbvJo+0Q==
Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <bug-guix-bounces@gnu.org>)
	id 1qon3O-0000nI-JZ; Fri, 06 Oct 2023 11:47:50 -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 <Debian-debbugs@debbugs.gnu.org>)
 id 1qon3I-0000mQ-2f
 for bug-guix@gnu.org; Fri, 06 Oct 2023 11:47:49 -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 <Debian-debbugs@debbugs.gnu.org>)
 id 1qon3H-0004wn-Qd
 for bug-guix@gnu.org; Fri, 06 Oct 2023 11:47:43 -0400
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1qon3a-0005XF-Bf
 for bug-guix@gnu.org; Fri, 06 Oct 2023 11:48:02 -0400
X-Loop: help-debbugs@gnu.org
Subject: bug#64981: GTK4 applications broken (missing libGLESv2)
References: <87h6pjag4n.fsf@riseup.net>
In-Reply-To: <87h6pjag4n.fsf@riseup.net>
Resent-From: John Kehayias <john.kehayias@protonmail.com>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-guix@gnu.org
Resent-Date: Fri, 06 Oct 2023 15:48:02 +0000
Resent-Message-ID: <handler.64981.B.169660727321257@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 64981
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: moreinfo
To: iyzsong@envs.net, "(" <paren@disroot.org>, Csepp <raingloom@riseup.net>,
 liliana.prikler@gmail.com, Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>,
 Efraim Flashner <efraim@flashner.co.il>, jbranso@dismail.de
Cc: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@member.fsf.org>,
 64981@debbugs.gnu.org, guix-patches@gnu.org, 65375@debbugs.gnu.org
Received: via spool by submit@debbugs.gnu.org id=B.169660727321257
 (code B ref -1); Fri, 06 Oct 2023 15:48:02 +0000
Received: (at submit) by debbugs.gnu.org; 6 Oct 2023 15:47:53 +0000
Received: from localhost ([127.0.0.1]:52446 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1qon3R-0005Wm-Bk
 for submit@debbugs.gnu.org; Fri, 06 Oct 2023 11:47:53 -0400
Received: from lists.gnu.org ([2001:470:142::17]:37808)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <john.kehayias@protonmail.com>) id 1qon3P-0005WP-AH
 for submit@debbugs.gnu.org; Fri, 06 Oct 2023 11:47:52 -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 <john.kehayias@protonmail.com>)
 id 1qon2s-0000lB-MY
 for guix-patches@gnu.org; Fri, 06 Oct 2023 11:47:20 -0400
Received: from mail-40133.protonmail.ch ([185.70.40.133])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <john.kehayias@protonmail.com>)
 id 1qon2q-0004sR-Ij
 for guix-patches@gnu.org; Fri, 06 Oct 2023 11:47:18 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com;
 s=protonmail3; t=1696607232; x=1696866432;
 bh=Ck4P9okk73WwSibmR6E/d/TabaWuH/d7KLBmtkGyGSg=;
 h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date:
 Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector;
 b=IoChxKTvinO2l4tOM7i0EQjVc5JsvBHTzQcD+1foAfqK4S01RKCYuqyMvH/99ydmq
 QYbVdD38925exhrMnzxJn/GQ343NPSnmLuKkjXifvO0NLAspuXqJhVX4iDoErfPAUd
 dNHiMSgMplG5Xsgdqjcru1GUgLFo+VXLrAMdw4ybDfDxxkjLyED9+Jurthvof9NWAl
 7kcVv//DLrlutR9DOax7v7+5Gw3mqt6phNlru9JUUgisrUOE1eo/8HcAooF1a1RQ6Z
 HTM4CzVKswFhNdaQKwvtM+Xnox0Zgk08n29e8MKi3aQiEPzOcNoN9d8UGP9CKBcan7
 nda2HKClPjtHA==
Date: Fri, 06 Oct 2023 15:47:00 +0000
Message-ID: <8734ynah3r.fsf_-_@protonmail.com>
Feedback-ID: 7805494:user:proton
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=185.70.40.133;
 envelope-from=john.kehayias@protonmail.com; helo=mail-40133.protonmail.ch
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, 
 RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
X-BeenThere: bug-guix@gnu.org
List-Id: Bug reports for GNU Guix <bug-guix.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-guix>,
 <mailto:bug-guix-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-guix>
List-Post: <mailto:bug-guix@gnu.org>
List-Help: <mailto:bug-guix-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-guix>,
 <mailto:bug-guix-request@gnu.org?subject=subscribe>
Reply-to:  John Kehayias <john.kehayias@protonmail.com>
From:  John Kehayias via Bug reports for GNU Guix <bug-guix@gnu.org>
Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org
Sender: bug-guix-bounces+larch=yhetil.org@gnu.org
X-Migadu-Flow: FLOW_IN
X-Migadu-Country: US
X-Migadu-Spam-Score: -5.19
X-Migadu-Scanner: mx2.migadu.com
X-Migadu-Queue-Id: A753030C8B
X-Spam-Score: -5.19
X-TUID: mh+3KKY8NG9F

Hi everyone,

Not sure if people saw this patch, has anyone tested if it fixes the
problem for them? I can include it in an upcoming mesa-updates branch
with other related updates/rebuilds.

<https://issues.guix.gnu.org/65375>

Hope I got everyone from the original bug thread (seems many replies
didn't go directly to everyone) and cc'ed the patch number as well.

Thanks!
John

On Sat, Aug 19, 2023 at 10:59 AM, iyzsong@envs.net wrote:

> From: =E5=AE=8B=E6=96=87=E6=AD=A6 <iyzsong@member.fsf.org>
>
> Fixes <https://issues.guix.gnu.org/64981>.
>
> * gnu/packages/gl.scm (libepoxy)[arguments]<#:phases>:
> Hardcode paths to libGLESv1_CM.so.1 and libGLESv2.so.2.
> ---
>  gnu/packages/gl.scm | 10 +++++++---
>  1 file changed, 7 insertions(+), 3 deletions(-)
>
> diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm
> index b53b42a9ba..f662f0f7da 100644
> --- a/gnu/packages/gl.scm
> +++ b/gnu/packages/gl.scm
> @@ -742,10 +742,14 @@ (define-public libepoxy
>        #~(modify-phases %standard-phases
>            (add-before 'configure 'patch-paths
>              (lambda* (#:key inputs #:allow-other-keys)
> -              (let ((mesa (dirname (search-input-file inputs "lib/libGL.=
so"))))
> +              (let ((mesa-lib
> +                     (lambda (file)
> +                       (search-input-file inputs (string-append "lib/" f=
ile)))))
>                  (substitute* (find-files "." "\\.[ch]$")
> -                  (("libGL.so.1") (string-append mesa "/libGL.so.1"))
> -                  (("libEGL.so.1") (string-append mesa "/libEGL.so.1")))=
))))))
> +                  (("libGL.so.1") (mesa-lib "libGL.so.1"))
> +                  (("libEGL.so.1") (mesa-lib "libEGL.so.1"))
> +                  (("libGLESv1_CM.so.1") (mesa-lib "libGLESv1_CM.so.1"))
> +                  (("libGLESv2.so.2") (mesa-lib "libGLESv2.so.2"))))))))=
)
>      (build-system meson-build-system)
>      (native-inputs
>       (list pkg-config python))
>
> base-commit: 597af70fd24eb85a85fa8c45008c9cfa241f4d0b