From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47682) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzks7-0007PF-2i for guix-patches@gnu.org; Wed, 04 Oct 2017 10:42:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dzks5-00058C-WD for guix-patches@gnu.org; Wed, 04 Oct 2017 10:42:03 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:40332) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dzks5-000584-TP for guix-patches@gnu.org; Wed, 04 Oct 2017 10:42:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dzks5-00008X-Mj for guix-patches@gnu.org; Wed, 04 Oct 2017 10:42:01 -0400 Subject: [bug#28198] [PATCH 2/3] gnu: Add mongodb. Resent-Message-ID: From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <20170930075942.31332-1-mail@cbaines.net> <20170930075942.31332-2-mail@cbaines.net> Date: Wed, 04 Oct 2017 16:40:50 +0200 In-Reply-To: <20170930075942.31332-2-mail@cbaines.net> (Christopher Baines's message of "Sat, 30 Sep 2017 08:59:41 +0100") Message-ID: <87k20b6knh.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Christopher Baines Cc: 28198@debbugs.gnu.org Christopher Baines skribis: > * gnu/packages/databases.scm (mongodb): New variable. [...] > + (add-after 'unpack 'scons-propagate-environment > + (lambda _ > + ;; Modify the SConstruct file to arrange for > + ;; environment variables to be propagated. > + (substitute* "SConstruct" > + (("^env =3D Environment\\(") > + "env =3D Environment(ENV=3Dos.environ, ")))) > + (add-after 'unpack 'create-version-file > + (lambda _ > + (call-with-output-file "version.json" > + (lambda (port) > + (display ,(simple-format #f "{ > + \"version\": \"~A\" > +}" version) port))))) These two should explicitly return #t. OK with this change, thank you! Ludo=E2=80=99.