security/clamav-milter fails to compile (preliminary patch included)

Michael Grimm trashcan at ellael.org
Sat Dec 22 19:23:46 UTC 2018


Carmel NY <carmel_ny at outlook.com> wrote:
> On Sat, 22 Dec 2018 18:13:51 +0100, Michael Grimm stated:
>> Michael Grimm <trashcan at 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.  
>> 
>> Sorry, s/clamav-libmilter/clamav-milter/g
> 
> 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=/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=revision&revision=473663


More information about the freebsd-ports mailing list