zrhoffman commented on issue #7251:
URL: 
https://github.com/apache/trafficcontrol/issues/7251#issuecomment-1370160325

   > Do you have `community/rpm-tools` installed?
   
   Oh, I see. Yes, I have `community/rpm-tools` installed because I almost 
always run `make native` instead of `make`.
   
   > It would presumably work fine if I installed whatever package provides 
`rpm` for my system, but that did not used to be a requirement - and I feel 
that it shouldn't be. The issue stems from the fact that `rpm --eval %_arch` 
returns nothing on `stdout` on my system because it does not succeed.
   
   `rpm --eval %_arch` is a reliable way to get the Rocky Linux/CentOS-expected 
architecture for any supported architecture. `arm64` is particularly 
problematic because the RPM arch is supposed to be `aarch64` (and some ARM64 
platforms do return `aarch64` for `uname -m`, but `uname -m` returns `arm64` on 
macOS.
   
   I don't think having the `rpm` command unreasonable for CDN in a Box, since 
`rpm` is once of the required dependencies 
[listed](https://traffic-control-cdn.readthedocs.io/en/latest/development/building.html#install-the-dependencies)
 for building the RPMs without Docker.
   
   But if you feel strongly about not wanting to install `rpm-tools`, that part 
of the Makefile could be something like
   
   ```shell
   docker run --rm rockylinux:8 rpm --eval %_arch
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to