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



>  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