pkgsrc-Bugs archive

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

pkg/60348: multimedia/libaom: fix build on NetBSD/powerpc



>Number:         60348
>Category:       pkg
>Synopsis:       multimedia/libaom: fix build on NetBSD/powerpc
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 21 22:45:00 +0000 2026
>Originator:     Jun Ebihara
>Release:        pkgsrc Jun.22 2026
>Organization:
SOUM Corporation
>Environment:
NetBSD wiiu 11.99.5 NetBSD 11.99.5 (NINTENDO.MP) #0: Mon Mar  2 13:41:54 UTC 2026  mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/evbppc/compile/NINTENDO.MP evbppc
>Description:
The multimedia/libaom package fails to build on NetBSD/powerpc.
The build fails in aom_ports/ppc_cpudetect.c because it attempts to use 
Linux-specific definitions such as AT_HWCAP, PPC_FEATURE_HAS_VSX, and AT_NULL.

On NetBSD/powerpc, dynamic CPU capability detection via /proc/self/auxv 
is not supported in the same way as Linux. To fix the build, we should 
disable CONFIG_RUNTIME_CPU_DETECT for NetBSD/powerpc, similar to how 
it is already disabled for NetBSD/arm and NetBSD/aarch64.
>How-To-Repeat:
Try to build multimedia/libaom on a NetBSD/powerpc system.
It will fail during the compilation of aom_ports/ppc_cpudetect.c.

>Fix:
Please apply the following patch to multimedia/libaom/Makefile:

--- Makefile.orig	2026-06-22 07:00:00.000000000 +0900
+++ Makefile
@@ -38,6 +38,7 @@
 
 .if !empty(MACHINE_PLATFORM:MNetBSD-*-*arm*) \
  || !empty(MACHINE_PLATFORM:MNetBSD-*-aarch64*) \
+ || !empty(MACHINE_PLATFORM:MNetBSD-*-powerpc*) \
  || !empty(MACHINE_PLATFORM:MDarwin-*-aarch64)
 CMAKE_CONFIGURE_ARGS+=	-DCONFIG_RUNTIME_CPU_DETECT=0
 .endif





Home | Main Index | Thread Index | Old Index