Re: [CentOS] trouble building an rpm

2011-09-13 Thread Peter Kjellström
On Tuesday, September 13, 2011 11:20:57 AM John Doe wrote: > From: Peter Kjellström > > > It's not a good idea to build rpms as root (unless in a throw-away vm). > > Build as user or even better using mock. > > Am I missing something or building an rpm as a non-root user for security > reason wo

Re: [CentOS] trouble building an rpm

2011-09-13 Thread John Doe
From: Peter Kjellström > It's not a good idea to build rpms as root (unless in a throw-away vm). > Build as user or even better using mock. Am I missing something or building an rpm as a non-root user for security reason won't do much when, in the end, the rpm will be installed as root...? Apa

Re: [CentOS] trouble building an rpm

2011-09-12 Thread Jon Detert
- Original Message - > From: "Andrew Dorozhkin" > To: "CentOS mailing list" > Sent: Monday, September 12, 2011 11:39:44 AM > Subject: Re: [CentOS] trouble building an rpm > > 12.09.2011 20:00, Jon Detert wrote: > > i'm a newbie at

Re: [CentOS] trouble building an rpm

2011-09-12 Thread Andrew Dorozhkin
12.09.2011 20:00, Jon Detert wrote: > i'm a newbie at building rpms. I made a few rpms years ago, but can't now > make one on Centos 5. > > In /usr/local/rpmbuild, there are 5 subdirs: BUILD RPMS SOURCES SPECS > SRPMS tmp > > When I type: rpmbuild -ba /usr/local/rpmbuild/SPECS/centos-releas

Re: [CentOS] trouble building an rpm

2011-09-12 Thread Vesselin Kolev
Dear Jon, Install the package rpmdevtools from EPEL repository and setup Your own build tree in $HOME of some non-root user. Please, avoid any builds as root and don't build package as Your current (desktop) non-root user. It's good idea to create user for the packages building. Then setup the bu

Re: [CentOS] trouble building an rpm

2011-09-12 Thread Peter Kjellström
On Monday, September 12, 2011 06:00:32 PM Jon Detert wrote: > i'm a newbie at building rpms. I made a few rpms years ago, but can't now > make one on Centos 5. > > In /usr/local/rpmbuild, there are 5 subdirs: BUILD RPMS SOURCES SPECS > SRPMS tmp It's not a good idea to build rpms as root (u