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


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

May be its rather a "java.io.IOException: No such file or directory" issue (Was: Calling sbt inside d/rules)

Path csiph.com!eternal-september.org!reader02.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod
From Andreas Tille <andreas@an3as.eu>
Newsgroups linux.debian.maint.java
Subject May be its rather a "java.io.IOException: No such file or directory" issue (Was: Calling sbt inside d/rules)
Date Thu, 27 May 2021 14:00:01 +0200
Message-ID <CjmQ9-7nh-7@gated-at.bofh.it> (permalink)
References <CiBHz-4pw-1@gated-at.bofh.it>
X-Mailbox-Line From debian-java-request@lists.debian.org Thu May 27 11:58:25 2021
Old-Return-Path <andreas@an3as.eu>
X-Amavis-Spam-Status No, score=-5.4 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FOURLA=0.1, LDO_WHITELIST=-5, MONEY=0.5, STOCKLIKE=1] autolearn=no autolearn_force=no
X-Policyd-Weight using cached result; rate: -4.6
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
User-Agent Mutt/1.10.1 (2018-07-13)
X-Mailing-List <debian-java@lists.debian.org> archive/latest/22828
List-ID <debian-java.lists.debian.org>
List-URL <https://lists.debian.org/debian-java/>
List-Archive https://lists.debian.org/msgid-search/20210527115809.GA18307@an3as.eu
Approved robomod@news.nic.it
Lines 69
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Thu, 27 May 2021 13:58:09 +0200
X-Original-Message-ID <20210527115809.GA18307@an3as.eu>
X-Original-References <20210525092952.GP8962@an3as.eu>
Xref csiph.com linux.debian.maint.java:12200

Show key headers only | View raw


Hi again,

I tried again without any clue - may be it is simply some missing
directory inside pbuilder - but I have no idea which one. :-(

Any hint would be welcome

      Andreas.

On Tue, May 25, 2021 at 11:29:52AM +0200, Andreas Tille wrote:
> Hi,
> 
> the source of r-cran-epitweetr[1] contains a JAR and the corresponding
> scala code.  I tried to sneak in a sbt call into debian/rules.  I tried
> several different things to at least get sbt running but I always get:
> 
> java.io.IOException: No such file or directory
>         at java.base/java.io.UnixFileSystem.createFileExclusively(Native Method)
>         at java.base/java.io.File.createNewFile(File.java:1035)
>         at xsbt.boot.Locks$.apply0(Locks.scala:34)
>         at xsbt.boot.Locks$.apply(Locks.scala:28)
>         at xsbt.boot.Launch.locked(Launch.scala:238)
>         at xsbt.boot.Launch.app(Launch.scala:147)
>         at xsbt.boot.Launch.app(Launch.scala:145)
>         at xsbt.boot.Launch$.run(Launch.scala:102)
>         at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:35)
>         at xsbt.boot.Launch$.launch(Launch.scala:117)
>         at xsbt.boot.Launch$.apply(Launch.scala:18)
>         at xsbt.boot.Boot$.runImpl(Boot.scala:41)
>         at xsbt.boot.Boot$.main(Boot.scala:17)
>         at xsbt.boot.Boot.main(Boot.scala)
> Error during sbt execution: java.io.IOException: No such file or directory
> 
> 
> The frustrating thing is that when beeing in the pbuilder environment
> I can do
> 
>    # cd build/r-cran-epitweetr-0.1.28/java/
>    /build/r-cran-epitweetr-0.1.28/java# sbt package
> Getting org.scala-sbt sbt 0.13.13 ...
> downloading file:/usr/share/maven-repo/org/scala-sbt/sbt/0.13.13/sbt-0.13.13.jar ...
>         [SUCCESSFUL ] org.scala-sbt#sbt;0.13.13!sbt.jar (1ms)
> downloading file:/usr/share/maven-repo/org/scala-sbt/main/debian/main-debian.jar ...
>         [SUCCESSFUL ] org.scala-sbt#main;debian!main.jar (3ms)
> downloading file:/usr/share/maven-repo/org/scala-sbt/actions/debian/actions-debian.jar ...
> ...
> 
> 
> which will fail later.  But anyway, what is the reason that the call in
> d/rules fails.  I tried several things like providing a HOME dir (some
> web search made me think the reason might be a problem with writing to
> HOME), explicitly calling bash (plan sh seems to cause issues with sbt -
> but these are different), etc.  So before I can tackle the missing
> dependency issues - please help with getting sbt starting at all.
> 
> Kind regards
> 
>         Andreas.
> 
> 
> [1] https://salsa.debian.org/r-pkg-team/r-cran-epitweetr
> 
> -- 
> http://fam-tille.de
> 
> 

-- 
http://fam-tille.de

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


Thread

Calling sbt inside d/rules Andreas Tille <andreas@an3as.eu> - 2021-05-25 11:40 +0200
  May be its rather a "java.io.IOException: No such file or directory"  issue (Was: Calling sbt inside d/rules) Andreas Tille <andreas@an3as.eu> - 2021-05-27 14:00 +0200
    Re: May be its rather a "java.io.IOException: No such file or  directory" issue (Was: Calling sbt inside d/rules) Thorsten Glaser <t.glaser@tarent.de> - 2021-05-27 15:00 +0200
      Re: May be its rather a "java.io.IOException: No such file or  directory" issue (Was: Calling sbt inside d/rules) Andreas Tille <andreas@an3as.eu> - 2021-05-27 17:30 +0200
        Re: May be its rather a "java.io.IOException: No such file or  directory" issue (Was: Calling sbt inside d/rules) Thorsten Glaser <t.glaser@tarent.de> - 2021-05-27 18:00 +0200
          Re: May be its rather a "java.io.IOException: No such file or  directory" issue (Was: Calling sbt inside d/rules) Andreas Tille <andreas@an3as.eu> - 2021-05-27 18:10 +0200

csiph-web