delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/09/18/10:44:35

From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Trouble with pakke --syncdb (Was: List of DJGPP packages)
Date: Tue, 17 Sep 2002 21:55:05 +0100
Lines: 56
Message-ID: <3D8796A9.1426DFDB@phekda.freeserve.co.uk>
References: <3D7735B1 DOT F752E6DA AT lml DOT ls DOT fi DOT upm DOT es> <200209071414 DOT g87EEPV13625 AT envy DOT delorie DOT com> <3D7DD581 DOT CAD1BBE7 AT lml DOT ls DOT fi DOT upm DOT es> <3D7E54C9 DOT 593DC70F AT phekda DOT freeserve DOT co DOT uk> <3D80854A DOT BA8E7322 AT lml DOT ls DOT fi DOT upm DOT es> <3D80DE7F DOT 22320ED2 AT phekda DOT freeserve DOT co DOT uk> <3D8702E3 DOT 8B3FC149 AT lml DOT ls DOT fi DOT upm DOT es>
NNTP-Posting-Host: modem-48.beryllium.dialup.pol.co.uk
Mime-Version: 1.0
X-Trace: news7.svr.pol.co.uk 1032296333 32114 62.136.3.48 (17 Sep 2002 20:58:53 GMT)
NNTP-Posting-Date: 17 Sep 2002 20:58:53 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.19 i586)
X-Accept-Language: de,fr
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019