unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#18221: Source of mit-scheme
@ 2014-08-08  7:47 Andreas Enge
  2014-08-13 19:22 ` Mark H Weaver
  2019-02-19 22:50 ` bug#18221: Close Andreas Enge
  0 siblings, 2 replies; 11+ messages in thread
From: Andreas Enge @ 2014-08-08  7:47 UTC (permalink / raw)
  To: 18221

Hello,

mit-scheme fails to build on mips64el-linux, because specific source is not
downloaded for this system. Furthermore, I wonder if in the corresponding
lines
  (match (%current-system)
    ("x86_64-linux" "x86-64")
    ("i686-linux" "i386")
    (_ "c"))
one need not also check for the target system in the usual manner.
Here the "c" should be the empty string, I think, and the preceding "-"
should be included into "x86-64" and "i386".

As the source field is set to #f, the command
  guix build mit-scheme -S
fails with a confusing error message.

Is all this worth it, or should we not revert to a generic build recipe?

Andreas

^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#18221: Source of mit-scheme
  2014-08-08  7:47 bug#18221: Source of mit-scheme Andreas Enge
@ 2014-08-13 19:22 ` Mark H Weaver
  2014-08-13 21:04   ` Andreas Enge
  2014-08-17 15:06   ` Ludovic Courtès
  2019-02-19 22:50 ` bug#18221: Close Andreas Enge
  1 sibling, 2 replies; 11+ messages in thread
From: Mark H Weaver @ 2014-08-13 19:22 UTC (permalink / raw)
  To: Andreas Enge; +Cc: 18221

Andreas Enge <andreas@enge.fr> writes:

> Hello,
>
> mit-scheme fails to build on mips64el-linux, because specific source is not
> downloaded for this system. Furthermore, I wonder if in the corresponding
> lines
>   (match (%current-system)
>     ("x86_64-linux" "x86-64")
>     ("i686-linux" "i386")
>     (_ "c"))
> one need not also check for the target system in the usual manner.
> Here the "c" should be the empty string, I think, and the preceding "-"
> should be included into "x86-64" and "i386".

I'm not sure I understand what you're suggesting.

The problem here is that the "c" belongs in a different place in the
filename than where the "i386" or "x86-64" goes.  The filenames are:

  mit-scheme-9.2-i386.tar.gz
  mit-scheme-9.2-x86-64.tar.gz
  mit-scheme-c-9.2.tar.gz

So I guess we need something like this (untested):

  (uri (string-append "mirror://gnu/mit-scheme/stable.pkg/"
                      version "/mit-scheme-"
                      (match (%current-system)
                        ("x86_64-linux"
                         (string-append version "-x86-64"))
                        ("i686-linux"
                         (string-append version "-i386"))
                        (_
                         (string-append "c-" version)))
                      ".tar.gz"))

    Thanks,
      Mark

^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#18221: Source of mit-scheme
  2014-08-13 19:22 ` Mark H Weaver
@ 2014-08-13 21:04   ` Andreas Enge
  2014-08-14  1:50     ` mhw
  2014-08-17 15:06   ` Ludovic Courtès
  1 sibling, 1 reply; 11+ messages in thread
From: Andreas Enge @ 2014-08-13 21:04 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: 18221

On Wed, Aug 13, 2014 at 03:22:28PM -0400, Mark H Weaver wrote:
> The problem here is that the "c" belongs in a different place in the
> filename than where the "i386" or "x86-64" goes.  The filenames are:
>   mit-scheme-9.2-i386.tar.gz
>   mit-scheme-9.2-x86-64.tar.gz
>   mit-scheme-c-9.2.tar.gz

There is also mit-scheme-9.2.tar.gz; I thought this would need to be taken
on other systems. But maybe this is the non-boot-strappable source code?

Second, do we not need to replace
   %current-system
by
   (or (%current-target-system)(%current-system))
?

Andreas

^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#18221: Source of mit-scheme
  2014-08-13 21:04   ` Andreas Enge
@ 2014-08-14  1:50     ` mhw
  0 siblings, 0 replies; 11+ messages in thread
