From owner-freebsd-arch@FreeBSD.ORG Wed Nov 28 21:22:54 2007 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 644C116A417 for ; Wed, 28 Nov 2007 21:22:54 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 5D54913C43E for ; Wed, 28 Nov 2007 21:22:54 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id 0BC4A1A4D82; Wed, 28 Nov 2007 13:22:54 -0800 (PST) Date: Wed, 28 Nov 2007 13:22:53 -0800 From: Alfred Perlstein To: Brooks Davis Message-ID: <20071128212253.GO71382@elvis.mu.org> References: <20071128211022.GA74762@lor.one-eyed-alien.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071128211022.GA74762@lor.one-eyed-alien.net> User-Agent: Mutt/1.4.2.3i Cc: freebsd-arch@freebsd.org Subject: Re: RFC: libkse*.a in 7.0 X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Nov 2007 21:22:54 -0000 I don't see the harm in this. If we do nuke it we will still not be able to run statics without some weird hooks to emulate it. * Brooks Davis [071128 13:10] wrote: > A number of people have proposed a direction in 8.0 that would remove > support for the syscalls and kernel data structures required by libkse. > Apparently this would enable significant simplification of portions of > the kernel, but I have no deeply held personal opinion. The intent is > that if that happens, alternate versions of the necessicary dynamic > libraries will be supplied in updated compat#x packages. This will > address most consumers. The one set of consumers that would not be > addressed is those who have statically linked, threaded binaries using > libkse. > > Kris and I realized that if we went that route, life would be > significantly easier if it was difficult to create statically linked, > binaries using libkse under FreeBSD 7.x. As a result I would like > to commit and MFC the following patch which disables building and > installing libkse*.a in the default case. This would mean that > significant effort would be required to create a statically linked > application that uses the KSE syscalls. > > I believe that removing libkse*.a has little downside and leaves the way > open for either removing or enhancing the KSE system and is the right > thing to do. > > -- Brooks > > --- /home/brooks/working/freebsd/p4/freebsd/lib/libkse/Makefile 2007-10-29 10:43:55.000000000 -0500 > +++ lib/libkse/Makefile 2007-11-20 20:39:22.000000000 -0600 > @@ -10,12 +10,15 @@ > > .include > > -.if (${DEFAULT_THREAD_LIB} == "libkse" || ${MK_LIBTHR} == "no") && \ > - ${SHLIBDIR} == "/usr/lib" > +.if (${DEFAULT_THREAD_LIB} == "libkse" || ${MK_LIBTHR} == "no") > +LIB=kse > +.if ${SHLIBDIR} == "/usr/lib" > SHLIBDIR= /lib > .endif > +.else > +SHLIB=kse > +.endif > > -LIB=kse > SHLIB_MAJOR= 3 > CFLAGS+=-DPTHREAD_KERNEL > CFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}/thread \ > --- /home/brooks/working/freebsd/p4/freebsd/ObsoleteFiles.inc 2007-11-18 04:16:28.000000000 -0600 > +++ ObsoleteFiles.inc 2007-11-20 20:37:39.000000000 -0600 > @@ -14,6 +14,12 @@ > # The file is partitioned: OLD_FILES first, then OLD_LIBS and OLD_DIRS last. > # > > +# 200711XX: Disabled installing static versions of libkse by default > +.if ${DEFAULT_THREAD_LIB} != "libkse" && ${MK_LIBTHR} != "no" > +OLD_FILES+=usr/lib/libkse.a > +OLD_FILES+=usr/lib/libkse_p.a > +OLD_FILES+=usr/lib/libkse_pic.a > +.endif > # 20071108: Removed very crunch OLDCARD support file > OLD_FILES+=etc/defaults/pccard.conf > # 20071104: Removed bsdlabel, fdisk and gpt from rescue on ia64. -- - Alfred Perlstein