On Sat, Sep 06, 2003 at 08:49:52AM +0200, Ralf S. Engelschall wrote:
> On Sat, Sep 06, 2003, Matthias Kurz wrote:
> 
> > I installed a new OpenPKG instance (that was built on another machine) on
> > a new machine. Now i see the following files in $opkg_root/RPM/PKG on
> > the new machine:
> > Packages
> > Providename
> > __db.001
> > __db.002
> > __db.003
> > This files normally appear under $opkg_root/RPM/DB, and they are there,
> > too. I did not find this files on other machines (that had OpenPKG instances
> > that where created before the rpm-4.0.2->rpm-4.2.1 - migration, even when
> > they are upgraded to the current openpkg base package). So, i guess they are
> > stray files created by the current openpkg-*-*-.<platform>-opk.sh.
> > Or, what is the reason for those files ?
> > I tend to do a "rm $opkg_root/RPM/PKG/*" from time to time. That is
> > probably no longer a good idea when those files have a meaning...
> 
> Anything under <prefix>/RPM/PKG/* you can safely remove once packages
> are installed. I've no clue why those files got copied there for you.
> They just have to life in <prefix>/RPM/DB/. But because it's a single
> box you see this, perhaps there was some build accident sometime. Remove
> the files and ignore it unless it happens again.

In the meantime i found a second machine where those files exist. And
i also know how to reproduce the problem.
After a "rm -rf $opkg_root; sh openpkg-*-*-.<platform>-opk.sh" everything
looks clean. But as soon as i try to install a rpm that needs the install
of another package first, the "strange" files appear. This typically
happens when i try to install perl for openpkg-tool and forget to install
gcc first.
Well, both machines with the problem where installed using 
"openpkg-20030901-20030901.ix86-solaris8-opk.sh" (*1*). I created a current
"openpkg-20030904-20030904.ix86-solaris8-opk.sh" from the "*.src.sh" and
retried. It still happens.

[EMAIL PROTECTED]:pts/3 /projects/tmp 47# sh 
openpkg-20030904-20030904.ix86-solaris8-opk.sh 
openpkg-20030904-20030904.ix86-solaris8-opk.sh: installing into /opkg...
openpkg-20030904-20030904.ix86-solaris8-opk.sh: installation done.
[EMAIL PROTECTED]:pts/3 /projects/tmp 48# su - opkg
[EMAIL PROTECTED] cd /opkg/RPM/PKG
[EMAIL PROTECTED] l
total 0
<rent/PKG/perl-5.8.0-20030903.ix86-solaris8-opk.rpm 
error: Failed dependencies:
        gcc is needed by perl-5.8.0-20030903
[EMAIL PROTECTED] l
total 800
-rw-r--r--   1 opkg     opkg       24576 Sep  6 15:40 Packages
-rw-r--r--   1 opkg     opkg       24576 Sep  6 15:40 Providename
-rw-r--r--   1 opkg     opkg        8192 Sep  6 15:40 __db.001
-rw-r--r--   1 opkg     opkg     1318912 Sep  6 15:40 __db.002
-rw-r--r--   1 opkg     opkg      417792 Sep  6 15:40 __db.003


When i remove the files and install in the right order, everything looks
ok. But as soon as i provoke the "Failed dependencies" error, the files
appear again.


[EMAIL PROTECTED] rm *
[EMAIL PROTECTED] l
total 0
<rrent/PKG/gcc-3.3.1-20030822.ix86-solaris8-opk.rpm                         
Preparing...                ########################################### [100%]
   1:gcc                    ########################################### [100%]
[EMAIL PROTECTED] l
total 0
<rent/PKG/perl-5.8.0-20030903.ix86-solaris8-opk.rpm                         
Preparing...                ########################################### [100%]
   1:perl                   ########################################### [100%]
[EMAIL PROTECTED] l
total 0
<rent/PKG/cvs-1.12.1-20030829.ix86-solaris8-opk.rpm                         
error: Failed dependencies:
        patch is needed by cvs-1.12.1-20030829
        fsl >= 1.2.0 is needed by cvs-1.12.1-20030829
[EMAIL PROTECTED] l
total 816
-rw-r--r--   1 opkg     opkg       24576 Sep  6 15:57 Packages
-rw-r--r--   1 opkg     opkg       24576 Sep  6 15:57 Providename
-rw-r--r--   1 opkg     opkg        8192 Sep  6 15:57 __db.001
-rw-r--r--   1 opkg     opkg     1318912 Sep  6 15:57 __db.002
-rw-r--r--   1 opkg     opkg      417792 Sep  6 15:57 __db.003


   (mk)


(*1*) Would it be very difficult to create a new such bootstrap file when
      openpkg is upgraded from a rpm ? But that is not that important.

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
   >> Im pr�motorischen Cortex kann jeder ein Held sein. (bdw) <<
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
Developer Communication List                   [EMAIL PROTECTED]

Reply via email to