NetBSD Problem Report #58799
From www@netbsd.org Thu Oct 31 21:44:23 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)
client-signature RSA-PSS (2048 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 1DBC41A9238
for <gnats-bugs@gnats.NetBSD.org>; Thu, 31 Oct 2024 21:44:23 +0000 (UTC)
Message-Id: <20241031214421.D2BE41A923B@mollari.NetBSD.org>
Date: Thu, 31 Oct 2024 21:44:21 +0000 (UTC)
From: gludit@proton.me
Reply-To: gludit@proton.me
To: gnats-bugs@NetBSD.org
Subject: earm binary packages are actually compiled for earmv4, resulting in a fatal warning when adding packages
X-Send-Pr-Version: www-1.0
>Number: 58799
>Category: pkg
>Synopsis: earm binary packages are actually compiled for earmv4, resulting in a fatal warning when adding packages
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Oct 31 21:45:00 +0000 2024
>Last-Modified: Fri Nov 15 01:00:03 +0000 2024
>Originator: Ludit Gaj
>Release: 10.0
>Organization:
Private
>Environment:
NetBSD rez 10.0 NetBSD 10.0 (GENERIC) #0: Thu Mar 28 08:33:33 UTC 2024 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/zaurus/compile/GENERIC zaurus
>Description:
I am using NetBSD 10.0 on Sharp Zaurus SL-C3200.When installing packages from https://cdn.NetBSD.org/pubc/pkgsrc/packages/NetBSD/earm/10.0/All all packages seem to be compiled for earmv4, resulting in a warning:
pkg_add: Warning: package `mpg123-1.32.6' was built for a platform:
pkg_add: NetBSD/earmv4 10.0 (pkg) vs. NetBSD/earm 10.0 (this host)
pkg_add: 1 package addition failed
Using pkg_add with `-f` (force) option, the packages install fine.
I've checked +BUILD_INFO of few packages and they really have earmv4 as architecture. Also, 9.4 seems also to have same issue.
>How-To-Repeat:
1. Install NetBSD on Sharp Zaurus :)
2. Set PKG_PATH to https://cdn.NetBSD.org/pubc/pkgsrc/packages/NetBSD/earm/10.0/All
3. pkg_add any package
>Fix:
Compilation of earm packages should be done for armv5 architecture
>Audit-Trail:
From: nia <nia@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/58799: earm binary packages are actually compiled for
earmv4, resulting in a fatal warning when adding packages
Date: Thu, 31 Oct 2024 22:06:52 +0000
As the message indicates, the warning isn't fatal. In fact, earm
is _supposed_ to be an alias for earmv4. pkg_install's checks
are simply wrong.
So, the real problem is somewhere else. Can we see the
mega-mega-verbose output?
From: "Taylor R Campbell" <riastradh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/58799 CVS commit: pkgsrc/pkgtools/pkg_install/files
Date: Fri, 1 Nov 2024 11:26:46 +0000
Module Name: pkgsrc
Committed By: riastradh
Date: Fri Nov 1 11:26:46 UTC 2024
Modified Files:
pkgsrc/pkgtools/pkg_install/files/add: perform.c
pkgsrc/pkgtools/pkg_install/files/lib: version.h
Log Message:
pkg_add(8): Say `error', not `warning', if it's fatal.
Break some overlong lines in the source code for these messages while
here.
PR pkg/58799: earm binary packages are actually compiled for earmv4,
resulting in a fatal warning when adding packages
To generate a diff of this commit:
cvs rdiff -u -r1.125 -r1.126 pkgsrc/pkgtools/pkg_install/files/add/perform.c
cvs rdiff -u -r1.197 -r1.198 pkgsrc/pkgtools/pkg_install/files/lib/version.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Ludit Gaj <gludit@proton.me>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/58799: earm binary packages are actually compiled for earmv4, resulting in a fatal warning when adding packages
Date: Mon, 04 Nov 2024 22:17:51 +0000
The mega verbose output is not so verbose:
(regular)
rez# pkg_add readline
pkg_add: Warning: package `readline-8.2nb2' was built for a platform:
pkg_add: NetBSD/earmv4 10.0 (pkg) vs. NetBSD/earm 10.0 (this host)
pkg_add: 1 package addition failed
(verbose)
rez# pkg_add -vvv readline
pkg_add: Warning: package `readline-8.2nb2' was built for a platform:
pkg_add: NetBSD/earmv4 10.0 (pkg) vs. NetBSD/earm 10.0 (this host)
pkg_add: 1 package addition failed
On Thursday, 31 October 2024 at 23:10, nia via gnats <gnats-admin@NetBSD.or=
g> wrote:
> The following reply was made to PR pkg/58799; it has been noted by GNATS.
>=20
> From: nia nia@NetBSD.org
>=20
> To: gnats-bugs@netbsd.org
> Cc:
> Subject: Re: pkg/58799: earm binary packages are actually compiled for
> earmv4, resulting in a fatal warning when adding packages
> Date: Thu, 31 Oct 2024 22:06:52 +0000
>=20
> As the message indicates, the warning isn't fatal. In fact, earm
> is supposed to be an alias for earmv4. pkg_install's checks
> are simply wrong.
>=20
> So, the real problem is somewhere else. Can we see the
> mega-mega-verbose output?
From: Ludit Gaj <gludit@proton.me>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/58799: earm binary packages are actually compiled for earmv4, resulting in a fatal warning when adding packages
Date: Fri, 15 Nov 2024 00:56:43 +0000
> So, the real problem is somewhere else. Can we see the
> mega-mega-verbose output?
So I did some source reading and it seems that CHECK_OS_VERSION is used to =
ignore the version number of the release only, but doesn't apply to archite=
cture.
This means that there is no way to work around it via pkg_install.conf (my =
use case here is running BUILD_DEPENDS=3Dbin-install make depends and happi=
ly re-using prebuild earmv4 binary packages on earmv5 machine for some of t=
he dependencies).=20
Can we consider introducing new CHECK_ARCH configuration variable or extend=
ing the meaning of CHECK_OS_VERSION?
(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.