From: Dan Pritts (email_suppressed_at_lugwash.org)
Date: Fri 15-Nov-2002 12:03:13 PM EST
On Fri, 15 Nov 2002 [e-mail suppressed] wrote:
> Hmmm, I've used rpmbuild --target extensively, but I've
> never included the -redhat-linux. My typical line now would
rpmbuild.8 says:
--target PLATFORM
When building the package, interpret PLATFORM as arch-vendor-os
and set the macros %_target, %_target_arch, and %_target_os
accordingly.
which is why i chose the arch-vendor-os.
> rpm -ivh foo.src.rpm
How do i uninstall, short of deleting the appropriate files
manually?
> then I go to the spec file which is in the default case:
> /usr/src/redhat/SPEC/ folder. It's a bad idea to build rpms
> as root if you can help it so I have a special folder I
i certainly agree that it is suboptimal, i just went with the
flow here ("the flow" seeming to be that you run it as root).
> related file in /etc or /~ goodness I could help you more
/usr/lib/rpm is the appropraite place.
my problem appears to be that redhat has macros defined for
i386, i486, i586, i686, athlon, but not anything else.
When i build with --target=i686-redhat-linux, it does pick
up appropriate CFLAGS. Presumably, I can just add my own
config for pentium4 with a little effort.
thanks for your help.
dan pritts
[e-mail suppressed]
734 996 0169
-- *** Sent from [e-mail suppressed] *** http://www.lugwash.org to unsubscribe: `echo "unsubscribe" | mail [e-mail suppressed]`
This archive was generated by hypermail 2.1.5 : Sun 05-Jan-2003 10:48:51 PM EST