I've been attempting to build SHR under FreeBSD - after installing
several ports such as gsed and gtar I'm making progress, but it's still
far from working mostly due to issues in individual packages now.  I've
attached a couple of patches to the build system which are generic
but fix a couple of issues I came across.  GNU tools allow parameters
to be specified anywhere but on FreeBSD (and other OSes?) the
parameters must be specified at the beginning of the line.

-- 
Bruce Cran
Index: bitbake/lib/bb/fetch/git.py
===================================================================
--- bitbake/lib/bb/fetch/git.py	(revision 1165)
+++ bitbake/lib/bb/fetch/git.py	(working copy)
@@ -91,7 +91,7 @@
         os.chdir(repodir)
         # Remove all but the .git directory
         if not self._contains_ref(ud.tag, d):
-            runfetchcmd("rm * -Rf", d)
+            runfetchcmd("rm -Rf *", d)
             runfetchcmd("git fetch %s://%s%s%s %s" % (ud.proto, username, ud.host, ud.path, ud.branch), d)
             runfetchcmd("git fetch --tags %s://%s%s%s" % (ud.proto, username, ud.host, ud.path), d)
             runfetchcmd("git prune-packed", d)
diff --git a/classes/rm_work.bbclass b/classes/rm_work.bbclass
index 094f916..266467b 100644
--- a/classes/rm_work.bbclass
+++ b/classes/rm_work.bbclass
@@ -20,7 +20,7 @@ do_rm_work () {
         if [ `basename ${dir}` = "temp" ]; then
             echo "Not removing temp"
         else 
-            echo "Removing $dir" ; rm $dir -rf		
+            echo "Removing $dir" ; rm -rf $dir
         fi
     done
 }
_______________________________________________
Smartphones-userland mailing list
Smartphones-userland@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/smartphones-userland

Reply via email to