Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 May 2023 19:10:35 +0100
From:      Steve O'Hara-Smith <steve@sohara.org>
To:        questions@freebsd.org
Cc:        vagabond <vagabond@blackfoot.net>
Subject:   Re: sendmail error, "MX list for mydomain.com points back to server.mydomain.com"
Message-ID:  <20230520191035.2151f335dd201bafa9834aae@sohara.org>
In-Reply-To: <1d9377bfb30cd94b3b3f346dd86bc2e0@blackfoot.net>
References:  <A118A90A-14E6-409B-AC25-FE2704A19741@gushi.org> <b427a49877034f7407545744b4446744@blackfoot.net> <15AF7ED7-BBD9-428D-939F-4AA5B349C578@gushi.org> <66db9ba3bd66fcc56affdbf7a2621021@blackfoot.net> <2f8bca59462afe206043bea73241bbf2@blackfoot.net> <D387452C-FEB0-4C39-9B24-983973E1DF70@gushi.org> <3da26eb675ecd5d10947fb53fcf3524a@blackfoot.net> <6068541D-A81B-45F0-B961-FD5CD6969FA0@gushi.org> <C9A9BACD-DBE4-44BE-8D12-DD040D9EF53C@gushi.org> <c4044d2d973bfa3865c87400dc05b782@blackfoot.net> <3d6bvtk7qc2iqhkjcjamxvv27a2zoe3oz2574incudld4bvlub@emxmu4uu7rfn> <339ea89805a607fd0c31c6bf6e9080f1@blackfoot.net> <1d9377bfb30cd94b3b3f346dd86bc2e0@blackfoot.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 20 May 2023 10:03:12 -0700
vagabond <vagabond@blackfoot.net> wrote:

> I'm going to try installing sendmail from ports, as it's a newer 
> version,
> and will be easier to poke around in.  But first, a sanity check.
> It's been a while since I've needed to build ports; been using pkgs.
> When I built the sendmail port, it built 60+ other ports, which I 
> assumed
> were things already installed in some version for the sendmail that came
> with the system.
> 
> I "think" pkgs and ports both install libraries in the same place, 
> right?

	Correct - packages are built from ports and the port install
essentially builds a package and installs it - it just leaves out the
packing into a tarball and unpacking again.

> If so, is it likely installing sendmail from ports will break other 
> things
> installed as packages?

	That depends on whether your ports tree is in sync with the
packages you are using. It probably isn't.

	There is a handy target in the ports build that you can use so that
you only build the ports you really want/need to build and take everything
else from packages.

	make install-missing-packages
	make
	make install
	make clean

	Will install all the dependencies from packages and then build the
port against them. Once done prevent package updates from ruining your day
with:

	pkg lock <packagename>

> I'm thinking it will install newer versions, but
> they should be upward compatible for the other pkgs already installed,
> correct?

	It could get messy - not everyone maintains backward compatibility
well and there's always the risk of a major version bump in something.

> I remember seeing rumblings on the list about if you install
> pkgs, only use pkgs; and if you install from ports, do everything from 
> ports.

	That's generally good advice but the technique above is a good one
for safely bringing the occasional port into a package based system. On the
long run you do tend to need to pkg unlock it and build a new one from time
to time (major FreeBSD version bumps if nothing else).

	Some of the dependencies the port installs are probably build
dependencies.

-- 
Steve O'Hara-Smith <steve@sohara.org>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20230520191035.2151f335dd201bafa9834aae>