Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.java > #11662

Re: Update for kotlin package

From Samyak Jain <samyak.jn11@gmail.com>
Newsgroups linux.debian.maint.java
Subject Re: Update for kotlin package
Date 2020-06-01 12:20 +0200
Message-ID <AcPHX-6pd-5@gated-at.bofh.it> (permalink)
References <AaKt4-4dK-17@gated-at.bofh.it> <AaQyt-7JS-1@gated-at.bofh.it> <Ab986-2az-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Hi again :D


The issue for the modified binaries was fixed last week and the package
built successfully, without any failures. The updated package can be found
here[1]

On Wed, May 27, 2020 at 4:18 AM Emmanuel Bourg <ebourg@apache.org> wrote:

> Thank you very much for working on Kotlin, that's definitely not a small
> feat.
>
> The key issue before uploading is to check if it's possible to build
> Kotlin without the bootstrap package, i.e. the kotlin package can
> rebuild itself. The process is to first build the kotlin package with
> the bootstrap binaries, then install the package built, remove the
> bootstrap package, adjust the build dependencies and rebuild kotlin.
> This rebuilt package is the one you want to upload.
>

After that to check if kotlin can build from itself, I tried testing as per
the workaround specified by ebourg in the last mail.
Created a clean lxc container and installed the kotlin .deb file. Checked
if the kotlinc compiler was working or not? Yes, the basic functionalities
work fine.
But, here is the case: I tried building the kotlin package again(to check
is rebuilding is possible without bootstrap), by removing some of the
dependencies from the bootstrap package, but it failed with the following
errors.

```
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':buildSrc'.
> Could not resolve all files for configuration ':buildSrc:classpath'.
   > Could not resolve
org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.30-eap-28.
     Required by:
         project :
      > No cached version of
org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.30-eap-28 available for
offline mode.
      > No cached version of
org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.30-eap-28 available for
offline mode.
      > No cached version of
org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.30-eap-28 available for
offline mode.
   > Could not resolve
org.jetbrains.kotlin:kotlin-sam-with-receiver:1.3.30-eap-28.
     Required by:
         project :
      > No cached version of
org.jetbrains.kotlin:kotlin-sam-with-receiver:1.3.30-eap-28 available for
offline mode.
      > No cached version of
org.jetbrains.kotlin:kotlin-sam-with-receiver:1.3.30-eap-28 available for
offline mode.
      > No cached version of
org.jetbrains.kotlin:kotlin-sam-with-receiver:1.3.30-eap-28 available for
offline mode.

```
It fails to find kotlin-Gradle-plugin in offline mode. And FWIW, we need to
package kotlinx libraries and package them, but here is the thing the
kotlinx has .kt files which need kotlin compiler itself to build them.
It looks like a cyclic dependency to me, because if we don't have kotlinx
the compiler won't function. Please correct me, if I'm mistaken.

Is there any other workaround/suggestion if possible? For now, I'm trying
to investigate if I can package kotlinx packages somehow.

Thanks and regards,
Samyak Jain

Back to linux.debian.maint.java | Previous | NextPrevious in thread | Find similar


Thread

Update for kotlin package Samyak Jain <samyak.jn11@gmail.com> - 2020-05-26 18:20 +0200
  Re: Update for kotlin package Samyak Jain <samyak.jn11@gmail.com> - 2020-05-26 18:30 +0200
  Re: Update for kotlin package Emmanuel Bourg <ebourg@apache.org> - 2020-05-27 00:50 +0200
    Re: Update for kotlin package Samyak Jain <samyak.jn11@gmail.com> - 2020-05-27 20:40 +0200
      Re: Update for kotlin package Samyak Jain <samyak.jn11@gmail.com> - 2020-06-01 12:20 +0200

csiph-web