From: Arran Cudbard-Bell Date: Thu, 26 Jan 2023 06:42:07 +0000 (-0500) Subject: Don't set the path in the spec file X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=728a11039bf025a33c73c120c6ce33928362edd4;p=thirdparty%2Ffreeradius-server.git Don't set the path in the spec file --- diff --git a/redhat/freeradius.spec b/redhat/freeradius.spec index 78b04c8a1f0..88c1c80f57e 100644 --- a/redhat/freeradius.spec +++ b/redhat/freeradius.spec @@ -548,11 +548,9 @@ export CFLAGS="$CFLAGS -ffile-prefix-map=src/=%{_usrsrc}/debug/%{name}-%{version # which ships with RHEL 6 has basic C11 support, gcc doesn't. export LDFLAGS="-Wl,--build-id" -# Set the PATH to be something known and consistent. Different RHEL based distributions may mess with the -# default path resulting in binaries in /bin being picked up, which are really just symlinks to /usr/bin. -# These binaries aren't provided by any packages, so the resulting dependencies make the produced RPMs -# uninstallable. -export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH" +# Note: It's a bad idea to set PATH here as this may interfere with the modified path passed in by +# code-ready-builder. If the path needs to be modified, _install_script_path should be set in +# /etc/rpm/macros. e.g. echo "%_install_script_path /usr/sbin:/usr/bin:/usr/X11R6/bin" > /etc/rpm/macros # Pass in the release number, which was passed to us by whatever called rpmbuild %if %{?_release:1}%{!?_release:0}