Re: %prep

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/packaging



[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux