Control: tag -1 + patch On Sat, 14 Jan 2017 17:41:18 +0100 Gilles Filippini <p...@debian.org> wrote: > Steven Chamberlain a écrit le 13/01/2017 à 14:43 : > > Hello, > > > > Gilles Filippini wrote: > >> While investigating about ant FTBFS on kfreebsd-* [1][2], I tried the > >> very simple testcase below. It fails with errcode 127 on kfreebsd-*: > > > > Many thanks for the report and test case. With that I could easily find > > the underlying issue: > > > > 31280 java CALL vfork > > 31280 java RET vfork 31281/0x7a31 > > 31281 java RET fork 0 > > 31281 java CALL execve(0x8041e6970,0x8026b34c0,0x7fffffffe610) > > 31281 java NAMI > > "/usr/lib/jvm/java-8-openjdk-kfreebsd-amd64/jre/lib/jspawnhelper" > > 31281 java RET execve -1 errno 2 No such file or directory > > 31281 java CALL exit(0x7f) > > > > AFAIK only kfreebsd uses jspawnhelper, but ISTR it was the most suitable > > implementation of exec() for us to use at the moment. > > > > The file is actually located at > > /usr/lib/jvm/java-8-openjdk-kfreebsd-amd64/jre/lib/amd64/jspawnhelper > > > > Perhaps I need to update something in the kfreebsd jdk patchset; > > although it maybe makes more sense to install that file to > > /usr/lib/jvm/java-8-openjdk-kfreebsd-amd64/jre/lib/jspawnhelper > > since the pathname is already multiarched. > > Yes, the latter sounds sensible.
Patch proposal attached. Thanks, -g.
diff -Nru openjdk-8-8u111-b14/debian/rules openjdk-8-8u111-b14/debian/rules --- openjdk-8-8u111-b14/debian/rules 2016-10-30 16:14:44.000000000 +0000 +++ openjdk-8-8u111-b14/debian/rules 2017-01-14 20:38:11.000000000 +0000 @@ -1605,6 +1605,8 @@ ifneq (,$(filter $(DEB_HOST_ARCH), kfreebsd-amd64 kfreebsd-i386)) cp -a $(d)/$(basedir)/include/bsd $(d)/$(basedir)/include/linux + : # Easy fix for #851053 + mv $(d)/$(basedir)/jre/lib/$(archdir)/jspawnhelper $(d)/$(basedir)/jre/lib/ endif chmod -R u+w $(d)
signature.asc
Description: OpenPGP digital signature