GNU bug report logs -
#65857
[PATCH v2 2/2] gnu: scilab: Set SCIHOME default to respect XDG base dirs.
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 65857 in the body.
You can then email your comments to 65857 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
andreas <at> enge.fr, efraim <at> flashner.co.il, bavier <at> posteo.net, guix-patches <at> gnu.org
:
bug#65857
; Package
guix-patches
.
(Sun, 10 Sep 2023 17:45:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Nicolas Graves <ngraves <at> ngraves.fr>
:
New bug report received and forwarded. Copy sent to
andreas <at> enge.fr, efraim <at> flashner.co.il, bavier <at> posteo.net, guix-patches <at> gnu.org
.
(Sun, 10 Sep 2023 17:45:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/maths.scm (scilab): Set SCIHOME default to respect XDG base dirs.
[arguments](phases): Add phase respect-xdg-base-dirs.
---
gnu/packages/maths.scm | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 900a9f0fac..8162ab95d1 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -8553,7 +8553,14 @@ (define-public scilab
"/bin/dirname"))
(("basename")
#$(file-append (this-package-input "coreutils")
- "/bin/basename"))))))))
+ "/bin/basename")))))
+ (add-after 'hardcode-script-inputs 'respect-xdg-base-dirs
+ (lambda _
+ (substitute* (string-append #$output "/bin/scilab")
+ (("IS_SCILAB_BINARY=0" all)
+ (string-append all
+ "\n[ -n \"$SCIHOME\" ] &&\
+ SCIHOME=\"${XDG_STATE_HOME}/scilab\""))))))))
(home-page "https://scilab.org")
(synopsis "Software for engineers and scientists")
(description "This package provides the non-graphical version of the Scilab
--
2.41.0
Merged 65853 65856 65857.
Request was from
Nicolas Graves <ngraves <at> ngraves.fr>
to
control <at> debbugs.gnu.org
.
(Sun, 10 Sep 2023 17:50:01 GMT)
Full text and
rfc822 format available.
Information forwarded
to
andreas <at> enge.fr, efraim <at> flashner.co.il, bavier <at> posteo.net, guix-patches <at> gnu.org
:
bug#65857
; Package
guix-patches
.
(Thu, 28 Sep 2023 19:06:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 65857 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/maths.scm (scilab): Set SCIHOME default to respect XDG base dirs.
[arguments](phases): Add phase respect-xdg-base-dirs.
---
gnu/packages/maths.scm | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index f7e1de41f3..580d98417c 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -8533,7 +8533,14 @@ (define-public scilab
(("dirname")
(search-inputs-file #$inputs "/bin/dirname"))
(("basename")
- (search-inputs-file #$inputs "/bin/basename"))))))))
+ (search-inputs-file #$inputs "/bin/basename")))))
+ (add-after 'hardcode-script-inputs 'respect-xdg-base-dirs
+ (lambda _
+ (substitute* (string-append #$output "/bin/scilab")
+ (("IS_SCILAB_BINARY=0" all)
+ (string-append all
+ "\n[ -n \"$SCIHOME\" ] &&\
+ SCIHOME=\"${XDG_STATE_HOME:$HOME/.local/state}/scilab\""))))))))
(home-page "https://scilab.org")
(synopsis "Software for engineers and scientists")
(description "This package provides the non-graphical version of the Scilab
base-commit: f9784991eb6c7ec1a20f76d080873a3319be0908
prerequisite-patch-id: 5ec00d550739652cba67dc8663fbde73ff268491
--
2.41.0
Merged 65853 65856 65857.
Request was from
Tobias Geerinckx-Rice <me <at> tobias.gr>
to
control <at> debbugs.gnu.org
.
(Thu, 28 Sep 2023 19:13:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#65857
; Package
guix-patches
.
(Thu, 05 Oct 2023 14:52:01 GMT)
Full text and
rfc822 format available.
Message #15 received at 65857 <at> debbugs.gnu.org (full text, mbox):
Hi,
Nicolas Graves <ngraves <at> ngraves.fr> skribis:
> + (add-after 'install 'hardcode-script-inputs
> + (lambda _
> + (substitute* (string-append #$output "/bin/scilab")
> + (("grep")
> + (search-inputs-file #$inputs "/bin/grep"))
I’ll contradict Efraim, but hopefully they’ll pardon me: I’d write it
like so:
(lambda* (#:key inputs #:allow-other-keys)
(substitute* …
(("grep")
(search-input-file inputs "/bin/grep"))))
That way it’ll DTRT even when creating a variant of this package.
(The code above had a typo too, with “inputs” as plural.)
Could you send one last updated patch?
Thanks,
Ludo’.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#65857
; Package
guix-patches
.
(Thu, 05 Oct 2023 15:10:02 GMT)
Full text and
rfc822 format available.
Message #18 received at 65857 <at> debbugs.gnu.org (full text, mbox):
On 2023-10-05 16:51, Ludovic Courtès wrote:
> Hi,
>
> Nicolas Graves <ngraves <at> ngraves.fr> skribis:
>
>> + (add-after 'install 'hardcode-script-inputs
>> + (lambda _
>> + (substitute* (string-append #$output "/bin/scilab")
>> + (("grep")
>> + (search-inputs-file #$inputs "/bin/grep"))
>
> I’ll contradict Efraim, but hopefully they’ll pardon me: I’d write it
> like so:
>
> (lambda* (#:key inputs #:allow-other-keys)
> (substitute* …
> (("grep")
> (search-input-file inputs "/bin/grep"))))
>
> That way it’ll DTRT even when creating a variant of this package.
>
> (The code above had a typo too, with “inputs” as plural.)
>
> Could you send one last updated patch?
Yes, it also has to be rebased now that scilab is version 2023.
>
> Thanks,
> Ludo’.
--
Best regards,
Nicolas Graves
Information forwarded
to
guix-patches <at> gnu.org
:
bug#65857
; Package
guix-patches
.
(Thu, 23 Nov 2023 10:32:03 GMT)
Full text and
rfc822 format available.
Message #21 received at 65857-done <at> debbugs.gnu.org (full text, mbox):
Hi Nicolas,
Nicolas Graves <ngraves <at> ngraves.fr> skribis:
> gnu: scilab: Remove uneeded code.
> gnu: scilab: Activate tests and disable failing tests.
> gnu: scilab: Use gexp for tcl and tk libraries.
> gnu: scilab: Add phase rewrap-scilab-cli.
> gnu: scilab: Reindent.
> gnu: scilab: Update to 2024.0.0.
> gnu: scilab: Add phase set-version.
> gnu: scilab: Set default SCIHOME value.
I added one commit log that was mostly missing and applied the whole
series. Thank you!
Ludo’.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 21 Dec 2023 12:24:11 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 139 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.