Re: Would like to use ARCH (uname -p) but it's not always correct (e.g. arm64)
- In reply to: Nuno Teixeira : "Re: Would like to use ARCH (uname -p) but it's not always correct (e.g. arm64)"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 30 Dec 2022 08:34:14 UTC
(...) A good example: "x11-wm/nscde: fix packaging when uname -m != uname -p" https://cgit.freebsd.org/ports/commit/?id=4ae82fd2ee2059cd9ee0ec99bd6fd8062cd5dbdd Nuno Teixeira <eduardo@freebsd.org> escreveu no dia sexta, 30/12/2022 à(s) 08:22: > 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) > -- Nuno Teixeira FreeBSD Committer (ports)