gnome-shell-build-setup Fedora patch



I have successfully compiled gnome-shell on Fedora 10, and although it
doesn't quite run yet I thought I should add the required packages to
the gnome-shell-build-setup.sh script.

It may not be a complete list of required packages since I could already
have had some relevant development packages installed on my machine.

I also added a small check to see if the lsb_release command exists
before trying to call it (apparently it isn't installed on a standard
Fedora).

Hope you can use it.

Kind regards.
-- 
Mads Villadsen <maxx krakoa dk>
--- gnome-shell-build-setup.sh	2009-01-18 01:12:49.000000000 +0100
+++ gnome-shell-build-setup.sh.fedora	2009-01-18 01:26:00.000000000 +0100
@@ -47,20 +47,36 @@
     echo
 fi
 
-system=`lsb_release -is`
-if test x$system = xUbuntu -o x$system = xDebian ; then
-  reqd=""
-  for pkg in build-essential automake gnome-common flex bison curl \
-    git-core subversion gtk-doc-tools mesa-common-dev xulrunner-1.9-dev \
-    libdbus-glib-1-dev libffi-dev libgconf2-dev libgtk2.0-dev libgl1-mesa-dev \
-    libgstreamer-plugins-base0.10-dev python2.5-dev; do
-      if ! dpkg --status $pkg > /dev/null 2>&1; then
-        reqd="$pkg $reqd"
-      fi
-  done
-  if test ! "x$reqd" = x; then
-    echo "Please run 'sudo apt-get install $reqd' before building gnome-shell."
-    echo
+if which lsb_release > /dev/null 2>&1; then
+  system=`lsb_release -is`
+  if test x$system = xUbuntu -o x$system = xDebian ; then
+    reqd=""
+    for pkg in build-essential automake gnome-common flex bison curl \
+	git-core subversion gtk-doc-tools mesa-common-dev xulrunner-1.9-dev \
+	libdbus-glib-1-dev libffi-dev libgconf2-dev libgtk2.0-dev libgl1-mesa-dev \
+	libgstreamer-plugins-base0.10-dev python2.5-dev; do
+	if ! dpkg --status $pkg > /dev/null 2>&1; then
+          reqd="$pkg $reqd"
+	fi
+    done
+    if test ! "x$reqd" = x; then
+      echo "Please run 'sudo apt-get install $reqd' before building gnome-shell."
+      echo
+    fi
+  fi
+
+  if test x$system = xFedora ; then
+    reqd=""
+    for pkg in libffi-devel libXdamage-devel gnome-doc-utils xulrunner-devel \
+	librsvg2-devel libgnomeui-devel xterm xorg-x11-apps xorg-x11-server-Xephyr ; do
+	if ! rpm -q $pkg > /dev/null 2>&1; then
+          reqd="$pkg $reqd"
+	fi
+    done
+    if test ! "x$reqd" = x; then
+      echo "Please run 'su -c \"yum install $reqd\"' before building gnome-shell."
+      echo
+    fi
   fi
 fi
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]