FS#69241 - [ammonite] Build broken in version 2.3.7 and 2.3.8

Attached to Project: Community Packages
Opened by Simon Johansson (DrPhil) - Thursday, 07 January 2021, 14:39 GMT
Last edited by Felix Yan (felixonmars) - Monday, 11 January 2021, 21:42 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Felix Yan (felixonmars)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

We do some sed magic in the PKGBUILD, that seems to cause issues.
Ammonite can not even start. It works fine when built from source.

Broken package versions: 2.3.7 and 2.3.8.
It seems to work fine in 2.3.6 and before.

Upstream bug-reports, all from Arch users:
- https://github.com/lihaoyi/Ammonite/issues/1129
- https://github.com/lihaoyi/os-lib/issues/49

Steps to reproduce:
Run `amm` without any flags:

```
$ amm
Loading...
Exception in thread "main" os.PathError$InvalidSegment: [] is not a valid path segment. OS-Lib does not allow empty path segments If you are dealing with path-strings coming from external sources, use the Path(...) or RelPath(...) constructor calls to convert them.
at os.BasePath$.fail$1(Path.scala:120)
at os.BasePath$.checkSegment(Path.scala:137)
at os.PathChunk$StringPathChunk.<init>(Path.scala:21)
at os.PathChunk$.StringPathChunk(Path.scala:20)
at ammonite.runtime.Storage$Folder.<init>(Storage.scala:189)
at ammonite.MainRunner.initMain(Main.scala:452)
at ammonite.MainRunner.watchLoop(Main.scala:396)
at ammonite.MainRunner.runRepl(Main.scala:415)
at ammonite.Main$.main0(Main.scala:321)
at ammonite.Main$.main(Main.scala:270)
at ammonite.Main.main(Main.scala)
```
This task depends upon

Closed by  Felix Yan (felixonmars)
Monday, 11 January 2021, 21:42 GMT
Reason for closing:  Fixed
Additional comments about closing:  2.3.8-2

Loading...