On 8/10/09, RedShift <redshift@xxxxxxxxxx> wrote: > Filipe Brandenburger wrote: >> On Mon, Aug 10, 2009 at 13:56, RedShift<redshift@xxxxxxxxxx> 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@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. _______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos