Re: F33 system wide change, java-11-openjdk as system jdk

2020-05-19 Thread Fabio Valentini
On Tue, May 19, 2020, 15:40 Jiri Vanek  wrote:

> Hello!
>
> An raw schedule of mass rebuilds was added to the Java11 feature list:
> https://fedoraproject.org/wiki/Changes/Java11#Expected_schedule
>
> You can expect second copr-based mass rebuild, in 1st June 2020. Please
> try to fix your packages
> until then, as on the  result of this mass rebuild, future steps will be
> based.
>

Would it be possible to make javadoc (11) less strict by default? Right
now, most package failures I've looked at should be solved with
"-Xdoclint:none" and I really don't have time to  manually check that for
800 packages

Fabio


> Thanx!
>   J.
> On 4/30/20 6:29 PM, Jiri Vanek wrote:
> > Hello fellow java package maintainers!
> >
> > We are planning to bump the JDK from java-1.8.0-openjdk to
> java-11-openjdk for F33. Please see
> > https://fedoraproject.org/wiki/Changes/Java11
> >
> > Short Story:
> >  * if you have some java package, be aware that we are bumping JDK in
> rawhide
> >  * Ensure your package builds and runs fine with JDK11 (see the
> > https://copr.fedorainfracloud.org/coprs/jvanek/java11/builds/)
> >  * there is special tooling ready for this, before mass rebuild is
> launched
> >  ** See
> https://fedoraproject.org/wiki/Changes/Java11#copr_preliminary_rebuild
> >  * If you do not want Fedora rotten with JDK8 for ever, continue reading
> >
> > Long Story:
> > We ran a preliminary mass rebuild of javastack in copr repo
> > https://copr.fedorainfracloud.org/coprs/jvanek/java11/builds/ (select
> "all" instead of "25" at the
> > bottom), on packages requiring java,javac, java-devel, maven-local, ant,
> ivy & comp for build. You
> > can see, the result was quite dramatic:
> > 1225  total; attempted to rebuild
> > 483   failed; from those 191 are trivial failures (but if you fix it,
> there is no guarantee real
> > troubles are not hidden behind that)
> > 186   succeeded
> > 556   orphans or dead or otherwise tragic so the build did not even start
> >
> > I would kindly ask you to search yourself in this list:
> https://jvanek.fedorapeople.org/java11/people
> > If you are here, please check status of your package in
> https://jvanek.fedorapeople.org/java11/init
> > (pain text of
> https://copr.fedorainfracloud.org/coprs/jvanek/java11/builds).
> >  * If your package is "succeeded",  congratulations nothing to do, and
> just keep en eye on JDK bump
> >  * If there is "failed" but contains "-   -" then it is probably
> orphan. If you wish to resurrect it,
> > please ensure it runs against JDK11 (see lower)
> >  * If there is "failed" but failed in "seconds", then those packages
> failed so quickly, that the
> > build was in initial phases. That usually mean that you build with
> source/target lower then 1.6
> > JDK11 supports 1.6 and up. We recommend to bump the source/target to
> 1.8, to allow existence of
> > compact 1.8 packages alongside main javastack. See
> >
> https://fedoraproject.org/wiki/Changes/Java11#Wrong_source.2Ftarget_version.
> Don't forget to
> > upstream the patch, or maybe it is enough to update to more fresh
> upstream release which supports
> > JDK11? it may happen, that after the fix, your build will fail in more
> terrible way (see below)
> >  * If there is "failed", and its none of above, then your package simply
> failed. Very often the
> > scary error may be fixed by bump to latest upstream version. JDK 11 is
> out for several years.
> > Please, try to fix the package. Don't hesitate to ask on
> de...@fedoraproject.org or
> > java-de...@fedoraproject.org or directly to me jva...@redhat.com. If
> you fix the fail, feel free to
> > share your fix, it may help others.
> > We are trying to gather the most common issues at
> >
> https://fedoraproject.org/wiki/Changes/Java11#common_issues_packagers_can_face_and_gathered_solutions
> .
> >  Feel free to enhance the page, or write us your case (possibly both
> with solution and without) so
> > we can add it here.
> >
> > Debugging Your failures.
> > The copr repo we maintain, contains builds of java-11-openjdk as system
> JDK, javapackages-tools
> > honoring that, and java-1.8.0-openjdk as non system JDK. Also it
> contains successfully rebuilt
> > packages. You can directly use this copr repo in several ways.
> >  * first glance on error. On
> https://copr.fedorainfracloud.org/coprs/jvanek/java11/builds/ find your
> > build  (select "all" instead of "25" at the bottom),
> >  ** Click its number, select chroot (currently  fedora-32-x86_64 ) and
> check the logs. Main log is
> > build.log.gz.
> >  * anything you push to rawhide, will automatically rebuild here in f32
> chroot (we have a JDK in
> > rawhide broken a bit currently)
> >  ** It is the best approach. If you can fix your package in rawhide
> directly, without breaking the
> > rawhide too much, go for it
> >  ** If yo need to experiment, I have a mock config for you (generated
> from  copr-cli mock-config
> > jvanek/java11 fedora-32-x86_64) which you can copy to your /etc/mock and
> 

Re: F33 system wide change, java-11-openjdk as system jdk

2020-05-19 Thread Jiri Vanek
Hello!

An raw schedule of mass rebuilds was added to the Java11 feature list:
https://fedoraproject.org/wiki/Changes/Java11#Expected_schedule

You can expect second copr-based mass rebuild, in 1st June 2020. Please try to 
fix your packages
until then, as on the  result of this mass rebuild, future steps will be based.

Thanx!
  J.
On 4/30/20 6:29 PM, Jiri Vanek wrote:
> Hello fellow java package maintainers!
> 
> We are planning to bump the JDK from java-1.8.0-openjdk to java-11-openjdk 
> for F33. Please see
> https://fedoraproject.org/wiki/Changes/Java11
> 
> Short Story:
>  * if you have some java package, be aware that we are bumping JDK in rawhide
>  * Ensure your package builds and runs fine with JDK11 (see the
> https://copr.fedorainfracloud.org/coprs/jvanek/java11/builds/)
>  * there is special tooling ready for this, before mass rebuild is launched
>  ** See https://fedoraproject.org/wiki/Changes/Java11#copr_preliminary_rebuild
>  * If you do not want Fedora rotten with JDK8 for ever, continue reading
> 
> Long Story:
> We ran a preliminary mass rebuild of javastack in copr repo
> https://copr.fedorainfracloud.org/coprs/jvanek/java11/builds/ (select "all" 
> instead of "25" at the
> bottom), on packages requiring java,javac, java-devel, maven-local, ant, ivy 
> & comp for build. You
> can see, the result was quite dramatic:
> 1225  total; attempted to rebuild
> 483   failed; from those 191 are trivial failures (but if you fix it, there 
> is no guarantee real
> troubles are not hidden behind that)
> 186   succeeded
> 556   orphans or dead or otherwise tragic so the build did not even start
> 
> I would kindly ask you to search yourself in this list: 
> https://jvanek.fedorapeople.org/java11/people
> If you are here, please check status of your package in 
> https://jvanek.fedorapeople.org/java11/init
> (pain text of https://copr.fedorainfracloud.org/coprs/jvanek/java11/builds).
>  * If your package is "succeeded",  congratulations nothing to do, and just 
> keep en eye on JDK bump
>  * If there is "failed" but contains "-   -" then it is probably orphan. 
> If you wish to resurrect it,
> please ensure it runs against JDK11 (see lower)
>  * If there is "failed" but failed in "seconds", then those packages failed 
> so quickly, that the
> build was in initial phases. That usually mean that you build with 
> source/target lower then 1.6
> JDK11 supports 1.6 and up. We recommend to bump the source/target to 1.8, to 
> allow existence of
> compact 1.8 packages alongside main javastack. See
> https://fedoraproject.org/wiki/Changes/Java11#Wrong_source.2Ftarget_version. 
> Don't forget to
> upstream the patch, or maybe it is enough to update to more fresh upstream 
> release which supports
> JDK11? it may happen, that after the fix, your build will fail in more 
> terrible way (see below)
>  * If there is "failed", and its none of above, then your package simply 
> failed. Very often the
> scary error may be fixed by bump to latest upstream version. JDK 11 is out 
> for several years.
> Please, try to fix the package. Don't hesitate to ask on 
> de...@fedoraproject.org or
> java-de...@fedoraproject.org or directly to me jva...@redhat.com. If you fix 
> the fail, feel free to
> share your fix, it may help others.
> We are trying to gather the most common issues at
> https://fedoraproject.org/wiki/Changes/Java11#common_issues_packagers_can_face_and_gathered_solutions
>  .
>  Feel free to enhance the page, or write us your case (possibly both with 
> solution and without) so
> we can add it here.
> 
> Debugging Your failures.
> The copr repo we maintain, contains builds of java-11-openjdk as system JDK, 
> javapackages-tools
> honoring that, and java-1.8.0-openjdk as non system JDK. Also it contains 
> successfully rebuilt
> packages. You can directly use this copr repo in several ways.
>  * first glance on error. On 
> https://copr.fedorainfracloud.org/coprs/jvanek/java11/builds/ find your
> build  (select "all" instead of "25" at the bottom),
>  ** Click its number, select chroot (currently  fedora-32-x86_64 ) and check 
> the logs. Main log is
> build.log.gz.
>  * anything you push to rawhide, will automatically rebuild here in f32 
> chroot (we have a JDK in
> rawhide broken a bit currently)
>  ** It is the best approach. If you can fix your package in rawhide directly, 
> without breaking the
> rawhide too much, go for it
>  ** If yo need to experiment, I have a mock config for you (generated from  
> copr-cli mock-config
> jvanek/java11 fedora-32-x86_64) which you can copy to your /etc/mock and use -
> https://jvanek.fedorapeople.org/java11/jvanek-java11-fedora-32-x86_64.cfg .  
> Eg:
> 
>  sudo cp downloaded-fedora-32-x86_64.cfg 
> /etc/mock/jvanek-java11-fedora-32-x86_64.cfg
>  # change spec, bump sources, apply patches
>  fedpkg srpm
>  mock -r jvanek-java11-fedora-32-x86_64  *.src.rpm
> 
> Or any other packaging workflow you use, and you can use against the copr 
> repo.
> Thank you very 

Re: F33 system wide change, java-11-openjdk as system jdk

2020-05-19 Thread Jiri Vanek
Hello!

An raw schedule of mass rebuilds was added to the Java11 feature list:
https://fedoraproject.org/wiki/Changes/Java11#Expected_schedule

You can expect second copr-based mass rebuild, in 1st June 2020. Please try to 
fix your packages
until then, as on the  result of this mass rebuild, future steps will be based.

Thanx!
  J.
On 4/30/20 6:29 PM, Jiri Vanek wrote:
> Hello fellow java package maintainers!
> 
> We are planning to bump the JDK from java-1.8.0-openjdk to java-11-openjdk 
> for F33. Please see
> https://fedoraproject.org/wiki/Changes/Java11
> 
> Short Story:
>  * if you have some java package, be aware that we are bumping JDK in rawhide
>  * Ensure your package builds and runs fine with JDK11 (see the
> https://copr.fedorainfracloud.org/coprs/jvanek/java11/builds/)
>  * there is special tooling ready for this, before mass rebuild is launched
>  ** See https://fedoraproject.org/wiki/Changes/Java11#copr_preliminary_rebuild
>  * If you do not want Fedora rotten with JDK8 for ever, continue reading
> 
> Long Story:
> We ran a preliminary mass rebuild of javastack in copr repo
> https://copr.fedorainfracloud.org/coprs/jvanek/java11/builds/ (select "all" 
> instead of "25" at the
> bottom), on packages requiring java,javac, java-devel, maven-local, ant, ivy 
> & comp for build. You
> can see, the result was quite dramatic:
> 1225  total; attempted to rebuild
> 483   failed; from those 191 are trivial failures (but if you fix it, there 
> is no guarantee real
> troubles are not hidden behind that)
> 186   succeeded
> 556   orphans or dead or otherwise tragic so the build did not even start
> 
> I would kindly ask you to search yourself in this list: 
> https://jvanek.fedorapeople.org/java11/people
> If you are here, please check status of your package in 
> https://jvanek.fedorapeople.org/java11/init
> (pain text of https://copr.fedorainfracloud.org/coprs/jvanek/java11/builds).
>  * If your package is "succeeded",  congratulations nothing to do, and just 
> keep en eye on JDK bump
>  * If there is "failed" but contains "-   -" then it is probably orphan. 
> If you wish to resurrect it,
> please ensure it runs against JDK11 (see lower)
>  * If there is "failed" but failed in "seconds", then those packages failed 
> so quickly, that the
> build was in initial phases. That usually mean that you build with 
> source/target lower then 1.6
> JDK11 supports 1.6 and up. We recommend to bump the source/target to 1.8, to 
> allow existence of
> compact 1.8 packages alongside main javastack. See
> https://fedoraproject.org/wiki/Changes/Java11#Wrong_source.2Ftarget_version. 
> Don't forget to
> upstream the patch, or maybe it is enough to update to more fresh upstream 
> release which supports
> JDK11? it may happen, that after the fix, your build will fail in more 
> terrible way (see below)
>  * If there is "failed", and its none of above, then your package simply 
> failed. Very often the
> scary error may be fixed by bump to latest upstream version. JDK 11 is out 
> for several years.
> Please, try to fix the package. Don't hesitate to ask on 
> de...@fedoraproject.org or
> java-de...@fedoraproject.org or directly to me jva...@redhat.com. If you fix 
> the fail, feel free to
> share your fix, it may help others.
> We are trying to gather the most common issues at
> https://fedoraproject.org/wiki/Changes/Java11#common_issues_packagers_can_face_and_gathered_solutions
>  .
>  Feel free to enhance the page, or write us your case (possibly both with 
> solution and without) so
> we can add it here.
> 
> Debugging Your failures.
> The copr repo we maintain, contains builds of java-11-openjdk as system JDK, 
> javapackages-tools
> honoring that, and java-1.8.0-openjdk as non system JDK. Also it contains 
> successfully rebuilt
> packages. You can directly use this copr repo in several ways.
>  * first glance on error. On 
> https://copr.fedorainfracloud.org/coprs/jvanek/java11/builds/ find your
> build  (select "all" instead of "25" at the bottom),
>  ** Click its number, select chroot (currently  fedora-32-x86_64 ) and check 
> the logs. Main log is
> build.log.gz.
>  * anything you push to rawhide, will automatically rebuild here in f32 
> chroot (we have a JDK in
> rawhide broken a bit currently)
>  ** It is the best approach. If you can fix your package in rawhide directly, 
> without breaking the
> rawhide too much, go for it
>  ** If yo need to experiment, I have a mock config for you (generated from  
> copr-cli mock-config
> jvanek/java11 fedora-32-x86_64) which you can copy to your /etc/mock and use -
> https://jvanek.fedorapeople.org/java11/jvanek-java11-fedora-32-x86_64.cfg .  
> Eg:
> 
>  sudo cp downloaded-fedora-32-x86_64.cfg 
> /etc/mock/jvanek-java11-fedora-32-x86_64.cfg
>  # change spec, bump sources, apply patches
>  fedpkg srpm
>  mock -r jvanek-java11-fedora-32-x86_64  *.src.rpm
> 
> Or any other packaging workflow you use, and you can use against the copr 
> repo.
> Thank you very 

Re: F33 system wide change, java-11-openjdk as system jdk

2020-05-04 Thread Jiri Vanek
On 5/4/20 12:59 PM, Iñaki Ucar wrote:
> On Mon, 4 May 2020 at 11:22, Jiri Vanek  wrote:
>>
>>> Thanks, but as I said above, the RStudio rpms don't pull the JVM,
>>> because it's not required at runtime. So I suppose that, beyond fixing
>>> the java-devel version in BuildRequires, I don't need to do anything
>>> more, right?
>>
>> Hopefully:) TYVM!
> 
> On second thought, there's one potential problem. The build process
> requires ant. If ant is built against Java 11 and I require java-devel
> <= 1:1.8.0, is that an issue?
> 
It can be a serious issue, if ant will be compiled with target > 8. Except 
that, it should be
working fine, but yuou will be i mercy of ant maintainers. If they cooperate, 
it should work for
next two or three years.

J.

-- 
Jiri Vanek
Senior QE engineer, OpenJDK QE lead, Mgr.
Red Hat Czech
jva...@redhat.comM: +420775390109
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: F33 system wide change, java-11-openjdk as system jdk

2020-05-04 Thread Iñaki Ucar
On Mon, 4 May 2020 at 11:22, Jiri Vanek  wrote:
>
> > Thanks, but as I said above, the RStudio rpms don't pull the JVM,
> > because it's not required at runtime. So I suppose that, beyond fixing
> > the java-devel version in BuildRequires, I don't need to do anything
> > more, right?
>
> Hopefully:) TYVM!

On second thought, there's one potential problem. The build process
requires ant. If ant is built against Java 11 and I require java-devel
<= 1:1.8.0, is that an issue?

-- 
Iñaki Úcar
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: F33 system wide change, java-11-openjdk as system jdk

2020-05-04 Thread Jiri Vanek
On 5/4/20 11:15 AM, Iñaki Ucar wrote:
> Hi, thanks for your assistance, comments inline:
> 
> On Mon, 4 May 2020 at 10:48, Jiri Vanek  wrote:
>>
>> Generally, no program can say, that do not support jdk11, because any 
>> javac/java application can be
>> *hacked* to work with java11 - see
>> https://jvanek.fedorapeople.org/devconf/2017/portingjavaInternalToJdk9/portingOfItwToJdk9-II.pdf
>> (really all except package split over modules, which is impossible)
>>
>> Now above mentione approaches are indeed *hacked*, and I discourage 
>> everybody to do so.
> 
> As you mentioned below, I depend on GWT, and it's waaay to complex to
> take this approach.
> 
>> If you package is really bound to jdk8, you can move to the version-full 
>> requires:
>> BuildRequires: java-1.8.0-openjdk-devel (or java-devel <= 1:1.8.0 or similar)
>> ...
>> Requires: java-1.8.0-openjdk(-headless) (or java(-headless) <= 1:1.8.0 or 
>> similar)
>>
>> However there is an trap - packages you depends on.  Once some of your 
>> dependencies will be compiled
>> with --target > 8, you are doomed, and you have to bundle it or create its 
>> compact version. By doing
>> so you can easily end in dependency hell.
> 
> RStudio only uses Java to compile a series of web components during
> build time. Then, the requires are clean from Java components, and its
> usage doesn't invoke the JVM. So it's been identified as a Java app
> because build-requires java-devel, but it's not really a Java app.
> 
>> With GWT, I'm afraid you will need to try this  approach, as it is to 
>> complex framework  that any
>> hacking on this field is really risky. And I'm sorry to hear they are not on 
>> jdk11 already, as this
>> fate can likely met many other packages.
> 
> They build against a very specific version of GWT, and that's why it's
> bundled. Future versions will update GWT and we will probably be able
> to use Java 11. Let's see.
> 
>> Looking to spec of rstudio, and considering it have nearly no not-bundled 
>> dependence, and its
>> upstream being stuck on jdk8,  requiring jdk8 looks like correct step for a 
>> while. If yo have any
>> influence in upstream, please be force GWT to move to jdk11.
>> Be aware, that you may end in needing to adapt also launcher, as 
>> japackage-tools will be enforcing
>> java-11-openjdk. You can easily do it by exporting JAVA_HOME with 
>> /usr/lib/jvm/java-1.8.0-openjdk value
>>
>> Good luck,
>>  Please let me know once you success with it. I willa dd an chapter to
>> https://fedoraproject.org/wiki/Changes/Java11#common_issues_packagers_can_face_and_gathered_solutions
> 
> Thanks, but as I said above, the RStudio rpms don't pull the JVM,
> because it's not required at runtime. So I suppose that, beyond fixing
> the java-devel version in BuildRequires, I don't need to do anything
> more, right?

Hopefully:) TYVM!
> 


