From owner-freebsd-java@freebsd.org Fri Jun 15 20:43:36 2018 Return-Path: Delivered-To: freebsd-java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DC787101B839 for ; Fri, 15 Jun 2018 20:43:36 +0000 (UTC) (envelope-from 1983-01-06@gmx.net) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4235182426 for ; Fri, 15 Jun 2018 20:43:36 +0000 (UTC) (envelope-from 1983-01-06@gmx.net) Received: from [192.168.1.13] ([84.143.155.152]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MfSrf-1ft33v45tL-00P9Ed for ; Fri, 15 Jun 2018 22:43:25 +0200 To: freebsd-java@freebsd.org In-Reply-To: From: Michael Osipov <1983-01-06@gmx.net> Subject: Re: Why do I need JDK on my router? Message-ID: <2b663b66-1516-9ff0-b534-c1b18cfff4a6@gmx.net> Date: Fri, 15 Jun 2018 22:43:24 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:1ytDxM/bsl5YvqGcjM+QaCVvGiCxBxIPZXt/fx+n35divzRi7Oi ux04Z5ehwros2H6s1pVxmZzpnlB0T2/TggrQpZp0Ky6FEjfQSF3U1WECTuVrm1AJ8qqTzMy k7uzbO5jQazUQGamCekQw6xPFFNsR6CBl2TyKKyNqwenAo153H7a8DdbxL0PYiyBG8ZtrNb 0KGRxjEu/l1viBlfbJaWQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:CsZQkDPUmQc=:xdXYFYo3iSK7sdZ458EL/j wVA4UHvXUoXTG/t7IcNQ3PbmD3mUFkwgLQTPbLv733hJnyGHQc6ZsRIJnTXfUHwEKdmLyet4i OsOqbNV4fJsru2AXcfRHfQSgufmel5aBN8xbm6Zm2A28+BJXpfJyrT4wp0jMwCdSyeLHMt1uU Fn3e3yoV6Dm7HsdX1UFGkjSURtO2g3TJ9IcB8LQRuI1QaGMAeJ2ffenGsb2ppQgIiFbVmtfoq tbFRvekDuEth+IYHI2whs2svoebhjnTe/hrBTkHUyVAv/4yvfYaGGa9dh+QQkzdoVEPrMegHk yWNCXVgWOqq1FYYgDypvWnWFoNfoE/sNj7My0rek8BJTpBRtxermy7/OjGXfSfo7tPVExuHiW WCwn8n/AMu2nGlOyI0ld2MCqmuzrxAvTF2zsifpZpcC20zlKmLNFW3HINxBUgKUvoW+PPLQ5j DNWRh6wY51zf2F6Zi1E+wCMv9E0Q6FcHLQmB/erID6KnTm06KQi/t97j5+EcbC4zP5o7XnFPk DsRh4QcwgoW1kZE28z9xI3qRmSu3UkyCoq4TqsTsfh1Ti0CKp3j8nKa8Nh9wLBYPECwFrOWaY jEQLMXl/SkalPeY9VEyQ4cTjyOdq4lg23VawVtf03tpZ+HMQig0e43fE61yMr9O4gGe6ZJqtr lyCwfvd2T+0RJ1L9J61QfWQVfbIeBbypkNWOC0rF71thxIBk7ZhKf9pBuUrSky0QnHRne5mjs G8sCl4iW1YFEq80VyStPpKlp1LxF9XC87o9tuWfULItGHSg+pKp6bpuKOQV0wEWXk09HPfgsB piiyUCG X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jun 2018 20:43:37 -0000 > I need to have 'net-mgmt/unifi5' on my router. It is Java port, which > works with native JRE, and doesn't need build at all. But this port > depends on 'archivers/snappy-java', which needs build (and JDK and maven > for this). > > But at *runtime* neither of these ports need JDK! They works perfectly > Ok with only JRE! And still, RUN_DEPENDS includes 'java/openjdk8', WHY?! > > I've added 'JAVA_RUN=jre' to 'archivers/snappy-java/Makefile' but it > doesn't help (WHY?). > > Size difference between JDK and JRE is substantial for small > embedded-like system with "only" 512MiB of flash for "firmware". Lev, took a quick look at snappy-java. Unfortnately, this is not pure Java, but a JNI wrapper around a C++ implementation. I assume that the port maintainer wanted to replace with a locally compiled version for FreeBSD only. The default JAR is 64 bit only for Intel. Moreover, looking at the debian package, this software is pure crap: 1. It contains 25 MB of the Lato font. What for?! 2. If you look closely at the lib directory, you'll notice that it contains horribly old dependencies of Spring Framework, SLF4J, Log4J, Apache Commons, ancient tag library TLD, etc. 3. They even obfuscated most of the code in ace.jar (which is likely OK) 4. They violate the GPL by not providing the source code on the page 5. They bundle libubnt_webrtc_jni.so which likely is used for the webcam remote image. But why? browsers support WebRTC natively. Regards, Michael PS: I am an Apache Maven PMC member and happy FreeBSD user