Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Dec 2018 20:23:39 +0100
From:      Michael Grimm <trashcan@ellael.org>
To:        FreeBSD <freebsd-ports@freebsd.org>
Subject:   Re: security/clamav-milter fails to compile (preliminary patch included)
Message-ID:  <E76EBED8-25E9-4982-A611-BE800CC44D3D@ellael.org>
In-Reply-To: <SN1PR20MB2109EED069E4D3C297FBC02280B90@SN1PR20MB2109.namprd20.prod.outlook.com>
References:  <633326DC-E841-4ECC-ACA8-F67C9F4DA873@ellael.org> <SN1PR20MB2109FC31F7E5471734185BE880B90@SN1PR20MB2109.namprd20.prod.outlook.com> <E1018C4C-F875-41F3-B7C9-810BCC97756D@ellael.org> <0C727A7D-32CD-451A-AC2B-9F10A936BDA4@ellael.org> <SN1PR20MB2109EED069E4D3C297FBC02280B90@SN1PR20MB2109.namprd20.prod.outlook.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Carmel NY <carmel_ny@outlook.com> wrote:
> On Sat, 22 Dec 2018 18:13:51 +0100, Michael Grimm stated:
>> Michael Grimm <trashcan@ellael.org> wrote:

>>> I am using poudriere to build my ports. Within a poudriere jail used =
to
>>> compile the clamav-libmilter port no libmilter.so can be found by
>>> configure (see error message above) unless you =
tellclamav-libmilter's
>>> Makefile to depend on it and thus pre-install it in this jail. =20
>>=20
>> Sorry, s/clamav-libmilter/clamav-milter/g
>=20
> Did you update the poudriere jail to 12.0? I had a similar problem =
until I
> undated it and did a forced rebuild of everything. In fact, I found it =
easier
> and quicker to simple delete the existing jail and create a new one.

Hmm, I do get the feeling that you misunderstand what I am telling you.

My poudriere's jail follows /usr/src. Thus at every rebuild of my OS (I =
do that every other week because I am following STABLE-12) my jail gets =
upgraded as well:

	mike> poudriere jail -l
	JAILNAME VERSION             ARCH  METHOD       TIMESTAMP        =
   PATH
	stable   12.0-STABLE 1200500 amd64 src=3D/usr/src 2018-12-22 =
18:19:50 /usr/home/poudriere/jails/stable

Next, that poudriere jail keeps a copy of a resulting "make buildworld" =
run of base. This jail is lacking any binary/library of ports running on =
my machine. Thus, libmilter.so is missing as well:

	mike> find /usr/home/poudriere/jails/stable -name =
"libmilter.so*" -ls
	mike>

Now, poudriere will create (cpdup) as many jails from =
/usr/home/poudriere/jails/stable as told to use builders. This "OS copy" =
is lacking the needed libmilter library as well, when poudriere is =
trying to build security/clamav-milter. And it will fail without =
indicating that there is a dependency for yet another port, namely =
mail/libmilter. My proposed patch will deal with that dependency.

YMMV, but IMHO, a port shouldn't rely on pre-installed libraries from =
base or other ports. Thus it shouldn't need a "forced rebuild of =
everything".

Correct me if I am mistaken, but IIRC the libmilter library used to be =
part of sendmail in base. This has been modified in FBSD 12, again IIRC =
[1].

Regards,
Michael


[1] https://svnweb.freebsd.org/ports?view=3Drevision&revision=3D473663=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E76EBED8-25E9-4982-A611-BE800CC44D3D>