FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor


 
 
LinkBack Thread Tools
 
Old 04-12-2012, 01:48 PM
Kamal Ahmed
 
Default %prep

Is it ok to have the following in the %prep section

%prep
sudo yum -y groupinstall "Development Tools"
echo "Installing Development Tools"
sudo yum -y install python-devel.i386
sudo yum -y install postgresql84-server.i386 postgresql84-devel.i386 postgresql84-python.i386




--
packaging mailing list
packaging@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/packaging
 
Old 04-12-2012, 01:49 PM
Jon Ciesla
 
Default %prep

2012/4/12 Kamal Ahmed <kamal2222ahmed@yahoo.com>:
> Is it ok to have the following in the %prep section
>
> %prep
> sudo yum -y groupinstall "Development Tools"
> echo "Installing Development Tools"
> sudo yum -y install python-devel.i386
> sudo yum -y install postgresql84-server.i386 postgresql84-devel.i386
> postgresql84-python.i386
>

No, you should never call sudo, yum, or rpm in a spec. If you need
packages installed at build time, use BuildRequires.

-J

>
>
>
> --
> packaging mailing list
> packaging@lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/packaging



--
in your fear, seek only peace
in your fear, seek only love

-d. bowie
--
packaging mailing list
packaging@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/packaging
 
Old 04-12-2012, 02:02 PM
Jochen Schmitt
 
Default %prep

On Thu, Apr 12, 2012 at 06:48:27AM -0700, Kamal Ahmed wrote:
> Is it ok to have the following in the %prep section
>
> %prep
> sudo yum -y groupinstall "Development Tools"
> echo "Installing Development Tools"
> sudo yum -y install python-devel.i386
> sudo yum -y install postgresql84-server.i386 postgresql84-devel.i386 postgresql84-python.i386

Don't use sudo because it's not non-interactive (asking for a password) and grant
you with root access which rise the dange of demanging the system. This may be very
bad for a user which try to rebuild your package from a SRPM and may get a
system demage.

One reason why the SuSE Build server is bad is the fact, that builds are executed
in a root environment. So some kinds of errors may be not find, which may be dangerous
for users which try to rebuild the created SRPMs on thier own systems.

Instead of using yum and rpm to install packages requires for build time, please
use BuidRequires:. Mock and koji can analyze the package can install the requires
package in the build environemnt.

Best Regards:

Jochen Schmitt
--
packaging mailing list
packaging@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/packaging
 
Old 04-13-2012, 07:27 AM
Christopher Meng
 
Default %prep

That's right.BuildRequires is the most important thing you should set up.

On Thursday, April 12, 2012, Jochen Schmitt wrote:

On Thu, Apr 12, 2012 at 06:48:27AM -0700, Kamal Ahmed wrote:

> Is it ok to have the following in the %prep section

>

> %prep

> sudo yum -y groupinstall "Development Tools"

> echo "Installing Development Tools"

> sudo yum -y install python-devel.i386

> sudo yum -y install postgresql84-server.i386 postgresql84-devel.i386 postgresql84-python.i386



Don't use sudo because it's not non-interactive (asking for a password) and grant

you with root access which rise the dange of demanging the system. This may be very

bad for a user which try to rebuild your package from a SRPM and may get a

system demage.



One reason why the SuSE Build server is bad is the fact, that builds are executed

in a root environment. So some kinds of errors may be not find, which may be dangerous

for users which try to rebuild the created SRPMs on thier own systems.



Instead of using yum and rpm to install packages requires for build time, please

use BuidRequires:. Mock and koji can analyze the package can install the requires

package in the build environemnt.



Best Regards:



Jochen Schmitt

--

packaging mailing list

packaging@lists.fedoraproject.org

https://admin.fedoraproject.org/mailman/listinfo/packaging

--
Sent from Gmail Mobile

--
packaging mailing list
packaging@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/packaging
 

Thread Tools




All times are GMT. The time now is 07:38 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org