Re: Would like to use ARCH (uname -p) but it's not always correct (e.g. arm64)

2022-12-30 Thread Nuno Teixeira
(...) A good example: "x11-wm/nscde: fix packaging when uname -m != uname -p" https://cgit.freebsd.org/ports/commit/?id=4ae82fd2ee2059cd9ee0ec99bd6fd8062cd5dbdd Nuno Teixeira escreveu no dia sexta, 30/12/2022 à(s) 08:22: > Hello Tatsuki! > > I't seems that you dig it into source configs, I will

Re: Would like to use ARCH (uname -p) but it's not always correct (e.g. arm64)

2022-12-30 Thread Nuno Teixeira
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: --- PL

Re: Would like to use ARCH (uname -p) but it's not always correct (e.g. arm64)

2022-12-29 Thread Tatsuki Makino
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.cm

Re: Would like to use ARCH (uname -p) but it's not always correct (e.g. arm64)

2022-12-29 Thread Tatsuki Makino
Hello. Nuno Teixeira wrote on 2022/12/30 02:41: > I'm looking for the best way to use `uname -m` on plist_sub: > --- > UNAME_M_CMD=${UNAME} -m > PLIST_SUB+= ARCH="$$(${UNAME_M_CMD})" > --- > but I'm not sure sure about -m and -p differences and effects on > arm64/aarch64. > > It would be

Would like to use ARCH (uname -p) but it's not always correct (e.g. arm64)

2022-12-29 Thread Nuno Teixeira
Hello all, I'm looking for the best way to use `uname -m` on plist_sub: --- UNAME_M_CMD=${UNAME} -m PLIST_SUB+= ARCH="$$(${UNAME_M_CMD})" --- but I'm not sure sure about -m and -p differences and effects on arm64/aarch64. It would be nicer to use: --- PLIST_SUB+= ARCH=${ARCH} --- but it u