Send commitlog mailing list submissions to
        commitlog@lists.openmoko.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.openmoko.org/mailman/listinfo/commitlog
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of commitlog digest..."
Today's Topics:

   1. r4807 - trunk/src/target/opkg ([EMAIL PROTECTED])
   2. r4808 - trunk/src/target/opkg/libopkg ([EMAIL PROTECTED])
   3. r4809 - developers/charlie/Wiki ([EMAIL PROTECTED])
--- Begin Message ---
Author: tick
Date: 2008-11-20 11:04:22 +0100 (Thu, 20 Nov 2008)
New Revision: 4807

Modified:
   trunk/src/target/opkg/TODO
Log:
Clean up some out of date TODOs
Keep some still valid, or what I am not sure about.


Modified: trunk/src/target/opkg/TODO
===================================================================
--- trunk/src/target/opkg/TODO  2008-11-20 02:10:28 UTC (rev 4806)
+++ trunk/src/target/opkg/TODO  2008-11-20 10:04:22 UTC (rev 4807)
@@ -1,108 +1,52 @@
-
 Things to do for opkg, in a partial order:
 
-0) Play with configure to check for strdup/strndup ( to works with 
replace/replace.h stuffs )
+1) Bug fixes
 
-1) Fix incompatibilities between current C-based opkg and original
-sh-based opkg.
+1.a) fix all code marked "XXX: BUG"
 
-1.a) Fix opkg.conf options for http_proxy and friends. DONE:
-     http_proxy tested, (ftp_proxy, no_proxy, proxy_user, and
-     proxy_passwd have not been tested).
+1.b) fix all outstanding opkg bugzilla bugs
 
-1.b) Fix export of PKG_ROOT during pkg_run_script. DONE: tested.
-
-1.c) Fix so that a src with file:// is supported. DONE: tested.
-
-1.d) Fix paths in list files. DONE: tested.
-
-1.e) Fix offline_root mode. DONE: tested.
-
-2) Release opkg as opkg, (no longer as opkg-unstable). This depends on
-   all of (1) being DONE. Although I might let this release proceed
-   without offline_root --- only Jamey will complain. ;-)
-
-3) Bug fixes
-
-3.a) fix all code marked "XXX: BUG"
-
-3.b) fix all outstanding opkg bugzilla bugs
-
-3.c) conffiles support seems broken again. It's prompting on just
-     about every file. It might be because of file names beginning
-     with "///".
-       FIXED the "///" problem, (seemed harmless though), in 0.99.2
-       FIXED a problem with conffiles with -force-reinstall in 0.99.2.
-       This seems to be mostly working now, (I have seen strange
-       prompting on one out of the three ssh conffiles, maybe the
-       postinst script changed it? Hmmm... and something is going on
-       with pcmcia-cs too. Mysterious.)
-
-3.d) Test versioned Depends
-
-3.e) Test Provides.  DONE.
-
-3.f) Make sure Suggests, Recommends, (Enhances?), all work, (I know
+1.c) Make sure Suggests, Recommends, (Enhances?), all work, (I know
      some of these are not yet implemented)
 
-3.g) Audit all dpkg package fields for both parsing and printing support.
+1.d) Audit all dpkg package fields for both parsing and printing support.
 
-3.h) "opkg status" and "opkg info" need to complain about unknown
+1.e) "opkg status" and "opkg info" need to complain about unknown
   packages. For that matter, these two commands should probably just
   become aliases to the same functionality.
 
-  Jamey thinks opkg status should be brief give one line per package, while
-  opkg info can continue to be verbose. 7/23/2002.
 
-3.i) Currently "opkg install foo" will upgrade foo if possible. The
-  "Package foo is already installed" check needs to be moved up to
-  avoid this.
+2) Implement new features
 
-  Jamey thinkgs that "opkg install foo" should upgrade foo.  7/23/2002.
+2.a) start with all "XXX: FEATURE" comments
 
-4) Implement new features
-
-4.a) start with all "XXX: FEATURE" comments
-
-4.b) implement all accepted opkg bugzilla feature requests, (also
+2.b) implement all accepted opkg bugzilla feature requests, (also
      check old post "Subject: Reinventing opkg" to see if we forgot
      any of the good ideas we had once upon a time)
 
-4.c) opkg remove needs to (prompt first) then remove packages for
-     which the dependencies will no longer be met. DONE. 7/19/2002.
-
-4.d) Add support for:
+2.c) Add support for:
        opkg install foo from some-feed
        opkg install foo-0.4.3
        opkg install foo-latest # Only needed if we add a feed-order-priority 
option
      or something like that.
 
-4.e) Orphaned dependency management (what is this -Jamey 7/23/2002)
-
-4.f) Add code for HTTP GET to eliminate wget dependence, (see
-     apps/urlget for code). We should probably still keep the wget
-     call as a backup.  
-
-     -- use busybox's internal wget -jamey 7/23/2002
-
-4.g) Experiment with making a small statically linked binary. Can we
+2.d) Experiment with making a small statically linked binary. Can we
      eliminate some library calls, (glob, regcomp)? Can we get
      something like uclibc to work well?
 
-4.h) Add support for a deb-src in /etc/opkg.conf. (ARGH! Name clash
+2.e) Add support for a deb-src in /etc/opkg.conf. (ARGH! Name clash
      alert! In apt-land, deb-src means something very different than
      what I would mean here. Hrm... Maybe src-deb would be cleaner? )
 
      (What is this?  Jamey 7/23/2002) 
 
-4.i) Figure out a clever chroot mechanism for running maintainer scripts in
+2.f) Figure out a clever chroot mechanism for running maintainer scripts in
      offline_root mode.
 
-4.j) Implement opkg history mechanism, with undo and redo?  Keep track of
+2.g) Implement opkg history mechanism, with undo and redo?  Keep track of
      packages removed/installed by each call to opkg.
 
-5) release opkg-1.0.0
 
-6) Cleanup the code
+3) Cleanup the code
 
-6.a) Start with all comments marked "XXX: CLEANUP"
+3.a) Start with all comments marked "XXX: CLEANUP"




--- End Message ---
--- Begin Message ---
Author: tick
Date: 2008-11-20 11:04:46 +0100 (Thu, 20 Nov 2008)
New Revision: 4808

Modified:
   trunk/src/target/opkg/libopkg/args.c
   trunk/src/target/opkg/libopkg/args.h
   trunk/src/target/opkg/libopkg/opkg.c
   trunk/src/target/opkg/libopkg/opkg_conf.c
   trunk/src/target/opkg/libopkg/opkg_conf.h
   trunk/src/target/opkg/libopkg/opkg_download.c
Log:
opkg:  adding cache support

   opkg-cl --cache <cache_directory>

   Thank for Werner


Modified: trunk/src/target/opkg/libopkg/args.c
===================================================================
--- trunk/src/target/opkg/libopkg/args.c        2008-11-20 10:04:22 UTC (rev 
4807)
+++ trunk/src/target/opkg/libopkg/args.c        2008-11-20 10:04:46 UTC (rev 
4808)
@@ -42,7 +42,8 @@
      ARGS_OPT_NODEPS,
      ARGS_OPT_VERBOSITY,
      ARGS_OPT_MULTIPLE_PROVIDERS,
-     ARGS_OPT_AUTOREMOVE
+     ARGS_OPT_AUTOREMOVE,
+     ARGS_OPT_CACHE,
 };
 
 int args_init(args_t *args)
@@ -92,6 +93,7 @@
 
      free (args->dest);
      free (args->tmp_dir);
+     free (args->cache);
      free(args->conf_file);
      args->conf_file = NULL;
 }
@@ -104,6 +106,7 @@
      static struct option long_options[] = {
          {"query-all", 0, 0, 'A'},
          {"autoremove", 0, 0, ARGS_OPT_AUTOREMOVE},
+         {"cache", 1, 0, ARGS_OPT_CACHE},
          {"conf-file", 1, 0, 'f'},
          {"conf", 1, 0, 'f'},
          {"dest", 1, 0, 'd'},
@@ -180,6 +183,10 @@
          case ARGS_OPT_AUTOREMOVE:
               args->autoremove = 1;
               break;
+         case ARGS_OPT_CACHE:
+              free(args->cache);
+              args->cache = strdup(optarg);
+              break;
          case ARGS_OPT_FORCE_DEFAULTS:
               args->force_defaults = 1;
               break;
@@ -277,6 +284,7 @@
      printf("\t                         2 informative messages\n");
      printf("\t                         3 debug output\n");
      printf("\t-f <conf_file>          Use <conf_file> as the opkg 
configuration file\n");
+     printf("\t--cache <directory>     Use a package cache\n");
      printf("\t-conf <conf_file>       Default configuration file location\n");
      printf("                          is %s/%s\n", 
ARGS_DEFAULT_CONF_FILE_DIR, ARGS_DEFAULT_CONF_FILE_NAME);
      printf("\t-d <dest_name>          Use <dest_name> as the the root 
directory for\n");

Modified: trunk/src/target/opkg/libopkg/args.h
===================================================================
--- trunk/src/target/opkg/libopkg/args.h        2008-11-20 10:04:22 UTC (rev 
4807)
+++ trunk/src/target/opkg/libopkg/args.h        2008-11-20 10:04:46 UTC (rev 
4808)
@@ -42,6 +42,7 @@
     char *offline_root;
     char *offline_root_pre_script_cmd;
     char *offline_root_post_script_cmd;
+    char *cache;
 };
 typedef struct args args_t;
 

Modified: trunk/src/target/opkg/libopkg/opkg.c
===================================================================
--- trunk/src/target/opkg/libopkg/opkg.c        2008-11-20 10:04:22 UTC (rev 
4807)
+++ trunk/src/target/opkg/libopkg/opkg.c        2008-11-20 10:04:46 UTC (rev 
4808)
@@ -273,6 +273,12 @@
     a->offline_root_post_script_cmd = strdup (c->offline_root_post_script_cmd);
   }
 
+  if (c->cache) {
+    if (a->cache)
+       free (a->cache);
+    a->cache = strdup(c->cache);
+  }
+
   /* throw away old opkg_conf and start again */
   opkg_conf_deinit (opkg->conf);
   opkg_conf_init (opkg->conf, opkg->args);

Modified: trunk/src/target/opkg/libopkg/opkg_conf.c
===================================================================
--- trunk/src/target/opkg/libopkg/opkg_conf.c   2008-11-20 10:04:22 UTC (rev 
4807)
+++ trunk/src/target/opkg/libopkg/opkg_conf.c   2008-11-20 10:04:46 UTC (rev 
4808)
@@ -49,6 +49,7 @@
 int opkg_init_options_array(const opkg_conf_t *conf, opkg_option_t **options)
 {
      opkg_option_t tmp[] = {
+         { "cache", OPKG_OPT_TYPE_STRING, &conf->cache},
          { "force_defaults", OPKG_OPT_TYPE_BOOL, &conf->force_defaults },
          { "force_depends", OPKG_OPT_TYPE_BOOL, &conf->force_depends },
          { "force_overwrite", OPKG_OPT_TYPE_BOOL, &conf->force_overwrite },
@@ -270,6 +271,8 @@
      opkg_conf_override_string(&conf->offline_root_post_script_cmd, 
                               args->offline_root_post_script_cmd);
 
+     opkg_conf_override_string(&conf->cache, args->cache);
+
 /* Pigi: added a flag to disable the checking of structures if the command 
does not need to 
          read anything from there.
 */
@@ -338,6 +341,8 @@
      opkg_conf_free_string(&conf->offline_root_pre_script_cmd);
      opkg_conf_free_string(&conf->offline_root_post_script_cmd);
 
+     opkg_conf_free_string(&conf->cache);
+
      if (conf->verbosity > 1) { 
          int i;
          hash_table_t *hashes[] = {

Modified: trunk/src/target/opkg/libopkg/opkg_conf.h
===================================================================
--- trunk/src/target/opkg/libopkg/opkg_conf.h   2008-11-20 10:04:22 UTC (rev 
4807)
+++ trunk/src/target/opkg/libopkg/opkg_conf.h   2008-11-20 10:04:46 UTC (rev 
4808)
@@ -70,6 +70,7 @@
      int query_all;
      int verbosity;
      int noaction;
+     char *cache;
 
      /* proxy options */
      char *http_proxy;

Modified: trunk/src/target/opkg/libopkg/opkg_download.c
===================================================================
--- trunk/src/target/opkg/libopkg/opkg_download.c       2008-11-20 10:04:22 UTC 
(rev 4807)
+++ trunk/src/target/opkg/libopkg/opkg_download.c       2008-11-20 10:04:46 UTC 
(rev 4808)
@@ -33,7 +33,8 @@
 #include "str_util.h"
 #include "opkg_defines.h"
 
-int opkg_download(opkg_conf_t *conf, const char *src, const char 
*dest_file_name, curl_progress_func cb, void *data)
+static int do_download(opkg_conf_t *conf, const char *src,
+  const char *dest_file_name, curl_progress_func cb, void *data)
 {
     int err = 0;
 
@@ -135,6 +136,43 @@
     return 0;
 }
 
+int opkg_download(opkg_conf_t *conf, const char *src,
+  const char *dest_file_name, curl_progress_func cb, void *data)
+{
+    char *cache_name = strdup(src);
+    char *cache_location, *p;
+    int err = 0;
+
+    if (!conf->cache || str_starts_with(src, "file:")) {
+       err = do_download(conf, src, dest_file_name, cb, data);
+       goto out1;
+    }
+
+    for (p = cache_name; *p; p++)
+       if (*p == '/')
+           *p = ',';   /* looks nicer than | or # */
+
+    sprintf_alloc(&cache_location, "%s/%s", conf->cache, cache_name);
+    if (file_exists(cache_location))
+       opkg_message(conf, OPKG_NOTICE, "Copying %s\n", cache_location);
+    else {
+       err = do_download(conf, src, cache_location, cb, data);
+       if (err) {
+           (void) unlink(cache_location);
+           goto out2;
+       }
+    }
+
+    err = file_copy(cache_location, dest_file_name);
+
+
+out2:
+    free(cache_location);
+out1:
+    free(cache_name);
+    return err;
+}
+
 int opkg_download_pkg(opkg_conf_t *conf, pkg_t *pkg, const char *dir)
 {
     int err;




--- End Message ---
--- Begin Message ---
Author: charlie
Date: 2008-11-20 11:28:00 +0100 (Thu, 20 Nov 2008)
New Revision: 4809

Added:
   developers/charlie/Wiki/ParoliTodo
Modified:
   developers/charlie/Wiki/Todo
Log:
Update personal wiki


Added: developers/charlie/Wiki/ParoliTodo
===================================================================
--- developers/charlie/Wiki/ParoliTodo                          (rev 0)
+++ developers/charlie/Wiki/ParoliTodo  2008-11-20 10:28:00 UTC (rev 4809)
@@ -0,0 +1,75 @@
+Paroli / Tichy TODO
+
+TODO file based on the premises that we are going to use tichy with a
+sdl backend, using illume as a launcher for all tichy applications,
+and illume keyboard, and using frameworkd. I also assume that we can
+use tichy item, actor, and view even with edje...
+
+This TODO target a 'version 1.0', with many things still missing, but
+good enough to compete with all previous distribution.
+
+* Tichy general
+  - Add persistance for PIM data
+     (Or try to use frameworkd)
+  - Save traceback in Tasklet
+
+* Illume intergration  
+  - Finish DBus launcher
+  - Tichy pluging that show notifications in illume bar
+     That mean we need to see how to communicate with illume
+
+o [Mirko] Paroli integration
+  - Finish Evas backend
+  - Create specific paroli application
+    In fact since with edje all application need a edje file,
+    we need to redo most of them !
+  - merge paroli into tichy git
+
+* Messages
+  - View message in order by time
+  - Add : Export/Import all messages
+ 
+* SMS
+  - See a dialog when sending SMS
+
+* Keyboard Input
+  - See how good the X keyboards integrate.
+    Already tried with illume keyboard and SDL backend
+  - See if we can integrate SCIM into tichy ??
+  
+* Logs app
+  - finish logs app, add persistance
+  - Add a way to filter logs (type, incoming, outgoing, etc...)
+
+* Settings
+  - Set time
+  - Set style (how is it going to work with evas ?)
+  - Select profile
+  - Set tone
+  - Set audio volume
+  - Set PIN On/Off
+
+* Contacts
+  - Polish app
+  - Add a way to save typed number as contact
+  - Save contact from SIM to Phone and reverse
+  - Add : Export / Import all contacts
+  - Add send message action
+
+* Image Viewer app
+
+* Player app
+  - See how to use gstreamer into evas
+  - Add pause
+  - Add playlist
+
+* Improve file browser
+  - cause it sucks now
+ 
+* Look
+  - Find all icons
+  - Find a good font
+
+* Suspend / Resume
+  - Make sure that it works
+  - Also make the phone resume from rtf

Modified: developers/charlie/Wiki/Todo
===================================================================
--- developers/charlie/Wiki/Todo        2008-11-20 10:04:46 UTC (rev 4808)
+++ developers/charlie/Wiki/Todo        2008-11-20 10:28:00 UTC (rev 4809)
@@ -3,9 +3,12 @@
 * Solve bugs #1610 and name size (put a warning)
 * See how to run sdl on framebuffer (there is a tslib problem)
 
+* See how we can use SCIM on the phone !
+
 == GSM Testing ==
-* Add call tests
-* Add user interactions in the GSM test script
+* Add SIM contact tests
+   Nee to try this : 'AT+CPBS="SM";+CPBR=?', cause it raises an error sometime 
!
+* Add SMS Tests
 * Modify kernel driver to have a do_reset method in gsm_pm ?
 * See ticket #1857, try to reproduce the problem
    sent message to trac, waiting for more info
@@ -13,11 +16,13 @@
    What are the problems, how do we test them ?
 
 == Tichy ==
+* Try paroli, make patches so that it works on the desktop if needed
+* Fix XWindow key problem
+* See how good tichy is as a window manager...
 * Create gui_edje (with default edje files for every widget)
-* Proper command line argument parsing
 * New .bb file using git
 * Fix WaitDBus call timeout problem in tichy
-* See why incoming MSN events are not received
 
 == Other ==
 * BY PLANE TICKETS FOR XMASS !!!
+* Extend ARC




--- End Message ---
_______________________________________________
commitlog mailing list
commitlog@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/commitlog

Reply via email to