NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
re: port-arm/48215: pkg_add fails on recent NetBSD/evbearmv6hf-el current
The following reply was made to PR port-arm/48215; it has been noted by GNATS.
From: matthew green <mrg%eterna.com.au@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: port-arm-maintainer%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
netbsd-bugs%netbsd.org@localhost, ryoon%NetBSD.org@localhost
Subject: re: port-arm/48215: pkg_add fails on recent NetBSD/evbearmv6hf-el
current
Date: Tue, 17 Sep 2013 13:19:45 +1000
> On Mon, Sep 16, 2013 at 03:15:00PM +0000, Matt Thomas wrote:
> > > It's probably better to try to arrange the build so MACHINE_ARCH
> > > contains the right string.
> > >
> > > calling sysctl directly will probably make for compile-time fun on
> > > Solaris and other legacy platforms.
> >
> > So conditionalize it with #ifdef NETBSD_SOURCE / #endif=
>
> Or maybe fix it right?
>
> The build inherits MACHINE_ARCH from the environment, which gets it
> from the nbmake wrapper. If it's wrong there, that seems like a bug.
this has to do with the value exportd by <sys/param.h>, not
the value set by the build.
since these binaries are always going to report the same value,
i suspect that fixing arm/param.h to report the right value
depending on the compiler options would fix the problem without
having to patch every program that uses them to use sysctl on
netbsd...
.mrg.
Home |
Main Index |
Thread Index |
Old Index