From unknown Mon Jun 23 22:03:27 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#64345 <64345@debbugs.gnu.org> To: bug#64345 <64345@debbugs.gnu.org> Subject: Status: [PATCH] gnu: Add reduce-csl. Reply-To: bug#64345 <64345@debbugs.gnu.org> Date: Tue, 24 Jun 2025 05:03:27 +0000 retitle 64345 [PATCH] gnu: Add reduce-csl. reassign 64345 guix-patches submitter 64345 Nigko Yerden severity 64345 normal tag 64345 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 29 02:43:32 2023 Received: (at submit) by debbugs.gnu.org; 29 Jun 2023 06:43:32 +0000 Received: from localhost ([127.0.0.1]:52137 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qElNK-0005tg-EQ for submit@debbugs.gnu.org; Thu, 29 Jun 2023 02:43:32 -0400 Received: from lists.gnu.org ([209.51.188.17]:51712) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qElCd-0005dx-1D for submit@debbugs.gnu.org; Thu, 29 Jun 2023 02:32:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qElCV-0005NP-Dn for guix-patches@gnu.org; Thu, 29 Jun 2023 02:32:22 -0400 Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qElCS-0006e5-SU for guix-patches@gnu.org; Thu, 29 Jun 2023 02:32:19 -0400 Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-4fb7acaa7a5so479729e87.1 for ; Wed, 28 Jun 2023 23:32:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688020331; x=1690612331; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=CCY/up0S8BX5TBhphpMrDkVgveph+6mOkwENMwbQASo=; b=NuGZPt5C7kdFOeHygt9lU1wj57ivmQpsz9dKvQ9jCH1jqHr5DQ5Vg39BCro2StsVS5 sPTf7yOI8QDq/GiLpiMYp2kHoVKvwAGeHNybfE8NY/RisstbjEb2jCNuSzkV2j0eai5M C+CNDSG+YBeXoXsMYI1GtxMnNgSu67xbuX/CCkgBNtzjjUXs0jaf3+s2DxPtAsJK6ci2 QWSyvosFJV4fEmHRvduSxuzi0Opz7LEiGDEYBdddnAAMhmk3hYZKj2ObrjzBmA9kRozi d0VseDs2HZUAVMfVHBLktDAIwFF4NvCuFuMddFLH9OdNYTQqwW5KBQcF4whfnSXwxNom Aypg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688020331; x=1690612331; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=CCY/up0S8BX5TBhphpMrDkVgveph+6mOkwENMwbQASo=; b=CNRgQd6ERzt4iU/UBptQSfqcHB9edDDefI4wUpz1f1BJMhTYOWGEov2buMzhKmVo9o Fxh/nzgzv40WHuzQud2qMu2oSzrAUzWGncothmsqZd10Covhq/2zT6lDOFTT4a5MvLAM Mle8hOXGqW50kp22owIqjHz3fET2Xf7c9GavYx+uNX3Zf0nkinDzy7V8DdMm2JrztArl i6Hs0/M4ekqBbdGsywANHa9lcoCMEJcQc7npsV6p6olw6s2iWgH/7zqwOQA9u+iGGdXg wQWVCZIOdqJyiiB8oLv0JgAz9b7iKoHEx6dRMVreKpaATvMp9QTdTlQ1Yq7hqdwMC6Rm RaHw== X-Gm-Message-State: AC+VfDxn9u++fQidPa87EWxjbgakvtxrb5RNVbC4BSgyUDKp+3mNcqH2 cvSYFOhj+TbSRLQcZ5bvd/8kTq0V2cRxhg== X-Google-Smtp-Source: ACHHUZ4ZWeG/IN6+wmTsmRvosu7sJBG3bRfkTOs/wiPjqva4Gbvb+WB04W5+DJaNWwGd6wmrTtIGWw== X-Received: by 2002:a05:6512:3b95:b0:4f9:5d2a:e0f5 with SMTP id g21-20020a0565123b9500b004f95d2ae0f5mr19486736lfv.19.1688020331302; Wed, 28 Jun 2023 23:32:11 -0700 (PDT) Received: from localhost.localdomain ([188.168.231.224]) by smtp.gmail.com with ESMTPSA id d13-20020ac241cd000000b004f4cabba7ebsm2202944lfi.199.2023.06.28.23.32.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Jun 2023 23:32:10 -0700 (PDT) From: Nigko Yerden To: guix-patches@gnu.org Subject: [PATCH] gnu: Add reduce-csl. Date: Thu, 29 Jun 2023 11:31:34 +0500 Message-Id: <87a63626656b03bea4fca6a8d969007076ea9310.1688017118.git.nigko.yerden@gmail.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-Debbugs-Cc: Andreas Enge , Efraim Flashner , Eric Bavier Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::12a; envelope-from=nigko.yerden@gmail.com; helo=mail-lf1-x12a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 29 Jun 2023 02:43:27 -0400 Cc: Nigko Yerden X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) * gnu/packages/maths.scm (reduce-csl): New variable. --- The package is built successfully on x86_64_linux (natively), armhf-linux and aarch64-linux (via 'guix build --system=...' command) architectures. There is no reproducibility due to datestamp (printed each time the program starts), rundom-number generator initialization in CSL (see csl/cslbase/csl.cpp), and maybe some other stuff. The source code contains bundled fox and editline libraries as well as their adjustments, which are difficult to remove. Also it contains libffi (can be replaced by libffi from guix repo), crlibm and softfloat (currently are not present in guix repo) libraries. gnu/packages/maths.scm | 107 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 653e76027a..db66301f3a 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -60,6 +60,7 @@ ;;; Copyright © 2022 Akira Kyle ;;; Copyright © 2022 Roman Scherer ;;; Copyright © 2023 Jake Leporte +;;; Copyright © 2023 Nigko Yerden ;;; ;;; This file is part of GNU Guix. ;;; @@ -4488,6 +4489,112 @@ (define-public wxmaxima full text searching.") (license license:gpl2+))) +(define-public reduce-csl + (package + (name "reduce-csl") + (version "6547") + (source (origin + (method url-fetch) + (uri (string-append + "mirror://sourceforge/reduce-algebra/snapshot_" + "2023-03-08" "/Reduce-svn" version "-src.tar.gz")) + (sha256 + (base32 + "1a559s4ff5askifyha6fi8qvxjkya1n3ziypig2rgi6q62nbx418")) + (modules '((guix build utils))) + ;; remove binaries and unnecessary parts + ;; to ensure we build from source files only + (snippet '(map delete-file-recursively + (append (find-files "csl/generated-c" "\\.img$") + '("psl" "vsl" + "jlisp" + "jslisp" + "libedit" + "macbuild" + "MacPorts" + "mac-universal" + "reduce2" + "winbuild64" + "common-lisp" + "contrib" + "generic/qreduce" + "web/htdocs/images/Thumbs.db") + (find-files "csl" + "^(embedded|new-embedded|winbuild|support-packages)$" + #:directories? #t) + (find-files "libraries" + "^(original|wineditline|libffi-for-mac)$" + #:directories? #t)))))) + (build-system gnu-build-system) + (arguments + (list #:tests? #f + #:configure-flags + #~(list "--without-autogen" + ;; fix conflict with internal build name determination + "--build=" "--with-csl" + (string-append "CXXFLAGS=-I" + #$freetype + "/include/freetype2")) + #:make-flags #~(list "csl") + #:phases #~(modify-phases %standard-phases + (add-before 'patch-source-shebangs 'autogen + (lambda _ + (invoke "sh" "autogen.sh"))) + (add-after 'install 'fix-install + (lambda _ + (delete-file-recursively (string-append #$output + "/man")) + (delete-file (string-append #$output "/share/man")) + (copy-file "bin/rfcsl" + (string-append #$output "/bin/rfcsl")) + (let ((.desktop-file + "debianbuild/reduce/debian/redcsl.desktop") + (icon "debianbuild/reduce/debian/reduce.png")) + (substitute* .desktop-file + (("Exec=/.*/(redcsl[ \t]+.*)" _ exec) + (string-append "Exec=" exec))) + (install-file .desktop-file + (string-append #$output + "/share/applications")) + (install-file icon + (string-append #$output + "/share/icons/hicolor/32x32/apps"))) + (rename-file "generic/newfront/redfront.1" + "generic/newfront/rfcsl.1") + (map (lambda (file) + (invoke "gzip" file) + (install-file (string-append file ".gz") + (string-append #$output + "/share/man/man1"))) + '("csl/cslbase/redcsl.1" + "generic/newfront/rfcsl.1")) + (with-directory-excursion #$output + (map (lambda (dir) + (map (lambda (file) + (chmod file #o444)) + (find-files dir))) + '("share/man/man1" "share/doc/reduce" + "share/reduce/fonts")))))))) + (native-inputs (list which autoconf automake libtool)) + (inputs + ;; bundled libraries: fox (adjusted) editline (adjusted) + ;; libffi crlibm softfloat + (list ncurses freetype libxft libx11 libxext)) + (synopsis "Portable general-purpose computer algebra system") + (description + "REDUCE is a portable general-purpose computer algebra system. It is a +system for doing scalar, vector and matrix algebra by computer, which also +supports arbitrary precision numerical approximation and interfaces to gnuplot +to provide graphics. It can be used interactively for simple calculations but +also provides a full programming language, with a syntax similar to other +modern programming languages. REDUCE supports alternative user interfaces +including Run-REDUCE, TeXmacs and GNU Emacs. This package provides Codemist +Standard Lisp (CSL) version of REDUCE. It uses gnuplot program, if installed, +to make figures.") + (home-page "https://reduce-algebra.sourceforge.io/") + (license (license:non-copyleft "file://README" + "See README in the deistribution.")))) + (define-public armadillo (package (name "armadillo") base-commit: b24a05830d11e3011eee4bc5f60a41e26188cde1 -- 2.40.1 From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 23 02:18:01 2023 Received: (at 64345) by debbugs.gnu.org; 23 Sep 2023 06:18:01 +0000 Received: from localhost ([127.0.0.1]:37635 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjvxl-0002O0-HO for submit@debbugs.gnu.org; Sat, 23 Sep 2023 02:18:01 -0400 Received: from mail-lj1-x243.google.com ([2a00:1450:4864:20::243]:56790) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjvYh-0001k2-Ha for 64345@debbugs.gnu.org; Sat, 23 Sep 2023 01:52:05 -0400 Received: by mail-lj1-x243.google.com with SMTP id 38308e7fff4ca-2b95d5ee18dso54871961fa.1 for <64345@debbugs.gnu.org>; Fri, 22 Sep 2023 22:51:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695448305; x=1696053105; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=CeoWPclIsVPeFUOXp3KFrK/ixgYrPSUHEir4HtgEui0=; b=ierlNaGmq/2lQRlqHZe+RN2pvpyBaegqfx4QmbZsH8R/Od/MTmpjC5rkQiktvtJ0WY LB6XG4HRai6l5IP0luwQ7zjPvyKgtkbbb+pUxhX227yO2i36zTdMSxiUsJ7zz6QVQIkn oBot75PeHtn/xpF4KdKufb7mqaDKB7G6V2vn/+LANBQmzc46Vqp9j3Eru+4gJxwLxkZ3 R4zEeObmPrShYHAYAfJ8RDAqOv9gF4P+eyArJcXqUeYVRb1dmyjdvJsTA4bJPsaYb8GL n5qsJROEZOc2Ch1USKeCAJKY1IYoutPyv6XBhG3NXuH5cuTz7yY6s+HkdFChTiQLLZn1 GKGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695448305; x=1696053105; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=CeoWPclIsVPeFUOXp3KFrK/ixgYrPSUHEir4HtgEui0=; b=PHurQZGCXWzzu45MMYFPio4QFvcHEAMsOOiGqjLkkAvx3S3lhHka/FGecbQL6u5jGq W9xupRe/vXzL4c1vpikBd+FoEwiNHF7tsIOsqzTPa0Ndc0nopXELnLPndNxwtHfHZzTE Scv+YuzWy/LsZVyVW0TTX/kFm/7ds9CRqSodbBrPOFKVdS7kApSTaSNM0JXGP/h4j8Tz qzeNcsQwbHuhUmj3WNfxTC2huFEd+aXpEEiqBatJ1J4KYdGL8iO7P77wYkNMK2gKStIJ /L6SlQg9RDuLOcx0zzE9Ua5QgkcTb1yfLahDbtB36KhM1bW5L1Efx6y8O0umGB86nhch xUyw== X-Gm-Message-State: AOJu0Yxv/fO2ofC32sABJM1VgUphlmudwwyNpO9fBUqCKyjIu+lXtun+ G9LKZRp4gbfFDUdbr/2AY+gmVAC7cB1YMg== X-Google-Smtp-Source: AGHT+IEdE68k8n+34KXgsQWUQnsL+BWCQnaNDYlbVb3L299qlLzvq539ZgrOSXrk3d7CREq60HsZMQ== X-Received: by 2002:a2e:9018:0:b0:2bc:f5d3:1021 with SMTP id h24-20020a2e9018000000b002bcf5d31021mr919913ljg.32.1695448305008; Fri, 22 Sep 2023 22:51:45 -0700 (PDT) Received: from localhost.localdomain ([188.68.129.52]) by smtp.gmail.com with ESMTPSA id v5-20020a2e7a05000000b002b9ef00b10csm1220981ljc.2.2023.09.22.22.51.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 22:51:44 -0700 (PDT) From: Nigko Yerden To: 64345@debbugs.gnu.org Subject: [PATCH v2] gnu: Add reduce-csl. Date: Sat, 23 Sep 2023 10:45:58 +0500 Message-ID: <722a35802d6df89e1a8d39849d97810d61b5116e.1695447958.git.nigko.yerden@gmail.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Debbugs-Cc: Andreas Enge , Efraim Flashner , Eric Bavier Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 64345 X-Mailman-Approved-At: Sat, 23 Sep 2023 02:17:56 -0400 Cc: Nigko Yerden X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/maths.scm (reduce-csl): New variable. --- This patch introduces Reduce, a general purpose computer algebra system similar to Maxima. The package is built successfully on x86_64_linux (natively), armhf-linux and aarch64-linux (via 'guix build --system=...' command) architectures. Reduce became build-reproducible since the upstream revision 6601, but the current "stable" snapshot 6547 is not reproducible. The source code contains bundled fox and editline libraries as well as their adjustments, which are difficult to remove. Also it contains libffi (can be replaced by libffi from guix repo), crlibm and softfloat (currently are not present in guix repo) libraries. --- gnu/packages/maths.scm | 107 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 6141c09886..7892291e0b 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -61,6 +61,7 @@ ;;; Copyright © 2022 Roman Scherer ;;; Copyright © 2023 Jake Leporte ;;; Copyright © 2023 Camilo Q.S. (Distopico) +;;; Copyright © 2023 Nigko Yerden ;;; ;;; This file is part of GNU Guix. ;;; @@ -4490,6 +4491,112 @@ (define-public wxmaxima full text searching.") (license license:gpl2+))) +(define-public reduce-csl + (package + (name "reduce-csl") + (version "6547") + (source (origin + (method url-fetch) + (uri (string-append + "mirror://sourceforge/reduce-algebra/snapshot_" + "2023-03-08" "/Reduce-svn" version "-src.tar.gz")) + (sha256 + (base32 + "1a559s4ff5askifyha6fi8qvxjkya1n3ziypig2rgi6q62nbx418")) + (modules '((guix build utils))) + ;; remove binaries and unnecessary parts + ;; to ensure we build from source files only + (snippet '(map delete-file-recursively + (append (find-files "csl/generated-c" "\\.img$") + '("psl" "vsl" + "jlisp" + "jslisp" + "libedit" + "macbuild" + "MacPorts" + "mac-universal" + "reduce2" + "winbuild64" + "common-lisp" + "contrib" + "generic/qreduce" + "web/htdocs/images/Thumbs.db") + (find-files "csl" + "^(embedded|new-embedded|winbuild|support-packages)$" + #:directories? #t) + (find-files "libraries" + "^(original|wineditline|libffi-for-mac)$" + #:directories? #t)))))) + (build-system gnu-build-system) + (arguments + (list #:tests? #f + #:configure-flags + #~(list "--without-autogen" + ;; fix conflict with internal build name determination + "--build=" "--with-csl" + (string-append "CXXFLAGS=-I" + #$freetype + "/include/freetype2")) + #:make-flags #~(list "csl") + #:phases #~(modify-phases %standard-phases + (add-before 'patch-source-shebangs 'autogen + (lambda _ + (invoke "sh" "autogen.sh"))) + (add-after 'install 'fix-install + (lambda _ + (delete-file-recursively (string-append #$output + "/man")) + (delete-file (string-append #$output "/share/man")) + (copy-file "bin/rfcsl" + (string-append #$output "/bin/rfcsl")) + (let ((.desktop-file + "debianbuild/reduce/debian/redcsl.desktop") + (icon "debianbuild/reduce/debian/reduce.png")) + (substitute* .desktop-file + (("Exec=/.*/(redcsl[ \t]+.*)" _ exec) + (string-append "Exec=" exec))) + (install-file .desktop-file + (string-append #$output + "/share/applications")) + (install-file icon + (string-append #$output + "/share/icons/hicolor/32x32/apps"))) + (rename-file "generic/newfront/redfront.1" + "generic/newfront/rfcsl.1") + (map (lambda (file) + (invoke "gzip" file) + (install-file (string-append file ".gz") + (string-append #$output + "/share/man/man1"))) + '("csl/cslbase/redcsl.1" + "generic/newfront/rfcsl.1")) + (with-directory-excursion #$output + (map (lambda (dir) + (map (lambda (file) + (chmod file #o444)) + (find-files dir))) + '("share/man/man1" "share/doc/reduce" + "share/reduce/fonts")))))))) + (native-inputs (list which autoconf automake libtool)) + (inputs + ;; bundled libraries: fox (adjusted) editline (adjusted) + ;; libffi crlibm softfloat + (list ncurses freetype libxft libx11 libxext)) + (synopsis "Portable general-purpose computer algebra system") + (description + "REDUCE is a portable general-purpose computer algebra system. It is a +system for doing scalar, vector and matrix algebra by computer, which also +supports arbitrary precision numerical approximation and interfaces to gnuplot +to provide graphics. It can be used interactively for simple calculations but +also provides a full programming language, with a syntax similar to other +modern programming languages. REDUCE supports alternative user interfaces +including Run-REDUCE, TeXmacs and GNU Emacs. This package provides Codemist +Standard Lisp (CSL) version of REDUCE. It uses gnuplot program, if installed, +to make figures.") + (home-page "https://reduce-algebra.sourceforge.io/") + (license (license:non-copyleft "file://README" + "See README in the deistribution.")))) + (define-public armadillo (package (name "armadillo") base-commit: ec130e1a1b7f3b87b1a6e626754f7e7a07f6b717 -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 18 08:56:17 2023 Received: (at 64345) by debbugs.gnu.org; 18 Oct 2023 12:56:17 +0000 Received: from localhost ([127.0.0.1]:33431 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qt65v-0007OM-LG for submit@debbugs.gnu.org; Wed, 18 Oct 2023 08:56:17 -0400 Received: from mail-lf1-x142.google.com ([2a00:1450:4864:20::142]:52511) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qt65s-0007O6-2x for 64345@debbugs.gnu.org; Wed, 18 Oct 2023 08:56:14 -0400 Received: by mail-lf1-x142.google.com with SMTP id 2adb3069b0e04-507bd64814fso2603044e87.1 for <64345@debbugs.gnu.org>; Wed, 18 Oct 2023 05:55:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697633739; x=1698238539; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=qb1zxa/QVY/gMxUguP/8bSOCuXUHEaHiJJmsJ3UjhS0=; b=OHmCiokQsdR8oVXu2cOpPyBzotZ3L0uPxPvNM8TDvetXHfIwbUvtoI8m1owonaU29q Hp/EccGXnFXerWeoOEKnx7bbCeCbQ+T1imIAe2w3h7XdkVva9ALp2QxQ3lWETjBbfdbL 6S9wgYm5Z4IBhH5gzKkUliQjDRN8ZN8BzG3XEOHhC7mXSuLBeL+Vj592FW76mEe0XI8r s/pW+NZHaylc0MGJKto/M0CkQFmQ6z257lpFzdhaielvWfXOqjnMhxLLCX0ZpMuCmaqS 2lkI+uXBu9tMjqNZH/phIHGVv6UF3RrOyEopNpKsVd0K+ksDic3u4g9g5Xna7KjvBuMH HhGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697633739; x=1698238539; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qb1zxa/QVY/gMxUguP/8bSOCuXUHEaHiJJmsJ3UjhS0=; b=LMJF8e32RBw6/1qwxyDgiOE9kbSL/0EHXVIJ2IpL43gzQVstUHlPEbTSQZ6fa2X7Mp HzrCgFrdk5w/5o0vp55XxyCbhbx6AoizMFYOzTTCasua9LUd0AJb/8s3i5mP4fU5vNyb 0zDU9YdcxPcjcK6aJVZ2AjiRhAt4Xm+zr60Gl2bslsGRy/huaVywdoGr7TbBS9TzA1rh QgAEU7bUwXXtHHsEON3Xnp1wZgrm6Hhcp9CfQW+n6Tb/zDeeGe/SoNZsIZCwjjKdch9F kPhXD4H7aX2f4vI6bf+2AIckr4w+aZx1ywJ0Wsr5eRR+L7Lfg/XC16n2PylTiVjt9iQd pTCw== X-Gm-Message-State: AOJu0YylSHEV63H78K2vbCQsr9TYSdD3XdpvifE81x2V2OuYHyR5pc6I 9ggOQS+WqTpN2BnUt/lkgjYU24jmJ7JCWg== X-Google-Smtp-Source: AGHT+IH0WwLrNavrS/79FhBcOaLYk7b2rMWr6TR7HM0RH4WFWuMY3H7ZAGknoIZmGQjWWMNVcX+XNw== X-Received: by 2002:a19:f015:0:b0:507:a8cd:6c90 with SMTP id p21-20020a19f015000000b00507a8cd6c90mr3963573lfc.51.1697633738912; Wed, 18 Oct 2023 05:55:38 -0700 (PDT) Received: from localhost.localdomain ([188.68.131.75]) by smtp.gmail.com with ESMTPSA id bp41-20020a05651215a900b004f86d3e52c0sm688546lfb.4.2023.10.18.05.55.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 05:55:38 -0700 (PDT) From: Nigko Yerden To: 64345@debbugs.gnu.org Subject: [PATCH v3] gnu: Add reduce-csl. Date: Wed, 18 Oct 2023 17:54:03 +0500 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Debbugs-Cc: Andreas Enge , Efraim Flashner , Eric Bavier Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 64345 Cc: Nigko Yerden X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/maths.scm (reduce-csl): New variable. --- This patch introduces Reduce, a general purpose computer algebra system similar to Maxima. The package is built successfully on x86_64_linux (natively), armhf-linux and aarch64-linux (via 'guix build --system=...' command) architectures. Reduce became build-reproducible since the upstream revision 6601, but the current "stable" snapshot 6547 is not reproducible. The source code contains bundled fox and editline libraries as well as their adjustments, which are difficult to remove. Also it contains libffi (can be replaced by libffi from guix repo), crlibm and softfloat (currently are not present in guix repo) libraries. gnu/packages/maths.scm | 107 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 683acd96e1..89127c9e0e 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -62,6 +62,7 @@ ;;; Copyright © 2023 Jake Leporte ;;; Copyright © 2023 Camilo Q.S. (Distopico) ;;; Copyright © 2023 David Elsing +;;; Copyright © 2023 Nigko Yerden ;;; ;;; This file is part of GNU Guix. ;;; @@ -4761,6 +4762,112 @@ (define-public wxmaxima full text searching.") (license license:gpl2+))) +(define-public reduce-csl + (package + (name "reduce-csl") + (version "6547") + (source (origin + (method url-fetch) + (uri (string-append + "mirror://sourceforge/reduce-algebra/snapshot_" + "2023-03-08" "/Reduce-svn" version "-src.tar.gz")) + (sha256 + (base32 + "1a559s4ff5askifyha6fi8qvxjkya1n3ziypig2rgi6q62nbx418")) + (modules '((guix build utils))) + ;; remove binaries and unnecessary parts + ;; to ensure we build from source files only + (snippet '(map delete-file-recursively + (append (find-files "csl/generated-c" "\\.img$") + '("psl" "vsl" + "jlisp" + "jslisp" + "libedit" + "macbuild" + "MacPorts" + "mac-universal" + "reduce2" + "winbuild64" + "common-lisp" + "contrib" + "generic/qreduce" + "web/htdocs/images/Thumbs.db") + (find-files "csl" + "^(embedded|new-embedded|winbuild|support-packages)$" + #:directories? #t) + (find-files "libraries" + "^(original|wineditline|libffi-for-mac)$" + #:directories? #t)))))) + (build-system gnu-build-system) + (arguments + (list #:tests? #f + #:configure-flags + #~(list "--without-autogen" + ;; fix conflict with internal build name determination + "--build=" "--with-csl" + (string-append "CXXFLAGS=-I" + #$freetype + "/include/freetype2")) + #:make-flags #~(list "csl") + #:phases #~(modify-phases %standard-phases + (add-before 'patch-source-shebangs 'autogen + (lambda _ + (invoke "sh" "autogen.sh"))) + (add-after 'install 'fix-install + (lambda _ + (delete-file-recursively (string-append #$output + "/man")) + (delete-file (string-append #$output "/share/man")) + (copy-file "bin/rfcsl" + (string-append #$output "/bin/rfcsl")) + (let ((.desktop-file + "debianbuild/reduce/debian/redcsl.desktop") + (icon "debianbuild/reduce/debian/reduce.png")) + (substitute* .desktop-file + (("Exec=/.*/(redcsl[ \t]+.*)" _ exec) + (string-append "Exec=" exec))) + (install-file .desktop-file + (string-append #$output + "/share/applications")) + (install-file icon + (string-append #$output + "/share/icons/hicolor/32x32/apps"))) + (rename-file "generic/newfront/redfront.1" + "generic/newfront/rfcsl.1") + (map (lambda (file) + (invoke "gzip" file) + (install-file (string-append file ".gz") + (string-append #$output + "/share/man/man1"))) + '("csl/cslbase/redcsl.1" + "generic/newfront/rfcsl.1")) + (with-directory-excursion #$output + (map (lambda (dir) + (map (lambda (file) + (chmod file #o444)) + (find-files dir))) + '("share/man/man1" "share/doc/reduce" + "share/reduce/fonts")))))))) + (native-inputs (list which autoconf automake libtool)) + (inputs + ;; bundled libraries: fox (adjusted) editline (adjusted) + ;; libffi crlibm softfloat + (list ncurses freetype libxft libx11 libxext)) + (synopsis "Portable general-purpose computer algebra system") + (description + "REDUCE is a portable general-purpose computer algebra system. It is a +system for doing scalar, vector and matrix algebra by computer, which also +supports arbitrary precision numerical approximation and interfaces to gnuplot +to provide graphics. It can be used interactively for simple calculations but +also provides a full programming language, with a syntax similar to other +modern programming languages. REDUCE supports alternative user interfaces +including Run-REDUCE, TeXmacs and GNU Emacs. This package provides Codemist +Standard Lisp (CSL) version of REDUCE. It uses gnuplot program, if installed, +to make figures.") + (home-page "https://reduce-algebra.sourceforge.io/") + (license (license:non-copyleft "file://README" + "See README in the deistribution.")))) + (define-public armadillo (package (name "armadillo") base-commit: 1076f32111e512ed437f135c9eb6ce2daaafd623 -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 05 09:57:22 2025 Received: (at 64345-done) by debbugs.gnu.org; 5 Feb 2025 14:57:22 +0000 Received: from localhost ([127.0.0.1]:51808 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tfgqA-0007I0-Ce for submit@debbugs.gnu.org; Wed, 05 Feb 2025 09:57:22 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:35064) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tfgq7-0007Hp-CU for 64345-done@debbugs.gnu.org; Wed, 05 Feb 2025 09:57:20 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 7175424D; Wed, 5 Feb 2025 15:57:12 +0100 (CET) Authentication-Results: hera.aquilenet.fr; none X-Virus-Scanned: Debian amavis at hera.aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavis, port 10024) with ESMTP id 4nTunu6Fvr6B; Wed, 5 Feb 2025 15:57:12 +0100 (CET) Received: from jurong (176-179-191-150.abo.bbox.fr [176.179.191.150]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 9407A20B; Wed, 5 Feb 2025 15:57:11 +0100 (CET) Date: Wed, 5 Feb 2025 15:57:09 +0100 From: Andreas Enge To: 64345-done@debbugs.gnu.org Subject: Close Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Level: ******** X-Rspamd-Action: add header X-Rspamd-Server: hera X-Rspamd-Queue-Id: 7175424D X-Spamd-Bar: ++++++++ X-Spamd-Result: default: False [8.38 / 15.00]; SPAM_FLAG(5.00)[]; NEURAL_SPAM(2.98)[0.994]; MID_RHS_NOT_FQDN(0.50)[]; MIME_GOOD(-0.10)[text/plain]; BAYES_HAM(-0.00)[20.41%]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; ARC_NA(0.00)[] X-Spam: Yes X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 64345-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, this seems to be a duplicate of #66606, so I will close this issue in favour of the latter. Andreas From unknown Mon Jun 23 22:03:27 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 06 Mar 2025 12:24:13 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator