pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/56558: editors/emacs27 fails to build due to undefined reference to epoxy_has_glx



>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@localhost
>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@localhost:/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=


Home | Main Index | Thread Index | Old Index