Re: Would like to use ARCH (uname -p) but it's not always correct (e.g. arm64)
Date: Fri, 30 Dec 2022 08:22:39 UTC
Hello Tatsuki! I't seems that you dig it into source configs, I will take a look into this too. I was talking using ARCH (and OSREL, OSVERSION, etc) in a more generic way and only related to ports framework to easier some tasks like dinamic plist for some files that change with this vars: --- PLIST_SUB= ARCH=${ARCH} plist: libexec/NsCDE/FreeBSD_%%ARCH%%/colorpicker --- --- PLIST_SUB+= SHLIB_SHVER="${DISTVERSION:R}" \ SHLIB_VER="${DISTVERSION}" plist: lib/root/libRHTTPSniff.so.%%SHLIB_SHVER%% lib/root/libRHTTPSniff.so.%%SHLIB_VER%% --- So my question is why people often choose a hack to `uname -m` instead of using ARCH (uname -p). Thanks Tatsuki Makino <tatsuki_makino@hotmail.com> escreveu no dia quinta, 29/12/2022 à(s) 21:41: > Tatsuki Makino wrote on 2022/12/30 06:17: > > For x11-wm/nscde, this is present in ${WRCSRC}/configure.ac. > > > > OS_PLUS_MACHINE_ARCH=`uname -sm | tr ' ' '_'` > > AC_SUBST(OS_PLUS_MACHINE_ARCH) > > > > Then, in the case of security/zeek, it seems that uname -m is used in > zeek-5.0.4/cmake/GetArchitecture.cmake of distfile. > That's also where FreeBSD gets lowercased. > > Regards. > > -- Nuno Teixeira FreeBSD Committer (ports)