Date: Thu, 24 Jul 2003 15:00:22 +0300 From: Ruslan Ermilov <ru@FreeBSD.org> To: current@FreeBSD.org Cc: Mark Murray <markm@FreeBSD.org> Subject: NOCRYPT and exists(src/crypto) check Message-ID: <20030724120022.GA29015@sunbay.com>
next in thread | raw e-mail | index | archive | help
--UlVJffcvxoiEqYs2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi there! There's currently an inconsistency in how various makefiles (that use crypto bits) check if these bits are available. All of them check for the NOCRYPT knob, and some of them also check if src/crypto/ exists, and some not. None of them also check if src/secure/ exists, which is the where the crypto libraries get actually built. Here's the current summary of these makefiles: makefiles that don't check if src/crypto/ exists: gnu/usr.bin/cvs/cvs/Makefile lib/libfetch/Makefile lib/libtelnet/Makefile libexec/telnetd/Makefile usr.bin/fetch/Makefile usr.bin/telnet/Makefile usr.sbin/pkg_install/Makefile usr.sbin/pkg_install/add/Makefile usr.sbin/pkg_install/create/Makefile usr.sbin/pkg_install/delete/Makefile usr.sbin/pkg_install/info/Makefile usr.sbin/pkg_install/version/Makefile makefiles that check if src/crypto/ exists: bin/ed/Makefile games/factor/Makefile lib/Makefile rescue/rescue/Makefile usr.bin/Makefile usr.sbin/Makefile usr.sbin/ppp/Makefile usr.sbin/pppd/Makefile usr.sbin/sendmail/Makefile usr.sbin/tcpdump/tcpdump/Makefile Since the "exists(${.CURDIR}/.../crypto) && !defined(NOCRYPT)" check is weak (it lacks the exists(${.CURDIR}/.../secure) check), I suggest to simplify these makefiles and remove these obscure exists() checks. Users that don't fetch crypto sources (src/crypto/ and src/secure/) will then just have to specify that in their /etc/make.conf. Not fetching crypto sources and not specifying NOCRYPT currently gives a broken build, so this change shouldn't surprise a lot of people. Also, a similar change for src/kerberos5/ is proposed. I'd appreciate a quick response. Cheers, --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software Ltd, ru@FreeBSD.org FreeBSD committer --UlVJffcvxoiEqYs2 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE/H8pWUkv4P6juNwoRAqYnAJ4o946/2wvIxKEaARZUzR9iBMOvcQCfc7tR KVwFL4bO7hZtjLsqpvkxdl8= =27Q8 -----END PGP SIGNATURE----- --UlVJffcvxoiEqYs2--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030724120022.GA29015>