Skip to content

Instantly share code, notes, and snippets.

@PeterJohnson
Created August 29, 2015 00:29
Show Gist options
  • Save PeterJohnson/88137d4c55356b6e6c96 to your computer and use it in GitHub Desktop.
Save PeterJohnson/88137d4c55356b6e6c96 to your computer and use it in GitHub Desktop.
Patch to fix package creation for fglrx-14.502.1040
--- a/detect_requirements_package.sh 2015-08-03 10:13:42.000000000 -0700
+++ b/detect_requirements_package.sh 2015-08-24 22:40:41.352391977 -0700
@@ -100,7 +100,7 @@
distro="RHEL"
fi
-if [ $distro="SuSE" -o $distro="RHEL" ];
+if [ "$distro" = "SuSE" -o "$distro" = "RHEL" ];
then
gcc_bin=`which rpmbuild`
@@ -115,7 +115,7 @@
fi
fi
-if [ $distro="SuSE" -o $distro="RHEL" ]; then
+if [ "$distro" = "SuSE" -o "$distro" = "RHEL" ]; then
gcc_bin=`rpm -qa | grep kernel-devel`
if [ $? -ne 0 -o "$gcc_bin" = "" ]; then
#system doesn't have kernel development packags which is madatory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment