unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] gnu: Add ruby 1.8.7
@ 2014-10-26 20:31 Pjotr Prins
  2014-10-26 23:33 ` Mark H Weaver
  0 siblings, 1 reply; 15+ messages in thread
From: Pjotr Prins @ 2014-10-26 20:31 UTC (permalink / raw)
  To: Pjotr Prins; +Cc: guix-devel

    * gnu/packages/ruby.scm: Added older Ruby 1.8.7
---
 gnu/packages/ruby.scm |   27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index ac751f5..31cbe54 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -89,6 +89,33 @@ a focus on simplicity and productivity.")
     (home-page "https://ruby-lang.org")
     (license license:ruby)))
 
+(define-public ruby-1.8
+  (package (inherit ruby)
+    (name "ruby")
+    (version "1.8.7-p374")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "ftp://ftp.ruby-lang.org/pub/ruby/1.8/"
+                           name "-" version ".tar.bz2"))
+     (sha256
+      (base32
+       "1qq7khilwkayrhwmzlxk83scrmiqfi7lgsn4c63znyvz2c1lgqxl"))))
+    (arguments
+     `(#:test-target "test"
+       #:parallel-tests? #f
+       #:phases
+        (alist-cons-before
+         'configure 'replace-bin-sh
+         (lambda _
+           (substitute* '("Makefile.in"
+                          "ext/pty/pty.c"
+                          "io.c"
+                          "lib/mkmf.rb"
+                          "process.c")
+             (("/bin/sh") (which "sh"))))
+         %standard-phases)))))
+
 (define-public ruby-i18n
   (package
     (name "ruby-i18n")
-- 
1.7.10.4

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

* Re: [PATCH] gnu: Add ruby 1.8.7
  2014-10-26 20:31 [PATCH] gnu: Add ruby 1.8.7 Pjotr Prins
@ 2014-10-26 23:33 ` Mark H Weaver
  2014-10-26 23:44   ` Pjotr Prins
  2014-10-27  5:17   ` [PATCH] gnu: Add ruby 1.8.7 Pjotr Prins
  0 siblings, 2 replies; 15+ messages in thread
From: Mark H Weaver @ 2014-10-26 23:33 UTC (permalink / raw)
  To: Pjotr Prins; +Cc: guix-devel

Pjotr Prins <pjotr.public12@thebird.nl> writes:
>     * gnu/packages/ruby.scm: Added older Ruby 1.8.7

According to our conventions, this should be:

* gnu/packages/ruby.scm (ruby-1.8): New variable.

> ---
>  gnu/packages/ruby.scm |   27 +++++++++++++++++++++++++++
>  1 file changed, 27 insertions(+)
>
> diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
> index ac751f5..31cbe54 100644
> --- a/gnu/packages/ruby.scm
> +++ b/gnu/packages/ruby.scm
> @@ -89,6 +89,33 @@ a focus on simplicity and productivity.")
>      (home-page "https://ruby-lang.org")
>      (license license:ruby)))
>  
> +(define-public ruby-1.8
> +  (package (inherit ruby)
> +    (name "ruby")

Is there a reason to repeat the 'name' field here?
It should be inherited.

> +    (version "1.8.7-p374")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (string-append "ftp://ftp.ruby-lang.org/pub/ruby/1.8/"
> +                           name "-" version ".tar.bz2"))

In the ruby-2.1.3 package description, we used the http URI starting
with "http://cache.ruby-lang.org/pub/ruby/".  It's probably better to
use that one, since 'http' has some advantages and our http client is
more robust.

> +     (sha256
> +      (base32
> +       "1qq7khilwkayrhwmzlxk83scrmiqfi7lgsn4c63znyvz2c1lgqxl"))))
> +    (arguments
> +     `(#:test-target "test"
> +       #:parallel-tests? #f
> +       #:phases
> +        (alist-cons-before
> +         'configure 'replace-bin-sh
> +         (lambda _
> +           (substitute* '("Makefile.in"
> +                          "ext/pty/pty.c"
> +                          "io.c"
> +                          "lib/mkmf.rb"
> +                          "process.c")
> +             (("/bin/sh") (which "sh"))))
> +         %standard-phases)))))

It looks like the 'native-search-paths' field needs to be overridden,
since the existing one has "2.1.3" in it.

     Thanks!
       Mark

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

