NetBSD Problem Report #58527
From www@netbsd.org Tue Jul 30 19:05:40 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 10B5F1A923C
for <gnats-bugs@gnats.NetBSD.org>; Tue, 30 Jul 2024 19:05:40 +0000 (UTC)
Message-Id: <20240730190539.1809A1A923E@mollari.NetBSD.org>
Date: Tue, 30 Jul 2024 19:05:39 +0000 (UTC)
From: phil+netbsd@krylov.eu
Reply-To: phil+netbsd@krylov.eu
To: gnats-bugs@NetBSD.org
Subject: audio/openal-soft build fails with old glibc
X-Send-Pr-Version: www-1.0
>Number: 58527
>Category: pkg
>Synopsis: audio/openal-soft build fails with old glibc
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: linux-pkg-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jul 30 19:10:00 +0000 2024
>Last-Modified: Fri Aug 02 07:27:00 +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:
On glibc 2.17, <unistd.h> includes <getopt.h>, and it happens to be a (conflicting) local copy.
NB: getopt usage is already removed in openal-soft HEAD sources, so the proposed workaround is not for long.
>How-To-Repeat:
bmake -C audio/openal-soft bin-install
>Fix:
diff -p -u -r1.39 Makefile
--- audio/openal-soft/Makefile 30 Jan 2024 14:21:33 -0000 1.39
+++ audio/openal-soft/Makefile 30 Jul 2024 18:56:34 -0000
@@ -54,6 +54,14 @@ SUBST_SED.oss= -e 's,/dev/dsp,${DEVOSSA
.include "options.mk"
+# On glibc 2.17, <unistd.h> includes <getopt.h>, and it happens to be
+# a (conflicting) local copy if we keep it
+# NB: getopt usage is already removed in openal-soft HEAD sources.
+pre-build:
+ if grep -q '^#define HAVE_GETOPT$$' ${WRKSRC}/${CMAKE_BUILD_DIR}/config.h; then \
+ ${RM} -f ${WRKSRC}/utils/getopt.[ch]; \
+ fi
+
post-install:
${RM} ${DESTDIR}${PREFIX}/include/AL/al.h.orig
>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:27:00 +0000
Responsible-Changed-Why:
Linux pkgsrc problem.
>Unformatted:
(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.