On Tue, 29 Aug 2000 13:22:31 -0500, you wrote:

>But when I try this in Red Hat, instead of making an rpm, it splats files 
>all over the place (ok that's exagerated - I"m sure it puts them in the 
Are you sure?

>I read the man for RPM and according to it, --rebuild _also_ installs it - 
>as I now witness on Red Hat 6.2.
 rpm --rebuild <source_package_file>+
 
       When invoked this way, rpm installs the named source pack-
       age,  and  does a prep, compile and install.  In addition,
       --rebuild builds a new binary package. When the build  has
       completed,  the build directory is removed (as in --clean)
       and the the sources and spec  file  for  the  package  are
       removed.
So it won't install the package, it just does the install part of the
rpm build, which consists of an install in the RPM_BUILD_ROOT.

It's certainly possible that you get a src.rpm which was made by someone
who does not understand what an RPM_BUILD_ROOT is, and so it installs
the files directly on the / fs during the install phase of the rpm
buils.
Blame the rpm maker not the rpm system.
Always --rebuild as a non priviledged user.

>Is there a way to get it to make an rpm like it does on SuSE, instead of 
>just "make ; make install" ing it???
--rebuild always does "make; make install"
It just "make install"'s in the RPM_BUILD_ROOT, if the packaging is
good.

>In addition, is there a command line option for making an i686 instead of 
>an i386, without doing any editing to the actual file?
rpm --target=i686 --rebuild filename.src.rpm

-- 
[EMAIL PROTECTED]



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to