NetBSD Problem Report #58418
From www@netbsd.org Thu Jul 11 14:39:43 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 2AF881A9238
for <gnats-bugs@gnats.NetBSD.org>; Thu, 11 Jul 2024 14:39:43 +0000 (UTC)
Message-Id: <20240711143941.B52AE1A9239@mollari.NetBSD.org>
Date: Thu, 11 Jul 2024 14:39:41 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: npf extension modules are installed as useless compatfiles and versioned symlinks
X-Send-Pr-Version: www-1.0
>Number: 58418
>Category: lib
>Synopsis: npf extension modules are installed as useless compatfiles and versioned symlinks
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: lib-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jul 11 14:40:01 +0000 2024
>Originator: Taylor R Campbell
>Release: current, 10, 9
>Organization:
The Npf386BSD Foundation
>Environment:
>Description:
npf ships with various extension modules such as ext_log and ext_rndblock.
npfctl(8) loads extension modules from `/lib/npf/ext_%s.so'.
For some reason, however, we also install versioned shlib symlinks like /lib/npf/ext_log.so.0 and /lib/npf/ext_log.so.0.0. And userland ABI compat versions like /lib/i386/npf/ext_log.so on amd64, /lib/o32/npf/ext_log.so on mips64, &c. These extra files are never used and should be eliminated.
>How-To-Repeat:
code inspection
>Fix:
1. set the appropriate makefile settings in src/lib/npf/mod.mk
2. update the set lists
3. figure out how to obsolete just compat entries, not the non-compat entries they're based on
(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.