Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Dec 2018 20:10:41 +0000
From:      Carmel NY <carmel_ny@outlook.com>
To:        FreeBSD <freebsd-ports@freebsd.org>
Subject:   Re: security/clamav-milter fails to compile (preliminary patch included)
Message-ID:  <SN1PR20MB2109FB99C8B4795E8A989ED380B90@SN1PR20MB2109.namprd20.prod.outlook.com>
In-Reply-To: <E76EBED8-25E9-4982-A611-BE800CC44D3D@ellael.org>
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> <E76EBED8-25E9-4982-A611-BE800CC44D3D@ellael.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 22 Dec 2018 20:23:39 +0100, Michael Grimm stated:

>Carmel NY <carmel_ny@outlook.com> wrote:
>> On Sat, 22 Dec 2018 18:13:51 +0100, Michael Grimm stated: =20
>>> Michael Grimm <trashcan@ellael.org> wrote: =20
>
>>>> I am using poudriere to build my ports. Within a poudriere jail used t=
o
>>>> 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
>>=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. =20
>
>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 =20
>	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" ru=
n
>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> =20
>
>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 indicatin=
g
>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 par=
t
>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

Michael, I am certainly not a guru regarding poudriere, or system updating.=
 I
just now what I was told. Perhaps Matthew Seaman <matthew@FreeBSD.org> or
somebody with more knowledge about this than I can assist you.

All I know for certain is that I was told to update the poudriere jail, I
actually deleted the old one and created a new one, and then do a forced
rebuild of all installed ports. The following worked for me, after I create=
d
a new jail. Obviously, the jail name here is mine.

  portmaster --list-origins | sort -d | tee "~/portlist.txt"
  poudriere bulk -c -f "~/portlist.txt" -j "12amd64"
  pkg upgrade -y

~ $ poudriere jail -l
JAILNAME VERSION         ARCH  METHOD TIMESTAMP           PATH
12amd64  12.0-RELEASE-p1 amd64 ftp    2018-12-21 18:25:41 /usr/local/poudri=
ere/jails/12amd64

~ $ locate libmilter.so
/usr/lib/libmilter.so
/usr/lib/libmilter.so.6
/usr/lib32/libmilter.so
/usr/lib32/libmilter.so.6
/usr/local/poudriere/jails/12amd64/usr/lib/libmilter.so
/usr/local/poudriere/jails/12amd64/usr/lib/libmilter.so.6
/usr/local/poudriere/jails/12amd64/usr/lib32/libmilter.so
/usr/local/poudriere/jails/12amd64/usr/lib32/libmilter.so.6


Good Luck!

--=20
Carmel



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