-- 
Jiri Vanek
Senior QE engineer, OpenJDK QE lead, Mgr.
Red Hat Czech
jva...@redhat.comM: +420775390109
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: F33 system wide change, java-11-openjdk as system jdk

2020-05-04 Thread Iñaki Ucar
Hi, thanks for your assistance, comments inline:

On Mon, 4 May 2020 at 10:48, Jiri Vanek  wrote:
>
> Generally, no program can say, that do not support jdk11, because any 
> javac/java application can be
> *hacked* to work with java11 - see
> https://jvanek.fedorapeople.org/devconf/2017/portingjavaInternalToJdk9/portingOfItwToJdk9-II.pdf
> (really all except package split over modules, which is impossible)
>
> Now above mentione approaches are indeed *hacked*, and I discourage everybody 
> to do so.

As you mentioned below, I depend on GWT, and it's waaay to complex to
take this approach.

> If you package is really bound to jdk8, you can move to the version-full 
> requires:
> BuildRequires: java-1.8.0-openjdk-devel (or java-devel <= 1:1.8.0 or similar)
> ...
> Requires: java-1.8.0-openjdk(-headless) (or java(-headless) <= 1:1.8.0 or 
> similar)
>
> However there is an trap - packages you depends on.  Once some of your 
> dependencies will be compiled
> with --target > 8, you are doomed, and you have to bundle it or create its 
> compact version. By doing
> so you can easily end in dependency hell.

