From owner-freebsd-current Sat Jun 16 23:38:53 2001 Delivered-To: freebsd-current@freebsd.org Received: from peter3.wemm.org (c1315225-a.plstn1.sfba.home.com [65.0.135.147]) by hub.freebsd.org (Postfix) with ESMTP id 4C43637B406 for ; Sat, 16 Jun 2001 23:38:46 -0700 (PDT) (envelope-from peter@wemm.org) Received: from overcee.netplex.com.au (overcee.wemm.org [10.0.0.3]) by peter3.wemm.org (8.11.0/8.11.0) with ESMTP id f5H6ckM98405 for ; Sat, 16 Jun 2001 23:38:46 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.netplex.com.au (Postfix) with ESMTP id E53DA39E9; Sat, 16 Jun 2001 23:38:45 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: Steve Kargl Cc: Giorgos Keramidas , current@FreeBSD.ORG Subject: Re: convert libgmp to a port? In-Reply-To: <20010616201135.A60010@troutmask.apl.washington.edu> Date: Sat, 16 Jun 2001 23:38:45 -0700 From: Peter Wemm Message-Id: <20010617063845.E53DA39E9@overcee.netplex.com.au> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Steve Kargl wrote: > On Sun, Jun 17, 2001 at 05:48:48AM +0300, Giorgos Keramidas wrote: > > > > I dont seem to be able to find some part of the base system that > > actually *does* use libgmp. Being out of date as it is, do you think > > it's proper to remove it from the base system and make it a port? > > > > It is a port. See ports/math/libgmp3. Note also that libmp depends > on sources from libgmp. > > kargl[219] find . -name Makefile | xargs grep lmp > ./kerberosIV/libexec/telnetd/Makefile: -L${KRBOBJDIR} -lkrb -lcrypt -lcom_err -lmp ${MINUSLPAM} > ./kerberosIV/usr.bin/telnet/Makefile: -L${KRBOBJDIR} -lkrb -lcrypt -lcom_err -lmp -lipsec ${MINUSLPAM} > ./secure/libexec/telnetd/Makefile: -lcrypt -lmp ${MINUSLPAM} > ./secure/usr.bin/telnet/Makefile:LDADD= -ltermcap ${LIBTELNET} -lcryp to -lcrypt -lmp \ > ./usr.bin/chkey/Makefile:LDADD= -lrpcsvc -lmp -lgmp > ./usr.bin/newkey/Makefile:LDADD= -lrpcsvc -lmp -lgmp > ./usr.sbin/keyserv/Makefile:LDADD= -lmp -lrpcsvc > kargl[220] find . -name Makefile | xargs grep lgmp > ./usr.bin/chkey/Makefile:LDADD= -lrpcsvc -lmp -lgmp > ./usr.bin/newkey/Makefile:LDADD= -lrpcsvc -lmp -lgmp It should not be too hard to have build a lightweight 'libbignum' that is extracted from the openssl sources and make that available in the base system. It would not be hard to convert the lib*mp consumers to use the libbignum (libbn, -lbn ?) and then we can get rid of it. telnet* should never have used libmp in the first place, it should have used libcrypto/bignum. chkey/newkey/keyserv are using libmp for diffie-helmann key exchange. (just large integer multiplication). It should be really easy to convert those three. Cheers, -Peter -- Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message