From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 10 13:44:19 2023 Received: (at submit) by debbugs.gnu.org; 10 Sep 2023 17:44:19 +0000 Received: from localhost ([127.0.0.1]:51253 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfOTr-0004ti-4x for submit@debbugs.gnu.org; Sun, 10 Sep 2023 13:44:19 -0400 Received: from lists.gnu.org ([2001:470:142::17]:58840) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfOTp-0004tO-Qm for submit@debbugs.gnu.org; Sun, 10 Sep 2023 13:44:18 -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 1qfOTd-0005uo-IQ for guix-patches@gnu.org; Sun, 10 Sep 2023 13:44:06 -0400 Received: from 6.mo560.mail-out.ovh.net ([87.98.165.38]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qfOTW-0008L5-Mw for guix-patches@gnu.org; Sun, 10 Sep 2023 13:44:05 -0400 Received: from director4.ghost.mail-out.ovh.net (unknown [10.108.16.29]) by mo560.mail-out.ovh.net (Postfix) with ESMTP id 2E178252C5 for ; Sun, 10 Sep 2023 17:43:56 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-m6bxg (unknown [10.110.115.95]) by director4.ghost.mail-out.ovh.net (Postfix) with ESMTPS id B777D1FD6F; Sun, 10 Sep 2023 17:43:55 +0000 (UTC) Received: from ngraves.fr ([37.59.142.103]) by ghost-submission-6684bf9d7b-m6bxg with ESMTPSA id UfjEKFsA/mQ4WAAADlAcgg (envelope-from ); Sun, 10 Sep 2023 17:43:55 +0000 Authentication-Results: garm.ovh; auth=pass (GARM-103G00592409fde-7c20-464e-893c-bed0e5a72146, 093A30F52D67F1E631810F39359834EEDB6571F2) smtp.auth=ngraves@ngraves.fr X-OVh-ClientIp: 176.179.132.86 From: Nicolas Graves To: guix-patches@gnu.org Subject: [PATCH v2 1/2] gnu: scilab: Fix and hardcode script inputs. Date: Sun, 10 Sep 2023 19:43:40 +0200 Message-ID: <6d38ad3f36cb03c4ae6d715edcb741b5602a2997.1694367821.git.ngraves@ngraves.fr> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Debbugs-Cc: Andreas Enge , Efraim Flashner , Eric Bavier Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 25895701456872162 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedviedrudeivddgudduhecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurhephffvvefufffkofgggfestdekredtredttdenucfhrhhomheppfhitgholhgrshcuifhrrghvvghsuceonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqeenucggtffrrghtthgvrhhnpeefheegheelffeljeehhfegfeekkedttedvvefhvddugfegheeufffftdfhudelleenucffohhmrghinhepshgtihhlrggsrdhorhhgnecukfhppeduvdejrddtrddtrddupddujeeirddujeelrddufedvrdekiedpfeejrdehledrudegvddruddtfeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomhepoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqpdhnsggprhgtphhtthhopedupdhrtghpthhtohepghhuihigqdhprghttghhvghssehgnhhurdhorhhgpdfovfetjfhoshhtpehmohehiedtpdhmohguvgepshhmthhpohhuth Received-SPF: pass client-ip=87.98.165.38; envelope-from=ngraves@ngraves.fr; helo=6.mo560.mail-out.ovh.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit Cc: ngraves@ngraves.fr 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: -0.0 (/) * gnu/packages/maths.scm (scilab): Fix script inputs. [inputs]: Reorder alphabetically. Add coreutils, grep, sed. [arguments](phases): Add phase hardcode-script-inputs. --- gnu/packages/maths.scm | 51 +++++++++++++++++++++++++++++------------- 1 file changed, 35 insertions(+), 16 deletions(-) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 38e71e18f8..900a9f0fac 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -8448,22 +8448,25 @@ (define-public scilab (base32 "0phg9pn24yw98hbh475ik84dnikf1225b2knh7qbhdbdx6fm2d57")))) (build-system gnu-build-system) (native-inputs (list pkg-config gfortran)) - (inputs (list libxml2 + (inputs (list arpack-ng + coreutils + curl + fftw + gettext-minimal + grep + hdf5-1.8 + lapack + libxml2 + libx11 + matio + openblas `(,pcre "bin") `(,pcre "out") readline - hdf5-1.8 - curl - openblas - lapack - arpack-ng - fftw - gettext-minimal + sed suitesparse-3 tcl - tk - libx11 - matio)) + tk)) (arguments `(#:tests? #f #:configure-flags @@ -8499,10 +8502,6 @@ (define-public scilab ,#~(modify-phases %standard-phases (add-before 'build 'pre-build (lambda _ - ;; Fix scilab script. - (substitute* "bin/scilab" - (("\\/bin\\/ls") - (which "ls"))) ;; Fix core.start. (substitute* "modules/core/etc/core.start" (("'SCI/modules") @@ -8534,7 +8533,27 @@ (define-public scilab (("if \\(array_size > 0\\)") "if (*array_size > 0)")) ;; Set SCIHOME to /tmp before macros compilation. - (setenv "SCIHOME" "/tmp")))))) + (setenv "SCIHOME" "/tmp"))) + (add-after 'install 'hardcode-script-inputs + (lambda _ + (substitute* (string-append #$output "/bin/scilab") + (("grep") + #$(file-append (this-package-input "grep") "/bin/grep")) + (("\\| sed") + (string-append + "| " #$(file-append (this-package-input "sed") "/bin/sed"))) + (("/bin/ls") + #$(file-append (this-package-input "coreutils") + "/bin/ls")) + (("uname") + #$(file-append (this-package-input "coreutils") + "/bin/uname")) + (("dirname") + #$(file-append (this-package-input "coreutils") + "/bin/dirname")) + (("basename") + #$(file-append (this-package-input "coreutils") + "/bin/basename")))))))) (home-page "https://scilab.org") (synopsis "Software for engineers and scientists") (description "This package provides the non-graphical version of the Scilab base-commit: 2eb6df537c36da8bf8e81ff698421f6fb1bfd1ab prerequisite-patch-id: eb618ab7b10483d917c308a38792af98baa517e2 prerequisite-patch-id: 40b6c9f09f27833367a71ec25d77afae4d2a835e prerequisite-patch-id: c12968d02d99c253f858586a86b16fa32d41f1c1 prerequisite-patch-id: 09d995d48139f8e61183d5634cda13a01cdb50f7 prerequisite-patch-id: 86baa45ec2aad977c8c8135f7613aa391155de6d prerequisite-patch-id: 3425fbbff6a603d60b4e143ea2141aabf4ddc92c prerequisite-patch-id: c373c01aab5dcba3503a97d51c62a595147a041c prerequisite-patch-id: cda857c790b88c681c4e713c5f71e40291970daf prerequisite-patch-id: 8e234d0f4d93d2aad499eec8842be3d28da98707 prerequisite-patch-id: 5f664cb2fd995a53765c5ffc19a708ac795cc0c4 prerequisite-patch-id: ed447cba9cf9b7e1a1b47aa27acb14f8f2da0a8e prerequisite-patch-id: 9f80c5bbbfb8cd3347951c4d57634e93ffa79924 prerequisite-patch-id: 1aaa9f0d466e2d6837f75844df48a98beb70ff24 prerequisite-patch-id: 34502820d8c0355b3ed2638c457084edeaba029d prerequisite-patch-id: a96258da9e78cfb9ac9893cdcdeb38b69b75f134 prerequisite-patch-id: 536470ccb53bbb5672363863c14c082ecc0d5b0a -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 10 13:49:35 2023 Received: (at control) by debbugs.gnu.org; 10 Sep 2023 17:49:35 +0000 Received: from localhost ([127.0.0.1]:51269 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfOYx-00056w-9X for submit@debbugs.gnu.org; Sun, 10 Sep 2023 13:49:35 -0400 Received: from 19.mo584.mail-out.ovh.net ([87.98.179.66]:40911) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfOYv-00056o-Fi for control@debbugs.gnu.org; Sun, 10 Sep 2023 13:49:34 -0400 Received: from director2.ghost.mail-out.ovh.net (unknown [10.108.16.222]) by mo584.mail-out.ovh.net (Postfix) with ESMTP id BBCD024D1A for ; Sun, 10 Sep 2023 17:49:28 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-t95hk (unknown [10.110.208.213]) by director2.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 7A7F71FD67 for ; Sun, 10 Sep 2023 17:49:28 +0000 (UTC) Received: from ngraves.fr ([37.59.142.110]) by ghost-submission-6684bf9d7b-t95hk with ESMTPSA id DZqJGKgB/mSsIBgAeioZ3w (envelope-from ) for ; Sun, 10 Sep 2023 17:49:28 +0000 Authentication-Results: garm.ovh; auth=pass (GARM-110S0040592c80a-0b2c-4b3f-9042-67c05eea7124, 093A30F52D67F1E631810F39359834EEDB6571F2) smtp.auth=ngraves@ngraves.fr X-OVh-ClientIp: 176.179.132.86 From: Nicolas Graves To: control@debbugs.gnu.org Subject: Date: Sun, 10 Sep 2023 19:49:27 +0200 Message-ID: <87wmwxyl3s.fsf@ngraves.fr> MIME-Version: 1.0 Content-Type: text/plain X-Ovh-Tracer-Id: 119345393912963685 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 10 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedviedrudeivddgudduiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecugfhmphhthicushhusghjvggtthculddutddmnecujfgurhephffvufffkfggtgesthdtredttddttdenucfhrhhomheppfhitgholhgrshcuifhrrghvvghsuceonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqeenucggtffrrghtthgvrhhnpeeujeelieeljeffhfelteejtdeljeehveduffelvefgudefkeehgfdvvdevgeevfeenucfkphepuddvjedrtddrtddruddpudejiedrudejledrudefvddrkeeipdefjedrheelrddugedvrdduuddtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpeeonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqedpnhgspghrtghpthhtohepuddprhgtphhtthhopegtohhnthhrohhlseguvggssghughhsrdhgnhhurdhorhhgpdfovfetjfhoshhtpehmohehkeegpdhmohguvgepshhmthhpohhuth X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: merge 65853 65856 65857 -- Best regards, Nicolas Graves Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [87.98.179.66 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [87.98.179.66 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 2.0 BLANK_SUBJECT Subject is present but empty X-Debbugs-Envelope-To: control 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 (+) merge 65853 65856 65857 -- Best regards, Nicolas Graves From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 28 15:13:00 2023 Received: (at control) by debbugs.gnu.org; 28 Sep 2023 19:13:00 +0000 Received: from localhost ([127.0.0.1]:54529 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qlwRX-00086R-OG for submit@debbugs.gnu.org; Thu, 28 Sep 2023 15:12:59 -0400 Received: from tobias.gr ([80.241.217.52]:47558) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qlwRV-00086H-AB for control@debbugs.gnu.org; Thu, 28 Sep 2023 15:12:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=+tijKfbSKwoyJ XCMejNj2IeHutw2iOXqySfmWpxEfA4=; h=to:from:date; d=tobias.gr; b=CoVE7Y GJ7HOMIgHp8Q2xKGDcrS6XmlxLrRkR5nMZR5Zdueq+So3yy1XLgUuIkdBHvkplvA3cKSiH 78Mv1MhRLwoD2zVPQ2E8HFQb1blca+eMACiyu16l9JV32taHA5e3lrud0qhpOOU41agykM B7DFWl50K9yaErswIy0i/oQngZkvGeUYtU1Qv7CJDhCbNxhwrtk9h9hA1TYoNW7vZwPlXp W9sBaKalI0YwZOkDqJucdea17qgcU88PfeUZxdEZ0K1C5eeTRFTi7Y7HuixE0yBEvs1i5d Twuqmb3+5hvl/QaxKd18P3NeYPHd7v7/iQkus5CU9tTt4qUAcQ2cgNYg== Received: by submission.tobias.gr (OpenSMTPD) with ESMTP id 11fb7089 for ; Thu, 28 Sep 2023 19:12:39 +0000 (UTC) MIME-Version: 1.0 Date: Thu, 28 Sep 2023 21:12:39 +0200 From: Tobias Geerinckx-Rice To: control@debbugs.gnu.org Message-ID: <555ae5875d161140e91feb94486ba7d6@tobias.gr> Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: merge 65857 65856 65853 Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject X-Debbugs-Envelope-To: control 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 (+) merge 65857 65856 65853 From unknown Sun Jun 22 08:08:37 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, 21 Dec 2023 12:24:11 +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