From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Plqda-0007E5-B3 for garchives@archives.gentoo.org; Sat, 05 Feb 2011 22:29:50 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A797C1C042; Sat, 5 Feb 2011 22:29:43 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 783EF1C042 for ; Sat, 5 Feb 2011 22:29:43 +0000 (UTC) Received: from flycatcher.gentoo.org (flycatcher.gentoo.org [81.93.255.6]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D236F1B4098 for ; Sat, 5 Feb 2011 22:29:42 +0000 (UTC) Received: by flycatcher.gentoo.org (Postfix, from userid 948) id 5178220054; Sat, 5 Feb 2011 22:29:40 +0000 (UTC) From: "Diego Petteno (flameeyes)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, flameeyes@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in eclass: pam.eclass X-VCS-Repository: gentoo-x86 X-VCS-Files: pam.eclass X-VCS-Directories: eclass X-VCS-Committer: flameeyes X-VCS-Committer-Name: Diego Petteno Content-Type: text/plain; charset=utf8 Message-Id: <20110205222940.5178220054@flycatcher.gentoo.org> Date: Sat, 5 Feb 2011 22:29:40 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 169419aa589c20ef478967cea62948f6 flameeyes 11/02/05 22:29:40 Modified: pam.eclass Log: Add a function to make it easier to hide non-pam symbols from modules. =20 Rather than reinventing the wheel and adding a stupid file to each of the packages, use a single function to create a temporary file and use that. Revision Changes Path 1.19 eclass/pam.eclass file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/pam.eclass?= rev=3D1.19&view=3Dmarkup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/pam.eclass?= rev=3D1.19&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/pam.eclass?= r1=3D1.18&r2=3D1.19 Index: pam.eclass =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo-x86/eclass/pam.eclass,v retrieving revision 1.18 retrieving revision 1.19 diff -u -r1.18 -r1.19 --- pam.eclass 11 Dec 2009 20:33:11 -0000 1.18 +++ pam.eclass 5 Feb 2011 22:29:40 -0000 1.19 @@ -1,12 +1,12 @@ # Copyright 2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License, v2 or l= ater # Author Diego Petten=C3=B2 -# $Header: /var/cvsroot/gentoo-x86/eclass/pam.eclass,v 1.18 2009/12/11 2= 0:33:11 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/pam.eclass,v 1.19 2011/02/05 2= 2:29:40 flameeyes Exp $ # # This eclass contains functions to install pamd configuration files and # pam modules. =20 -inherit multilib +inherit multilib flag-o-matic =20 # dopamd [more files] # @@ -92,6 +92,23 @@ echo ${PAM_MOD_DIR} } =20 +# pammod_hide_symbols +# +# Hide all non-PAM-used symbols from the module; this function creates a +# simple ld version script that hides all the symbols that are not +# necessary for PAM to load the module, then uses append-flags to make +# sure that it gets used. +pammod_hide_symbols() { + cat - > "${T}"/pam-eclass-pam_symbols.ver < [more files] # # Install pam module file in the pam modules' dir for current implementa= tion