Article View: muc.lists.freebsd.hackers
Article #48Re: RFC: Some packages take hours to install.
From: Gleb Popov
Date: Tue, 20 Oct 2026 07:05
Date: Tue, 20 Oct 2026 07:05
61 lines
8300 bytes
8300 bytes
On Sun, Oct 18, 2026 at 8:07 PM Abdelkader Boudih <seuros@freebsd.org> wrote: > > Hi Gleb, Jordan, > > Gleb, thank you for pinpointing BUILD_DEPENDS. Also sorry for not answering early, i had a draft and never submitted it. > > I think my example wasnt clear enough. Let me show an example > > I have Python 3.15 installed through mise, and I want to install Meson. I run pkg install meson, and pkg wants to install python312 because thats the dependency recorded in the package metadata. Now i have 2+ versions of python installed. > > So i have to install meson from source or use mise again. > > BUILD_DEPENDS works when building a port, but I’m talking about installing binary packages with pkg. > > What Im questioning is why pkg cannot recognize an external dependency provider. If Meson requires Python >= 3.10, and I already have a compatible Python installed through mise, why cant pkg use it ? > If Meson breaks with python 3.20, then we publish 'Python >= 3.10 <3.20' If we're talking about pkg, then it indeed supports only "plain" dependencies at the moment. By "plain" I mean a dependency is encoded in a form of "libfoo-1.2.3.pkg". These kind of deps can obviously only be fulfilled by the libfoo-1.2.3.pkg. There is workings under way to also support "requires" type of deps, which look like, for example, "exe:rustc". These kind of deps can be fulfilled by any package that has "exe:rustc" provides line. This will allow us to relax many types of dependencies (LIB_DEPENDS in ports, for instance) and will make some packages interchangeable. Now speaking of Python, AFAIK you can't generally install a python package for 312, then update Python to 3.13 and expect everything to work. This is not our fault, but this is how Python works. We did our best here - we allow multiple Python packages to be co-installed and we have machinery in Ports to switch the "main" Python version. Unfortunately, we can't build all python ports for all supported Python versions as it gives us a combinatorial explosion. This is as much as the system package management can provide, so I think you should seek a different solution. I recently bumped into the same issue with CentOS 10, which provides much older packages via system package manager. I resorted to a Python virtual environment and used pip to install newest CMake and other python deps right into my $HOME/prefix. I believe this is a way to go when you bump into the system package management limitations. -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID:
<CALH631mY4mz+4w9X7Hd_tFvBTE2FQor+fT_jHGVOYZbgbVLodg@mail.gmail.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mailReferences:
<> <f8f7d68e-18f5-4c67-98ba-ecc181966602@app.fastmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: Gleb Popov <arrowd@freebsd.org>
Newsgroups: muc.lists.freebsd.hackers
Subject: Re: RFC: Some packages take hours to install.
Date: Tue, 20 Oct 2026 10:05:53 +0300
Organization: Newsgate at muc.de e.V.
Sender: owner-freebsd-hackers@FreeBSD.org
Approved: news-admin@muc.de
Distribution: world
Message-ID: <CALH631mY4mz+4w9X7Hd_tFvBTE2FQor+fT_jHGVOYZbgbVLodg@mail.gmail.com>
References: <> <f8f7d68e-18f5-4c67-98ba-ecc181966602@app.fastmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
logging-data="59481"; mail-complaints-to="news-admin@muc.de"
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
t=1792479985; h=from:from:sender:sender:reply-to:subject:subject:date:date:
message-id:message-id:to:to:cc:cc:mime-version:mime-version:
content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references:list-id:list-help:
list-owner:list-unsubscribe:list-subscribe:list-post;
bh=9mIFIPffF5JXc2QEW/lr1Dar+RVAr2mq2w9RYXxLUzs=;
b=Zu1fyGw8/v8wSh7xM9VoF+sOjYE/wkLKe89WG/MckOfWWJQAKH6jlHdZbduzUe0Qk/kMLz
vEIPAsnuYJYBdv4ED2/ot5e5gFaSE1OLs9vTgJ8TNeZPLOqrWtJFYeIdf7lvX5dPJ0FQid
8qxPaTQqBdO85ic4IQvNEYLUm1RPsBobOu3nfTxf7Jx97ygtKnsC96geTom7GNN2vU4Q3X
POfzzZbrU/mLX6YU12CmykI8uU/+oT5XiyH6YimX/RageXFDMS6XzGXjFsYmzSdMZeESGp
8D0psbgCPIDjuPu1yMsutg1EIZQ70fH5CIfHAyFAnwvPcovULimtg1ca5+Pc0A==
X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org
Authentication-Results: mx1.freebsd.org;
dkim=none;
spf=pass (mx1.freebsd.org: domain of 6yearold@gmail.com designates 209.85.128.179 as permitted sender) smtp.mailfrom=6yearold@gmail.com;
dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=freebsd.org (policy=none)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1792479981; x=1793084781;
h=content-transfer-encoding:content-type:cc:to:subject:message-id
:date:from:in-reply-to:references:mime-version:x-gm-gg
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=9mIFIPffF5JXc2QEW/lr1Dar+RVAr2mq2w9RYXxLUzs=;
b=LLWPicGKQsQCwquFNQClCdOMgVOea7UzqW85zEXI/JySArT+BMgBP9NIKH516EFcqu
n9xO6Cr7KhxPZFKXteaSCsSCtHUdl1fnifMeoAyd2ycPUFvm+FeN3bPw8p0dYVDzK1+d
kEWOuz+Qe/eA2Um7P+zKT8MWxKjGZ8mkymoj2kV6wIeC4aemb+011NZPW2w8qi/IynES
geS2CH4q9c+T9tDGFc/SVMKYQ/gD247QY5weyrUhezJ7++fqxy/DDu7bqsBOthTue0IY
FiVVO/87i2EfL2K8rV5S1ok/NUMOfdYB2Ve8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0r1QX4YqwgFoLz5jwalWT7jRGD9j8EO962oX6UhB44VfnNT07ux2gk/ZkVxXNs=@freebsd.org
Precedence: list
In-Reply-To: <f8f7d68e-18f5-4c67-98ba-ecc181966602@app.fastmail.com>
X-Gmail-Original-Message-ID: <CALH631mY4mz+4w9X7Hd_tFvBTE2FQor+fT_jHGVOYZbgbVLodg@mail.gmail.com>
X-Gm-Features: AclHuK8amV8qflHMSz0bnKWUAIL_o5j7uXyjJSusgqwFFsSA7QTZuChXNdW-atE
X-Spamd-Bar: /
X-Spamd-Result: default: False [0.10 / 15.00];
FORGED_SENDER(0.30)[arrowd@freebsd.org,6yearold@gmail.com];
R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c];
DMARC_POLICY_SOFTFAIL(0.10)[freebsd.org : SPF not aligned (relaxed), No valid DKIM,none];
MIME_GOOD(-0.10)[text/plain];
RCVD_VIA_SMTP_AUTH(0.00)[];
RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.128.179:from];
ARC_NA(0.00)[];
MISSING_XM_UA(0.00)[];
FREEMAIL_ENVFROM(0.00)[gmail.com];
ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US];
TO_DN_SOME(0.00)[];
MIME_TRACE(0.00)[0:+];
RCVD_COUNT_THREE(0.00)[3];
R_DKIM_NA(0.00)[];
MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org];
FROM_NEQ_ENVFROM(0.00)[arrowd@freebsd.org,6yearold@gmail.com];
FROM_HAS_DN(0.00)[];
FREEMAIL_CC(0.00)[gmail.com,freebsd.org];
RCVD_IN_DNSWL_NONE(0.00)[209.85.128.179:from,74.125.224.41:received];
TO_MATCH_ENVRCPT_SOME(0.00)[];
RCVD_TLS_LAST(0.00)[];
PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org];
ALIAS_RESOLVED(0.00)[];
RCPT_COUNT_THREE(0.00)[3]
X-Rspamd-Queue-Id: 4j83Nt499jz3LPW
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes