Mail Archives: djgpp/2002/09/18/10:44:35
Hello.
Manuel Collado wrote:
[snip]
> Another question has arised when trying to setup a global installation
> procedure (I've changed the subject line to reflect this new topic).
> I've tried to make a global installation by simply unzipping a lot of
> archives, and then invoking 'pakke --initdb' and 'pakke --syncdb' to
> build the installed packages database.
>
> When doing so I see some unpacked packages not listed by 'pakke -qa'. I
> mean packages with valid dsms. Before posting details (a very long post)
Packages with valid DSMs should be listed. Did you get any errors, when doing
a --syncdb? This sounds like a bug.
Rather than posting a lot of information here, you could send me the following
information:
* the output of 'pakke -v --syncdb';
* which packages you are expecting to appear in the list, but don't.
I have a mirror of the DJGPP packages, so I could try to reproduce the
problem.
> I would like to know what is the exact policy used by pakke to find
> which pakckages has been manually installed, so I could try to diagnose
> the problem.
>
> For example, I got 'g77' listed twice (as 'g77' and 'g7731b') and gcc
> not listed at all, after unzipping 'gcc31b.zip' and 'g7731b.zip' among
> other archives.
pakke gets information about installed packages from the following places:
* DSMs for installed packages in $DJDIR/share/pakke/db;
* version files (.ver files) for installed packages in $DJDIR/manifest.
After parsing the package details, duplicates are removed. If there are two
entries for a package - from a DSM and from a version file - then the DSM
entry is preferred.
The version files generally contain a format that pakke can parse, e.g.: "gmp
4.1, GNU Multi-Precision library (binaries)". Unfortunately some version files
don't follow this format or have slightly different information. g7731b.zip is
probably one such package, where it has g7731b as the package name in the
version file.
So it is possible to end up with two entries for a package, because pakke
keeps an entry from the DSM and an entry with slightly different information
from version file.
Regards,
--
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]
- Raw text -