how to strip builder username from libjvm.so
david.holmes at oracle.com
Tue Jul 7 22:07:42 UTC 2015
On 8/07/2015 7:16 AM, Medi Montaseri wrote:
> I build openjdk from source on Debian and CentOs.
> All is well, except we noted that lib/amd64/server/libjvm.so has got a trace of the builder as in
> mmontaseri at shiraz:/tmp/ramesh2> strings lib/amd64/server/libjvm.so | grep 'built on'
> OpenJDK 64-Bit Server VM (25.20-b23) for linux-amd64 JRE (1.8.0-jdk8u20-b26-20141204-HDS-193206), built on Dec 4 2014 19:35:25 by "mmontaseri" with gcc 4.7.2
> Is there anyway to strip builder's id "mmontaseri". Tomcat is writing that to its log, hence publicly visable.
This is done inside the hotspot makefiles, which only partially interact
with configure settings. Try setting HOTSPOT_BUILD_USER=unknown in the
environment when doing the build.
> Here is portion of build script
> my $cmd = 'bash ./configure ';
> $cmd .= ' --disable-headful';
> $cmd .= ' --with-user-release-suffix=HDS';
> $cmd .= ' --with-build-number=' . $this->getBuildNumber();
> $cmd .= ' --disable-debug-symbols';
> $cmd .= ' --disable-zip-debug-info';
> $cmd .= ' --with-milestone=' . $mileStone;
> $cmd .= " --with-jtreg=$jtHome"; # eg. /opt/jtreg/jtreg4.1-b07
> $cmd .= " --with-boot-jdk=$bootJDK"; # eg. /usr/lib/jvm/java-7-openjdk-amd64
> $cmd .= " --prefix=$installDir";
> print "Running [$cmd]...\n";
More information about the build-dev