Hi Alejandro,
>> 050-add-case-insensitive-flag.patch
>
> Adding case insensitive pattern matching could be dangerous since opkg let's you
> have 2 packages with the same name with different capitalization.
>
> Maybe opkg should follow debian policy here and only allow lower case packages?
> opinions?
>
> "Package names (both source and binary, see Package, Section 5.6.7) must consist
> only of lower case letters (a-z), digits (0-9), plus (+) and minus (-) signs,
> and periods (.). They must be at least two characters long and must start with
> an alphanumeric character."
>
I agree with you about this one, Debian convention is a good thing. I
just ported the patch from OpenWRT since they apply it by default. But
it neither does harm, since I think packages with the same name and
different capitalization would conflict.
>> 060-add-find-command.patch
>
> The command currently searches both the repository cache and the installed
> packages, which means that you get 2 entries if the repository have a different
> version of a package installed on the system.
>
> Maybe we should only search on the repository cache the same way apt-cache
> works? Or is there value on returning both entries?
>
Hmm, it can be useful by letting you see the available versions. It is
also a ported patch, it is present by default in OpenWRT. It is not
perfect though, regexp searching sometimes misses some hits (when the
package names contain dashes). And opkg certainly could work on OpenWRT
without it.
> Also the man page on man/
opkg.1.in needs to be updated.
>
I might try to do it if the patch would be introduced in the main source.
>> 080-suppress-blank-package-fields.patch
>
> It's missing a #include <malloc.h> (free function), which triggers a warning.
>
Yeah, I've eventually seen the warning. Also ported package, the include
wasn't there since the beginning... I can change that.
>> 100-add-force-checksum.patch
>
> Looks good, but needs man page update on man/
opkg.conf.5.in.
>
>> 250-add-lists-dir-switch.patch
>
> Looks good, but needs man page update on man/
opkg.1.in.
>
I'll try to update the man pages (not an expert in that, but it's not so
difficult).
>> 260-add-print-package-size.patch
>
> It returns 0 as the size for installed packages (opkg --size
> list-installed).This is an opkg bug since Installed-Size is not being written to
> the status file. To follow up, I created:
>
>
https://bugzilla.yoctoproject.org/show_bug.cgi?id=9906
>
Yes, I've noticed that. It would be even nicer if the status file would
include the package description, I was thinking to try to do it. I
understand any effort could be useful in that direction.
> However, after manually adding 'Installed-Size' to the status file, opkg --size
> list-installed still shows 0.
>
That is quite weird. I did not try to manually add the Installed-Size in
the status file, but it does show the size for the packages in the
repository ( opkg --size list ). I will take a look about it, I don't
know why the package size is read from the repository cache but not from
the status file, there must be a clue somewhere :) Maybe
opkg_config->size is just not set and opkg info just lists the ASCII
entry without interpreting it?
>> 500-tar-gz-ipk-openwrt-support.patch
>
> I believe Paul suggested a simpler approach
>
Yeah, already did it, see my later mail, the
501-tar-gz-ipk-openwrt-support.patch. Anyway, this is essential to make
it work on OpenWRT, the other issues can be solved with command line and
conf file options.
>> 555_my_configs.patch
>
> I am hesitant to change the opkg default paths...the directories set on the
> patch are already configurable with 2 exceptions:
>
> *OPKG_CONF_DEFAULT_CONF_FILE_DIR .- You can set the conffile (not dir) with the
> -f options, or you can set the conf dir via the environment variable OPKG_CONF_DIR.
> *OPKG_CONF_DEFAULT_TRUSTED_PATH
>
> I would certainly take a patch to make OPKG_CONF_DEFAULT_TRUSTED_PATH
> configurable via .conf.
>
That patch was to be ignored :) it was only the set of configurations I
used to make it work. In my later e-mail I've sent a
510-nonstandard-install-prefix.patch which links
OPKG_CONF_DEFAULT_CONF_FILE_DIR and OPKG_CONF_DEFAULT_TRUSTED_PATH to
the --sysconfdir at configure time; I think it's a better approach. In
that e-mail I've also posted an opkg.conf that works on OpenWRT for
doing a simple upgrade of opkg without losing the installed files list,
if the 500 or 501 patch is applied.
As an observation, setting the OPKG_CONF_DEFAULT_* variables in a .h
file does not particularly serve for an API, since those vars are
already defined inside the shared lib when it is compiled. I was playing
with the API - yes, I know it's deprecated - to build kindle-opkg-gui
(the app is not very mature since the beginning, but I've managed to
compile it with some modifications and make it run, I still have to make
it list something; it did with the 0.1.8 API).
Cheers!
Florin