sudo-project / sudo

Utility to execute a command as another user
https://www.sudo.ws
Other
1.19k stars 220 forks source link

sudo rpm file for aarch64 platform #222

Closed Nixia408 closed 1 year ago

Nixia408 commented 1 year ago

my system is Centos7.6, I can find sudo-1.9.5-3.el7.x86_64.rpm on official websites. but I cannot find the same version rpm file for aarch64?

millert commented 1 year ago

I don't have the hardware to build aarch64 packages but you can easily do it yourself. See https://www.sudo.ws/docs/packaging/ for instructions.

Nixia408 commented 1 year ago

I don't have the hardware to build aarch64 packages but you can easily do it yourself. See https://www.sudo.ws/docs/packaging/ for instructions.

Thanks for your answer. When I followed the instrcuctions, I encountered a new problem, it prompts (error: unable to find AUDIT_USER_CMD in libaudit.h for --with-linux-audit)?

millert commented 1 year ago

Do you have the audit-libs-devel package installed?

Nixia408 commented 1 year ago

Do you have the audit-libs-devel package installed? there is no package named audit-libs-devel in centos 7 aarch64 systemimage

millert commented 1 year ago

Centos 7 does have a audit-libs-devel package, for example http://mirror.centos.org/altarch/7/os/aarch64/Packages/audit-libs-devel-2.8.5-4.el7.aarch64.rpm.

Nixia408 commented 1 year ago

Centos 7 does have a audit-libs-devel package, for example http://mirror.centos.org/altarch/7/os/aarch64/Packages/audit-libs-devel-2.8.5-4.el7.aarch64.rpm.

Finally, I successfully generated the rpm file.However, during the build it prompts an error like this, does this affect the final rpm fileimage

millert commented 1 year ago

That error comes from not having the which utility installed and can be ignored. The pp script was trying to locate rpmbuild using which but this failed since which is not installed. It will try to run rpmbuild anyway so the resulting packages should be fine. There is a minor problem due to /bin/ed not being present but that will only affect a few lines in the sample sudoers file which you are probably not using.

millert commented 1 year ago

I now have an arm64 build box and will be producing packages for RHEL, Debian, Ubuntu and SLES.