GNU bug report logs -
#26222
[PATCH] gnu: freedoom: Avoid the need to propagate prboom-plus.
Previous Next
Reported by: Kei Kebreau <kei <at> openmailbox.org>
Date: Thu, 23 Mar 2017 02:37:02 UTC
Severity: normal
Tags: patch
Done: Kei Kebreau <kei <at> openmailbox.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 26222 in the body.
You can then email your comments to 26222 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#26222
; Package
guix-patches
.
(Thu, 23 Mar 2017 02:37:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Kei Kebreau <kei <at> openmailbox.org>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Thu, 23 Mar 2017 02:37:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/games.scm (freedoom)[arguments]: Substitute shell
variable assignment in start script for a direct engine launch.
---
gnu/packages/games.scm | 19 ++++++++++++-------
1 file changed, 12 insertions(+), 7 deletions(-)
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 67fcb7b49..401ba4444 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -162,14 +162,19 @@
(("freedoom2.png")
"-define png:exclude-chunks=date freedoom2.png"))
;; Make sure that the install scripts know where to find
- ;; the appropriate WAD files.
+ ;; the appropriate WAD files and Doom engine.
+ ;; Do this by turning a shell variable assignment into a
+ ;; direct engine launch and exit.
(substitute* "dist/freedoom"
- (("IWAD=freedm.wad")
- (string-append "IWAD=" wad-dir "/freedm.wad"))
- (("IWAD=freedoom1.wad")
- (string-append "IWAD=" wad-dir "/freedoom1.wad"))
- (("IWAD=freedoom2.wad")
- (string-append "IWAD=" wad-dir "/freedoom2.wad")))
+ (("IWAD=")
+ (string-append (assoc-ref inputs "prboom-plus")
+ "/bin/prboom-plus -iwad "))
+ (("freedm.wad")
+ (string-append wad-dir "/freedm.wad \"$@\"; exit $?"))
+ (("freedoom1.wad")
+ (string-append wad-dir "/freedoom1.wad \"$@\"; exit $?"))
+ (("freedoom2.wad")
+ (string-append wad-dir "/freedoom2.wad \"$@\"; exit $?")))
#t))))))
(native-inputs
`(("asciidoc" ,asciidoc)
--
2.12.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26222
; Package
guix-patches
.
(Thu, 23 Mar 2017 17:50:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 26222 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Kei Kebreau <kei <at> openmailbox.org> writes:
> * gnu/packages/games.scm (freedoom)[arguments]: Substitute shell
> variable assignment in start script for a direct engine launch.
> ---
> gnu/packages/games.scm | 19 ++++++++++++-------
> 1 file changed, 12 insertions(+), 7 deletions(-)
>
> diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
> index 67fcb7b49..401ba4444 100644
> --- a/gnu/packages/games.scm
> +++ b/gnu/packages/games.scm
> @@ -162,14 +162,19 @@
> (("freedoom2.png")
> "-define png:exclude-chunks=date freedoom2.png"))
> ;; Make sure that the install scripts know where to find
> - ;; the appropriate WAD files.
> + ;; the appropriate WAD files and Doom engine.
> + ;; Do this by turning a shell variable assignment into a
> + ;; direct engine launch and exit.
> (substitute* "dist/freedoom"
> - (("IWAD=freedm.wad")
> - (string-append "IWAD=" wad-dir "/freedm.wad"))
> - (("IWAD=freedoom1.wad")
> - (string-append "IWAD=" wad-dir "/freedoom1.wad"))
> - (("IWAD=freedoom2.wad")
> - (string-append "IWAD=" wad-dir "/freedoom2.wad")))
> + (("IWAD=")
> + (string-append (assoc-ref inputs "prboom-plus")
> + "/bin/prboom-plus -iwad "))
> + (("freedm.wad")
> + (string-append wad-dir "/freedm.wad \"$@\"; exit $?"))
> + (("freedoom1.wad")
> + (string-append wad-dir "/freedoom1.wad \"$@\"; exit $?"))
> + (("freedoom2.wad")
> + (string-append wad-dir "/freedoom2.wad \"$@\"; exit $?")))
From reading the "dist/freedoom" shell script, it looks like it tries
prboom-plus automatically if it exists in PATH. Does this not work? It
also tries a bunch of other engines, so I don't think we should hard
code one.
> #t))))))
> (native-inputs
> `(("asciidoc" ,asciidoc)
> --
> 2.12.0
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26222
; Package
guix-patches
.
(Fri, 24 Mar 2017 02:47:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 26222 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Marius Bakke <mbakke <at> fastmail.com> writes:
> Kei Kebreau <kei <at> openmailbox.org> writes:
>
>> * gnu/packages/games.scm (freedoom)[arguments]: Substitute shell
>> variable assignment in start script for a direct engine launch.
>> ---
>> gnu/packages/games.scm | 19 ++++++++++++-------
>> 1 file changed, 12 insertions(+), 7 deletions(-)
>>
>> diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
>> index 67fcb7b49..401ba4444 100644
>> --- a/gnu/packages/games.scm
>> +++ b/gnu/packages/games.scm
>> @@ -162,14 +162,19 @@
>> (("freedoom2.png")
>> "-define png:exclude-chunks=date freedoom2.png"))
>> ;; Make sure that the install scripts know where to find
>> - ;; the appropriate WAD files.
>> + ;; the appropriate WAD files and Doom engine.
>> + ;; Do this by turning a shell variable assignment into a
>> + ;; direct engine launch and exit.
>> (substitute* "dist/freedoom"
>> - (("IWAD=freedm.wad")
>> - (string-append "IWAD=" wad-dir "/freedm.wad"))
>> - (("IWAD=freedoom1.wad")
>> - (string-append "IWAD=" wad-dir "/freedoom1.wad"))
>> - (("IWAD=freedoom2.wad")
>> - (string-append "IWAD=" wad-dir "/freedoom2.wad")))
>> + (("IWAD=")
>> + (string-append (assoc-ref inputs "prboom-plus")
>> + "/bin/prboom-plus -iwad "))
>> + (("freedm.wad")
>> + (string-append wad-dir "/freedm.wad \"$@\"; exit $?"))
>> + (("freedoom1.wad")
>> + (string-append wad-dir "/freedoom1.wad \"$@\"; exit $?"))
>> + (("freedoom2.wad")
>> + (string-append wad-dir "/freedoom2.wad \"$@\"; exit $?")))
>
> From reading the "dist/freedoom" shell script, it looks like it tries
> prboom-plus automatically if it exists in PATH. Does this not work? It
> also tries a bunch of other engines, so I don't think we should hard
> code one.
>
In that case, we could instead leave the package as is and have users
install prboom-plus (or future engines when they are packaged)
manually. Freedoom's package description already mentions that it needs
a compatible engine to run. If you think that's enough for a casual user
to notice, I'm fine with dropping the patch.
>> #t))))))
>> (native-inputs
>> `(("asciidoc" ,asciidoc)
>> --
>> 2.12.0
[signature.asc (application/pgp-signature, inline)]
Reply sent
to
Kei Kebreau <kei <at> openmailbox.org>
:
You have taken responsibility.
(Sat, 01 Apr 2017 23:20:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Kei Kebreau <kei <at> openmailbox.org>
:
bug acknowledged by developer.
(Sat, 01 Apr 2017 23:20:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 26222-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Kei Kebreau <kei <at> openmailbox.org> writes:
> Marius Bakke <mbakke <at> fastmail.com> writes:
>
>> Kei Kebreau <kei <at> openmailbox.org> writes:
>>
>> From reading the "dist/freedoom" shell script, it looks like it tries
>> prboom-plus automatically if it exists in PATH. Does this not work? It
>> also tries a bunch of other engines, so I don't think we should hard
>> code one.
>>
>
> In that case, we could instead leave the package as is and have users
> install prboom-plus (or future engines when they are packaged)
> manually. Freedoom's package description already mentions that it needs
> a compatible engine to run. If you think that's enough for a casual user
> to notice, I'm fine with dropping the patch.
>
I've decided against this patch, as we may have other Doom engines
available in the future. Thank you for your time, Marius.
[signature.asc (application/pgp-signature, inline)]
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 30 Apr 2017 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 6 years and 356 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.