NetBSD Problem Report #56558

From manphiz@gmail.com  Mon Dec 20 08:27:36 2021
Return-Path: <manphiz@gmail.com>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 4FCE91A9239
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 20 Dec 2021 08:27:36 +0000 (UTC)
Message-Id: <20211220082732.03FFE22D926@yeeloong-netbsd.localdomain>
Date: Mon, 20 Dec 2021 00:27:31 -0800 (PST)
From: manphiz@gmail.com
Reply-To: manphiz@gmail.com
To: gnats-bugs@NetBSD.org
Subject: editors/emacs27 fails to build due to undefined reference to epoxy_has_glx
X-Send-Pr-Version: 3.95

>Number:         56558
>Category:       pkg
>Synopsis:       editors/emacs27 fails to build due to undefined reference to epoxy_has_glx
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 20 08:30:01 +0000 2021
>Originator:     manphiz@gmail.com
>Release:        NetBSD 8.2
>Organization:

>Environment:
System: NetBSD yeeloong-netbsd 8.2 NetBSD 8.2 (LOONGSON) #0: Tue Mar 31 05:08:40 UTC 2020 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/evbmips/compile/LOONGSON evbmips
Architecture: mips64el
Machine: evbmips
>Description:
	When building editors/emacs27 I've encountered the same
	problem as described in [1].  The exact error message looks
	like below:

/usr/pkgsrc/editors/emacs25/work/.buildlink/lib/libgdk-3.so: undefined reference to `epoxy_has_glx'

>How-To-Repeat:
        Reproducible when building editors/emacs27 with default
        options.  I've encountered it during bulkbuild using pbulk in
        a sandbox.

>Fix:
	I've crafted a similar patch as [2] and attached inline.
	Tested locally in my Loongson system to be working.

[1] http://mail-index.netbsd.org/pkgsrc-bugs/2018/10/27/msg065232.html
[2] https://github.com/NetBSD/pkgsrc/commit/6e6a160295da1c00915b971d285d70ae8addfecf


Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/editors/emacs27/Makefile,v
retrieving revision 1.14
diff -u -p -r1.14 Makefile
--- Makefile	8 Dec 2021 16:04:09 -0000	1.14
+++ Makefile	19 Dec 2021 11:07:36 -0000
@@ -2,7 +2,7 @@

 CONFLICTS+=	emacs27-nox11-[0-9]*

-PKGREVISION= 8
+PKGREVISION= 9
 .include "../../editors/emacs27/Makefile.common"

 .include "options.mk"
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/editors/emacs27/distinfo,v
retrieving revision 1.7
diff -u -p -r1.7 distinfo
--- distinfo	26 Oct 2021 10:21:28 -0000	1.7
+++ distinfo	19 Dec 2021 11:07:36 -0000
@@ -3,6 +3,8 @@ $NetBSD: distinfo,v 1.7 2021/10/26 10:21
 BLAKE2s (emacs-27.2.tar.gz) = ddafb23169121aa156d5e45e3a5ebd02b138a1a036c5eb8b4814df03222136f8
 SHA512 (emacs-27.2.tar.gz) = dddba2794df136a52a9f65b81acd765dcca01148b65bf37b249d620d3b143ecc94be25ea9efe96c0884a2deeb16e3fc63bbb42c690e86ac6d5faef43b8b8c4e3
 Size (emacs-27.2.tar.gz) = 67153050 bytes
+SHA1 (patch-configure) = cd79ec4780e01c98c457c44d92a1c4a3dbc1eda1
+SHA1 (patch-configure.ac) = f419b70264dbf47f1bcaf0c835e9822c2edd2342
 SHA1 (patch-lib-src_emacsclient.c) = c329314da221df5cc60cc3da2424589843ef8dc9
 SHA1 (patch-src_Makefile.in) = d9d9d66dec68ea2aa1a7406b94dfa055fbee70ed
 SHA1 (patch-src_inotify.c) = 1fdc6566ed57e8418f1ddc85bb03518d7d9d6bb3
Index: patches/patch-configure
===================================================================
RCS file: patches/patch-configure
diff -N patches/patch-configure
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ patches/patch-configure	19 Dec 2021 11:07:36 -0000
@@ -0,0 +1,12 @@
+--- configure.orig	2021-12-18 15:56:49.314640328 +0000
++++ configure	2021-12-18 15:57:16.886567059 +0000
+@@ -9617,7 +9617,8 @@
+ ## LD_SWITCH_SYSTEM_TEMACS.
+ case "$opsys" in
+   netbsd|openbsd)
+-   LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
++### This is handled by pkgsrc.
++###   LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
+ esac
+ 
+ C_SWITCH_MACHINE=
Index: patches/patch-configure.ac
===================================================================
RCS file: patches/patch-configure.ac
diff -N patches/patch-configure.ac
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ patches/patch-configure.ac	19 Dec 2021 11:07:36 -0000
@@ -0,0 +1,12 @@
+--- configure.ac.orig	2021-12-18 15:54:00.168968177 +0000
++++ configure.ac	2021-12-18 15:56:16.016700541 +0000
+@@ -1553,7 +1553,8 @@
+ ## LD_SWITCH_SYSTEM_TEMACS.
+ case "$opsys" in
+   netbsd|openbsd)
+-   LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
++### This is handled by pkgsrc.
++###   LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
+ esac
+ 
+ C_SWITCH_MACHINE=

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.