From nobody Tue Jun 1 06:03:49 2021 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 28859BF84DE for ; Tue, 1 Jun 2021 06:04:01 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic309-22.consmr.mail.gq1.yahoo.com (sonic309-22.consmr.mail.gq1.yahoo.com [98.137.65.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4FvM6m0TJhz3L6P for ; Tue, 1 Jun 2021 06:03:59 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1622527438; bh=ri2fQnekrmMeC67Nm56rrEf4+6972aAse5VbKEcx7CY=; h=From:Subject:Date:Cc:To:References:From:Subject:Reply-To; b=O72jpoSpZGUCM8jpg6qSNuYOXVSg/sSKNPze+tr7pR292A4PRy46JtKa/mYNS0s3Ep0qjnqo5fthTnYdYJOHUXMcHyPzC8pheM8gnbP54Jxw20GjgfgII7Cw4JacHr8NRYXgVS6AsSr8oCRJFxqXWluytNf7iyuMMs3iVRMKtCZNyPfX3UvX5BkiOrVGn9Ni+b9oy9skNeEVoYLCSJo5L74EbVn//A1y6cM8wiHS84FQdImNNNTLDtgBMyJxKLUZy0gThvzfGQCFfDmXk+NGIrXLymkLAeVmBt9i98OONCJnoymwi/myyWuUmikIEjPar6QoZ8w40zI2JYBfQQbXQg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1622527438; bh=33DDR01pdVHSE+UMf8auyHaK4A9JRHgxJQm4D2OJsgD=; h=X-Sonic-MF:From:Subject:Date:To:From:Subject; b=em0JLWMmb4V9PQztxQbOdq3fUeOvpND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TZ5nSfxYY65P9lazJuewt0DhvZ0qLwsE4F289.GFnAXG5FhkQ39JyNn6_nEP4FweKPIrr R07oYSNCjZtyoObAY8J6qM5soJK_zXFMo9OJz2knKoNIVhTQQjH3ORk_okAHFYzGjaFuqIeVF84g twt_oCcY2GQXCTj4KWPIkIjUd4DDc4ecN0LRQJO98XMp8bV0ulY1E7gUvF7iXd6wFusvQvnbPMeb Ebi1EBR4IpaaG14pjgcE8zHKTl8fORTecU8jEGpYre0mvvpiTq4QJvBK7yNtTNyBS4.AtbbAIgtx nok.RPKiGLjwlcryjaLCoCifkjhWMuOTTcvq3WRfVicCYoeL11Mj.sg5dLEA5EvSQHd0ETFsSbFs uoDERJYXl0GnGB1YkPMl3Aa.tZrOrQlP5V4GiiVg248Y9b05nNXNe8ocPTYEZzqBtU_fwufmLL06 JduLfCKe.XGUylDnNiGTLqPvQhfSVTAjI_9ftBjnDvAWJuwHxhAuoUKpYWWW.OWvqABfVwah8_iX vSzYVbGMCpMJZQHNWvasGQ1pZBb6ZBerRDETPeblPATeioI7rsqxdGSWHe9exF0LkdMMr1m2zBA5 VQ6_7s6_.TBY8WE93D6wlYI8SltOFTdI0xA68bCRbW_lAW.kRteDF0ZonrY0CRMYxcXsTmatC5gn pthnkx99AEPXUZ1iHwkXowxD6V0CzkH3b6q_gP3Im01oUkTzCpc7ABuGZSi6zJ43.Z.m4HUnjnPr vB_mTl74SFRJKr17jgCmFb0YrG7xlRMtDTWw6VLZAEKbayWZX2d0xqLksCmrlfKR1 X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.gq1.yahoo.com with HTTP; Tue, 1 Jun 2021 06:03:58 +0000 Received: by kubenode514.mail-prod1.omega.bf1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID e09326d2d4bb53f40005b0ac33fc3113; Tue, 01 Jun 2021 06:03:51 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable 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 (Mac OS X Mail 14.0 \(3654.80.0.2.43\)) Subject: Re: Synth status and failure to install some packages Message-Id: <1FB116CD-49F9-432D-840F-0797E7B5A17C@yahoo.com> Date: Mon, 31 May 2021 23:03:49 -0700 Cc: FreeBSD ports To: mueller6722@twc.com X-Mailer: Apple Mail (2.3654.80.0.2.43) References: <1FB116CD-49F9-432D-840F-0797E7B5A17C.ref@yahoo.com> X-Rspamd-Queue-Id: 4FvM6m0TJhz3L6P X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=O72jpoSp; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.65.148 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-3.50 / 15.00]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FREEMAIL_TO(0.00)[twc.com]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RBL_DBL_DONT_QUERY_IPS(0.00)[98.137.65.148:from]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; SPAMHAUS_ZRD(0.00)[98.137.65.148:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.65.148:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.65.148:from]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-ports] Reply-To: marklmi@yahoo.com From: Mark Millard via freebsd-ports X-Original-From: Mark Millard X-ThisMailContainsUnwantedMimeParts: N Thomas Mueller wrote on Date: Tue, 01 Jun 2021 03:49:21 +0000 : > > synth only upgrades existing packages that are on your system, and > > makes no assumptions about what the user wants. If you need a tool, > > you'll have to install it - at which point it becomes a first-class > > installed module (as opposed to those that can be auto-removed), and > > synth will upgrade them as required. >=20 > Install using synth, or some other way? >=20 Some basic commands for installing/updating packages are: pkg install (see man pkg-install) pkg upgrade (see man pkg-upgrade) pkg delete (see man pkg-delete) There is also an overall "man pkg". pkg does not care if poudriere vs. something else created the repository(s) it gets packages from. The path to the repository used might indicate what software manages the repository, such as poudriere. An example if indicating to pkg to use a local repository instead of the remote FreeBSD one is: # find /usr/local/etc/pkg/repos/ -print /usr/local/etc/pkg/repos/ /usr/local/etc/pkg/repos/FreeBSD.conf /usr/local/etc/pkg/repos/custom.conf # cat /usr/local/etc/pkg/repos/FreeBSD.conf FreeBSD: { enabled: no } # cat /usr/local/etc/pkg/repos/custom.conf custom: { url: = "file:///usr/local/poudriere/data/packages/13_0R-CA72-default", enabled: yes, } So in this case I have configured pkg to use a repository that poudriere happens to maintain. "pkg install" will install run-depencencies. It will not automatically install non-run-depenendecies, such as build-dependencies. But they can be installed. This is not a poudriere definition, but a pkg definition. "pkg update" will install newer versions of already installed packages if the respository is more update for those packages than before. "pkg delete" uninstalls packages, including packages that have a run-dependency on what is being deleted. I'll note that poudriere updating of the repository involves using packages from the repository in a sort of virtual environment (a jail). During this the required build packages are temporarily installed as needed in the virtual environment. There is no need to have the build dependencies installed at the FreeBSD system level for these builds to happen. A desire to do other forms of building could lead to deciding to install some build dependencies into the FreeBSD system (outside the virtual environment). For poudriere, merely rebuilding does not update what is installed in the live overall system. pkg is used for that --after a build completes. > > This is useful for some of my systems where I don't need the > > build-tools, only the end-result package. >=20 > > Cheers. >=20 > > Jonathan Chen >=20 > I would likely want to build the packages on a different partition so = as to keep my present outdated installation intact and not lose = everything if rebuilding messes up. >=20 > This new partition now has an old 13-current or 12-stable from May = 2019, internet connectivity not functional, which I would upgrade to = 14-current, or less likely, 13-stable. >=20 > If the upgrade build fails, or if internet connectivity is still = nonfunctional, then back to NetBSD. >=20 > I could use pkg query (is that it?) to make a list of all installed = packages and use that with synth, but have had instances of packages = named on the synth command line building but not installing. >=20 > One nice feature of package management systems is pulling in = dependencies without having to name every package explicitly. >=20 > Does poudriere also fail to install build dependencies? I never used = poudriere. See my notes above where I try to give a quick description. Other than an experiment years ago, I've not used synth because I also build on/for platforms that synth did not support and I want to use the same toolchain structure across all the platforms. In my context, there are lots of build-dependencies that I've no use for in the overall FreeBSD environment. I do explicitly install a few that I use separately from building packages out of ports, some llvm* and gcc* compiler related toolchain packages are examples. But, for example, there are other programming languages used in building some ports that I make no other use of. poudriere deals with using them as needed during repository updates without them needing to be installed in my overall system. An example of finding run vs. build dependencies is: (presumes options are already established) # cd /usr/ports/lang/gcc10 # make run-depends-list | sort /usr/ports/devel/binutils /usr/ports/math/gmp /usr/ports/math/mpc /usr/ports/math/mpfr /usr/ports/print/indexinfo By contrast build-depends are below. Some ports show up in both lists. # make build-depends-list | sort /usr/ports/converters/libiconv /usr/ports/devel/binutils /usr/ports/devel/gmake /usr/ports/lang/perl5.32 /usr/ports/math/gmp /usr/ports/math/mpc /usr/ports/math/mpfr /usr/ports/ports-mgmt/pkg /usr/ports/print/texinfo So the following are not required to use gcc10 as I have things configured: /usr/ports/converters/libiconv /usr/ports/devel/gmake /usr/ports/ports-mgmt/pkg /usr/ports/print/texinfo But they were used during the build of gcc10. Turns out other things require libiconv as a run-dependency and pkg is nearly always installed in the overall system. But, in my context, gmake and texinfo are not installed in the overall system: the use is internal to poudriere's build activity only. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)