From nobody Sat Jan 04 13:21:18 2025 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YQLgd531Qz5kGfk for ; Sat, 04 Jan 2025 13:21:33 +0000 (UTC) (envelope-from chris.torek@gmail.com) Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) (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 "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YQLgc6kgHz4PpV for ; Sat, 4 Jan 2025 13:21:32 +0000 (UTC) (envelope-from chris.torek@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=fB7PUy3V; spf=pass (mx1.freebsd.org: domain of chris.torek@gmail.com designates 2a00:1450:4864:20::22a as permitted sender) smtp.mailfrom=chris.torek@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-30225b2586cso148604891fa.0 for ; Sat, 04 Jan 2025 05:21:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735996890; x=1736601690; darn=freebsd.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=yhjMu3uX9QfLgDHHeLRV+HbMUds3NdI977nGayHjLUQ=; b=fB7PUy3VrZ5VL7WtxstgdLmboUWzwCap3qVoJhSl+IHFYFSrsWZbY7bkgHqPAqFwap SugaiGrVzc7jRBLLjyBz1BsMhL9F5CKrfGbUR7LdRpkWAkkcu8jXyGaYIfWoOAj7Fq93 3HOlOewb/KACPL2y9eM/1OfwkPKeF2G+7T2lHm01XBmw3+TJn0bp6QCfvlSvUFQWKa3a hAG04Hx5NQQ1yZAWii3Q9R541CQNRMfcj/vjyet2vQlnz86a0Z38YHzI08sVJ3LRrD/+ xecuEx1c4/5darP+574yiUJWwAKtXbhPz1b/NNHXhUSsfw/fnHahTC7XNRZETNFhbw/R k5kA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735996890; x=1736601690; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yhjMu3uX9QfLgDHHeLRV+HbMUds3NdI977nGayHjLUQ=; b=oMbdm2HWWjWvNb/44sg3LzaKEVb5fWTzXf+M1O2Tlu+L/guWkT0R+5L+Eld/JuYyB8 DuBW+pJW7wpK8rAhOwf2yFGmgb6k50Bg8VMN5nqSbOn/E+oP/bhwV9Mosn6RAMVhuMvm wSpK+e5MkZdQq0swVkgOpSmvdS/xQZEwzxwcE/90Jb5708+pSTVcJj0xj9NNJmbfL5XW CuOoJuZdPxEDmilcE41VDMfCClrsE8avvExSAiTxXoglJhbCrT/42w893QEEh+1Ujhim c+3XIqmkKPtkaOZySJJU7cc7JFWGCHkf7l2QIaDfASik1UftiyAfYiryzpeS2yHWqr8q Lplg== X-Gm-Message-State: AOJu0Yx/S4BT0skwwZIW3aCvr7tP1tcFmOvDH3OSF643DDtFYN8+4XfA fVYAS48l47Hovja5BcGDFb2mcryeluCgBfid9GkEGCsq/0LQmJYYUqSpVPMJk5SSPpbl/eFIWg9 t8KHEuSzCBBwOeD4BeqJH2TLyVu+hlvmE X-Gm-Gg: ASbGnctv3HWrFKk8Bm1UC77rtPqrTCix9RTkZWqMRvMM0ifEJ/xOmAcOu6U8Sre1JiK w9bSrndP/WabayUO/o5gSikhsL0ObLr9w2LA9pNo= X-Google-Smtp-Source: AGHT+IFM4OJhdvM2n8orRgNMgl6BxPdVMfrX+n+wkRKw9zDZTCU8ALi88PLrAk5txWBkuk2RusTNqxHQbMaJSisbRas= X-Received: by 2002:a05:6512:82:b0:542:2139:64f1 with SMTP id 2adb3069b0e04-54221396556mr11131725e87.6.1735996890139; Sat, 04 Jan 2025 05:21:30 -0800 (PST) List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports@freebsd.org Sender: owner-freebsd-ports@FreeBSD.org MIME-Version: 1.0 References: <6a3ab2e1-9d33-4a3e-9fd5-c1d86a91ec46@groumpf.org> <20250103130241.00fa8099@daleth.home> In-Reply-To: <20250103130241.00fa8099@daleth.home> From: Chris Torek Date: Sat, 4 Jan 2025 05:21:18 -0800 Message-ID: Subject: Re: Why does it take so long to build some Python ports To: Piotr Smyrak Cc: FreeBSD Ports ML , Xavier Humbert Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4YQLgc6kgHz4PpV X-Spamd-Bar: --- X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; MIME_GOOD(-0.10)[text/plain]; TO_DN_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; TAGGED_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; MISSING_XM_UA(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::22a:from]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MID_RHS_MATCH_FROMTLD(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] > On Fri, 3 Jan 2025 08:41:08 +0100 > Xavier Humbert wrote: > > Some, but not all python ports spend a long time in building eggs [example that runs `git archive` on /usr/ports] On Fri, Jan 3, 2025 at 4:02=E2=80=AFAM Piotr Smyrak w= rote: > I suspect what you are observing is actually [setuptools misbehaving] This appears to be the correct answer. /usr/local/lib/python3.11/site-packages/setuptools_scm/_file_finders/git.py runs `git rev-parse HEAD` to detect whether there is a Git repository, and if so, eventually runs `git archive` on it to find version information. This interacts badly with the port build process. Fortunately there is already a fix: commit deb79782a9b87c64d06441e4bf67e46bf19c45c3 Author: Robert Clausecker Date: Sat Nov 30 14:35:18 2024 +0100 in the ports tree sets GIT_CEILING_DIRS to prevent this problem. Presumably you're installing from a ports tree that does not yet have this fix in it. See also https://reviews.freebsd.org/D47850 -- and if you do have this commit, let us know that something isn't working here. Chris