RStudio only uses Java to compile a series of web components during
build time. Then, the requires are clean from Java components, and its
usage doesn't invoke the JVM. So it's been identified as a Java app
because build-requires java-devel, but it's not really a Java app.

> With GWT, I'm afraid you will need to try this  approach, as it is to complex 
> framework  that any
> hacking on this field is really risky. And I'm sorry to hear they are not on 
> jdk11 already, as this
> fate can likely met many other packages.

They build against a very specific version of GWT, and that's why it's
bundled. Future versions will update GWT and we will probably be able
to use Java 11. Let's see.

> Looking to spec of rstudio, and considering it have nearly no not-bundled 
> dependence, and its
> upstream being stuck on jdk8,  requiring jdk8 looks like correct step for a 
> while. If yo have any
> influence in upstream, please be force GWT to move to jdk11.
> Be aware, that you may end in needing to adapt also launcher, as 
> japackage-tools will be enforcing
> java-11-openjdk. You can easily do it by exporting JAVA_HOME with 
> /usr/lib/jvm/java-1.8.0-openjdk value
>
> Good luck,
>  Please let me know once you success with it. I willa dd an chapter to
> https://fedoraproject.org/wiki/Changes/Java11#common_issues_packagers_can_face_and_gathered_solutions

Thanks, but as I said above, the RStudio rpms don't pull the JVM,
because it's not required at runtime. So I suppose that, beyond fixing
the java-devel version in BuildRequires, I don't need to do anything
more, right?

-- 
Iñaki Úcar
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: F33 system wide change, java-11-openjdk as system jdk

2020-05-04 Thread Jiri Vanek
On 5/3/20 10:56 PM, Iñaki Ucar wrote:
> Hi,
> 
Hi Iñaki!

I have CCed devel@lists.fedoraproject.org as this issue may be shared. I have 
not yet written it to
https://fedoraproject.org/wiki/Changes/Java11#common_issues_packagers_can_face_and_gathered_solutions
 as
I hope it will be rare.

Generally, no program can say, that do not support jdk11, because any 
javac/java application can be
*hacked* to work with java11 - see
https://jvanek.fedorapeople.org/devconf/2017/portingjavaInternalToJdk9/portingOfItwToJdk9-II.pdf
(really all except package split over modules, which is impossible)

Now above mentione approaches are indeed *hacked*, and I discourage everybody 
to do so.

If you package is really bound to jdk8, you can move to the version-full 
requires:
BuildRequires: java-1.8.0-openjdk-devel (or java-devel <= 1:1.8.0 or similar)
...
Requires: java-1.8.0-openjdk(-headless) (or java(-headless) <= 1:1.8.0 or 
similar)

However there is an trap - packages you depends on.  Once some of your 
dependencies will be compiled
with --target > 8, you are doomed, and you have to bundle it or create its 
compact version. By doing
so you can easily end in dependency hell.
With GWT, I'm afraid you will need to try this  approach, as it is to complex 
framework  that any
hacking on this field is really risky. And I'm sorry to hear they are not on 
jdk11 already, as this
fate can likely met many other packages.

Looking to spec of rstudio, and considering it have nearly no not-bundled 
dependence, and its
upstream being stuck on jdk8,  requiring jdk8 looks like correct step for a 
while. If yo have any
influence in upstream, please be force GWT to move to jdk11.
Be aware, that you may end in needing to adapt also launcher, as 
japackage-tools will be enforcing
java-11-openjdk. You can easily do it by exporting JAVA_HOME with 
/usr/lib/jvm/java-1.8.0-openjdk value

Good luck,
 Please let me know once you success with it. I willa dd an chapter to
https://fedoraproject.org/wiki/Changes/Java11#common_issues_packagers_can_face_and_gathered_solutions

tahnx!
  J.

> I'm the maintainer of RStudio, which is failing. RStudio uses a
> bundled version of Google's GWT to compile some web components, and
> upstream indicates that Java 11 is not supported [1, 2]. Maye a future
> version of RStudio brings a newer GWT that supports Java 11, but I'm
> not sure. Anyways, for the time being, we're stuck with Java 8. What
> should I do keep RStudio working on rawhide?
> 
> [1] https://github.com/rstudio/rstudio/issues/6088
> [2] https://github.com/gwtproject/gwt/issues/9626
> [3] https://github.com/rstudio/rstudio/issues/6694
> 
> Regards,
> Iñaki
> 
> On Sun, 3 May 2020 at 21:49,  wrote:
>>
>> Hello fellow java package maintainer iucar!
>>
>> We are planning to bump the JDK from java-1.8.0-openjdk to java-11-openjdk 
>> for F33. Please see https://fedoraproject.org/wiki/Changes/Java11
>>
>> Short Story:
>>  * according to package database, you (co)maintain at least 1 java packages, 
>> be aware that we are bumping JDK in rawhide
>>  * Ensure your package builds and runs fine with JDK11 (see the 
>> https://copr.fedorainfracloud.org/coprs/jvanek/java11/builds/)
>>  * there is special tooling ready for this, before mass rebuild is launched
>>  ** See 
>> https://fedoraproject.org/wiki/Changes/Java11#copr_preliminary_rebuild
>>  * If you do not want Fedora rotten with JDK8 for ever, continue reading
>>
>> Long Story:
>> We ran a preliminary mass rebuild of javastack in copr repo  
>> https://copr.fedorainfracloud.org/coprs/jvanek/java11/builds/ (select "all" 
>> instead of "25" at the bottom), on packages requiring java,javac, 
>> java-devel, maven-local, ant, ivy & comp for build. You can see, the result 
>> was quite dramatic:
>> 1225  total; attempted to rebuild
>> 483   failed; from those 191 are trivial failures (but if you fix it, there 
>> is no guarantee real troubles are not hidden behind that)
>> 186   succeeded
>> 556   orphans or dead or otherwise tragic so the build did not even start
>>
>> From those you (co)own following: rstudio
>>
>> If some of your packages is missing here at all, and you think it should be 
>> included, don't hesitate to email/ping me or the mailing lists. It could 
>> happen you have some very indirect requires or you require namely 
>> java-1.8.0-openjdk(-devel). In that case yo should bump it according to 
>> packaging guidelines to java(-devel), verify you run against JDK11 in my 
>> copr. Feel free to ask me to include such an package in my copr. I will 
>> gladly do so.
>>
>>
>>
>> Your summary is:
>> 0 passed
>> 0 are missing, delete, retired or somehow else utterly missing in action 
>> (see lower)
>> 1 failed, from those  0 failed very quickly (see lower)
>>
>> Details:
>> * Passed: N/A
>> * Missing: N/A
>> is/are probably orphan. If it is intentional, you may ignore it. If it is 
>> error, you  should resurrect the package and if in that, ensure it runs 
>> against JDK11 (see failed)
>> * Failed, 

Re: F33 system wide change, java-11-openjdk as system jdk

2020-05-02 Thread judovana
Sure!
TYVM!
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: F33 system wide change, java-11-openjdk as system jdk

2020-05-01 Thread Alex Scheel
Ah cool, so my guess was correct. :-) We're working on fixing this upstream
and then we'll get it pulled into Fedora. Mind if we ping you for a rebuild
when we're ready?


- Alex

- Original Message -
> From: judov...@email.cz
> To: devel@lists.fedoraproject.org
> Sent: Friday, May 1, 2020 2:19:17 PM
> Subject: Re: F33 system wide change, java-11-openjdk as system jdk
> 
> Hi Alex, both your packages
> "BuildRequires:java-1.8.0-openjdk-devel"
> So I could not pull it. According to the packaging guidelines   you should
> require only  "java-devel" (exactly for this case:)). Thus I could not found
> your packages by using build-requires queries. Even If I found, It would be
> useless, because java-1.8.0-openjdk-devel  will still be providing  itself.
> Please adapt your packages to java-devel only.  And when in int, bump them to
> build n that copr of mine.
> I will happily include them to the copr once you fix the BR. Crossing
> fingers! TYVM!
> 
> Jiri (sorry for different email, only github login worked for me today)
> ___
> devel mailing list -- devel@lists.fedoraproject.org
> To unsubscribe send an email to devel-le...@lists.fedoraproject.org
> Fedora Code of Conduct:
> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives:
> https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
> 
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: F33 system wide change, java-11-openjdk as system jdk

2020-05-01 Thread judovana
Hi Miro!
The build is in f32 chroot, because jdk8 in rawhide segfaults due to new glibc. 
The glibc update had overlap with the initiation of this effort, so I stuck on 
f32 for now. It may happen that once we fix jdk8, I will fix also the copr.
Also you could notice, that both rawhide and f32 are being build from the 
rawhide sources.

Yes, I "rebuilt" also packages retired in rawhide.  Originally it was by 
accident, then I let it here stoned by the number of thems.

Ah, sure, ~/.config/mock. I always forgot about that. Thanx!

 J.
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: F33 system wide change, java-11-openjdk as system jdk

2020-05-01 Thread judovana
Hi Miro!
The build is in f32 chroot, because jdk8 in rawhide segfaults due to new glibc. 
The glibc update had overlap with the initiation of this effort, so I stuck on 
f32 for now. It may happen that once we fix jdk8, I will fix also the copr.
Also you could notice, that both rawhide and f32 are being build from the 
rawhide sources.

Yes, I "rebuilt" also packages retired in rawhide.  Originally it was by 
accident, then I let it here stoned by the number of thems.

Ah, sure, ~/.config/mock. I always forgot about that. Thanx!

 J.
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: F33 system wide change, java-11-openjdk as system jdk

2020-05-01 Thread judovana
Hi Alex, both your packages  
"BuildRequires:java-1.8.0-openjdk-devel"
So I could not pull it. According to the packaging guidelines   you should 
require only  "java-devel" (exactly for this case:)). Thus I could not found 
your packages by using build-requires queries. Even If I found, It would be 
useless, because java-1.8.0-openjdk-devel  will still be providing  itself. 
Please adapt your packages to java-devel only.  And when in int, bump them to 
build n that copr of mine.
I will happily include them to the copr once you fix the BR. Crossing fingers! 
TYVM!

Jiri (sorry for different email, only github login worked for me today)
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: F33 system wide change, java-11-openjdk as system jdk

2020-05-01 Thread Alex Scheel
\o Hey Jiri,

I don't see two of our packages in the copr:

https://src.fedoraproject.org/rpms/pki-core/
https://src.fedoraproject.org/rpms/dogtag-pki/

Is there a way to know why they were excluded?

Thanks!


- Alex

