how to strip builder username from

Medi Montaseri medi.montaseri at
Tue Jul 7 22:17:44 UTC 2015

Thanks for the quick reply David....will give it a try and report back.


On 07/07/2015 03:07 PM, David Holmes wrote:
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/ has got a trace of the builder as in

mmontaseri at shiraz:/tmp/ramesh2> strings lib/amd64/server/ | 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 mailing list