From owner-freebsd-ports@freebsd.org Sat Jun 20 01:44:05 2020 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id AABA533F3D7 for ; Sat, 20 Jun 2020 01:44:05 +0000 (UTC) (envelope-from james.wright@digital-chaos.com) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 49pdkY2yqtz461x for ; Sat, 20 Jun 2020 01:44:05 +0000 (UTC) (envelope-from james.wright@digital-chaos.com) Received: by mailman.nyi.freebsd.org (Postfix) id 63CFF33F1F3; Sat, 20 Jun 2020 01:44:05 +0000 (UTC) Delivered-To: ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6261633F59E for ; Sat, 20 Jun 2020 01:44:05 +0000 (UTC) (envelope-from james.wright@digital-chaos.com) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.134]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49pdkW6skjz45yT for ; Sat, 20 Jun 2020 01:44:03 +0000 (UTC) (envelope-from james.wright@digital-chaos.com) Received: from [192.168.0.15] ([82.18.193.38]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.163]) with ESMTPSA (Nemesis) id 1MekrN-1jC1jg1xyP-00aq9U; Sat, 20 Jun 2020 03:44:01 +0200 Subject: Re: sysutils/apache-mesos: Enable Java bindings request for review To: Jonathan Chen Cc: ports@freebsd.org References: <8fd5c853-6dd6-a3f6-3ebf-da973cf6ae8e@digital-chaos.com> <00a82f73-b1f7-0a80-6631-b64682522f10@digital-chaos.com> From: James Wright Message-ID: <0805cddc-81e5-f752-9d51-f11aee6c6db9@digital-chaos.com> Date: Sat, 20 Jun 2020 02:44:00 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Provags-ID: V03:K1:ROcctutHdKQ/9HsLWhZSOg+feeOmZ5QaXN8sEML3cgV8aOMlmeb Xc2rmbWtSac3eo4YtKyJoWPxYihnipri9GWu3YgNywOxPne3F4po0IIc5H3P/LrYTK4Fsx/ g4HmS9WBtKeuizLcURDsPIrtJXavvXNgwY98qOIOsPk3gIpWNdbHBaxgHDw7y1r5ufc1mmY qUN4izUPissCm9yz4DnJw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:h+6a2ZYRn4M=:d5XwDzDNFIg+9iHVVq1Zb1 SaUjFSIXwehGXG2zcxK2KtALLZP598uT/4peFBZktaRbavi30fE9GeQpooYai2TxwZ6ABHk5s gLOh9/p/slMJkcDuDw7sMR26UnfGw69NFQQb6v3iIOTALihC4sFKxx3me3mjysCQwpJVgP31S HowJ8T1B/jT5RKzh5ekIxcZYl3B14Z9mU0UEtftJi6eqeV2Ka9kihVnQqSjKdniYJzMfgobX5 w5JwyMxkMAQFHQE8Z0P9hc0zHgwIwzKLcofsqj4W0pJ4h9aFnRH1/s9U0XefHnrItgJ+b69TU 5FoCzlFm2uff66jR0gUIaUq3C7KJd8Tna0YPzENuH8/xHni77jaq9o3EkFG7Pjv5aC9ay9NUw 3Oh/aSPZGmMj2cMkiAgluesaFzVcqEyiMJ9n1r1U8cpKcu6hfwGn6fIUqmBBvlJYNvP0YEHja WC6BLq+ziw0tLl3lZXRcwKpvlNjLit4hjzI1lMhKAj50wSkeOUV4dsusmi9uqGhQOokz+X4Us fVET5bZEqO1Q7wdVdSFyQs07r9/tK/IgG4Wx51cjK7UZW4QuIOqFIdc2k07ZxCi6kYqIoEucS WiQvFiCL2V7+LnjvzWN5zt/gy9D1weG+odlSR5GbfY03SuespW1SJtm7nyk/m1pO3B+wTlKfL 3qwBQa8KuWXMH8vcCNF6aajaL01JcBDLOkkh7gaZRXewS51IDptD4qw1faoKhJ9YqhiPzvjgm 1j6A8+pkJPSXqMhruH1f2MCPDRUpZFP0Xb3N7YhXgIY+7y2OcBdspjnA/UX9BgEF/5kQIxj5D tzSE37+rLtlLT6vyf6HvrGQi9gFKyIM/NZNxyocjGOeI0ZNhPlmRYFvK3FLXiQSCkeBKj7V X-Rspamd-Queue-Id: 49pdkW6skjz45yT X-Spamd-Bar: + Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of james.wright@digital-chaos.com has no SPF policy when checking 212.227.126.134) smtp.mailfrom=james.wright@digital-chaos.com X-Spamd-Result: default: False [1.96 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_SPAM_SHORT(0.20)[0.199]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[digital-chaos.com]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.20)[0.195]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[212.227.126.134:from]; NEURAL_SPAM_LONG(0.66)[0.664]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[212.227.126.134:from] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jun 2020 01:44:05 -0000 On 20/06/2020 02:03, Jonathan Chen wrote: > On Sat, 20 Jun 2020 at 12:39, James Wright > wrote: >> >> On 20/06/2020 01:16, Jonathan Chen wrote: >>> On Sat, 20 Jun 2020 at 10:01, James Wright >>> wrote: >>>> On 19/06/2020 22:37, Jonathan Chen wrote: >>>>> On Sat, 20 Jun 2020 at 07:14, James Wright >>>>> wrote: >>>>> [..] >>>>>> One specific area of concern is dealing with the Maven dependencies >>>>>> fetched mid-way through the build phase. I thought I had a solution >>>>>> utilizing >>>>>> the maven dependency plugin "go-offline" goal in the fetch phase and >>>>>> providing a skeleton POM to describe the dependencies required. However, >>>>>> there >>>>>> is a question mark over where these dependencies should be downloaded >>>>>> during the fetch phase; >>>>> One possible way to do this is to provide an offline maven repository >>>>> that has all the required dependencies pre-fetched. The pre-warmed >>>>> repo is static, and can be retrieved and extracted during the >>>>> fetch-phase. Your maven build can then specify >>>>> "-Dmaven.repo.local=${WRKDIR}/local-repo". >>>>> >>>>> The java/eclipse port uses this strategy. >>>>> >>>>> Cheers. >>>>> -- >>>>> Jonathan Chen >>>> I have seen that method used in some Java ports, but thought it would be >>>> better to >>>> download the dependencies from the offical maven repo directly, rather >>>> than a >>>> bundled tarball hosted on a personal/private repo which seems a less >>>> reliable source? >>> Doing so violates the ports-build requirement that access to the 'Net >>> is only permitted during the fetch-phase. >> Not in this case, all dependencies are downloaded during the fetch phase >> by invoking >> maven dependency:go-offline goal to prefetch everything required into the >> local repo before the build phase. > Won't your distinfo file be amazingly large? yeah :-( Although I don't understand how Rust/Cargo ports manage this, can we not have something similiar for Java/Maven ports?