How to import patch from jdk/jdk

Severin Gehwolf sgehwolf at redhat.com
Mon Aug 12 08:05:26 UTC 2019


Hi,

On Sat, 2019-08-10 at 16:58 +0200, Laurent Bourgès wrote:
> Ok,
> I will use sed on the patch file to fix paths, then I will import it. I
> thought such sed script already exist or mercurial or linux patch command
> already manage that.

You could try common/bin/unshuffle_patch.sh from JDK 9[1].

Thanks,
Severin

[1] http://hg.openjdk.java.net/jdk-updates/jdk9u/file/1b1226687b89/common/bin/unshuffle_patch.sh


> Thank you,
> Laurent
> 
> Le sam. 10 août 2019 à 16:34, Andrew Haley <aph at redhat.com> a écrit :
> 
> > On 8/10/19 1:27 PM, Laurent Bourgès wrote:
> > > I tried to use hg qimport to backport the following jdk9 patch
> > > (png
> > encoder
> > > performance issue) on my local jdk8u:
> > > 
> > > https://bugs.openjdk.java.net/
> > > <https://bugs.openjdk.java.net/browse/JDK-6488522>
> > > browse/JDK-6488522 <
> > > https://bugs.openjdk.java.net/browse/JDK-6488522>
> > > 
> > > hg qpush fails as the patch class is in java.desktop module but
> > > jdk8 has
> > no
> > > module. It mentions the --prefix option.
> > > 
> > > What is the option or wiki page explaining how to use different
> > > prefixes
> > ?
> > 
> > You're going to actually have to backport it. Check out the patch,
> > edit it,
> > then push it locally.
> > 
> > --
> > Andrew Haley  (he/him)
> > Java Platform Lead Engineer
> > Red Hat UK Ltd. <https://www.redhat.com>
> > https://keybase.io/andrewhaley
> > EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671
> > 



More information about the jdk8u-dev mailing list