octave needs to be wrapped with coreutils

  • Open
  • quality assurance status badge
Details
3 participants
  • Efraim Flashner
  • Ludovic Courtès
  • Arseniy Zaostrovnykh
Owner
unassigned
Submitted by
Efraim Flashner
Severity
normal
E
E
Efraim Flashner wrote on 16 Mar 2021 12:46
(address . bug-guix@gnu.org)
YFCaoi6G2h+Za8VG@3900XT
I tracked down a bug where octave has a function called 'copyfile' which
shells out to call 'cp -r' but in an environment without coreutils, or
when in a script with PATH unset, it fails.

try it out with the following:
touch foo
guix environment --pure --ad-hoc octave-cli -- \
octave --eval 'copyfile("foo","bar");'

--
Efraim Flashner <efraim@flashner.co.il> ????? ?????
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmBQmp8ACgkQQarn3Mo9
g1EZ+BAAr0wNo5AsjZvwfZHOJPScvUERMfarbp5g4meL4gK8dnfcZ3/iyYdXePmh
Dmsvv8303+9xIPS2TQEhMyq6jKHp3g01RPCTb9mLZfwaFZZY2O/ZOEH++ShZi3vL
K6YKWgDBPfsLpgUp77vjwVBh2WKziemAOUynGPltkH6wfprr+gTJTwLLE+lGtsP8
fIw6vkTueROsgjeP3cn6PdaLJXc6vRIjOP4Ne1F0LEw8Q8zIqvFU7mLS82bC/bF+
QzYHstlzVvWP5j1BUI6xhm/gIwGV1n1pzpbZZBOu5yyS1nK14WwkUJPOO+3VBeIF
0VpEg5lvUXWynr8ekuxktB34plB8rVHMSqR6S0YDyn7ruW43STlKK7YO7lYwIDxx
Lp9+TrEIEU6jpsFRrwII407D4eKa1asDWJIiMB0HxrAklpJveeF/mIRoGDYnpfgL
aaLhCz6Z171eUeljfHQoj9qUTWAFShvOP0T+GPY5G4nHOdjmuflerhF79isfe8Pc
YB3U4SAnQbgTQT9v9EPBmYiDIwHZena2BAKP/QTqgWhU0WD2yPbc4imOE9O8d2uF
SEjC1DvEvxmsxXT2/e6D36OMLtCcSgr4BlrXeIDq4F4Gx1+0Gn56vTNQLE0Fxuj6
mVYr3rnH2Hq5E6zZXbciQ70Rx4mdLraVDNJAaWvvgLuc5RnRVOw=
=6PPC
-----END PGP SIGNATURE-----


L
L
Ludovic Courtès wrote on 18 Mar 2021 21:43
control message for bug #47189
(address . control@debbugs.gnu.org)
87h7l8kxad.fsf@gnu.org
tags 47189 + easy
quit
A
A
Arseniy Zaostrovnykh wrote on 24 Sep 06:53 +0200
octave needs to be wrapped with coreutils
(address . 47189@debbugs.gnu.org)
CANy7P7QEKFigfAv7SH=ETKb4GsuzvC7XncNER=3mimB6=CEkaw@mail.gmail.com
Hello!
I am about to send my first ever patch that fixes this easy issue. Please
let me know if it is the wrong channel, or I messed up the patch through my
gmail client.

--
Arseniy (a.k.a. Necto)
Attachment: file
A
A
Arseniy Zaostrovnykh wrote on 24 Sep 06:56 +0200
[PATCH] gnu: octave-cli: Make coreutils an explicit input
(address . 47189@debbugs.gnu.org)
CANy7P7SGF=Em_X5whJ=oGxeK0BhPyXfFMgYowXq8oOMxpJqisQ@mail.gmail.com
This ensures coreutils like `cp` are available when running octave,
which is assumed by some of its builtin functions.
Resolves 47189

* gnu/packages/maths.scm(octave-cli): make coreutils input explicit
---
gnu/packages/maths.scm | 1 +
1 file changed, 1 insertion(+)

Toggle diff (15 lines)
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 5f47d5e390..8821a42712 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -3055,6 +3055,7 @@ (define-public octave-cli
(list alsa-lib
arpack-ng
bdb
+ coreutils ;; mention explicitly to make available for the built
octave
curl
fftw
fftwf
--
2.46.0
Attachment: file
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 47189@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 47189
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch