From owner-freebsd-qa Tue Jun 4 11:54: 6 2002 Delivered-To: freebsd-qa@freebsd.org Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by hub.freebsd.org (Postfix) with SMTP id 7130337B404 for ; Tue, 4 Jun 2002 11:54:02 -0700 (PDT) Received: (qmail 8376 invoked by uid 0); 4 Jun 2002 18:53:55 -0000 Received: from p50861be5.dip.t-dialin.net (HELO eddie) (80.134.27.229) by mail.gmx.net (mp011-rz3) with SMTP; 4 Jun 2002 18:53:55 -0000 Message-Id: Date: Tue, 4 Jun 2002 20:52:27 +0200 X-Priority: 3 From: Heiner Eichmann X-Mailer: Mail Warrior To: qa@freebsd.org Cc: "dsyphers@uchicago.edu" MIME-Version: 1.0 Subject: Missing /var/db/pgk entry for XFree after installation Content-Type: Text/Plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8Bit X-Mailer-Version: v3.55 Sender: owner-freebsd-qa@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hallo! I had a problem upgrading KDE3 after a fresh FreeBSD 4.5 installation. During the FreeDSB installation, I have choosen to install X-Windows and KDE as well. Immediately afterwards I tried to upgrade to KDE3 using the ports which failed. After contacting David Syphers I guessed, that the missing XFree entry in /var/db/pgk was the reason. So I installed XFree 3 again (which created the required entry) and afterwards the KDE upgrade succeeded. As suggested by David I report this to you. If possible, the installation of components by sysinstall should keep track of the installed components in /var/db/pgk to keep the database consistent! Yours Heiner Original message from: David Syphers >On Sunday 02 June 2002 03:09 am, you wrote: >> >I think the problem is that you have qt23 and KDE 2.2.2 already installed >> >(these are the version in 4.5-R). Uninstall these before trying to >> > install qt30 and KDE 3 (the two versions of KDE can't coexist >> > peacefully). You can do this by using 'pkg_delete [name]' where [name] >> > is the name of what you want to remove (a list of installed programs is >> > given by 'ls /var/db/pkg'). >> >> Thanks for your hint, but it didn't work. What I did was the following: >> - deinstalling the old KDE and qt. Installing KDE 3 failed >> - deinstalling all KDE and qt's. Installing KDE 3 failed >> - installing X windows 4 from /usr/ports/x11/XFree86-4. Failed saying, that >> it can not overwrite some existing files - I wanted to deinstall the old X >> Windows. Impossible, because there was no entry in /var/db/pkg (I installed >> X windows during the installation of FreeBSD) - I installed XFree86 3 from >> /usr/ports/x11/XFree86 to get this missing entry in /var/db/pkg. My plan >> was to use the now existing entry to deinstall it, But - I gave KDE 3 a >> try: it worked! >> >> I guess that either all the installs / deinstalls created a missing file, >> or that the KDE 3 makefiles require a /var/db/pkg entry for XFree86 to make >> the correct compiler settings. In this case I would discourage the user to >> install X windows during the setup process or change the setup process so >> that the XFree86 entry in /var/db/pkg is written. > >I'm glad you finall got it working. It's not clear to me whether you're using >XFree86 3 or 4 at this point - if you are using 3, be aware that KDE 3 may >have problems with it. > >I didn't install XFree86 from sysinstall, so I hadn't realized that they still >don't make a pkg entry for it. I know people have complained about this in >the past - perhaps you can write qa@freebsd.org and let them know this is a >problem. For future reference, though, you can create a /var/db/pkg entry by >hand - all it wants is a directory, generally, so 'mkdir XFree86-4.2.0_1,1' >should work. Also, another way to uninstall software is to 'make deinstall' >in the port directory - this method is limited to the version that the port >has, however, so 'pkg_delete' is the only method for old software. > >-David > >-- >Everyone who believes in telekinesis, raise my hand... > >Astronomy and Astrophysics Center >The University of Chicago > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-qa" in the body of the message