Current-Users archive

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

Re: sys/arch/evbarm/conf/majors.evbarm missing in -current

On Sun, Sep 30, 2018 at 09:40:00AM +0200, Tom Ivar Helbekkmo wrote:
> Running 'postinstall check' on a Raspberry Pi 3B+ with a current (well,
> as of just before the openssl upgrade of a few days ago) evbarm64
> installation complains about a missing majors file:
> makedev check:
> ERROR: can't find majors file '/usr/src/sys/arch/evbarm/conf/majors.evbarm'

This comes from Tom's postinstall invocation using the source tree method
for -s (instead of etc.tgz) and a discrepancy in special case handling
for aarch64:

 - src/etc/Makefile does:


   and then invokes src/etc/MAKEDEV.awk with MACHINE="aarch64"

 - src/usr.sbin/postinstall/postinstall does no special case handling
   and invokes src/etc/MAKEDEV.awk with MACHINE="evbarm"

There are two (more or less) easy fixes, but main objective is to get rid
of the special case handling:

 - unify arm and aarch64 majors into a single file
 - additionally pass MACHINE_CPU to the awk script and do all special
   handling there (this would require a new command line arg for postinstall(8))


Home | Main Index | Thread Index | Old Index