[Slackbuilds-users] Small error in google-go-lang SlackBuild

Tobias Columbus tobias.columbus at googlemail.com
Tue Jul 24 12:51:00 UTC 2012


Hi folks,

I stumbled upon a tiny bug in the google-go-lang Slackbuild.
If there is an $ARCH environment variable set, then the local variable
$GARCH is not properly initialized. Patch attached.

By the way, thanks to all maintainers and admins for the great work!

Tobias
-------------- next part --------------
*** original
--- modified
***************
*** 34,43 ****
  if [ -z "$ARCH" ]; then
    case "$( uname -m )" in
!       i?86) ARCH=i486; GARCH=386 ;;
!     x86_64) ARCH=x86_64; GARCH=amd64 ;;
           *) ARCH=$( uname -m ) ;;
    esac
  fi
  
  CWD=$(pwd)
  TMP=${TMP:-/tmp/SBo}
--- 34,49 ----
  if [ -z "$ARCH" ]; then
    case "$( uname -m )" in
!       i?86) ARCH=i486 ;; 
!     x86_64) ARCH=x86_64 ;;
           *) ARCH=$( uname -m ) ;;
    esac
  fi
  
+ case "$ARCH" in
+     i?86) GARCH=386 ;;
+     x86_64) GARCH=amd64 ;;
+     *) ;;
+ esac
+ 
  CWD=$(pwd)
  TMP=${TMP:-/tmp/SBo}


More information about the SlackBuilds-users mailing list