Skip to content

Adoption of AUR package but ran into issues #3490

@ghost

Description

Hello, I hope you don't mind completely ignoring the template you want to use.

This issue is for a discussion and is not to report an issue. So lets get started.

Today I received an email about scalafmt-native, the graalvm build of the scalafmt command line tool was being deleted due to lack of maintainer and misnaming of the package. I decided to adopt it and save the package from the trash, you can see the aur package here.

The issue was brought up is that this package is meant to be a source install, this is where the source code of the package is pulled and built no binary is pulled, however you do not seem to have a build from source guide (if you want this added through contributions, help me through this and I will write up a PR).

The previous maintainer did not write a compliant PKGBUILD, but when attempting to build in a clean chroot, I keep getting an error which I do not know what is going wrong (a clean chroot has almost every single dependency stripped from it, its a good way to find dependencies which have not been specified).

The package invokes the native image script which you distribute, but the following error occurs:

java.lang.RuntimeException: Nonzero exit value: 128
        at scala.sys.package$.error(package.scala:30)
        at scala.sys.process.ProcessBuilderImpl$AbstractBuilder.slurp(ProcessBuilderImpl.scala:138)
        at scala.sys.process.ProcessBuilderImpl$AbstractBuilder.$bang$bang(ProcessBuilderImpl.scala:108)
        at $8e33e3a4aebfe860965c$.parseTagVersion(build.sbt:7)
        at $8e33e3a4aebfe860965c$.localSnapshotVersion(build.sbt:9)
        at $eae7269133670df054d5$.$anonfun$$sbtdef$1(/home/build/scalafmt-native/src/scalafmt-3.7.2/build.sbt:19)
        at scala.Function1.$anonfun$compose$1(Function1.scala:49)
        at scala.Function1.$anonfun$compose$1(Function1.scala:49)
        at sbt.internal.util.EvaluateSettings$MixedNode.evaluate0(INode.scala:228)
        at sbt.internal.util.EvaluateSettings$INode.evaluate(INode.scala:170)
        at sbt.internal.util.EvaluateSettings.$anonfun$submitEvaluate$1(INode.scala:87)
        at sbt.internal.util.EvaluateSettings.sbt$internal$util$EvaluateSettings$$run0(INode.scala:99)
        at sbt.internal.util.EvaluateSettings$$anon$3.run(INode.scala:94)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:829)
[error] Nonzero exit value: 128
[error] Use 'last' for the full log.

Please could you explain why this happens, I assume it is a missing dependency which the scalafmt team has not specified as it builds fine on my laptop, which has all the libraries you would expect on a linux system installed, but clean chroots DO NOT.

You can track the progress of the update to the PKGBUILD, including the corrections to become compliant to the AUR packaging guidelines, and also updating this 3-4 year outdated package right up the latest version below:

https://onedev.polarian.dev/polarrepo/scalafmt-native/~pulls/1

I like to contact the developer anyways saying heads up I am the maintainer of the AUR package anyways, you are free to contact me by email [email protected]

The current dependencies I have deduced through trail and error:

  • GraalVM (JDK11)
  • Native image (JDK11) (obviously)
  • git (I do not know why git is needed to build but an error which has been pasted into the pull request I have linked above was looking for git so I added it as a dependency)

If there are any more dependencies I am missing, please let me know!

Have a good night!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions