From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id EAOfJUO9SmA4QwAA0tVLHw (envelope-from ) for ; Fri, 12 Mar 2021 01:00:51 +0000 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 8IJrIUO9SmDdIgAA1q6Kng (envelope-from ) for ; Fri, 12 Mar 2021 01:00:51 +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 E4C7D19662 for ; Fri, 12 Mar 2021 02:00:50 +0100 (CET) Received: from localhost ([::1]:53738 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKWAc-0005FX-3M for larch@yhetil.org; Thu, 11 Mar 2021 20:00:50 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53200) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKW9s-0004zE-G8 for guix-patches@gnu.org; Thu, 11 Mar 2021 20:00:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:43956) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lKW9s-0006dN-6E for guix-patches@gnu.org; Thu, 11 Mar 2021 20:00:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lKW9s-0005o7-3s for guix-patches@gnu.org; Thu, 11 Mar 2021 20:00:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#47081] [PATCH v2 6/6] 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 01:00:04 +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.161551077222134 (code B ref 47081); Fri, 12 Mar 2021 01:00:04 +0000 Received: (at 47081) by debbugs.gnu.org; 12 Mar 2021 00:59:32 +0000 Received: from localhost ([127.0.0.1]:55496 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKW9M-0005kq-5G for submit@debbugs.gnu.org; Thu, 11 Mar 2021 19:59:32 -0500 Received: from mail.zaclys.net ([178.33.93.72]:50961) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKW9F-0005jh-PV for 47081@debbugs.gnu.org; Thu, 11 Mar 2021 19:59: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 12C0xJY6011357 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Fri, 12 Mar 2021 01:59:20 +0100 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.zaclys.net 12C0xJY6011357 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=1615510760; bh=Uwb9y42ONsZU0e4jwe+TkOitFyioSpQG9Zpot7pnSXs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lGOKQx8XcG0qcE4qL3NNbHRS8g1j/s9m70D1GtdqhnOwWR6UldQd0NJMeT8wAra8E RJSyphnyEyoJw/ETzFXxzp+bzk+YMdnFQnVaWOyVZunxBaMLAfQg/xeybDqt6//DZ4 QiNuGeT1VLKl1pV8OunLU3CFAsEXEAgvKj7BSGi0= Date: Fri, 12 Mar 2021 01:59:15 +0100 Message-Id: <20210312005915.14100-6-lle-bout@zaclys.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210312005915.14100-1-lle-bout@zaclys.net> References: <20210312005915.14100-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=1615510851; 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=aVn/UjAGv+FoI/sAxqKT+0104V5whSr0fHMRtz1FBH08tu0ltRq+tvRtqsrsRpoIqARd3F 1ALzpSEV76baGf4wAiUJ5k3qi0znyjyKgz+ydOpOmAke60sgzGDMPtvTr0DZ1uTHSDoAlf xVRfDyBwb0Y9+rrfUGLkZoJyEjnM5CEbOA2SitvXbyBnaFUsi49/8PbzCkTtxgmV3ug9zG 2Q5v+ZKYwl+pKJBJBiftGP+y7SXWR1nhlz22NBx2ztBceHTtrOoLIC9ypqBS+M4ToI3K/2 BrbiQ8gR/FdWsp5755cEAbt9O6LIQZlAzjVX7mo9lD+CsCBWJtQq+QIXENNY9A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615510851; a=rsa-sha256; cv=none; b=QjX7fSaUJ3J04n/yIG+XdSTMrC3wdxOIbf2RybU+JOfXVgDbDD4LCRYtDASbR4HMPXFuNp bhoHu4TOk8DhbNNbZ5/l0zWqGQAOeBHQtbuMFJdOIufkyGwXpc5rWdqycPSWQBNkPRo6E+ I0JHTcpUQWBQW6S8Rru4qnvOc76nr6z+DZjjaRMimkpI49F89sKMxGvCceWjrfuiO46bG/ tgmoaFz1mbyrZRqJUZDAAQmhEFGYZW8lwIxByWOG5Z/UcFo1y9U65FoaXlkJJ6CeINXbr4 xLXdqwaXjC9l+dUXB1mTmiz+PqiHaSxQIX0462d96zkTnt5Bc3DP3zWyzGdWtw== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=zaclys.net header.s=default header.b=lGOKQx8X; 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=lGOKQx8X; 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: E4C7D19662 X-Spam-Score: 1.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: l6FkBq86PLRz 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