From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: bug#22831: [PATCH 2/2] WIP: gnu: openssl: Restrict allowed references for openssl. Date: Tue, 1 Mar 2016 02:18:35 -0500 Message-ID: <20160301071835.GA26683@jasmine> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56127) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaeaI-0000pA-A5 for bug-guix@gnu.org; Tue, 01 Mar 2016 02:19:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aaeaF-0003g8-4A for bug-guix@gnu.org; Tue, 01 Mar 2016 02:19:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:57523) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaeaE-0003g3-SC for bug-guix@gnu.org; Tue, 01 Mar 2016 02:19:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aaeaE-0005D7-Jc for bug-guix@gnu.org; Tue, 01 Mar 2016 02:19:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Content-Disposition: inline In-Reply-To: List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: 22831@debbugs.gnu.org On Mon, Feb 29, 2016 at 07:39:53PM -0500, Leo Famulari wrote: > * gnu/packages/tls.scm (openssl)[arguments]: Add #:allowed-references. I realized that it would work if I imported (gnu packages gcc) when defining the tls module. I don't know if that's the right approach or not, but the output now refers only to glibc, gcc:lib, and itself. > --- > gnu/packages/tls.scm | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm > index 57f0ca1..5990413 100644 > --- a/gnu/packages/tls.scm > +++ b/gnu/packages/tls.scm > @@ -200,6 +200,13 @@ required structures.") > `(#:parallel-build? #f > #:parallel-tests? #f > #:test-target "test" > + > + ;; Perl is required at build-time, but ideally not at run-time. > + ;; OpenSSL updates tend to pull it back in. This prevents that. > + > + #:allowed-references ,(list (canonical-package glibc) > + (list (canonical-package gcc) "lib") > + "out") > #:phases > (modify-phases %standard-phases > (add-before > -- > 2.7.1 > > > >