From owner-freebsd-ports@FreeBSD.ORG Mon Jun 22 09:55:28 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C579B1065673 for ; Mon, 22 Jun 2009 09:55:28 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 443E08FC18 for ; Mon, 22 Jun 2009 09:55:28 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from significant-gravitas-shortfall.thebunker.net (gateway.ash.thebunker.net [213.129.64.4]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.3/8.14.3) with ESMTP id n5M9tF3b018364 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 22 Jun 2009 10:55:21 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk n5M9tF3b018364 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1245664521; bh=kgldWimPqPQ3y2fbSdAIFTAKh9uft3T0QEZ240HBn50=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4A3F54F4.80303@infracaninophile.co.uk>|Date:=20Mon ,=2022=20Jun=202009=2010:55:00=20+0100|From:=20Matthew=20Seaman=20 |Organization:=20Infracaninophile |User-Agent:=20Thunderbird=202.0.0.21=20(X11/20090515)|MIME-Versio n:=201.0|To:=20Johan=20van=20Selst=20|CC:=20Dan=2 0Langille=20,=20freebsd-ports@freebsd.org|Subjec t:=20Re:=20pthreads=20=3D>=20no=20Bacula=20encryption=20on=20FreeB SD=20Release=207|References:=20<4A3E501E.1050502@langille.org>=20< 20090622090756.GA9276@mud.stack.nl>|In-Reply-To:=20<20090622090756 .GA9276@mud.stack.nl>|X-Enigmail-Version:=200.95.7|OpenPGP:=20id=3 D60AE908C|Content-Type:=20multipart/signed=3B=20micalg=3Dpgp-sha1= 3B=0D=0A=20protocol=3D"application/pgp-signature"=3B=0D=0A=20bound ary=3D"------------enigB0E7BB44DB63D398796A1273"; b=udp2DV3OJPlRjh2JYpF5kqCgCjtfpH58TI1EYyZKKudykPj5FcavGWukzImmV/BdZ ZkUCaaXllTIawXON8+oiBIpObl4k4I8w0g+ZkqrKXaAySqNVes2T84pcg/7ZIQHUTO /4P3kjqPYyXg96G7rkoiCe9scPNGLvwhvyFquhQo= X-Authentication-Warning: happy-idiot-talk.infracaninophile.co.uk: Host gateway.ash.thebunker.net [213.129.64.4] claimed to be significant-gravitas-shortfall.thebunker.net Message-ID: <4A3F54F4.80303@infracaninophile.co.uk> Date: Mon, 22 Jun 2009 10:55:00 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.21 (X11/20090515) MIME-Version: 1.0 To: Johan van Selst References: <4A3E501E.1050502@langille.org> <20090622090756.GA9276@mud.stack.nl> In-Reply-To: <20090622090756.GA9276@mud.stack.nl> X-Enigmail-Version: 0.95.7 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigB0E7BB44DB63D398796A1273" X-Virus-Scanned: clamav-milter 0.95.2 at happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,SPF_FAIL autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: Dan Langille , freebsd-ports@freebsd.org Subject: Re: pthreads => no Bacula encryption on FreeBSD Release 7 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jun 2009 09:55:29 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigB0E7BB44DB63D398796A1273 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Johan van Selst wrote: > Dan Langille wrote: >> "This is to warn you that Bacula will probably not be able to be =20 >> compiled and run with encryption on Release 7 of FreeBSD. This is =20 >> because the version of pthreads in that release has pthread_t defined = as =20 >> a structure, which is incompatible with OpenSSL." >=20 > The proper solution here would probably be for bacula to use the newer > CRYPTO_THREADID features of OpenSSL, which do not have this restriction= =2E > The API is described at http://www.openssl.org/docs/crypto/threads.html= > Unfortunately these are only available with a recent OpenSSL source - > and not with the version that is included in the FreeBSD 7 base system.= CRYPTO_THREADID is not in any released version of OpenSSL yet, even the current release 0.9.8k available now as the security/openssl port. That functionality is due with OpenSSL 1.0.0 which will be coming out Real Soon Now. I'm not sure what the plans are for the next FreeBSD 7.x or 8.x releases, but given OpenSSL 1.0.0 is available at the time I'd hope they could ship with that. Which simply means that on RELENG_7_{0,1,2} it will be obligatory to use OpenSSL from ports with Bacula versions after 3.0.0.[*] So you'ld just need something like this in the bacula-{client,server} Makefiles: =2Eif ${OSVERSION} >=3D 700000 && ${OSVERSION} <=3D 702000 USE_OPENSSL_PORTS=3D yes =2Eendif This assumes that the bacula project does make use of CRYPTO_THREADID, and hopefully can be persuaded not to make an incompatible change before the OpenSSL updates eventually do come out. Cheers, Matthew [*] What about supported FreeBSD 6.x versions? --=20 Dr Matthew J Seaman MA, D.Phil. Flat 3 7 Priory Courtyard PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW, UK --------------enigB0E7BB44DB63D398796A1273 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAko/VQEACgkQ3jDkPpsZ+VYiywCeOamY+OXCgLuzCOIzzn+EaFud g04AoJpfi+gzksZYJ8EQ9R8PbRuvOFWx =2aJP -----END PGP SIGNATURE----- --------------enigB0E7BB44DB63D398796A1273--