X-Original-To: pgsql-ports-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id C5562D6F31 for ; Tue, 30 Aug 2005 23:56:32 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 53167-06 for ; Wed, 31 Aug 2005 02:56:30 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 395B4D6F1A for ; Tue, 30 Aug 2005 23:56:29 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j7V2uVi7026910; Tue, 30 Aug 2005 22:56:31 -0400 (EDT) To: tzacos Cc: pgsql-ports@postgresql.org Subject: Re: compiling problem In-reply-to: <4314EC8A.40706@free.fr> References: <4314E4CC.1030206@free.fr> <25643.1125443751@sss.pgh.pa.us> <4314EC8A.40706@free.fr> Comments: In-reply-to tzacos message dated "Wed, 31 Aug 2005 01:32:26 +0200" Date: Tue, 30 Aug 2005 22:56:31 -0400 Message-ID: <26909.1125456991@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 required=5 tests=[AWL=0.006] X-Spam-Level: X-Archive-Number: 200508/19 X-Sequence-Number: 2194 tzacos writes: > Tom Lane a écrit : >> Don't do it as root. There's seldom any good reason to run software >> builds as root. > the problem is that you can use rpm without being root [ I suppose you meant "can't" ] Sure you can --- use rpmbuild anyway. Actually installing the RPM after you built it needs root, for obvious reasons, but there's no reason to do the build process as root. I can assure you that no one within Red Hat ever runs rpmbuild as root. The done thing is to create a personal ~/rpmwork directory, with subdirectories BUILD RPMS SOURCES SPECS and SRPMS, then create a ~/.rpmmacros file containing %_topdir /home/..you../rpmwork Then you build an SRPM by putting it in ~/rpmwork/SRPMS and running rpmbuild there. This results in RPMS under ~/rpmwork/RPMS, which you can install via "sudo rpm -i ...". But you don't do the actual build as root, because that violates the ancient safety principle of doing as little as possible as root. regards, tom lane