From: mhw @ 2014-08-14  1:50 UTC (permalink / raw)
  To: Andreas Enge; +Cc: 18221

Andreas Enge <andreas@enge.fr> writes:

> On Wed, Aug 13, 2014 at 03:22:28PM -0400, Mark H Weaver wrote:
>> The problem here is that the "c" belongs in a different place in the
>> filename than where the "i386" or "x86-64" goes.  The filenames are:
>>   mit-scheme-9.2-i386.tar.gz
>>   mit-scheme-9.2-x86-64.tar.gz
>>   mit-scheme-c-9.2.tar.gz
>
> There is also mit-scheme-9.2.tar.gz; I thought this would need to be taken
> on other systems. But maybe this is the non-boot-strappable source code?

Yes, I believe mit-scheme-9.2.tar.gz can only be built if you already
have an executable copy of mit-scheme with which to build it.

> Second, do we not need to replace
>    %current-system
> by
>    (or (%current-target-system)(%current-system))

Hmm, this would be needed to support cross-compilation for typical
packages, but I suspect that the process is quite a bit different for
mit-scheme.  I'd be very surprised if it was that simple.

For now, I suggest that we focus on getting mit-scheme working on mips
with native compilation.  Later, if someone is motivated, they can look
into what's needed to cross-compile mit-scheme.

      Thanks!
        Mark

^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#18221: Source of mit-scheme
  2014-08-13 19:22 ` Mark H Weaver
  2014-08-13 21:04   ` Andreas Enge
@ 2014-08-17 15:06   ` Ludovic Courtès
  2014-09-27 18:09     ` Andreas Enge
  1 sibling, 1 reply; 11+ messages in thread
From: Ludovic Courtès @ 2014-08-17 15:06 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: 18221

Mark H Weaver <mhw@netris.org> skribis:

> The problem here is that the "c" belongs in a different place in the
> filename than where the "i386" or "x86-64" goes.  The filenames are:
>
>   mit-scheme-9.2-i386.tar.gz
>   mit-scheme-9.2-x86-64.tar.gz
>   mit-scheme-c-9.2.tar.gz
>
> So I guess we need something like this (untested):
>
>   (uri (string-append "mirror://gnu/mit-scheme/stable.pkg/"
>                       version "/mit-scheme-"
>                       (match (%current-system)
>                         ("x86_64-linux"
>                          (string-append version "-x86-64"))
>                         ("i686-linux"
>                          (string-append version "-i386"))
>                         (_
>                          (string-append "c-" version)))
>                       ".tar.gz"))

Yes, I think that’s what’s needed, so OK to commit.

(And yes, I agree it’s fine to ignore cross-compilation for now.)

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#18221: Source of mit-scheme
  2014-08-17 15:06   ` Ludovic Courtès
@ 2014-09-27 18:09     ` Andreas Enge
  2014-09-27 18:51       ` Ludovic Courtès
  2014-09-27 19:42       ` Mark H Weaver
  0 siblings, 2 replies; 11+ messages in thread
From: Andreas Enge @ 2014-09-27 18:09 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 18221

On Sun, Aug 17, 2014 at 05:06:07PM +0200, Ludovic Courtès wrote:
> Yes, I think that’s what’s needed, so OK to commit.

Done with commit 68dddca. However, on mips64el we are now in the case that
the binaries are not precompiled, so one would need to bootstrap.

Andreas

^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#18221: Source of mit-scheme
  2014-09-27 18:09     ` Andreas Enge
@ 2014-09-27 18:51       ` Ludovic Courtès
  2014-09-27 19:42       ` Mark H Weaver
  1 sibling, 0 replies; 11+ messages in thread
From: Ludovic Courtès @ 2014-09-27 18:51 UTC (permalink / raw)
  To: Andreas Enge; +Cc: 18221

Andreas Enge <andreas@enge.fr> skribis:

> On Sun, Aug 17, 2014 at 05:06:07PM +0200, Ludovic Courtès wrote:
>> Yes, I think that’s what’s needed, so OK to commit.
>
> Done with commit 68dddca.

Cool.  :-)

> However, on mips64el we are now in the case that the binaries are not
> precompiled, so one would need to bootstrap.

Could be that we’re not doing it right, I don’t know.

I did try to build from the C source a while back, FWIW:

  http://savannah.gnu.org/bugs/?func=detailitem&item_id=29236

Ludo’.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#18221: Source of mit-scheme
  2014-09-27 18:09     ` Andreas Enge
  2014-09-27 18:51       ` Ludovic Courtès
@ 2014-09-27 19:42       ` Mark H Weaver
  2014-09-27 21:05         ` Andreas Enge
  2014-09-27 22:03         ` Ludovic Courtès
  1 sibling, 2 replies; 11+ messages in thread