* Re: [PATCH] gnu: Add ruby 1.8.7
  2014-10-26 23:33 ` Mark H Weaver
@ 2014-10-26 23:44   ` Pjotr Prins
  2014-10-26 23:53     ` Pjotr Prins
  2014-10-27  1:43     ` Mark H Weaver
  2014-10-27  5:17   ` [PATCH] gnu: Add ruby 1.8.7 Pjotr Prins
  1 sibling, 2 replies; 15+ messages in thread
From: Pjotr Prins @ 2014-10-26 23:44 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: guix-devel

On Sun, Oct 26, 2014 at 07:33:51PM -0400, Mark H Weaver wrote:
> Pjotr Prins <pjotr.public12@thebird.nl> writes:
> >     * gnu/packages/ruby.scm: Added older Ruby 1.8.7
> 
> According to our conventions, this should be:
> 
> * gnu/packages/ruby.scm (ruby-1.8): New variable.

Is a new package a variable? 

We used the same message with ruby2.  Where can I find these
conventions, btw?

> > ---
> >  gnu/packages/ruby.scm |   27 +++++++++++++++++++++++++++
> >  1 file changed, 27 insertions(+)
> >
> > diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
> > index ac751f5..31cbe54 100644
> > --- a/gnu/packages/ruby.scm
> > +++ b/gnu/packages/ruby.scm
> > @@ -89,6 +89,33 @@ a focus on simplicity and productivity.")
> >      (home-page "https://ruby-lang.org")
> >      (license license:ruby)))
> >  
> > +(define-public ruby-1.8
> > +  (package (inherit ruby)
> > +    (name "ruby")
> 
> Is there a reason to repeat the 'name' field here?
> It should be inherited.

Good point. It is a remnant of trying things.

> > +    (version "1.8.7-p374")
> > +    (source
> > +     (origin
> > +       (method url-fetch)
> > +       (uri (string-append "ftp://ftp.ruby-lang.org/pub/ruby/1.8/"
> > +                           name "-" version ".tar.bz2"))
> 
> In the ruby-2.1.3 package description, we used the http URI starting
> with "http://cache.ruby-lang.org/pub/ruby/".  It's probably better to
> use that one, since 'http' has some advantages and our http client is
> more robust.

OK

> > +     (sha256
> > +      (base32
> > +       "1qq7khilwkayrhwmzlxk83scrmiqfi7lgsn4c63znyvz2c1lgqxl"))))
> > +    (arguments
> > +     `(#:test-target "test"
> > +       #:parallel-tests? #f
> > +       #:phases
> > +        (alist-cons-before
> > +         'configure 'replace-bin-sh
> > +         (lambda _
> > +           (substitute* '("Makefile.in"
> > +                          "ext/pty/pty.c"
> > +                          "io.c"
> > +                          "lib/mkmf.rb"
> > +                          "process.c")
> > +             (("/bin/sh") (which "sh"))))
> > +         %standard-phases)))))
> 
> It looks like the 'native-search-paths' field needs to be overridden,
> since the existing one has "2.1.3" in it.

I don't think it is used by 1.8.7. Does that matter?

Pj.

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

* Re: [PATCH] gnu: Add ruby 1.8.7
  2014-10-26 23:44   ` Pjotr Prins
@ 2014-10-26 23:53     ` Pjotr Prins
  2014-10-27  0:53       ` David Thompson
  2014-10-27  1:43     ` Mark H Weaver
  1 sibling, 1 reply; 15+ messages in thread
From: Pjotr Prins @ 2014-10-26 23:53 UTC (permalink / raw)
  To: Pjotr Prins; +Cc: guix-devel

On Mon, Oct 27, 2014 at 12:44:36AM +0100, Pjotr Prins wrote:
> > It looks like the 'native-search-paths' field needs to be overridden,
> > since the existing one has "2.1.3" in it.
> 
> I don't think it is used by 1.8.7. Does that matter?

How would I override it as just being empty?

Pj.

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

