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


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

Bug#963396: jimfs: FTBFS: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project jimfs: Compilation failure

Path csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Thorsten Glaser <t.glaser@tarent.de>
Newsgroups linux.debian.bugs.dist, linux.debian.maint.java
Subject Bug#963396: jimfs: FTBFS: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project jimfs: Compilation failure
Date Sat, 08 Aug 2020 00:10:01 +0200
Message-ID <ABiIN-4p2-7@gated-at.bofh.it> (permalink)
References <AAK4p-ac-1@gated-at.bofh.it> <AAOKJ-342-1@gated-at.bofh.it> <AB92N-6Ou-9@gated-at.bofh.it> <ABiIN-4p2-9@gated-at.bofh.it> <Akf4H-IG-53@gated-at.bofh.it> <ABiIN-4p2-9@gated-at.bofh.it>
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Fri Aug 7 22:03:08 2020
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score -0.699
Reply-To Thorsten Glaser <t.glaser@tarent.de>, 963396@bugs.debian.org
Resent-To debian-bugs-dist@lists.debian.org
Resent-Cc Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
X-Debian-Pr-Message followup 963396
X-Debian-Pr-Package src:jimfs
X-Debian-Pr-Keywords ftbfs sid bullseye help
X-Debian-Pr-Source jimfs
X-Spam-Bayes score:0.0000 Tokens: new, 33; hammy, 150; neutral, 169; spammy, 0. spammytokens: hammytokens:0.000-+--H*f:sk:alpine., 0.000-+--H*MI:sk:alpine., 0.000-+--mirabilos, 0.000-+--H*M:tarent, 0.000-+--H*M:tglase
X-X-Sender tglase@tglase-nb.lan.tarent.de
User-Agent Alpine 2.23 (DEB 453 2020-06-18)
Content-Language de-DE-1901
MIME-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding QUOTED-PRINTABLE
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-dist@lists.debian.org> archive/latest/1617735
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 59
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Cc Andreas Tille <andreas@an3as.eu>, 963396@bugs.debian.org, Debian Java List <debian-java@lists.debian.org>
X-Original-Date Fri, 7 Aug 2020 23:58:17 +0200 (CEST)
X-Original-Message-ID <alpine.DEB.2.23.453.2008072344420.568@tglase-nb.lan.tarent.de>
X-Original-References <20200806090548.GS7363@an3as.eu> <alpine.DEB.2.23.453.2008061559250.10675@tglase-nb.lan.tarent.de> <20200807114059.GE7363@an3as.eu> <08a536e8-4292-b366-7325-178533cae03c@free.fr> <20200621203006.GA2137@xanadu.blop.info> <08a536e8-4292-b366-7325-178533cae03c@free.fr>
Xref csiph.com linux.debian.bugs.dist:1020932 linux.debian.maint.java:11824

Cross-posted to 2 groups.

Show key headers only | View raw


On Fri, 7 Aug 2020, Pierre Gruet wrote:

> I suggest using the enclosed patch, which allows the build to succeed by
> overriding the ``test'' method of Predicate<T>. The ``apply'' method
> provided by upstream has to be kept as it is used by the ``test'' method.

But why? This amount of redundancy is… ridiculous.

private static final Predicate<Object> NOT_EMPTY =
      new Predicate<Object>() {
        @Override
        public boolean apply(Object input) {
          return !input.toString().isEmpty();
        }
      };

I was just suggesting replacing this with…

private static final Predicate<Object> NOT_EMPTY =
	input -> !input.toString().isEmpty();

… but then I saw https://stackoverflow.com/q/41930727/2171120
and the code from jimfs seems to use Guava, not standard Java:

import com.google.common.collect.Iterables;
import com.google.common.base.Predicate;

Looking at guava/src/com/google/common/base/Predicate.java in
the Debian source package guava-libraries (29.0-5) I see:

 * <p>As this interface extends {@code java.util.function.Predicate}, an instance of this type may
 * be used as a {@code Predicate} directly. To use a {@code java.util.function.Predicate} where a
 * {@code com.google.common.base.Predicate} is expected, use the method reference {@code
 * predicate::test}.
 *
 * <p>This interface is now a legacy type. Use {@code java.util.function.Predicate} (or the

This means the correct patch is more like… ugh, this is more complicated.
Also, com.google.common.base.Predicate implements a default test method.

In addition, for some reason, jimfs still builds for Java 7.

Gimme a bit, I’ll build it locally, now I found the Debian packaging.

bye,
//mirabilos
-- 
tarent solutions GmbH
Rochusstraße 2-4, D-53123 Bonn • http://www.tarent.de/
Tel: +49 228 54881-393 • Fax: +49 228 54881-235
HRB 5168 (AG Bonn) • USt-ID (VAT): DE122264941
Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg

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


Thread

Bug#963396: jimfs: FTBFS: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project jimfs: Compilation failure Andreas Tille <andreas@an3as.eu> - 2020-08-06 11:10 +0200
  Bug#963396: jimfs: FTBFS: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project jimfs: Compilation failure Thorsten Glaser <t.glaser@tarent.de> - 2020-08-07 18:10 +0200
  Bug#963396: jimfs: FTBFS: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project jimfs: Compilation failure Thorsten Glaser <t.glaser@tarent.de> - 2020-08-08 00:10 +0200
    Re: jimfs: FTBFS: [ERROR] Failed to execute goal  org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile  (default-compile) on project jimfs: Compilation failure Andreas Tille <andreas@an3as.eu> - 2020-08-08 17:50 +0200
      Re: jimfs: FTBFS: [ERROR] Failed to execute goal  org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile)  on project jimfs: Compilation failure Thorsten Glaser <t.glaser@tarent.de> - 2020-08-08 18:30 +0200
  Re: jimfs: FTBFS: [ERROR] Failed to execute goal  org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile  (default-compile) on project jimfs: Compilation failure Mechtilde Stehmann <mechtilde@debian.org> - 2020-08-10 21:20 +0200

csiph-web