From owner-freebsd-ports@freebsd.org Wed Feb 10 13:24:50 2021 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 4E13954724C for ; Wed, 10 Feb 2021 13:24:50 +0000 (UTC) (envelope-from vendion@gmail.com) Received: from mail-qk1-x732.google.com (mail-qk1-x732.google.com [IPv6:2607:f8b0:4864:20::732]) (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 4DbL8d3Rz7z4T1R for ; Wed, 10 Feb 2021 13:24:49 +0000 (UTC) (envelope-from vendion@gmail.com) Received: by mail-qk1-x732.google.com with SMTP id u20so1535744qku.7 for ; Wed, 10 Feb 2021 05:24:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=THkB3cQ9Ky//pTiardlfbJFCh3bwTY3/KwjkKT+NnqQ=; b=vYAwFARALv+HfZs/EIxG6xkztty3u0Y6XLDUUpGr33oskfZjg93LLXI3W9OHtOL1JJ C6wr30Jdx9tmbMQn7obVRGngwdhOvxaaTanY00AKrD3oed7UoSwgK2NvU1DkcJ/TVi/T 2v05K6bit3Gwd5EeNPuQZ66TsFePz6i/GgTNmVNtAMexfUKYeexjT7eulM/Rwo4yx+Td bJpMPUO7OlV22ltjfgCG0I+lkT7hcbGIBhur1BMfr8s7Wt/Fxr0j561wuwIvf5o1Qif+ aQ5eMqLwjCn2pNrETFF/YmIYhyK2neD5Kh+JMSyDWfWqXeMTMStJyjhf51JKra0LneVG H1lA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=THkB3cQ9Ky//pTiardlfbJFCh3bwTY3/KwjkKT+NnqQ=; b=FklVaQEqXHeEAHmruSGSOnXmy8VbaLLV4v4M/UrJGRBNep0rG6kpqF9YjKfeaLZaPc MS1SBQ8XH12t7SMqM30UMV78cPyS3KXn1tPsKSgh9KxQusAZ2UH0VqxBfhdImK+YNzN5 XEqCloujKaP925Sc5X5sEsQw2Q04RA5vkDG6G+O5ASEPDGHLTZ/uGdmqbaH3aniUxucX 05iqF1pqomxl3pAZV4XIN5m4cJ8P3Q6b1qKJ4HxtcuMpsIUVVJH1Bhs4rdFIgKu1b0oz 3RQJJBFC1EY5zjIfg5SjM4tESpICPcXRi95YV7szSm5MzlK9u0ELwPpOd5Ju31q/DR7J p7QA== X-Gm-Message-State: AOAM5332+b32CdehPNXxkoMmzOw1P/MyQQ1K2l0rCRZctUnmCrlFMJTa IOGoUmgs/EOxJCqXyqmPBgoNTgGTUmdMxw== X-Google-Smtp-Source: ABdhPJyNKDrV0KunDfm/fuRFmcUrbUqeBrEpmtKzw29M3KXaTogMUEIc+SPSIPJkOUPY4z9beldCEQ== X-Received: by 2002:a05:620a:2281:: with SMTP id o1mr3151272qkh.313.1612963487932; Wed, 10 Feb 2021 05:24:47 -0800 (PST) Received: from heimdall.localnet (host-68-169-163-70.BROOLT2.epbfi.com. [68.169.163.70]) by smtp.gmail.com with ESMTPSA id i207sm1381360qke.131.2021.02.10.05.24.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Feb 2021 05:24:47 -0800 (PST) From: Adam Jimerson To: freebsd-ports@freebsd.org Subject: Building a port with poudriere that depends on a cargo crate that needs net access Date: Wed, 10 Feb 2021 08:24:46 -0500 Message-ID: <1652337.MsCH1bHPGx@heimdall> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1978749.4WAli8B44Z"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-Rspamd-Queue-Id: 4DbL8d3Rz7z4T1R X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=vYAwFARA; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of vendion@gmail.com designates 2607:f8b0:4864:20::732 as permitted sender) smtp.mailfrom=vendion@gmail.com X-Spamd-Result: default: False [-5.60 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::732:from]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::732:from:127.0.2.255]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::732:from]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-ports] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Feb 2021 13:24:50 -0000 --nextPart1978749.4WAli8B44Z Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii"; protected-headers="v1" From: Adam Jimerson To: freebsd-ports@freebsd.org Subject: Building a port with poudriere that depends on a cargo crate that needs net access Date: Wed, 10 Feb 2021 08:24:27 -0500 Message-ID: <1652337.MsCH1bHPGx@heimdall> I'm trying to make a port that depends on a number of cargo crates, both direct and indirect dependencies, one of these crates needs network access to build. The crate in question is psl (https://crates.io/crates/psl). When building the port with `poudriere testport` the build fails with the following errors: error: proc-macro derive panicked --> /wrkdirs/usr/ports/www/py-adblock/work-py37/python-adblock-0.4.2/cargo- crates/psl-0.4.1/src/list.rs:6:10 | 6 | #[derive(Psl, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash, Debug, Default)] | ^^^ | = help: message: failed to download the list: failed to lookup address information: hostname nor servname provided, or not known error[E0599]: no method named `domain` found for struct `List` in the current scope --> /wrkdirs/usr/ports/www/py-adblock/work-py37/python-adblock-0.4.2/cargo- crates/psl-0.4.1/src/list.rs:28:20 | 7 | pub struct List; | ---------------- method `domain` not found for this ... 28 | match List.domain(input) { | ^^^^^^ method not found in `List` | = help: items from traits can only be used if the trait is implemented and in scope note: `Psl` defines an item `domain`, perhaps you need to implement it --> /wrkdirs/usr/ports/www/py-adblock/work-py37/python-adblock-0.4.2/cargo- crates/psl-0.4.1/src/lib.rs:48:1 | 48 | pub trait Psl { | ^^^^^^^^^^^^^ error[E0599]: no method named `suffix` found for struct `List` in the current scope --> /wrkdirs/usr/ports/www/py-adblock/work-py37/python-adblock-0.4.2/cargo- crates/psl-0.4.1/src/list.rs:51:20 | 7 | pub struct List; | ---------------- method `suffix` not found for this ... 51 | match List.suffix(input) { | ^^^^^^ method not found in `List` | = help: items from traits can only be used if the trait is implemented and in scope note: `Psl` defines an item `suffix`, perhaps you need to implement it --> /wrkdirs/usr/ports/www/py-adblock/work-py37/python-adblock-0.4.2/cargo- crates/psl-0.4.1/src/lib.rs:48:1 | 48 | pub trait Psl { | ^^^^^^^^^^^^^ error: aborting due to 3 previous errors I'm guessing the first error "failed to download the list: failed to lookup address information: hostname nor servname provided, or not known" is the source of the other 2 errors. If I enter the build jail and run the build command directly from /wrkdirs/ usr/ports/www/py-adblock/work-py37/python-adblock-0.4.2 the crate builds without issues which seems to imply that poudriere's testport command is blocking the network request (probably for a good reason). I'm sure something like this has come up before, but is there a good way to resolve this? I tried looking at the source code for the psl crate to see if it is something I can add in via a patch and avoid the network call but i can't see where the request is made. --nextPart1978749.4WAli8B44Z Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEELLlB4D3dJQL6YIqWtmZSyNpTGkkFAmAj3osACgkQtmZSyNpT GkkSMAf7BZ4+u26FGe1Kun9PKfD2HaPXVpY9LTgIfenhVWMyLe4hAEady3P8vGws 3zflg4aj6DbUOsRTJv8YyfWI2LpPTIcf0unDA3hvSr0DuiiLtidtnzkWN7tyzDR8 qHPFnY8xmZjeAIztXndl0wTRWsd/ST65WaCgXfZR3VJOKX6+idtl6qVEGNaB5sW5 HcsP93HbzoUmOXQTbZ1PJ/Vj4aIIIwvZX4vttKPkoU5hWVv+9aSP4ju+YKQTdo/r Rw/JmK36L8KZgQLmuUjK1v7Vam1pR8HxncpEXY20l34IraMNtWcrGH571u455ccL vr3VIHl5e27imYd3aPh/IdN3PdNzPQ== =TV9k -----END PGP SIGNATURE----- --nextPart1978749.4WAli8B44Z--