* Re: [PATCH] gnu: Add ruby 1.8.7
  2014-10-26 23:53     ` Pjotr Prins
@ 2014-10-27  0:53       ` David Thompson
  2014-10-27  1:44         ` Pjotr Prins
  0 siblings, 1 reply; 15+ messages in thread
From: David Thompson @ 2014-10-27  0:53 UTC (permalink / raw)
  To: Pjotr Prins; +Cc: guix-devel

Pjotr Prins <pjotr.public12@thebird.nl> writes:

> On Mon, Oct 27, 2014 at 12:44:36AM +0100, Pjotr Prins wrote:
>> > It looks like the 'native-search-paths' field needs to be overridden,
>> > since the existing one has "2.1.3" in it.
>> 
>> I don't think it is used by 1.8.7. Does that matter?
>
> How would I override it as just being empty?
>
> Pj.
>

(native-search-paths '())

Does Ruby 1.8.7 not know about GEM_PATH because rubygems was a separate
package at that time?

-- 
David Thompson
Web Developer - Free Software Foundation - http://fsf.org
GPG Key: 0FF1D807
Support the FSF: https://fsf.org/donate

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

* Re: [PATCH] gnu: Add ruby 1.8.7
  2014-10-26 23:44   ` Pjotr Prins
  2014-10-26 23:53     ` Pjotr Prins
@ 2014-10-27  1:43     ` Mark H Weaver
  2014-10-27  1:56       ` Pjotr Prins
  1 sibling, 1 reply; 15+ messages in thread
From: Mark H Weaver @ 2014-10-27  1:43 UTC (permalink / raw)
  To: Pjotr Prins; +Cc: guix-devel

Pjotr Prins <pjotr.public12@thebird.nl> writes:

> On Sun, Oct 26, 2014 at 07:33:51PM -0400, Mark H Weaver wrote:
>> Pjotr Prins <pjotr.public12@thebird.nl> writes:
>> >     * gnu/packages/ruby.scm: Added older Ruby 1.8.7
>> 
>> According to our conventions, this should be:
>> 
>> * gnu/packages/ruby.scm (ruby-1.8): New variable.
>
> Is a new package a variable? 

'ruby-1.8' is a Scheme variable that's bound to a package object.

I admit that I'm not fond of this convention -- I'd prefer "New package"
-- but it's what we've been doing, anyway.

> We used the same message with ruby2.  Where can I find these
> conventions, btw?

In broad strokes, we use the GNU changelog conventions:

  http://www.gnu.org/prep/standards/html_node/Change-Logs.html

but with some minor formatting differences.  However, the best thing is
to look in the commit history for examples close to what you're doing.

There is brief mention of this in the "Submitting Patches" section of
the HACKING file in the source tree.

>> It looks like the 'native-search-paths' field needs to be overridden,
>> since the existing one has "2.1.3" in it.
>
> I don't think it is used by 1.8.7. Does that matter?

Yes, otherwise users who install ruby 1.8.7 will be advised to set
GEM_PATH to $HOME/.guix-profile/lib/ruby/gems/2.1.3.

If setting GEM_PATH is not appropriate when using ruby 1.8.7, then you
should override it here to be the empty list, like so:

  (native-search-paths '())

     Thanks,
       Mark

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

* Re: [PATCH] gnu: Add ruby 1.8.7
  2014-10-27  0:53       ` David Thompson
@ 2014-10-27  1:44         ` Pjotr Prins
  0 siblings, 0 replies; 15+ messages in thread
From: Pjotr Prins @ 2014-10-27  1:44 UTC (permalink / raw)
  To: David Thompson; +Cc: guix-devel

On Sun, Oct 26, 2014 at 08:53:39PM -0400, David Thompson wrote:
> (native-search-paths '())

Ah, I tried #f.

> Does Ruby 1.8.7 not know about GEM_PATH because rubygems was a separate
> package at that time?

Yep. It was not a core feature at the time.

Pj.

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

* Re: [PATCH] gnu: Add ruby 1.8.7
  2014-10-27  1:43     ` Mark H Weaver
@ 2014-10-27  1:56       ` Pjotr Prins
  2014-10-27  4:11         ` Mark H Weaver
  0 siblings, 1 reply; 15+ messages in thread
From: Pjotr Prins @ 2014-10-27  1:56 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: guix-devel

