Re: contrib like modules in Red Hat problem, Re: A "bug" report for orafce - Mailing list pgsql-hackers

From Tom Lane
Subject Re: contrib like modules in Red Hat problem, Re: A "bug" report for orafce
Date
Msg-id 8701.1200936699@sss.pgh.pa.us
Whole thread Raw
In response to Re: contrib like modules in Red Hat problem, Re: A "bug" report for orafce  (Devrim GÜNDÜZ <devrim@CommandPrompt.com>)
Responses Re: contrib like modules in Red Hat problem, Re: A "bug" report for orafce  (Devrim GÜNDÜZ <devrim@CommandPrompt.com>)
Re: contrib like modules in Red Hat problem, Re: A "bug" report for orafce  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
Devrim GÜNDÜZ <devrim@CommandPrompt.com> writes:
> On Mon, 2008-01-21 at 11:26 -0500, Andrew Dunstan wrote:
>> Shouldn't one always build RPMs as non-root?

> Probably, if the packager is not lazy ;)

It's really not hard, it just takes a couple of minutes of one-time
setup.  Make a file ~/.rpmmacros containing (in my case)

%_topdir /home/tgl/rpmwork

then create the directory ~/rpmwork and under it the five directories
BUILD/    RPMS/     SOURCES/  SPECS/    SRPMS/

Now you put your SRPMS in ~/rpmwork/SRPMS and run rpmbuild there,
same as you would do in /usr/src/redhat, you're just not root.
Much safer.

(Obviously, you can put your rpmwork directory wherever you want and
call it whatever you want, adjusting the _topdir macro to match.
What I show above is the customary thing for Red Hat engineers,
though.)
        regards, tom lane


pgsql-hackers by date:

Previous
From: Gregory Stark
Date:
Subject: Re: contrib like modules in Red Hat problem, Re: A "bug" report for orafce
Next
From: Andrew Dunstan
Date:
Subject: Re: Anyone tried PG with Perl 5.10?