fso-image.inc: do not search for .desktop files
authorDenis 'GNUtoo' Carikli <GNUtoo@no-log.org>
Sat, 3 Apr 2010 14:33:54 +0000 (16:33 +0200)
committerDenis 'GNUtoo' Carikli <GNUtoo@no-log.org>
Sat, 3 Apr 2010 15:00:09 +0000 (17:00 +0200)
We do not ship .desktop files in the image,so if we
  search for them we end up with this:
    ++ find ./usr/share/applications -name '*.desktop'
    find: `./usr/share/applications': No such file or directory
    + desktop=
  in do_rootfs and it fails.

So commenting that part fixes it

Thanks mickeyl for telling me(#openmoko-cdevel in Freenode)
  how to fix(so I didn't have to dig into it,and fixed quicker):
Apr 02 14:55:49 <mickeyl>       just comment this line out

PR was not bumped because for mickeyl told me(also #openmoko-cdevel in Freenode)
  that it was not necessary for images:
Apr 02 14:59:45 <GNUtoo>        should I INC_PR the file?
Apr 02 14:59:53 <mickeyl>       not necessary
Apr 02 14:59:59 <mickeyl>       image files will be reread
Apr 02 15:00:06 <mickeyl>       every time you build

recipes/images/fso-image.inc

index 88fc167..cc626f3 100644 (file)
@@ -117,10 +117,10 @@ fso_rootfs_postprocess() {
     echo "# NFS Host" >>./etc/fstab
     echo "192.168.0.200:/local/pkg /local/pkg nfs noauto,nolock,soft,rsize=32768,wsize=32768 0 0" >>./etc/fstab
     # fix .desktop files for illume
-    desktop=`find ./usr/share/applications -name "*.desktop"`
-    for file in $desktop; do
-        echo "Categories=Office;" >>$file
-    done
+    #desktop=`find ./usr/share/applications -name "*.desktop"`
+    #for file in $desktop; do
+    #    echo "Categories=Office;" >>$file
+    #done
     # minimal gtk theme foo
     mkdir -p ./etc/gtk-2.0/
     echo 'gtk-font-name = "Sans 5"' >> ./etc/gtk-2.0/gtkrc