From: Mark H Weaver @ 2014-09-27 19:42 UTC (permalink / raw)
  To: Andreas Enge; +Cc: 18221

Andreas Enge <andreas@enge.fr> writes:

> On Sun, Aug 17, 2014 at 05:06:07PM +0200, Ludovic Courtès wrote:
>> Yes, I think that’s what’s needed, so OK to commit.
>
> Done with commit 68dddca.

That commit adds a top-level procedure 'source-directory' that is
specific to mit-scheme.  If it's kept at the top-level, it should
probably be renamed to something like 'mit-scheme-source-directory'.

Also, it would be good to line up the two calls to 'string-prefix?'.

    Thanks!
      Mark

^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#18221: Source of mit-scheme
  2014-09-27 19:42       ` Mark H Weaver
@ 2014-09-27 21:05         ` Andreas Enge
  2014-09-27 22:03         ` Ludovic Courtès
  1 sibling, 0 replies; 11+ messages in thread
From: Andreas Enge @ 2014-09-27 21:05 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: 18221

On Sat, Sep 27, 2014 at 03:42:54PM -0400, Mark H Weaver wrote:
> That commit adds a top-level procedure 'source-directory' that is
> specific to mit-scheme.  If it's kept at the top-level, it should
> probably be renamed to something like 'mit-scheme-source-directory'.
> 
> Also, it would be good to line up the two calls to 'string-prefix?'.

Sorry! Are you interested in looking more into how to make it compile on mips?
In that case you might do the changes at the same time. Otherwise, I will make
a separate commit to clean this up.

Andreas

^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#18221: Source of mit-scheme
  2014-09-27 19:42       ` Mark H Weaver
  2014-09-27 21:05         ` Andreas Enge
@ 2014-09-27 22:03         ` Ludovic Courtès
  1 sibling, 0 replies; 11+ messages in thread
From: Ludovic Courtès @ 2014-09-27 22:03 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: 18221

Mark H Weaver <mhw@netris.org> skribis:

> That commit adds a top-level procedure 'source-directory' that is
> specific to mit-scheme.  If it's kept at the top-level, it should
> probably be renamed to something like 'mit-scheme-source-directory'.
>
> Also, it would be good to line up the two calls to 'string-prefix?'.

Done.  :-)

Ludo’.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#18221: Close
  2014-08-08  7:47 bug#18221: Source of mit-scheme Andreas Enge
  2014-08-13 19:22 ` Mark H Weaver
@ 2019-02-19 22:50 ` Andreas Enge
  1 sibling, 0 replies; 11+ messages in thread
From: Andreas Enge @ 2019-02-19 22:50 UTC (permalink / raw)
  To: 18221-done

The bug stricto sensu has been fixed by a "supported systems" clause.
Since in more than 4 years nobody seems to have missed the package on
other architectures, I am closing the bug for now.

Andreas

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2019-02-19 22:51 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-08  7:47 bug#18221: Source of mit-scheme Andreas Enge
2014-08-13 19:22 ` Mark H Weaver
2014-08-13 21:04   ` Andreas Enge
2014-08-14  1:50     ` mhw
2014-08-17 15:06   ` Ludovic Courtès
2014-09-27 18:09     ` Andreas Enge
2014-09-27 18:51       ` Ludovic Courtès
2014-09-27 19:42       ` Mark H Weaver
2014-09-27 21:05         ` Andreas Enge
2014-09-27 22:03         ` Ludovic Courtès
2019-02-19 22:50 ` bug#18221: Close Andreas Enge

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).