From owner-freebsd-ports@freebsd.org Sat Jun 20 01:03:21 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 A6BC233E4E9 for ; Sat, 20 Jun 2020 01:03:21 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 49pcqY371Gz43HR for ; Sat, 20 Jun 2020 01:03:21 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: by mailman.nyi.freebsd.org (Postfix) id 6968633E643; Sat, 20 Jun 2020 01:03:21 +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 692C233E899 for ; Sat, 20 Jun 2020 01:03:21 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: from mail-ot1-x336.google.com (mail-ot1-x336.google.com [IPv6:2607:f8b0:4864:20::336]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49pcqX3MrDz43YT for ; Sat, 20 Jun 2020 01:03:19 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: by mail-ot1-x336.google.com with SMTP id k15so8698072otp.8 for ; Fri, 19 Jun 2020 18:03:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chen-org-nz.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TDCeAaUlMzVZZ+7a02SwoClmhu8Tf167duzdbE8+gHY=; b=ufrL+PlA5W/nk8IEPy3pgrxQhNJXVjvbHvZgCqv8a0bZ14RyQlqVTXgWn/G44LhODw p+UhjFx9uEvtFFnOF9u8ppxatn4GTyq6AhAgY+6OjMzT+Md59+6ge9bvsxNIWa1PTnzt KD+dvXQxublOHZXgXa3N/UhI0+jOoxrXDK3QVMHxVYpWqthxiEn7FtiAxNH3BV1UjmDm vH0BHIrhy3SNKaQAoU9dLSJDozLSGOtaYZZfs9PeP8fK+3Zsldaewez0Vh5s6FzAdPGF K3SM2PS/BifT1v2BhQNogMA4nYh3htI4hoG/fE2RAEmmtjPoVW9zSMg/bjZLIZk3wqzy lwdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=TDCeAaUlMzVZZ+7a02SwoClmhu8Tf167duzdbE8+gHY=; b=JsaQMD6PavnelH89zxaknZjFU/Bf1PcMm31PM9/LZPYKBQ7KLzhl38RnZ8zhmMBk8b /mxUfjqkky35x/QqCbraBnGSmo6PSJ4tvzXatMLWMmfEcL6sR4sLtzhCJBHNFgFoHsDC SMDePTswtL/gbG8fqSIEc+F+NosRvJJyCmtMD3Ied3cDEZfp2a7mJaKbPLuaRQN0bW/0 lL+rID7oyNwVB4slHgDeQk6JoDAtHxQNGotuTTWLMyHu0indzGJnNe404eE64CYmSzGE 5pfolvWgLe1ajTLW1gweIb4ucgvDQaZ2G+L0dyL6+I+/kyq5WUcObl6W/xI2civWSoaL hQTg== X-Gm-Message-State: AOAM532aUwtT9LuM09QwKf5zWVADnWLx2datKwLiRadEXbLegDLtAMHZ XgpAYHp78zI8W+Tz4MIbJqo5meq9AnS8MVbtbTkW2g== X-Google-Smtp-Source: ABdhPJyo06LikLWkVkt6x3MGOYKSKJh9C6xr1typRAQkf1iMoJ6pus5hlH73fv3JDhhKKPCCxyx2R27UH0/XB41eOU8= X-Received: by 2002:a05:6830:1d8c:: with SMTP id y12mr5323309oti.162.1592614998831; Fri, 19 Jun 2020 18:03:18 -0700 (PDT) MIME-Version: 1.0 References: <8fd5c853-6dd6-a3f6-3ebf-da973cf6ae8e@digital-chaos.com> <00a82f73-b1f7-0a80-6631-b64682522f10@digital-chaos.com> In-Reply-To: <00a82f73-b1f7-0a80-6631-b64682522f10@digital-chaos.com> From: Jonathan Chen Date: Sat, 20 Jun 2020 13:03:03 +1200 Message-ID: Subject: Re: sysutils/apache-mesos: Enable Java bindings request for review To: James Wright Cc: ports@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 49pcqX3MrDz43YT X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=chen-org-nz.20150623.gappssmtp.com header.s=20150623 header.b=ufrL+PlA; dmarc=none; spf=softfail (mx1.freebsd.org: 2607:f8b0:4864:20::336 is neither permitted nor denied by domain of jonc@chen.org.nz) smtp.mailfrom=jonc@chen.org.nz X-Spamd-Result: default: False [-1.91 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.79)[-0.785]; R_DKIM_ALLOW(-0.20)[chen-org-nz.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_SPAM_SHORT(0.08)[0.079]; NEURAL_HAM_LONG(-0.90)[-0.899]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[ports@freebsd.org]; DMARC_NA(0.00)[chen.org.nz]; R_SPF_SOFTFAIL(0.00)[~all]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[chen-org-nz.20150623.gappssmtp.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::336:from]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] 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:03:21 -0000 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? -- Jonathan Chen