On Sun, Oct 26, 2014 at 09:43:22PM -0400, Mark H Weaver wrote:
> In broad strokes, we use the GNU changelog conventions:
> 
>   http://www.gnu.org/prep/standards/html_node/Change-Logs.html
> 
> but with some minor formatting differences.  However, the best thing is
> to look in the commit history for examples close to what you're doing.
> 
> There is brief mention of this in the "Submitting Patches" section of
> the HACKING file in the source tree.

I read those earlier. I used a commit message we used before. I think
that if you are serious about convention you should point to a real
list of allowed standard messages. Now it looks arbitrary and
makes the submitter look stupid.

> >> It looks like the 'native-search-paths' field needs to be overridden,
> >> since the existing one has "2.1.3" in it.
> >
> > I don't think it is used by 1.8.7. Does that matter?
> 
> Yes, otherwise users who install ruby 1.8.7 will be advised to set
> GEM_PATH to $HOME/.guix-profile/lib/ruby/gems/2.1.3.

Ah, that is what it is for. Actually the build did not give me that
message. I DO get a load of messages such as

  strip:/gnu/store/icz59y35qqmm4jcrnkqx7d73xlzsq0lq-ruby-1.8.7-p374/lib/ruby/1.8/rexml/attlistdecl.rb:
  File format not recognized

is there a way to prevent files with a .rb extension or ruby shebang
to be stripped?

Pj.

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

* Re: [PATCH] gnu: Add ruby 1.8.7
  2014-10-27  1:56       ` Pjotr Prins
@ 2014-10-27  4:11         ` Mark H Weaver
  2014-10-27  9:05           ` ‘strip’ phase Ludovic Courtès
  0 siblings, 1 reply; 15+ messages in thread
From: Mark H Weaver @ 2014-10-27  4:11 UTC (permalink / raw)
  To: Pjotr Prins; +Cc: guix-devel

Pjotr Prins <pjotr.public12@thebird.nl> writes:

> On Sun, Oct 26, 2014 at 09:43:22PM -0400, Mark H Weaver wrote:
>> In broad strokes, we use the GNU changelog conventions:
>> 
>>   http://www.gnu.org/prep/standards/html_node/Change-Logs.html
>> 
>> but with some minor formatting differences.  However, the best thing is
>> to look in the commit history for examples close to what you're doing.
>> 
>> There is brief mention of this in the "Submitting Patches" section of
>> the HACKING file in the source tree.
>
> I read those earlier. I used a commit message we used before. I think
> that if you are serious about convention you should point to a real
> list of allowed standard messages.

The commit log is full of examples, but I agree that it would be good to
have more documentation on this.  There's a lot to do, and we're a small
team.

> Now it looks arbitrary and makes the submitter look stupid.

I agree that the conventions are arbitrary, and could probably use
improvement, but I also think there's some value in keeping things
consistent.  I don't think it makes you look stupid.  I'm sorry if I
came off that way.

>> >> It looks like the 'native-search-paths' field needs to be overridden,
>> >> since the existing one has "2.1.3" in it.
>> >
>> > I don't think it is used by 1.8.7. Does that matter?
>> 
>> Yes, otherwise users who install ruby 1.8.7 will be advised to set
>> GEM_PATH to $HOME/.guix-profile/lib/ruby/gems/2.1.3.
>
> Ah, that is what it is for. Actually the build did not give me that
> message.

The message is supposed to be shown when you install the package using
"guix package -i", but I see that it wasn't working.  The reason is that
"lib/ruby/gems/2.1.3" doesn't actually exist in the built ruby package.
Instead, there's "lib/ruby/gems/2.1.0".  I guess that should be fixed in
a separate commit.

If the search-path-specification contains a directory that exists and is
not already in your GEM_PATH, you should see the message when you
install ruby, or when you run "guix package --search-paths".

> I DO get a load of messages such as
>
>   strip:/gnu/store/icz59y35qqmm4jcrnkqx7d73xlzsq0lq-ruby-1.8.7-p374/lib/ruby/1.8/rexml/attlistdecl.rb:
>   File format not recognized
>
> is there a way to prevent files with a .rb extension or ruby shebang
> to be stripped?

In theory the default 'strip' phase could be replaced by one that's more
selective, but please don't do that.

The problem happens in almost every package, so the improvements should
be made in the default 'strip' phase.  The relevant procedure is 'strip'
in guix/build/gnu-build-system.scm, but beware that changing that file
(or just about anything else in that directory) will trigger a full
rebuild of all packages.  It would be nice to do at some point, but it's
quite far down on our TODO list.

     Regards,
       Mark

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

* Re: [PATCH] gnu: Add ruby 1.8.7
  2014-10-26 23:33 ` Mark H Weaver
  2014-10-26 23:44   ` Pjotr Prins
@ 2014-10-27  5:17   ` Pjotr Prins
  1 sibling, 0 replies; 15+ messages in thread
From: Pjotr Prins @ 2014-10-27  5:17 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: guix-devel

On Sun, Oct 26, 2014 at 07:33:51PM -0400, Mark H Weaver wrote:
> > +(define-public ruby-1.8
> > +  (package (inherit ruby)
> > +    (name "ruby")
> 
> Is there a reason to repeat the 'name' field here?
> It should be inherited.

it won't compile without.

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

* ‘strip’ phase
  2014-10-27  4:11         ` Mark H Weaver
@ 2014-10-27  9:05           ` Ludovic Courtès
  2014-10-27  9:28             ` Mark H Weaver
  0 siblings, 1 reply; 15+ messages in thread
From: Ludovic Courtès @ 2014-10-27  9:05 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: guix-devel

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

>> I DO get a load of messages such as
>>
>>   strip:/gnu/store/icz59y35qqmm4jcrnkqx7d73xlzsq0lq-ruby-1.8.7-p374/lib/ruby/1.8/rexml/attlistdecl.rb:
>>   File format not recognized
>>
>> is there a way to prevent files with a .rb extension or ruby shebang
>> to be stripped?
>
> In theory the default 'strip' phase could be replaced by one that's more
> selective, but please don't do that.
>
> The problem happens in almost every package, so the improvements should
> be made in the default 'strip' phase.  The relevant procedure is 'strip'
> in guix/build/gnu-build-system.scm, but beware that changing that file
> (or just about anything else in that directory) will trigger a full
> rebuild of all packages.  It would be nice to do at some point, but it's
> quite far down on our TODO list.

I think the ‘strip’ phase is fine this way: sure, it ends up invoking
‘strip’ on files that are not ELF files, but it’s harmless.  So we get
these extra warnings in the build log, but they are really harmless.

Conversely, attempts to be more selective may miss actual ELF files.

WDYT?

Ludo’.

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

* Re: ‘strip’ phase
  2014-10-27  9:05           ` ‘strip’ phase Ludovic Courtès
@ 2014-10-27  9:28             ` Mark H Weaver
  2014-10-27 12:16               ` Ludovic Courtès
  0 siblings, 1 reply; 15+ messages in thread
From: Mark H Weaver @ 2014-10-27  9:28 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel

ludo@gnu.org (Ludovic Courtès) writes:

> Mark H Weaver <mhw@netris.org> skribis:
>
>>> I DO get a load of messages such as
>>>
>>>   strip:/gnu/store/icz59y35qqmm4jcrnkqx7d73xlzsq0lq-ruby-1.8.7-p374/lib/ruby/1.8/rexml/attlistdecl.rb:
>>>   File format not recognized
>>>
>>> is there a way to prevent files with a .rb extension or ruby shebang
>>> to be stripped?
>>
>> In theory the default 'strip' phase could be replaced by one that's more
>> selective, but please don't do that.
>>
>> The problem happens in almost every package, so the improvements should
>> be made in the default 'strip' phase.  The relevant procedure is 'strip'
>> in guix/build/gnu-build-system.scm, but beware that changing that file
>> (or just about anything else in that directory) will trigger a full
>> rebuild of all packages.  It would be nice to do at some point, but it's
>> quite far down on our TODO list.
>
> I think the ‘strip’ phase is fine this way: sure, it ends up invoking
> ‘strip’ on files that are not ELF files, but it’s harmless.  So we get
> these extra warnings in the build log, but they are really harmless.

Large numbers of spurious warnings are not harmless, because they make
it unlikely that anyone will notice the warnings worth our attention.
They condition us to ignore all warnings, because it's too much work to
look through them all.

> Conversely, attempts to be more selective may miss actual ELF files.

True, but this is more harmless than the spurious warnings, IMO.  It
merely means that we failed to save some disk space.

IMO, the best solution is to check for the presence of ELF headers
ourselves.  We already have ELF code in Guile master.

What do you think?

      Mark

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

* Re: ‘strip’ phase
  2014-10-27  9:28             ` Mark H Weaver
@ 2014-10-27 12:16               ` Ludovic Courtès
  2014-10-27 14:23                 ` Mark H Weaver
  0 siblings, 1 reply; 15+ messages in thread
From: Ludovic Courtès @ 2014-10-27 12:16 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: guix-devel

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

> ludo@gnu.org (Ludovic Courtès) writes:

[...]

>> I think the ‘strip’ phase is fine this way: sure, it ends up invoking
>> ‘strip’ on files that are not ELF files, but it’s harmless.  So we get
>> these extra warnings in the build log, but they are really harmless.
>
> Large numbers of spurious warnings are not harmless, because they make
> it unlikely that anyone will notice the warnings worth our attention.
> They condition us to ignore all warnings, because it's too much work to
> look through them all.

Right.

>> Conversely, attempts to be more selective may miss actual ELF files.
>
> True, but this is more harmless than the spurious warnings, IMO.  It
> merely means that we failed to save some disk space.
>
> IMO, the best solution is to check for the presence of ELF headers
> ourselves.  We already have ELF code in Guile master.

Yes, that sounds good.  Instead of relying on Guile’s ELF code, perhaps
it would be enough to check for the presence of the ELF magic bytes?

Ludo’.

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

* Re: ‘strip’ phase
  2014-10-27 12:16               ` Ludovic Courtès
@ 2014-10-27 14:23                 ` Mark H Weaver
  2014-11-22 11:53                   ` Ludovic Courtès
  0 siblings, 1 reply; 15+ messages in thread
From: Mark H Weaver @ 2014-10-27 14:23 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel

ludo@gnu.org (Ludovic Courtès) writes:

> Mark H Weaver <mhw@netris.org> skribis:
>
>> IMO, the best solution is to check for the presence of ELF headers
>> ourselves.  We already have ELF code in Guile master.
>
> Yes, that sounds good.  Instead of relying on Guile’s ELF code, perhaps
> it would be enough to check for the presence of the ELF magic bytes?

Agreed.  The test need not be perfect, because the worst that can happen
is an _occasional_ warning from 'strip', which really will be harmless :)

    Thanks,
      Mark

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

* Re: ‘strip’ phase
  2014-10-27 14:23                 ` Mark H Weaver
@ 2014-11-22 11:53                   ` Ludovic Courtès
  0 siblings, 0 replies; 15+ messages in thread
From: Ludovic Courtès @ 2014-11-22 11:53 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: guix-devel

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

> ludo@gnu.org (Ludovic Courtès) writes:
>
>> Mark H Weaver <mhw@netris.org> skribis:
>>
>>> IMO, the best solution is to check for the presence of ELF headers
>>> ourselves.  We already have ELF code in Guile master.
>>
>> Yes, that sounds good.  Instead of relying on Guile’s ELF code, perhaps
>> it would be enough to check for the presence of the ELF magic bytes?
>
> Agreed.  The test need not be perfect, because the worst that can happen
> is an _occasional_ warning from 'strip', which really will be harmless :)

Commit 50b87bd in ‘core-updates’ does that.

Thanks,
Ludo’.

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

end of thread, other threads:[~2014-11-22 11:54 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-26 20:31 [PATCH] gnu: Add ruby 1.8.7 Pjotr Prins
2014-10-26 23:33 ` Mark H Weaver
2014-10-26 23:44   ` Pjotr Prins
2014-10-26 23:53     ` Pjotr Prins
2014-10-27  0:53       ` David Thompson
2014-10-27  1:44         ` Pjotr Prins
2014-10-27  1:43     ` Mark H Weaver
2014-10-27  1:56       ` Pjotr Prins
2014-10-27  4:11         ` Mark H Weaver
2014-10-27  9:05           ` ‘strip’ phase Ludovic Courtès
2014-10-27  9:28             ` Mark H Weaver
2014-10-27 12:16               ` Ludovic Courtès
2014-10-27 14:23                 ` Mark H Weaver
2014-11-22 11:53                   ` Ludovic Courtès
2014-10-27  5:17   ` [PATCH] gnu: Add ruby 1.8.7 Pjotr Prins

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).