Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Erik Troan <ewt@redhat.com>
Subject: Re: Aarrgh! (rpm misunderstanding)
Date: Tue, 7 May 1996 11:14:25 -0400 (EDT)	[thread overview]
Message-ID: <621639a02802527c6608e5768f0a8963.axp-list@archive.invalid> (raw)
In-Reply-To: <m0uGgut-001UyKC@goonsquad.spies.com>

On Tue, 7 May 1996, Eric Smith wrote:

> So I did an "rpm --install apache-1.0.0-2.src.rpm".  It hung.  I let it run
> for a while before I gave up.  Top showed that rpm was sucking CPU cycles as
> fast as it could get them, but the cpio it had forked was sleeping.

This was a problem in RPM 2.0.0 on the Alpha. It was fixed in 2.0.1 and
better.

> Unfortunately, it doesn't stop there.  The make completes successfully, so
> it does a make install, which proceeds to wipe out my old configuration
> files.  I had no idea it was going to do a make install, or I never would
> have invoked it.  To me, the word recompile doesn't imply install.  Most of
> the time if I recompile something I want to test it before I install it for
> general use.

Building ignores the database completely. If you had downloaded the bianry
package instead and upgraded to it, your config files would have been saved.

> I had purchased an official copy of Red Hat 2.1 specifically to get the User's
> Guide in the hope of learning how this rpm stuff works.  By my count, there
> are seven pages explaining how to use rpm to install object rpm packages, and
> twenty pages explaining how I can create my own new rpms, but not a single page
> telling me how to do anything useful with a source rpm.

True - we're trying to fix this. The answer for what you wanted to do it:

	1) rpm -i apache*src.rpm
	2) rpm -bp /usr/src/redhat/apache*.spec
	3) cd /usr/src/redhat/BUILD/apache*
	4) do the rest by hand

> Overall, I really like rpm, but there seem to be some rough edges, or at
> least some holes in the documentation.

Gaping holes in the documentation. Source packages are not tracked in the
database at all, and we can't control what a build process does. RPM doesn't
have much control over the "make install" step of a Makefile.

Erik

-------------------------------------------------------------------------------
   Always hoped that I'd be an apostle. Knew that I would make it if I tried.
     Then when we retire we can write the gospels so they'll all talk about
         us when we die. - "The Last Supper" from Jesus Christ Superstar
|   Erik Troan   =   http://sunsite.unc.edu/ewt/   =   ewt@sunsite.unc.edu    |

      reply	other threads:[~1996-05-07 15:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-05-07  7:10 Aarrgh! (rpm misunderstanding) Eric Smith
1996-05-07 15:14 ` Erik Troan [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox