Commit Graph

41 Commits

Author SHA1 Message Date
Todd C. Miller
0497bde983 Quote $osversion since it may include whitespace. 2023-11-08 08:16:57 -07:00
Todd C. Miller
002e22f846 Add --configure-only option to quit after the configure run.
This will be used to avoid building the entire package when we just
want the 32 or 64 bit sudo_intercept.so and sudo_noexec.so.
2023-08-01 11:05:59 -06:00
Todd C. Miller
8e22ede2a6 Parse --disable-python in mkpkg and don't override -m32 for Solaris.
We want to be able to build without python and to specify the memory
model when building 32-bit .so's for Solaris.
2023-08-01 09:36:39 -06:00
Todd C. Miller
439f0734f5 Sudo-specific executables moved to /usr/libexec/sudo starting in
Debian 12 (Bookworm) and Ubuntu 22.04 (Jammy Jellyfish).
Previously, they were stored in /usr/lib/sudo.
2023-02-15 17:18:39 -07:00
Todd C. Miller
23237bb006 No longer need to treat Rocky or Alma Linux specially.
We now treat them the same as RHEL.
2023-01-30 07:32:05 -07:00
Todd C. Miller
53389b5743 Recognize Alma Linux and Rocky Linux (Open Source RHEL clones) 2023-01-27 14:44:45 -07:00
Todd C. Miller
94eafd2f08 Fix determination of the number of CPU cores on Linux. 2023-01-27 10:31:12 -07:00
Todd C. Miller
733303ed96 Add --build-only flag to skip building packages. 2023-01-21 09:43:15 -07:00
Todd C. Miller
ec79bbc8e0 Suport building packages on DragonFly BSD. 2023-01-20 15:08:31 -07:00
Todd C. Miller
7ac13204f2 Use clang, not /usr/bin/cc on FreeBSD and macOS.
While /usr/bin/cc _is_ clang on those platforms, some static analyzers
get confused if we don't run it as clang.
2022-11-22 07:21:01 -07:00
Todd C. Miller
981cc2f8e3 Better matching of macOS version to SDK path. 2022-11-17 14:26:55 -07:00
kernelmethod
0b541c2029 Add a --with-apparmor build flag
Add a new build flag, --with-apparmor, that builds sudo with AppArmor
support. Modify the build script for Debian and Ubuntu to enable this
flag by default.
2022-05-23 13:41:14 -06:00
Todd C. Miller
b61a55eb1b Fix dependency check for libssl on Debian/Ubuntu with OpenSSL 3.
Also add check for python 3.10 and 3.11 and remove versions < 3.4.
Fixes building on Ubuntu 22.04.
2022-05-15 07:45:51 -06:00
Todd C. Miller
4a7d26c381 Fix OS major version detection on CentOS Stream 2022-05-12 09:42:34 -06:00
Todd C. Miller
dfd8ef2931 Fix a typo in the AIX section. 2022-03-29 16:53:37 -06:00
Todd C. Miller
79d8500347 Allow ARCH_FLAGS to be overridden and handle macOS 12. 2022-02-23 20:04:21 -07:00
Todd C. Miller
9f427b0172 Prefer if [ ... ]; then over if test ...; then. 2022-02-23 20:03:33 -07:00
Todd C. Miller
0a89b87a3f mkpkg: handle a macOS SDK that just uses the major version.
For example, MacOSX11.sdk instead of MacOSX11.3.sdk.
2021-11-18 15:40:36 -07:00
Todd C. Miller
733fe4bd1a Build python package on Fedora 2021-11-04 10:59:24 -06:00
Todd C. Miller
12c8dba4ca Back out f2d82771e7dd, arm64e on macOS is still in preview state.
Until arm64e on macOS is finalized, continue to build arm64 packages.
2021-10-29 13:03:36 -06:00
Todd C. Miller
491aee866b Build arm64e ABI binaries on macOS 11 and above.
We originally used arm64 here but the correct ABI is arm64e.
The arm64 arch will be removed in a future release.
2021-10-27 09:51:09 -06:00
Todd C. Miller
7a56c9871e mkpkg: preserve make exit value on exit
Fixes a problem where the exit value from mkpkg was 0 even on error.
2021-10-10 16:14:52 -06:00
Todd C. Miller
18613eee22 mkpkg: limit the number of cores used to 16 2021-09-17 09:10:27 -06:00
Todd C. Miller
3f30704ab7 Add trivial support for FreeBSD packages.
The actual FreeBSD port supports multiple options but this is sufficient
for testing purposes.
2021-08-11 15:09:00 -06:00
Todd C. Miller
57cb62d7dc On macOS, don't disable tty tickets and set password timeout to 0.
This more closely matches the options used by the macOS version of sudo.
2021-08-02 11:11:05 -06:00
Todd C. Miller
0645a2ade6 Use /usr/bin/cc on FreeBSD and macOS. 2021-05-12 15:19:43 -06:00
Todd C. Miller
3018c1cd2d Build python plugin for RHEL 6 as well. 2021-05-06 18:59:51 -06:00
Todd C. Miller
db4ee0a903 Append to CFLAGS and LDFLAGS instead of overriding them when adding -m64. 2021-02-07 15:38:11 -07:00
Todd C. Miller
d28b4291c4 Build universal binaries on macOS 11.0 and higher.
The resulting package should work on Macs based on Apple Silicon.
2020-11-13 09:46:00 -07:00
Todd C. Miller
866b0b77f2 Build 64-bit binaries on HP-UX ia64 2020-10-20 14:40:32 -06:00
Todd C. Miller
c90539015f Fix libssl dependency on Debian-based systems.
Older systems may still have libssl1.0.0, not libssl1.1.
2020-08-05 12:58:02 -06:00
Todd C. Miller
a339945848 Prefer the python3 in /usr/bin on Solaris.
The /opt/csw version, if it exists, may be a 32-bit version which
we can't link with.  Also handle the case where the /usr/bin/python3
link is missing.
2020-06-06 18:45:28 -06:00
Todd C. Miller
6c881477b6 Build 64-bit binaries and the python package on Solaris 11 and above.
No longer prefer the Solaris Studio C compiler over gcc, it causes
issues with the Python plugin.
2020-06-06 16:07:33 -06:00
Todd C. Miller
15d93a1ca7 Fix Solaris and BSM audit warnings.
Use BSM audit on Illumos, which lacks Solaris audit.
2020-06-04 14:41:28 -06:00
Todd C. Miller
a0aaae5541 Don't enable BSM audit on Solaris 10, it is missing AUE_sudo 2020-06-01 13:56:47 -06:00
Todd C. Miller
e1aa76de16 Use Solaris audit for Solaris 11, not BSM audit.
BSM audit is no longer supported in Solaris 11.4.
2020-06-01 12:47:38 -06:00
Todd C. Miller
4ea7ecffdd Enable OpenSSL on RHEL 6 too.
The version of OpenSSL in RHEL 6 is new enough for the log server to use.
2020-05-15 09:50:46 -06:00
Todd C. Miller
eebe68233c Check for the Sun Studio C compiler on Solaris under /opt.
Also intialize with_python to false.
2020-04-08 14:10:03 -06:00
Todd C. Miller
d6684b851a Build python packages where possible. 2020-04-07 14:03:58 -06:00
Todd C. Miller
a46d8bd11a Enable OpenSSL on systems that can support it. 2020-03-19 06:05:32 -06:00
Todd C. Miller
2fe127d108 Move some scripts from the top level src dir to a scripts dir. 2020-02-06 14:30:26 -07:00