- Original Message -
> From: "Jiri Vanek" 
> To: "Development discussions related to Fedora" 
> , "Fedora Java Development List"
> 
> Sent: Thursday, April 30, 2020 12:31:43 PM
> Subject: F33 system wide change, java-11-openjdk as system jdk
> 
> 
> 
> Hello fellow java package maintainers!
> 
> We are planning to bump the JDK from java-1.8.0-openjdk to java-11-openjdk
> for F33. Please see
> https://fedoraproject.org/wiki/Changes/Java11
> 
> Short Story:
>  * if you have some java package, be aware that we are bumping JDK in rawhide
>  * Ensure your package builds and runs fine with JDK11 (see the
> https://copr.fedorainfracloud.org/coprs/jvanek/java11/builds/)
>  * there is special tooling ready for this, before mass rebuild is launched
>  ** See
>  https://fedoraproject.org/wiki/Changes/Java11#copr_preliminary_rebuild
>  * If you do not want Fedora rotten with JDK8 for ever, continue reading
> 
> Long Story:
> We ran a preliminary mass rebuild of javastack in copr repo
> https://copr.fedorainfracloud.org/coprs/jvanek/java11/builds/ (select "all"
> instead of "25" at the
> bottom), on packages requiring java,javac, java-devel, maven-local, ant, ivy
> & comp for build. You
> can see, the result was quite dramatic:
> 1225  total; attempted to rebuild
> 483   failed; from those 191 are trivial failures (but if you fix it, there
> is no guarantee real
> troubles are not hidden behind that)
> 186   succeeded
> 556   orphans or dead or otherwise tragic so the build did not even start
> 
> I would kindly ask you to search yourself in this list:
> https://jvanek.fedorapeople.org/java11/people
> If you are here, please check status of your package in
> https://jvanek.fedorapeople.org/java11/init
> (pain text of https://copr.fedorainfracloud.org/coprs/jvanek/java11/builds).
>  * If your package is "succeeded",  congratulations nothing to do, and just
>  keep en eye on JDK bump
>  * If there is "failed" but contains "-   -" then it is probably orphan. 
> If
>  you wish to resurrect it,
> please ensure it runs against JDK11 (see lower)
>  * If there is "failed" but failed in "seconds", then those packages failed
>  so quickly, that the
> build was in initial phases. That usually mean that you build with
> source/target lower then 1.6
> JDK11 supports 1.6 and up. We recommend to bump the source/target to 1.8, to
> allow existence of
> compact 1.8 packages alongside main javastack. See
> https://fedoraproject.org/wiki/Changes/Java11#Wrong_source.2Ftarget_version.
> Don't forget to
> upstream the patch, or maybe it is enough to update to more fresh upstream
> release which supports
> JDK11? it may happen, that after the fix, your build will fail in more
> terrible way (see below)
>  * If there is "failed", and its none of above, then your package simply
>  failed. Very often the
> scary error may be fixed by bump to latest upstream version. JDK 11 is out
> for several years.
> Please, try to fix the package. Don't hesitate to ask on
> de...@fedoraproject.org or
> java-de...@fedoraproject.org or directly to me jva...@redhat.com. If you fix
> the fail, feel free to
> share your fix, it may help others.
> We are trying to gather the most common issues at
> https://fedoraproject.org/wiki/Changes/Java11#common_issues_packagers_can_face_and_gathered_solutions
> .
>  Feel free to enhance the page, or write us your case (possibly both with
>  solution and without) so
> we can add it here.
> 
> Debugging Your failures.
> The copr repo we maintain, contains builds of java-11-openjdk as system JDK,
> javapackages-tools
> honoring that, and java-1.8.0-openjdk as non system JDK. Also it contains
> successfully rebuilt
> packages. You can directly use this copr repo in several ways.
>  * first glance on error. On
>  https://copr.fedorainfracloud.org/coprs/jvanek/java11/builds/ find your
> build  (select "all" instead of "25" at the bottom),
>  ** Click its number, select chroot (currently  fedora-32-x86_64 ) and check
>  the logs. Main log is
> build.log.gz.
>  * anything you push to rawhide, will automatically rebuild here in f32
>  chroot (we have a JDK in
> rawhide broken a bit currently)
>  ** It is the best approach. If you can fix your package in rawhide directly,
>  without breaking the
> rawhide too much, go for it
>  ** If yo need to experiment, I have a mock config for you (

Re: F33 system wide change, java-11-openjdk as system jdk

2020-05-01 Thread Miro Hrončok

On 30. 04. 20 18:29, Jiri Vanek wrote:

  * Ensure your package builds and runs fine with JDK11 (see the
https://copr.fedorainfracloud.org/coprs/jvanek/java11/builds/)


The builds are from Fedora 33 sources, but in Fedora 32 buildroot. The Java11 
change is for Fedora 33. Is this an error, or is there some benefit with this 
setup I don't understand?




 * If there is "failed" but contains "-  -" then it is probably orphan.


Packages don't stop building just because they are orphaned. Do you mean 
retired? And if so, why do you attempt to build retired packages? Is this caused 
by the above (e.g. are you repoquerying Fedora 32, but attempting builds from 
the master branch)?




sudo cp downloaded-fedora-32-x86_64.cfg 
/etc/mock/jvanek-java11-fedora-32-x86_64.cfg


Or you can copy it to ~/.config/mock instead, not using sudo.


Thanks for doing the preliminary builds in Copr.

--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


F33 system wide change, java-11-openjdk as system jdk

2020-04-30 Thread Jiri Vanek
Hello fellow java package maintainers!

We are planning to bump the JDK from java-1.8.0-openjdk to java-11-openjdk for 
F33. Please see
https://fedoraproject.org/wiki/Changes/Java11

Short Story:
 * if you have some java package, be aware that we are bumping JDK in rawhide
 * Ensure your package builds and runs fine with JDK11 (see the
https://copr.fedorainfracloud.org/coprs/jvanek/java11/builds/)
 * there is special tooling ready for this, before mass rebuild is launched
 ** See https://fedoraproject.org/wiki/Changes/Java11#copr_preliminary_rebuild
 * If you do not want Fedora rotten with JDK8 for ever, continue reading

Long Story:
We ran a preliminary mass rebuild of javastack in copr repo
https://copr.fedorainfracloud.org/coprs/jvanek/java11/builds/ (select "all" 
instead of "25" at the
bottom), on packages requiring java,javac, java-devel, maven-local, ant, ivy & 
comp for build. You
can see, the result was quite dramatic:
1225  total; attempted to rebuild
483   failed; from those 191 are trivial failures (but if you fix it, there is 
no guarantee real
troubles are not hidden behind that)
186   succeeded
556   orphans or dead or otherwise tragic so the build did not even start

I would kindly ask you to search yourself in this list: 
https://jvanek.fedorapeople.org/java11/people
If you are here, please check status of your package in 
https://jvanek.fedorapeople.org/java11/init
(pain text of https://copr.fedorainfracloud.org/coprs/jvanek/java11/builds).
 * If your package is "succeeded",  congratulations nothing to do, and just 
keep en eye on JDK bump
 * If there is "failed" but contains "- -" then it is probably orphan. 
If you wish to resurrect it,
please ensure it runs against JDK11 (see lower)
 * If there is "failed" but failed in "seconds", then those packages failed so 
quickly, that the
build was in initial phases. That usually mean that you build with 
source/target lower then 1.6
JDK11 supports 1.6 and up. We recommend to bump the source/target to 1.8, to 
allow existence of
compact 1.8 packages alongside main javastack. See
https://fedoraproject.org/wiki/Changes/Java11#Wrong_source.2Ftarget_version. 
Don't forget to
upstream the patch, or maybe it is enough to update to more fresh upstream 
release which supports
JDK11? it may happen, that after the fix, your build will fail in more terrible 
way (see below)
 * If there is "failed", and its none of above, then your package simply 
failed. Very often the
scary error may be fixed by bump to latest upstream version. JDK 11 is out for 
several years.
Please, try to fix the package. Don't hesitate to ask on 
de...@fedoraproject.org or
java-de...@fedoraproject.org or directly to me jva...@redhat.com. If you fix 
the fail, feel free to
share your fix, it may help others.
We are trying to gather the most common issues at
https://fedoraproject.org/wiki/Changes/Java11#common_issues_packagers_can_face_and_gathered_solutions
 .
 Feel free to enhance the page, or write us your case (possibly both with 
solution and without) so
we can add it here.

Debugging Your failures.
The copr repo we maintain, contains builds of java-11-openjdk as system JDK, 
javapackages-tools
honoring that, and java-1.8.0-openjdk as non system JDK. Also it contains 
successfully rebuilt
packages. You can directly use this copr repo in several ways.
 * first glance on error. On 
https://copr.fedorainfracloud.org/coprs/jvanek/java11/builds/ find your
build  (select "all" instead of "25" at the bottom),
 ** Click its number, select chroot (currently  fedora-32-x86_64 ) and check 
the logs. Main log is
build.log.gz.
 * anything you push to rawhide, will automatically rebuild here in f32 chroot 
(we have a JDK in
rawhide broken a bit currently)
 ** It is the best approach. If you can fix your package in rawhide directly, 
without breaking the
rawhide too much, go for it
 ** If yo need to experiment, I have a mock config for you (generated from  
copr-cli mock-config
jvanek/java11 fedora-32-x86_64) which you can copy to your /etc/mock and use -
https://jvanek.fedorapeople.org/java11/jvanek-java11-fedora-32-x86_64.cfg .  Eg:

 sudo cp downloaded-fedora-32-x86_64.cfg 
/etc/mock/jvanek-java11-fedora-32-x86_64.cfg
 # change spec, bump sources, apply patches
 fedpkg srpm
 mock -r jvanek-java11-fedora-32-x86_64  *.src.rpm

Or any other packaging workflow you use, and you can use against the copr repo.
Thank you very much for your help, there are 500 failures, and 1000 java 
packagers, but only 2
active members of java sig. Without your help, the JDK bump will be very hard.

Thank You!


On behalf of Fedora java group
  J.
___
devel-announce mailing list -- devel-annou...@lists.fedoraproject.org
To unsubscribe send an email to devel-announce-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List 

F33 system wide change, java-11-openjdk as system jdk

2020-04-30 Thread Jiri Vanek
Hello fellow java package maintainers!

We are planning to bump the JDK from java-1.8.0-openjdk to java-11-openjdk for 
F33. Please see
https://fedoraproject.org/wiki/Changes/Java11

Short Story:
 * if you have some java package, be aware that we are bumping JDK in rawhide
 * Ensure your package builds and runs fine with JDK11 (see the
https://copr.fedorainfracloud.org/coprs/jvanek/java11/builds/)
 * there is special tooling ready for this, before mass rebuild is launched
 ** See https://fedoraproject.org/wiki/Changes/Java11#copr_preliminary_rebuild
 * If you do not want Fedora rotten with JDK8 for ever, continue reading

Long Story:
We ran a preliminary mass rebuild of javastack in copr repo
https://copr.fedorainfracloud.org/coprs/jvanek/java11/builds/ (select "all" 
instead of "25" at the
bottom), on packages requiring java,javac, java-devel, maven-local, ant, ivy & 
comp for build. You
can see, the result was quite dramatic:
1225  total; attempted to rebuild
483   failed; from those 191 are trivial failures (but if you fix it, there is 
no guarantee real
troubles are not hidden behind that)
186   succeeded
556   orphans or dead or otherwise tragic so the build did not even start

I would kindly ask you to search yourself in this list: 
https://jvanek.fedorapeople.org/java11/people
If you are here, please check status of your package in 
https://jvanek.fedorapeople.org/java11/init
(pain text of https://copr.fedorainfracloud.org/coprs/jvanek/java11/builds).
 * If your package is "succeeded",  congratulations nothing to do, and just 
keep en eye on JDK bump
 * If there is "failed" but contains "- -" then it is probably orphan. 
If you wish to resurrect it,
please ensure it runs against JDK11 (see lower)
 * If there is "failed" but failed in "seconds", then those packages failed so 
quickly, that the
build was in initial phases. That usually mean that you build with 
source/target lower then 1.6
JDK11 supports 1.6 and up. We recommend to bump the source/target to 1.8, to 
allow existence of
compact 1.8 packages alongside main javastack. See
https://fedoraproject.org/wiki/Changes/Java11#Wrong_source.2Ftarget_version. 
Don't forget to
upstream the patch, or maybe it is enough to update to more fresh upstream 
release which supports
JDK11? it may happen, that after the fix, your build will fail in more terrible 
way (see below)
 * If there is "failed", and its none of above, then your package simply 
failed. Very often the
scary error may be fixed by bump to latest upstream version. JDK 11 is out for 
several years.
Please, try to fix the package. Don't hesitate to ask on 
de...@fedoraproject.org or
java-de...@fedoraproject.org or directly to me jva...@redhat.com. If you fix 
the fail, feel free to
share your fix, it may help others.
We are trying to gather the most common issues at
https://fedoraproject.org/wiki/Changes/Java11#common_issues_packagers_can_face_and_gathered_solutions
 .
 Feel free to enhance the page, or write us your case (possibly both with 
solution and without) so
we can add it here.

Debugging Your failures.
The copr repo we maintain, contains builds of java-11-openjdk as system JDK, 
javapackages-tools
honoring that, and java-1.8.0-openjdk as non system JDK. Also it contains 
successfully rebuilt
packages. You can directly use this copr repo in several ways.
 * first glance on error. On 
https://copr.fedorainfracloud.org/coprs/jvanek/java11/builds/ find your
build  (select "all" instead of "25" at the bottom),
 ** Click its number, select chroot (currently  fedora-32-x86_64 ) and check 
the logs. Main log is
build.log.gz.
 * anything you push to rawhide, will automatically rebuild here in f32 chroot 
(we have a JDK in
rawhide broken a bit currently)
 ** It is the best approach. If you can fix your package in rawhide directly, 
without breaking the
rawhide too much, go for it
 ** If yo need to experiment, I have a mock config for you (generated from  
copr-cli mock-config
jvanek/java11 fedora-32-x86_64) which you can copy to your /etc/mock and use -
https://jvanek.fedorapeople.org/java11/jvanek-java11-fedora-32-x86_64.cfg .  Eg:

 sudo cp downloaded-fedora-32-x86_64.cfg 
/etc/mock/jvanek-java11-fedora-32-x86_64.cfg
 # change spec, bump sources, apply patches
 fedpkg srpm
 mock -r jvanek-java11-fedora-32-x86_64  *.src.rpm

Or any other packaging workflow you use, and you can use against the copr repo.
Thank you very much for your help, there are 500 failures, and 1000 java 
packagers, but only 2
active members of java sig. Without your help, the JDK bump will be very hard.

Thank You!


On behalf of Fedora java group
  J.
___
devel-announce mailing list -- devel-announce@lists.fedoraproject.org
To unsubscribe send an email to devel-announce-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List 

F33 system wide change, java-11-openjdk as system jdk

2020-04-30 Thread Jiri Vanek


Hello fellow java package maintainers!

We are planning to bump the JDK from java-1.8.0-openjdk to java-11-openjdk for 
F33. Please see
https://fedoraproject.org/wiki/Changes/Java11

Short Story:
 * if you have some java package, be aware that we are bumping JDK in rawhide
 * Ensure your package builds and runs fine with JDK11 (see the
https://copr.fedorainfracloud.org/coprs/jvanek/java11/builds/)
 * there is special tooling ready for this, before mass rebuild is launched
 ** See https://fedoraproject.org/wiki/Changes/Java11#copr_preliminary_rebuild
 * If you do not want Fedora rotten with JDK8 for ever, continue reading

Long Story:
We ran a preliminary mass rebuild of javastack in copr repo
https://copr.fedorainfracloud.org/coprs/jvanek/java11/builds/ (select "all" 
instead of "25" at the
bottom), on packages requiring java,javac, java-devel, maven-local, ant, ivy & 
comp for build. You
can see, the result was quite dramatic:
1225  total; attempted to rebuild
483   failed; from those 191 are trivial failures (but if you fix it, there is 
no guarantee real
troubles are not hidden behind that)
186   succeeded
556   orphans or dead or otherwise tragic so the build did not even start

I would kindly ask you to search yourself in this list: 
https://jvanek.fedorapeople.org/java11/people
If you are here, please check status of your package in 
https://jvanek.fedorapeople.org/java11/init
(pain text of https://copr.fedorainfracloud.org/coprs/jvanek/java11/builds).
 * If your package is "succeeded",  congratulations nothing to do, and just 
keep en eye on JDK bump
 * If there is "failed" but contains "- -" then it is probably orphan. 
If you wish to resurrect it,
please ensure it runs against JDK11 (see lower)
 * If there is "failed" but failed in "seconds", then those packages failed so 
quickly, that the
build was in initial phases. That usually mean that you build with 
source/target lower then 1.6
JDK11 supports 1.6 and up. We recommend to bump the source/target to 1.8, to 
allow existence of
compact 1.8 packages alongside main javastack. See
https://fedoraproject.org/wiki/Changes/Java11#Wrong_source.2Ftarget_version. 
Don't forget to
upstream the patch, or maybe it is enough to update to more fresh upstream 
release which supports
JDK11? it may happen, that after the fix, your build will fail in more terrible 
way (see below)
 * If there is "failed", and its none of above, then your package simply 
failed. Very often the
scary error may be fixed by bump to latest upstream version. JDK 11 is out for 
several years.
Please, try to fix the package. Don't hesitate to ask on 
de...@fedoraproject.org or
java-de...@fedoraproject.org or directly to me jva...@redhat.com. If you fix 
the fail, feel free to
share your fix, it may help others.
We are trying to gather the most common issues at
https://fedoraproject.org/wiki/Changes/Java11#common_issues_packagers_can_face_and_gathered_solutions
 .
 Feel free to enhance the page, or write us your case (possibly both with 
solution and without) so
we can add it here.

Debugging Your failures.
The copr repo we maintain, contains builds of java-11-openjdk as system JDK, 
javapackages-tools
honoring that, and java-1.8.0-openjdk as non system JDK. Also it contains 
successfully rebuilt
packages. You can directly use this copr repo in several ways.
 * first glance on error. On 
https://copr.fedorainfracloud.org/coprs/jvanek/java11/builds/ find your
build  (select "all" instead of "25" at the bottom),
 ** Click its number, select chroot (currently  fedora-32-x86_64 ) and check 
the logs. Main log is
build.log.gz.
 * anything you push to rawhide, will automatically rebuild here in f32 chroot 
(we have a JDK in
rawhide broken a bit currently)
 ** It is the best approach. If you can fix your package in rawhide directly, 
without breaking the
rawhide too much, go for it
 ** If yo need to experiment, I have a mock config for you (generated from  
copr-cli mock-config
jvanek/java11 fedora-32-x86_64) which you can copy to your /etc/mock and use -
https://jvanek.fedorapeople.org/java11/jvanek-java11-fedora-32-x86_64.cfg .  Eg:

 sudo cp downloaded-fedora-32-x86_64.cfg 
/etc/mock/jvanek-java11-fedora-32-x86_64.cfg
 # change spec, bump sources, apply patches
 fedpkg srpm
 mock -r jvanek-java11-fedora-32-x86_64  *.src.rpm

Or any other packaging workflow you use, and you can use against the copr repo.
Thank you very much for your help, there are 500 failures, and 1000 java 
packagers, but only 2
active members of java sig. Without your help, the JDK bump will be very hard.

Thank You!


On behalf of Fedora java group
  J.
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: