opkg: Fix #ifdef
[oweals/opkg-lede.git] / TODO
1
2 Things to do for opkg, in a partial order:
3
4 0) Play with configure to check for strdup/strndup ( to works with replace/replace.h stuffs )
5
6 1) Fix incompatibilities between current C-based opkg and original
7 sh-based opkg.
8
9 1.a) Fix opkg.conf options for http_proxy and friends. DONE:
10      http_proxy tested, (ftp_proxy, no_proxy, proxy_user, and
11      proxy_passwd have not been tested).
12
13 1.b) Fix export of PKG_ROOT during pkg_run_script. DONE: tested.
14
15 1.c) Fix so that a src with file:// is supported. DONE: tested.
16
17 1.d) Fix paths in list files. DONE: tested.
18
19 1.e) Fix offline_root mode. DONE: tested.
20
21 2) Release opkg as opkg, (no longer as opkg-unstable). This depends on
22    all of (1) being DONE. Although I might let this release proceed
23    without offline_root --- only Jamey will complain. ;-)
24
25 3) Bug fixes
26
27 3.a) fix all code marked "XXX: BUG"
28
29 3.b) fix all outstanding opkg bugzilla bugs
30
31 3.c) conffiles support seems broken again. It's prompting on just
32      about every file. It might be because of file names beginning
33      with "///".
34         FIXED the "///" problem, (seemed harmless though), in 0.99.2
35         FIXED a problem with conffiles with -force-reinstall in 0.99.2.
36         This seems to be mostly working now, (I have seen strange
37         prompting on one out of the three ssh conffiles, maybe the
38         postinst script changed it? Hmmm... and something is going on
39         with pcmcia-cs too. Mysterious.)
40
41 3.d) Test versioned Depends
42
43 3.e) Test Provides.  DONE.
44
45 3.f) Make sure Suggests, Recommends, (Enhances?), all work, (I know
46      some of these are not yet implemented)
47
48 3.g) Audit all dpkg package fields for both parsing and printing support.
49
50 3.h) "opkg status" and "opkg info" need to complain about unknown
51   packages. For that matter, these two commands should probably just
52   become aliases to the same functionality.
53
54   Jamey thinks opkg status should be brief give one line per package, while
55   opkg info can continue to be verbose. 7/23/2002.
56
57 3.i) Currently "opkg install foo" will upgrade foo if possible. The
58   "Package foo is already installed" check needs to be moved up to
59   avoid this.
60
61   Jamey thinkgs that "opkg install foo" should upgrade foo.  7/23/2002.
62
63 4) Implement new features
64
65 4.a) start with all "XXX: FEATURE" comments
66
67 4.b) implement all accepted opkg bugzilla feature requests, (also
68      check old post "Subject: Reinventing opkg" to see if we forgot
69      any of the good ideas we had once upon a time)
70
71 4.c) opkg remove needs to (prompt first) then remove packages for
72      which the dependencies will no longer be met. DONE. 7/19/2002.
73
74 4.d) Add support for:
75         opkg install foo from some-feed
76         opkg install foo-0.4.3
77         opkg install foo-latest # Only needed if we add a feed-order-priority option
78      or something like that.
79
80 4.e) Orphaned dependency management (what is this -Jamey 7/23/2002)
81
82 4.f) Add code for HTTP GET to eliminate wget dependence, (see
83      apps/urlget for code). We should probably still keep the wget
84      call as a backup.  
85
86      -- use busybox's internal wget -jamey 7/23/2002
87
88 4.g) Experiment with making a small statically linked binary. Can we
89      eliminate some library calls, (glob, regcomp)? Can we get
90      something like uclibc to work well?
91
92 4.h) Add support for a deb-src in /etc/opkg.conf. (ARGH! Name clash
93      alert! In apt-land, deb-src means something very different than
94      what I would mean here. Hrm... Maybe src-deb would be cleaner? )
95
96      (What is this?  Jamey 7/23/2002) 
97
98 4.i) Figure out a clever chroot mechanism for running maintainer scripts in
99      offline_root mode.
100
101 4.j) Implement opkg history mechanism, with undo and redo?  Keep track of
102      packages removed/installed by each call to opkg.
103
104 5) release opkg-1.0.0
105
106 6) Cleanup the code
107
108 6.a) Start with all comments marked "XXX: CLEANUP"