From nobody Mon Feb 19 04:24:58 2024 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 4TdTwS1yCGz58yWq for ; Mon, 19 Feb 2024 04:25:12 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) (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 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TdTwS0GtJz4x5j for ; Mon, 19 Feb 2024 04:25:12 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-a2a17f3217aso495836866b.2 for ; Sun, 18 Feb 2024 20:25:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708316710; x=1708921510; 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=DWbtokyZG5NDhOP0l0Z7fLuaQMqHEApVFCvZP82Bvek=; b=cAYCASa02OMM0U0TLkfDf2HPXePPdOl+lJGdHZZ6MNKm9sKlUz13sZDx3R9ICR5QKC 4DLombUcRLYoI3kyv5e5NmD/TBjUrAMf6NMvzUj2gr9r7A4TLf3XkUvQfosTHTZQ4LZV 2mXK1DNXQQadbrg3uSkWLJkoU3dcohQE3lHbuOA5ppgRPdvR83/xN9iPQgZ9zYd+Fzf9 fDOUBWSKDz8S1s4iC6DUysyolteKe9iEgm1QqbNTZlPmKVVz0q+5p2CWfPYRjSNYxBiO Rq/mv6t3QTnIIP9gmvIJnFObCfMeYHakpVW+S9RJiny4FiaEAMO6YZ/mg3xoLtp7u5Z7 1u4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708316710; x=1708921510; 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=DWbtokyZG5NDhOP0l0Z7fLuaQMqHEApVFCvZP82Bvek=; b=qyrIWAaqNH6v18o54kCeXUI/h92moTIY0cd/VVKmsYQkW+8f8hxtgyTBVwttrrupom ooG3BtYz2jk/GZgi1HPjh+my6rl6uVoEOlMtxDscsMyx7ymQ4jtFTMWHOiGrDff4nCrN DNazp4b/cwAK06FX6HUd9sfb0V51m6pWBZAMNvf3ixkz61l6pRdTesmlaY0fkPaR+GUT 4qlivN3K5CMWRhgHOSAvQkty2j/fmPdrC9muUdDcAAy+5lslBKme8/OCpyrm7abdzpHU RKKtFfT6/aLqQ8qFuZCmTmYJeOY043bjlt8KEmbZL0IsWCT2Nf7EvQTr72FpP+ek/HEc Em1g== X-Forwarded-Encrypted: i=1; AJvYcCXfBAa0RNeiS3QKape/OBEL9hetTS5BeenE+VbXdJpRuNk5Xg3RoS5KS0QaE1xLx/Z01L9kea6r1LfEz2uaGU0wmxzkcahudksb X-Gm-Message-State: AOJu0YySrejHD/Jmcu7VNBRAciMQ1YBoT9lrO5qoRys/ZCh40S4ChriX TAMZYy7KiuvbAU1QSQtGn6da0Oh4oCY9sa8l+a7nYZKIknbYRtPgOSl7iEDHRE3Ac3DV+8ELn/Z EPPnfxrqJRNpOHG0kc3TNFcypaXo= X-Google-Smtp-Source: AGHT+IEK+fzS7qfOeQlXz9iTkXK8j1ovQuIQYOn7SH3T+qYo2fbXoDOkmNnykoib5rI33DMvI3SBK0wCulyxRRabnMI= X-Received: by 2002:a17:906:bc89:b0:a3e:6167:2d39 with SMTP id lv9-20020a170906bc8900b00a3e61672d39mr1874569ejb.73.1708316710305; Sun, 18 Feb 2024 20:25:10 -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: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 References: <87B38D6C-1D83-4158-B03B-F4C8EA396DD1.ref@yahoo.com> <87B38D6C-1D83-4158-B03B-F4C8EA396DD1@yahoo.com> <64A10094-BC24-4A1D-AD7E-904C0BE7D886@yahoo.com> In-Reply-To: <64A10094-BC24-4A1D-AD7E-904C0BE7D886@yahoo.com> From: Aryeh Friedman Date: Sun, 18 Feb 2024 23:24:58 -0500 Message-ID: Subject: Re: FreeBSD ports community is broken [port building configuration notes] To: Mark Millard Cc: Miroslav Lachman <000.fbsd@quip.cz>, FreeBSD Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: ---- X-Rspamd-Queue-Id: 4TdTwS0GtJz4x5j X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; TAGGED_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] On Sun, Feb 18, 2024 at 10:21=E2=80=AFPM Mark Millard w= rote: > > On Feb 18, 2024, at 17:23, Aryeh Friedman wrote= : > > > On Sun, Feb 18, 2024 at 3:21=E2=80=AFPM Mark Millard wrote: > >> > >> I fully agree that poudriere's systematic behavior > >> rebuilds more than the likes of portmaster [but fails > >> less often]. > >> > >> > >> As stands there are tradeoffs between use of portmaster > >> (and the like) vs. use of poudriere (/synth?). No one > >> has produced an alternative that avoids the tradeoffs > >> as far as I know. So one picks between the tradeoffs > >> by the choice of which way to build. > > > > The reason why no alternative has been produced yet is make it self is > > broken at the theoretical level. Instead of doing a blond DFS it > > should build the entire DAG and then topolocgically walk it. See > > Recursive Make Considered Harmful by P. Miller -- > > https://accu.org/journals/overload/14/71/miller_2004/ (republished). > > While the DAG for the entire ports system (and for each port) is too > > big the DAG of what ports to do in what order is not and can easily be > > extracted from the ports make file. So there is really no excuse for > > excessive building (just a question of converting it all to DAG -- > > devel/cook does this and likely can be shoe horned into being a hybrid > > of allowing each port to use make recursively but at the top levle > > using a DAG). > > FYI: > > poudriere uses a prioritized topological sort of the package dependencies > made up front during the bulk build. There are files with the content > during the bulk run: > > ${MASTER_DATADIR}/pkg_deps is used to produce a temporary: > > ${MASTER_DATADIR}/pkg_deps.ptsort which is, in turn, used to produce: > > ${MASTER_DATADIR}/pkg_deps.priority which is used, in turn, to set up > the priority hash that is used. > > There are checks for having cycles (that would invalidate the DAG > status). > > > Side note: devel/cook disapepared upstream some time ago and expired in > the ports tree and was removed at the end of 2023. Planning to revive it when I get a little bit of time (found out was removed a few months ago and I use it) > > > =3D=3D=3D > Mark Millard > marklmi at yahoo.com >