From owner-freebsd-current@FreeBSD.ORG Wed Aug 23 10:52:57 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D733016A4E2 for ; Wed, 23 Aug 2006 10:52:57 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [210.51.165.229]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3ACDE43D83 for ; Wed, 23 Aug 2006 10:50:15 +0000 (GMT) (envelope-from delphij@delphij.net) Received: from localhost (tarsier.geekcn.org [210.51.165.229]) by tarsier.geekcn.org (Postfix) with ESMTP id 4C3DEEB430F; Wed, 23 Aug 2006 18:50:13 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([210.51.165.229]) by localhost (mail.geekcn.org [210.51.165.229]) (amavisd-new, port 10024) with ESMTP id M1kCuMfaYbVq; Wed, 23 Aug 2006 18:50:11 +0800 (CST) Received: from [10.217.12.217] (sina152-194.staff.sina.com.cn [61.135.152.194]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTP id 0E9F5EB4307; Wed, 23 Aug 2006 18:50:09 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=subject:from:to:cc:in-reply-to:references:content-type: organization:date:message-id:mime-version:x-mailer; b=NiTjKZqqj+/cD8gedZqWiIrQdttZ9OMthKmsM+D2wbAialeIBY7rlEgAYTl3pZejo N7xK5mPxVAIBSMgLqFF3w== From: =?UTF-8?Q?=E6=9D=8E=E9=91=AB?= "(LI Xin)" To: Kostik Belousov In-Reply-To: <20060823103604.GB64800@deviant.kiev.zoral.com.ua> References: <44E9582C.2010400@rsu.ru> <44EAA213.6010507@delphij.net> <002901c6c5ba$628b67d0$9800a8c0@carrera> <86hd0423zk.fsf@xps.des.no> <44EB302A.7010106@rsu.ru> <20060823121157.yawh6f8e844w4osc@netchild.homeip.net> <20060823103604.GB64800@deviant.kiev.zoral.com.ua> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-SKcN1qA4YI7r16QG72Sq" Organization: The FreeBSD Project Date: Wed, 23 Aug 2006 18:49:55 +0800 Message-Id: <1156330195.2444.35.camel@spirit> Mime-Version: 1.0 X-Mailer: Evolution 2.6.3 FreeBSD GNOME Team Port Cc: Alexander Leidinger , freebsd-current@freebsd.org, Michael Bushkov , Dag-Erling Sm??rgrav Subject: Re: [HEADS UP]: OpenLDAP+nss_ldap+nss_modules separated patch and more (SoC) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Aug 2006 10:52:58 -0000 --=-SKcN1qA4YI7r16QG72Sq Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable =E5=9C=A8 2006-08-23=E4=B8=89=E7=9A=84 13:36 +0300=EF=BC=8CKostik Belousov= =E5=86=99=E9=81=93=EF=BC=9A [snip] > > An idea which wasn't suggested yet is to install a renamed version (I =20 > > would suggest libbaseldap instead of libbsdldap or libldap_i, but I =20 > > don't really care about the name) and a link from the original name =20 > > (only the .so and .a, but not the .so.X) to the new name. This link =20 > > can be protected with a WITHOUT_LIBLDAP_LINK switch (or the other way =20 > > around... depending on what we want to achieve). This way it is =20 > > possible to link with the renamed lib in the base system, to use the =20 > > base system version of the lib in ports, and to use the lib from ports = =20 > > if desired (a recompile of ports may be needed in the last case, yes). >=20 > This will not work. bsdxml is used inside the system binaries. No binary > links again expat and bsdxml simultaneously. Would such binary exists, > it could experience problems. >=20 > On the other hand, application using openldap from the ports has high cha= nce > loading nss_ldap (e.g., due to nsswitch.conf). If nss_ldap linked against > renamed library, this would cause the crash. >=20 > In fact, similar problem was fixed not so long time ago by Dag-Erling > in the pam_ssh (duplicating existing symbols by the pam). Maybe we can help him to extract some necessary routines out of the lber and ldap libraries, and make it an internal library (say, put into the nss module rather than installing a separate .so file)? Cheers, --=20 Xin LI http://www.delphij.net/ --=-SKcN1qA4YI7r16QG72Sq Content-Type: application/pgp-signature; name=signature.asc Content-Description: =?UTF-8?Q?=E8=BF=99=E6=98=AF=E4=BF=A1=E4=BB=B6=E7=9A=84=E6=95=B0?= =?UTF-8?Q?=E5=AD=97=E7=AD=BE=E5=90=8D=E9=83=A8=E5=88=86?= -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQBE7DLThcUczkLqiksRAn9hAKDnHj4qaSuz0OU4phxLCChY+0rs9gCfYAO9 u9w6FBZHEDaFhPgnOSoiSfQ= =/VGS -----END PGP SIGNATURE----- --=-SKcN1qA4YI7r16QG72Sq--