[CentOS] Building tomcat6, SRPM jakarta-commons-dbcp-1.2.1-7jpp.ep1.2.ep5.el5.src.rpm fails to build

Lanny Marcus lmmailinglists at gmail.com
Mon Aug 10 22:18:19 UTC 2009


On 8/10/09, RedShift <redshift at pandora.be> wrote:
> Filipe Brandenburger wrote:
>> On Mon, Aug 10, 2009 at 13:56, RedShift<redshift at pandora.be> wrote:
>>> I've installed the JDK 1.5 and used alternatives --config java to use the
>>> 1.5 JDK from Sun. However, the same compilation error still occurs. How
>>> do I tell rpmbuild or the .spec to use the Sun JDK?
<snip>

> [root at testserver build]# rpm -qf /usr/lib/jvm-exports/java/jdbc-stdext.jar
> java-1.6.0-openjdk-1.6.0.0-1.2.b09.el5
<snip>
>> I also see you are building the RPM as root, that is not advisable (as
>> a bogus or malicious spec file might damage your system), you should
>> build RPMs as a regular user, if you want more details on how to do
>> that look at this Wiki article:
>> http://wiki.centos.org/HowTos/SetupRpmBuildEnvironment#head-556b8aa080c4fc427757f25b9c229f600827f09d
>
> I know, but this is only on a test machine, security is not really a high
> priority at the moment.

If you do not care about the test machine, continue to build as root.
If you do not want to risk it being trashed, build as another user.
It's not about security, it's about not trashing the box.



More information about the CentOS mailing list