NetBSD Problem Report #58537

From www@netbsd.org  Fri Aug  2 07:24:09 2024
Return-Path: <www@netbsd.org>
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)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 57FFF1A923C
	for <gnats-bugs@gnats.NetBSD.org>; Fri,  2 Aug 2024 07:24:09 +0000 (UTC)
Message-Id: <20240802072407.D17781A923E@mollari.NetBSD.org>
Date: Fri,  2 Aug 2024 07:24:07 +0000 (UTC)
From: phil+netbsd@krylov.eu
Reply-To: phil+netbsd@krylov.eu
To: gnats-bugs@NetBSD.org
Subject: x11/qt6-qtbase does not build on Linux
X-Send-Pr-Version: www-1.0

>Number:         58537
>Category:       pkg
>Synopsis:       x11/qt6-qtbase does not build on Linux
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    linux-pkg-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Aug 02 07:25:00 +0000 2024
>Last-Modified:  Fri Sep 27 14:30:01 +0000 2024
>Originator:     Phil Krylov
>Release:        pkgsrc-current
>Organization:
krylov.eu
>Environment:
Linux localhost.localdomain 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
>Description:
x11/qt6-qtbase does not build on CentOS 7 due to as(1) supporting VAES instructions only since binutils 2.30+. When fixed, it installs an extra file on Linux. 
>How-To-Repeat:
bmake -C x11/qt6-qtbase bin-install
>Fix:
Index: x11/qt6-qtbase/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/x11/qt6-qtbase/Makefile,v
retrieving revision 1.36
diff -p -u -r1.36 Makefile
--- x11/qt6-qtbase/Makefile	26 Jun 2024 16:40:58 -0000	1.36
+++ x11/qt6-qtbase/Makefile	2 Aug 2024 07:19:01 -0000
@@ -221,6 +221,16 @@ PKGCONFIG_OVERRIDE+=	lib/pkgconfig/Qt6Te
 PKGCONFIG_OVERRIDE+=	lib/pkgconfig/Qt6Widgets.pc
 PKGCONFIG_OVERRIDE+=	lib/pkgconfig/Qt6Xml.pc

+# Newer gas from binutils 2.30+ is required for VAES instructions.
+.if ${MACHINE_ARCH} == "x86_64" && ${OPSYS} == "Linux"
+QT6_GAS_VERSION!=	\
+	( env LC_ALL=C as --version 2>&1 | ${AWK} '/GNU assembler version/ {print $$4}') 2>/dev/null || ${ECHO} 0
+.  if ${QT6_GAS_VERSION} != "0" && !(${QT6_GAS_VERSION:M2.[3-9][0-9]*} || ${QT6_GAS_VERSION:M[3-9]*})
+.include "../../devel/binutils/buildlink3.mk"
+.include "../../devel/binutils/override-as.mk"
+.  endif
+.endif
+
 .include "../../devel/wayland/platform.mk"

 .include "../../archivers/brotli/buildlink3.mk"
Index: x11/qt6-qtbase/PLIST.Linux
===================================================================
RCS file: /cvsroot/pkgsrc/x11/qt6-qtbase/PLIST.Linux,v
retrieving revision 1.4
diff -p -u -r1.4 PLIST.Linux
--- x11/qt6-qtbase/PLIST.Linux	20 Nov 2023 10:45:36 -0000	1.4
+++ x11/qt6-qtbase/PLIST.Linux	2 Aug 2024 07:19:01 -0000
@@ -1,6 +1,7 @@
 @comment $NetBSD: PLIST.Linux,v 1.4 2023/11/20 10:45:36 nia Exp $
 qt6/include/QtCore/${PKGVERSION}/QtCore/private/minimum-linux_p.h
 qt6/include/QtCore/${PKGVERSION}/QtCore/private/qfilesystemwatcher_inotify_p.h
+qt6/include/QtCore/${PKGVERSION}/QtCore/private/qfutex_linux_p.h
 qt6/include/QtDeviceDiscoverySupport/${PKGVERSION}/QtDeviceDiscoverySupport/private/qdevicediscovery_static_p.h
 qt6/include/QtInputSupport/${PKGVERSION}/QtInputSupport/private/devicehandlerlist_p.h
 qt6/include/QtInputSupport/${PKGVERSION}/QtInputSupport/private/qevdevkeyboard_defaultmap_p.h

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->linux-pkg-people
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Fri, 02 Aug 2024 07:29:14 +0000
Responsible-Changed-Why:
Linux pkgsrc problem.


From: "Maya Rashish" <maya@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/58537 CVS commit: pkgsrc/x11/qt6-qtbase
Date: Fri, 27 Sep 2024 14:25:56 +0000

 Module Name:	pkgsrc
 Committed By:	maya
 Date:		Fri Sep 27 14:25:56 UTC 2024

 Modified Files:
 	pkgsrc/x11/qt6-qtbase: PLIST.Linux

 Log Message:
 qt6-qtbase: add one more linux-specific file to PLIST

 Trivial part of PR pkg/58537


 To generate a diff of this commit:
 cvs rdiff -u -r1.4 -r1.5 pkgsrc/x11/qt6-qtbase/PLIST.Linux

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.