From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 0C/II7C8SmDOPQAA0tVLHw (envelope-from ) for ; Fri, 12 Mar 2021 00:58:24 +0000 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id GOeBH7C8SmA0PQAAbx9fmQ (envelope-from ) for ; Fri, 12 Mar 2021 00:58:24 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx2.migadu.com (Postfix) with ESMTPS id D8E9719604 for ; Fri, 12 Mar 2021 01:58:23 +0100 (CET) Received: from localhost ([::1]:52630 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKW8F-0004ba-1K for larch@yhetil.org; Thu, 11 Mar 2021 19:58:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52660) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKW7w-0004GH-5f for guix-patches@gnu.org; Thu, 11 Mar 2021 19:58:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:43933) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lKW7v-0005cm-UY for guix-patches@gnu.org; Thu, 11 Mar 2021 19:58:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lKW7v-0005hb-UA for guix-patches@gnu.org; Thu, 11 Mar 2021 19:58:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#47081] [PATCH 5/5] gnu: Remove mongodb. Resent-From: =?UTF-8?Q?L=C3=A9o?= Le Bouter Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 12 Mar 2021 00:58:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47081 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47081@debbugs.gnu.org Cc: =?UTF-8?Q?L=C3=A9o?= Le Bouter Received: via spool by 47081-submit@debbugs.gnu.org id=B47081.161551065421856 (code B ref 47081); Fri, 12 Mar 2021 00:58:03 +0000 Received: (at 47081) by debbugs.gnu.org; 12 Mar 2021 00:57:34 +0000 Received: from localhost ([127.0.0.1]:55475 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKW7R-0005gR-QD for submit@debbugs.gnu.org; Thu, 11 Mar 2021 19:57:34 -0500 Received: from mail.zaclys.net ([178.33.93.72]:55049) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKW7K-0005fJ-AI for 47081@debbugs.gnu.org; Thu, 11 Mar 2021 19:57:26 -0500 Received: from localhost.localdomain (82-64-145-38.subs.proxad.net [82.64.145.38]) (authenticated bits=0) by mail.zaclys.net (8.14.7/8.14.7) with ESMTP id 12C0vJrv011211 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Fri, 12 Mar 2021 01:57:20 +0100 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.zaclys.net 12C0vJrv011211 Authentication-Results: mail.zaclys.net; spf=fail smtp.mailfrom=lle-bout@zaclys.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zaclys.net; s=default; t=1615510640; bh=Uwb9y42ONsZU0e4jwe+TkOitFyioSpQG9Zpot7pnSXs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=E7EaCp5Fma02/QO3kENANnouXwrg4P31KjVA5PINrp8yGfKsep8G74cJANEaLs9rb eXBW+Bij2ZJoKKaBxxxGqNDsIe8vITyVYa9RAD6ygi6y4dfV9xVpeh7MW9C3+ISn3l 6sP4DdbtfhRIOZuIE5WugNz3YG2+8kCFIJ2uAJJc= Date: Fri, 12 Mar 2021 01:57:15 +0100 Message-Id: <20210312005715.13881-5-lle-bout@zaclys.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210312005715.13881-1-lle-bout@zaclys.net> References: <20210312005715.13881-1-lle-bout@zaclys.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: =?UTF-8?Q?L=C3=A9o?= Le Bouter X-ACL-Warn: , =?UTF-8?Q?L=C3=A9o?= Le Bouter via Guix-patches From: =?UTF-8?Q?L=C3=A9o?= Le Bouter via Guix-patches via X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1615510704; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Uwb9y42ONsZU0e4jwe+TkOitFyioSpQG9Zpot7pnSXs=; b=LAD7uBhm8dnMRi+Ai56zDhHuONHygeC4VZuru4GtdnhgzCQInkz7edJ7DuyiKHHaToahdy Ne73rZg8RKYu1ApKj8nwElepMunee8cr6DpXkneoLEi2m6hl29iLhrOASdpPApW2H2BKTE uhz7AlfqUKp2Mb8E3QO6e3PRlIcH7EH5ojNaWfemmmDn8btqlQKJRCwKEyC9QVvWf4ErfE 4tNlIUoXXKoEC4K30Xej6/fyw47PXI4YYkI9M1TWjaabW7VjYo81efFt46Ppb+JA8J1Biv HwCPELq/jQoOgmDYnt9GHiL8MYyPSJoYoF6KPQ3hsHWX5G5OVmkXUHZcHh011Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615510704; a=rsa-sha256; cv=none; b=Rlrqy7lBIou0rcCO6my51QiQOUmh7Z41JmPfVv/QinaPq0tGErGfukwb8/4c8UD5ha0t12 kAHGnoHEax/8YY/bL6q60BmSMaeasYSZkParMzIKoi475PSEkKv0PdWQKhmE9XjI/wSft5 i8E/WCZ53kLqbSTAPslcQsqf0EpbNH4BdO7sjidijdzoJ3EzXpS3WfJaS9fm47FRMZ/iUU U9CnxhKP+waGaICMc+4K/m/blqBHAz0jDB0D2DcE89KK9dY21IoootTyaxfPCmdw52JffR hPu15vg8Eqsv866SslCmpx2XWJaJ8DwGgjgsL8baJCSQi+JTDafXxxDmaKaYWQ== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=zaclys.net header.s=default header.b=E7EaCp5F; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx2.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 1.11 Authentication-Results: aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=zaclys.net header.s=default header.b=E7EaCp5F; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx2.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: D8E9719604 X-Spam-Score: 1.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: a1w5LLVZdiij mongodb 3.4.10 has unpatched CVEs and mongodb 3.4.24 has some files in the release tarball under the SSPL, therefore we cannot provide mongodb while upholding to good security standards. * gnu/packages/databases.scm (mongodb): Remove. --- gnu/packages/databases.scm | 137 ------------------------------------- 1 file changed, 137 deletions(-) diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index 2330f9fd26..5249aa0d10 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -615,143 +615,6 @@ replacement for the code@{python-memcached} library.") (define-public python2-pylibmc (package-with-python2 python-pylibmc)) -;; There is a point at which mongodb switched to the Server Side Public -;; License (SSPL), which is not a FOSS license. As such, be careful -;; when updating this package. -(define-public mongodb - (package - (name "mongodb") - (version "3.4.24") - (source (origin - (method url-fetch) - (uri (string-append "https://github.com/mongodb/mongo/archive/r" - version ".tar.gz")) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0y1669sqj8wyf0y0njhxs4qhn1qzjhrs2h2qllya5samxrlrjhkg")) - (modules '((guix build utils))) - (snippet - '(begin - (for-each (lambda (dir) - (delete-file-recursively - (string-append "src/third_party/" dir))) - '("pcre-8.42" "scons-2.5.0" "snappy-1.1.3" - "valgrind-3.11.0" "wiredtiger" - "yaml-cpp-0.6.2" "zlib-1.2.11")) - #t)))) - (build-system scons-build-system) - (inputs - `(("openssl" ,openssl-1.0) - ("pcre" ,pcre) - ,@(match (%current-system) - ((or "x86_64-linux" "aarch64-linux" "mips64el-linux") - `(("wiredtiger" ,wiredtiger))) - (_ `())) - ("yaml-cpp" ,yaml-cpp) - ("zlib" ,zlib) - ("snappy" ,snappy))) - (native-inputs - `(("valgrind" ,valgrind) - ("perl" ,perl) - ("python" ,python-2) - ("python2-pymongo" ,python2-pymongo) - ("python2-pyyaml" ,python2-pyyaml) - ("tzdata" ,tzdata-for-tests))) - (arguments - `(#:scons ,scons-python2 - #:phases - (let ((common-options - `(;; "--use-system-tcmalloc" TODO: Missing gperftools - "--use-system-pcre" - ;; wiredtiger is 64-bit only - ,,(if (any (cute string-prefix? <> (or (%current-target-system) - (%current-system))) - '("i686-linux" "armhf-linux")) - ``"--wiredtiger=off" - ``"--use-system-wiredtiger") - ;; TODO - ;; build/opt/mongo/db/fts/unicode/string.o failed: Error 1 - ;; --use-system-boost - "--use-system-snappy" - "--use-system-zlib" - "--use-system-valgrind" - ;; "--use-system-stemmer" TODO: Missing relevant package - "--use-system-yaml" - "--disable-warnings-as-errors" - ,(format #f "--jobs=~a" (parallel-job-count)) - "--ssl"))) - (modify-phases %standard-phases - (add-after 'unpack 'patch - (lambda _ - ;; Remove use of GNU extensions in parse_number_test.cpp, to - ;; allow compiling with GCC 7 or later - ;; https://jira.mongodb.org/browse/SERVER-28063 - (substitute* "src/mongo/base/parse_number_test.cpp" - (("0xabcab\\.defdefP-10") - "687.16784283419838")) - #t)) - (add-after 'unpack 'scons-propagate-environment - (lambda _ - ;; Modify the SConstruct file to arrange for - ;; environment variables to be propagated. - (substitute* "SConstruct" - (("^env = Environment\\(") - "env = Environment(ENV=os.environ, ")) - #t)) - (add-after 'unpack 'create-version-file - (lambda _ - (call-with-output-file "version.json" - (lambda (port) - (display ,(simple-format #f "{ - \"version\": \"~A\" -}" version) port))) - #t)) - (replace 'build - (lambda _ - (apply invoke `("scons" - ,@common-options - "mongod" "mongo" "mongos")))) - (replace 'check - (lambda* (#:key tests? inputs #:allow-other-keys) - (setenv "TZDIR" - (string-append (assoc-ref inputs "tzdata") - "/share/zoneinfo")) - (when tests? - ;; Note that with the tests, especially the unittests, the - ;; build can take up to ~45GB of space, as many tests are - ;; individual executable files, with some being hundreds of - ;; megabytes in size. - (apply invoke `("scons" ,@common-options "dbtest" "unittests")) - (substitute* "build/unittests.txt" - ;; TODO: Don't run the async_stream_test, as it hangs - (("^build\\/opt\\/mongo\\/executor\\/async\\_stream\\_test\n$") - "") - ;; TODO: This test fails - ;; Expected 0UL != disks.size() (0 != 0) @src/mongo/util/procparser_test.cpp:476 - (("^build\\/opt\\/mongo\\/util\\/procparser\\_test\n$") - "")) - (invoke "python" "buildscripts/resmoke.py" - "--suites=dbtest,unittests" - (format #f "--jobs=~a" (parallel-job-count)))) - #t)) - (replace 'install - (lambda* (#:key outputs #:allow-other-keys) - (let ((bin (string-append (assoc-ref outputs "out") "/bin"))) - (install-file "mongod" bin) - (install-file "mongos" bin) - (install-file "mongo" bin)) - #t)))))) - (home-page "https://www.mongodb.org/") - (synopsis "High performance and high availability document database") - (description - "Mongo is a high-performance, high availability, schema-free -document-oriented database. A key goal of MongoDB is to bridge the gap -between key/value stores (which are fast and highly scalable) and traditional -RDBMS systems (which are deep in functionality).") - (license (list license:agpl3 - ;; Some parts are licensed under the Apache License - license:asl2.0)))) - (define-public mycli (package (name "mycli") -- 2.30.2