ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:66554] [ruby-trunk - Bug #10554] [Open] preview2 fails to generate prelude.c
       [not found] <redmine.issue-10554.20141128183632@ruby-lang.org>
@ 2014-11-28 18:36 ` v.ondruch
  2014-11-28 18:57 ` [ruby-core:66556] [ruby-trunk - Bug #10554] " usa
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: v.ondruch @ 2014-11-28 18:36 UTC (permalink / raw
  To: ruby-core

Issue #10554 has been reported by Vit Ondruch.

----------------------------------------
Bug #10554: preview2 fails to generate prelude.c
https://bugs.ruby-lang.org/issues/10554

* Author: Vit Ondruch
* Status: Open
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
* ruby -v: ruby-2.2.0-preview2
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
~~~
generating prelude.c
echo executable host ruby is required.  use --with-baseruby option.; false ./tool/generic_erb.rb -I. -c -o prelude.c \
	./template/prelude.c.tmpl ./prelude.rb ./enc/prelude.rb ./gem_prelude.rb ./abrt_prelude.rb
executable host ruby is required. use --with-baseruby option.
uncommon.mk:780: recipe for target 'prelude.c' failed
~~~

I have no Ruby installed on my build machine. Last time I checked r48476, which was working just fine.




-- 
https://bugs.ruby-lang.org/

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

* [ruby-core:66556] [ruby-trunk - Bug #10554] preview2 fails to generate prelude.c
       [not found] <redmine.issue-10554.20141128183632@ruby-lang.org>
  2014-11-28 18:36 ` [ruby-core:66554] [ruby-trunk - Bug #10554] [Open] preview2 fails to generate prelude.c v.ondruch
@ 2014-11-28 18:57 ` usa
  2014-11-28 19:16 ` [ruby-core:66557] " v.ondruch
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: usa @ 2014-11-28 18:57 UTC (permalink / raw
  To: ruby-core

Issue #10554 has been updated by Usaku NAKAMURA.


Hmm, the tarball contains prelude.c, so normally it is not necessary to generate it.
There was no problem my environment.
Sorry, it might be rude, isn't the clock of your machine off?

----------------------------------------
Bug #10554: preview2 fails to generate prelude.c
https://bugs.ruby-lang.org/issues/10554#change-50169

* Author: Vit Ondruch
* Status: Open
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
* ruby -v: ruby-2.2.0-preview2
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
~~~
generating prelude.c
echo executable host ruby is required.  use --with-baseruby option.; false ./tool/generic_erb.rb -I. -c -o prelude.c \
	./template/prelude.c.tmpl ./prelude.rb ./enc/prelude.rb ./gem_prelude.rb ./abrt_prelude.rb
executable host ruby is required. use --with-baseruby option.
uncommon.mk:780: recipe for target 'prelude.c' failed
~~~

I have no Ruby installed on my build machine. Last time I checked r48476, which was working just fine.




-- 
https://bugs.ruby-lang.org/

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

* [ruby-core:66557] [ruby-trunk - Bug #10554] preview2 fails to generate prelude.c
       [not found] <redmine.issue-10554.20141128183632@ruby-lang.org>
  2014-11-28 18:36 ` [ruby-core:66554] [ruby-trunk - Bug #10554] [Open] preview2 fails to generate prelude.c v.ondruch
  2014-11-28 18:57 ` [ruby-core:66556] [ruby-trunk - Bug #10554] " usa
@ 2014-11-28 19:16 ` v.ondruch
  2014-12-01 16:32 ` [ruby-core:66623] " v.ondruch
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: v.ondruch @ 2014-11-28 19:16 UTC (permalink / raw
  To: ruby-core

Issue #10554 has been updated by Vit Ondruch.


Thanks for feedback. Let me check it once more. May be the patch from #8566 which I am applying might be troublesome.

----------------------------------------
Bug #10554: preview2 fails to generate prelude.c
https://bugs.ruby-lang.org/issues/10554#change-50170

* Author: Vit Ondruch
* Status: Open
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
* ruby -v: ruby-2.2.0-preview2
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
~~~
generating prelude.c
echo executable host ruby is required.  use --with-baseruby option.; false ./tool/generic_erb.rb -I. -c -o prelude.c \
	./template/prelude.c.tmpl ./prelude.rb ./enc/prelude.rb ./gem_prelude.rb ./abrt_prelude.rb
executable host ruby is required. use --with-baseruby option.
uncommon.mk:780: recipe for target 'prelude.c' failed
~~~

I have no Ruby installed on my build machine. Last time I checked r48476, which was working just fine.




-- 
https://bugs.ruby-lang.org/

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

* [ruby-core:66623] [ruby-trunk - Bug #10554] preview2 fails to generate prelude.c
       [not found] <redmine.issue-10554.20141128183632@ruby-lang.org>
                   ` (2 preceding siblings ...)
  2014-11-28 19:16 ` [ruby-core:66557] " v.ondruch
@ 2014-12-01 16:32 ` v.ondruch
  2014-12-01 16:59 ` [ruby-core:66624] " merch-redmine
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: v.ondruch @ 2014-12-01 16:32 UTC (permalink / raw
  To: ruby-core

Issue #10554 has been updated by Vit Ondruch.


Ok, this seems to be due to r48607 and associated commits. Looking at builds of Ruby 2.1, prelude.c was always generated, while now it is shipped as part of the tarball. And unfortunately, I consider this move in wrong direction, since inclusion of pregenerated prelude.c is more or less against Fedora's policy [2]. Yes, this paragraph is about pre-built binaries and libraries, but I believe that pre-generated code is the same in the same spirit.

Is there any technical reason, why the prelude.c should be pre-generated and shipped in the source tarball? Would you mind to remove it and let it be generated, as it always was? Thanks.


[1] https://kojipkgs.fedoraproject.org//packages/ruby/2.1.5/25.fc21/data/logs/x86_64/build.log
[2] https://fedoraproject.org/wiki/Packaging:Guidelines#No_inclusion_of_pre-built_binaries_or_libraries

----------------------------------------
Bug #10554: preview2 fails to generate prelude.c
https://bugs.ruby-lang.org/issues/10554#change-50238

* Author: Vit Ondruch
* Status: Open
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
* ruby -v: ruby-2.2.0-preview2
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
~~~
generating prelude.c
echo executable host ruby is required.  use --with-baseruby option.; false ./tool/generic_erb.rb -I. -c -o prelude.c \
	./template/prelude.c.tmpl ./prelude.rb ./enc/prelude.rb ./gem_prelude.rb ./abrt_prelude.rb
executable host ruby is required. use --with-baseruby option.
uncommon.mk:780: recipe for target 'prelude.c' failed
~~~

I have no Ruby installed on my build machine. Last time I checked r48476, which was working just fine.




-- 
https://bugs.ruby-lang.org/

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

* [ruby-core:66624] [ruby-trunk - Bug #10554] preview2 fails to generate prelude.c
       [not found] <redmine.issue-10554.20141128183632@ruby-lang.org>
                   ` (3 preceding siblings ...)
  2014-12-01 16:32 ` [ruby-core:66623] " v.ondruch
@ 2014-12-01 16:59 ` merch-redmine
  2014-12-01 20:37 ` [ruby-core:66632] " nobu
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: merch-redmine @ 2014-12-01 16:59 UTC (permalink / raw
  To: ruby-core

Issue #10554 has been updated by Jeremy Evans.


Vit Ondruch wrote:
> Ok, this seems to be due to r48607 and associated commits. Looking at builds of Ruby 2.1, prelude.c was always generated, while now it is shipped as part of the tarball. And unfortunately, I consider this move in wrong direction, since inclusion of pregenerated prelude.c is more or less against Fedora's policy [2]. Yes, this paragraph is about pre-built binaries and libraries, but I believe that pre-generated code is the same in the same spirit.
> 
> Is there any technical reason, why the prelude.c should be pre-generated and shipped in the source tarball? Would you mind to remove it and let it be generated, as it always was? Thanks.

By this argument, the source tarball shouldn't contain parse.c, only parse.y, making bison a requirement for building.  And it shouldn't contain configure/Makefile, only configure.in/Makefile.in, making autoconf/automake a requirement for building.  Is it Fedora's policy to delete files generated by bison/autoconf/automake and regenerate them before compiling the software?  If not, why would prelude.c be any different?

----------------------------------------
Bug #10554: preview2 fails to generate prelude.c
https://bugs.ruby-lang.org/issues/10554#change-50239

* Author: Vit Ondruch
* Status: Open
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
* ruby -v: ruby-2.2.0-preview2
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
~~~
generating prelude.c
echo executable host ruby is required.  use --with-baseruby option.; false ./tool/generic_erb.rb -I. -c -o prelude.c \
	./template/prelude.c.tmpl ./prelude.rb ./enc/prelude.rb ./gem_prelude.rb ./abrt_prelude.rb
executable host ruby is required. use --with-baseruby option.
uncommon.mk:780: recipe for target 'prelude.c' failed
~~~

I have no Ruby installed on my build machine. Last time I checked r48476, which was working just fine.




-- 
https://bugs.ruby-lang.org/

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

* [ruby-core:66632] [ruby-trunk - Bug #10554] preview2 fails to generate prelude.c
       [not found] <redmine.issue-10554.20141128183632@ruby-lang.org>
                   ` (4 preceding siblings ...)
  2014-12-01 16:59 ` [ruby-core:66624] " merch-redmine
@ 2014-12-01 20:37 ` nobu
  2014-12-01 23:22 ` [ruby-core:66637] " v.ondruch
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: nobu @ 2014-12-01 20:37 UTC (permalink / raw
  To: ruby-core

Issue #10554 has been updated by Nobuyoshi Nakada.


Jeremy Evans wrote:
> By this argument, the source tarball shouldn't contain parse.c, only parse.y, making bison a requirement for building.  And it shouldn't contain configure/Makefile, only configure.in/Makefile.in, making autoconf/automake a requirement for building.  Is it Fedora's policy to delete files generated by bison/autoconf/automake and regenerate them before compiling the software?  If not, why would prelude.c be any different?

And newline.c, enc/*.c, enc/trans/*.c, ...

----------------------------------------
Bug #10554: preview2 fails to generate prelude.c
https://bugs.ruby-lang.org/issues/10554#change-50247

* Author: Vit Ondruch
* Status: Open
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
* ruby -v: ruby-2.2.0-preview2
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
~~~
generating prelude.c
echo executable host ruby is required.  use --with-baseruby option.; false ./tool/generic_erb.rb -I. -c -o prelude.c \
	./template/prelude.c.tmpl ./prelude.rb ./enc/prelude.rb ./gem_prelude.rb ./abrt_prelude.rb
executable host ruby is required. use --with-baseruby option.
uncommon.mk:780: recipe for target 'prelude.c' failed
~~~

I have no Ruby installed on my build machine. Last time I checked r48476, which was working just fine.




-- 
https://bugs.ruby-lang.org/

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

* [ruby-core:66637] [ruby-trunk - Bug #10554] preview2 fails to generate prelude.c
       [not found] <redmine.issue-10554.20141128183632@ruby-lang.org>
                   ` (5 preceding siblings ...)
  2014-12-01 20:37 ` [ruby-core:66632] " nobu
@ 2014-12-01 23:22 ` v.ondruch
  2014-12-02  7:56 ` [ruby-core:66643] " eregontp
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: v.ondruch @ 2014-12-01 23:22 UTC (permalink / raw
  To: ruby-core

Issue #10554 has been updated by Vit Ondruch.


Jeremy Evans wrote:
> Vit Ondruch wrote:
> > Ok, this seems to be due to r48607 and associated commits. Looking at builds of Ruby 2.1, prelude.c was always generated, while now it is shipped as part of the tarball. And unfortunately, I consider this move in wrong direction, since inclusion of pregenerated prelude.c is more or less against Fedora's policy [2]. Yes, this paragraph is about pre-built binaries and libraries, but I believe that pre-generated code is the same in the same spirit.
> > 
> > Is there any technical reason, why the prelude.c should be pre-generated and shipped in the source tarball? Would you mind to remove it and let it be generated, as it always was? Thanks.
> 
> By this argument, the source tarball shouldn't contain parse.c, only parse.y, making bison a requirement for building.  And it shouldn't contain configure/Makefile, only configure.in/Makefile.in, making autoconf/automake a requirement for building.  Is it Fedora's policy to delete files generated by bison/autoconf/automake and regenerate them before compiling the software?  If not, why would prelude.c be any different?

I knew that somebody will ask this and I'll bite, why Ruby should be shipped in source form at all? Since everything Ruby user needs is binary.

So while some pre-generated code in source tarball allows to remove the BASERUBY need, which is appreciable, prelude.c is not (so far) the case. I'd be very happy if the amount of pre-generated code could be kept as low as possible.

----------------------------------------
Bug #10554: preview2 fails to generate prelude.c
https://bugs.ruby-lang.org/issues/10554#change-50250

* Author: Vit Ondruch
* Status: Open
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
* ruby -v: ruby-2.2.0-preview2
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
~~~
generating prelude.c
echo executable host ruby is required.  use --with-baseruby option.; false ./tool/generic_erb.rb -I. -c -o prelude.c \
	./template/prelude.c.tmpl ./prelude.rb ./enc/prelude.rb ./gem_prelude.rb ./abrt_prelude.rb
executable host ruby is required. use --with-baseruby option.
uncommon.mk:780: recipe for target 'prelude.c' failed
~~~

I have no Ruby installed on my build machine. Last time I checked r48476, which was working just fine.




-- 
https://bugs.ruby-lang.org/

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

* [ruby-core:66643] [ruby-trunk - Bug #10554] preview2 fails to generate prelude.c
       [not found] <redmine.issue-10554.20141128183632@ruby-lang.org>
                   ` (6 preceding siblings ...)
  2014-12-01 23:22 ` [ruby-core:66637] " v.ondruch
@ 2014-12-02  7:56 ` eregontp
  2014-12-02 10:04 ` [ruby-core:66645] " v.ondruch
  2018-08-10 10:53 ` [ruby-core:88435] [Ruby trunk Bug#10554][Rejected] " hsbt
  9 siblings, 0 replies; 10+ messages in thread
From: eregontp @ 2014-12-02  7:56 UTC (permalink / raw
  To: ruby-core

Issue #10554 has been updated by Benoit Daloze.


Vit Ondruch wrote:
> So while some pre-generated code in source tarball allows to remove the BASERUBY need, which is appreciable, prelude.c is not (so far) the case. I'd be very happy if the amount of pre-generated code could be kept as low as possible.

Then you run the risk of not being able to regenerate these files in another context as there might be a need for specific tools, specific versions or some external ressources, etc.

A released tarball should be as easy to build as possible for a user and more importantly provide a stable build.

----------------------------------------
Bug #10554: preview2 fails to generate prelude.c
https://bugs.ruby-lang.org/issues/10554#change-50255

* Author: Vit Ondruch
* Status: Open
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
* ruby -v: ruby-2.2.0-preview2
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
~~~
generating prelude.c
echo executable host ruby is required.  use --with-baseruby option.; false ./tool/generic_erb.rb -I. -c -o prelude.c \
	./template/prelude.c.tmpl ./prelude.rb ./enc/prelude.rb ./gem_prelude.rb ./abrt_prelude.rb
executable host ruby is required. use --with-baseruby option.
uncommon.mk:780: recipe for target 'prelude.c' failed
~~~

I have no Ruby installed on my build machine. Last time I checked r48476, which was working just fine.




-- 
https://bugs.ruby-lang.org/

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

* [ruby-core:66645] [ruby-trunk - Bug #10554] preview2 fails to generate prelude.c
       [not found] <redmine.issue-10554.20141128183632@ruby-lang.org>
                   ` (7 preceding siblings ...)
  2014-12-02  7:56 ` [ruby-core:66643] " eregontp
@ 2014-12-02 10:04 ` v.ondruch
  2018-08-10 10:53 ` [ruby-core:88435] [Ruby trunk Bug#10554][Rejected] " hsbt
  9 siblings, 0 replies; 10+ messages in thread
From: v.ondruch @ 2014-12-02 10:04 UTC (permalink / raw
  To: ruby-core

Issue #10554 has been updated by Vit Ondruch.

File 0001-Generate-preludes-using-miniruby.patch added

Benoit Daloze wrote:
> A released tarball should be as easy to build as possible for a user and more importantly provide a stable build.

Of course I agree on this point, while there is no proof that preludes.c would be causing issues to anybody.

BTW here is the patch making the prelude.c generated by miniruby again.




----------------------------------------
Bug #10554: preview2 fails to generate prelude.c
https://bugs.ruby-lang.org/issues/10554#change-50257

* Author: Vit Ondruch
* Status: Open
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
* ruby -v: ruby-2.2.0-preview2
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
~~~
generating prelude.c
echo executable host ruby is required.  use --with-baseruby option.; false ./tool/generic_erb.rb -I. -c -o prelude.c \
	./template/prelude.c.tmpl ./prelude.rb ./enc/prelude.rb ./gem_prelude.rb ./abrt_prelude.rb
executable host ruby is required. use --with-baseruby option.
uncommon.mk:780: recipe for target 'prelude.c' failed
~~~

I have no Ruby installed on my build machine. Last time I checked r48476, which was working just fine.


---Files--------------------------------
0001-Generate-preludes-using-miniruby.patch (1.32 KB)


-- 
https://bugs.ruby-lang.org/

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

* [ruby-core:88435] [Ruby trunk Bug#10554][Rejected] preview2 fails to generate prelude.c
       [not found] <redmine.issue-10554.20141128183632@ruby-lang.org>
                   ` (8 preceding siblings ...)
  2014-12-02 10:04 ` [ruby-core:66645] " v.ondruch
@ 2018-08-10 10:53 ` hsbt
  9 siblings, 0 replies; 10+ messages in thread
From: hsbt @ 2018-08-10 10:53 UTC (permalink / raw
  To: ruby-core

Issue #10554 has been updated by hsbt (Hiroshi SHIBATA).

Status changed from Open to Rejected
Assignee set to nobu (Nobuyoshi Nakada)

Ruby 2.2.0 is already released. If you still have an issue, Can you submit another issue?

Thanks,

----------------------------------------
Bug #10554: preview2 fails to generate prelude.c
https://bugs.ruby-lang.org/issues/10554#change-73490

* Author: vo.x (Vit Ondruch)
* Status: Rejected
* Priority: Normal
* Assignee: nobu (Nobuyoshi Nakada)
* Target version: 
* ruby -v: ruby-2.2.0-preview2
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
~~~
generating prelude.c
echo executable host ruby is required.  use --with-baseruby option.; false ./tool/generic_erb.rb -I. -c -o prelude.c \
	./template/prelude.c.tmpl ./prelude.rb ./enc/prelude.rb ./gem_prelude.rb ./abrt_prelude.rb
executable host ruby is required. use --with-baseruby option.
uncommon.mk:780: recipe for target 'prelude.c' failed
~~~

I have no Ruby installed on my build machine. Last time I checked r48476, which was working just fine.


---Files--------------------------------
0001-Generate-preludes-using-miniruby.patch (1.32 KB)


-- 
https://bugs.ruby-lang.org/

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

end of thread, other threads:[~2018-08-10 10:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <redmine.issue-10554.20141128183632@ruby-lang.org>
2014-11-28 18:36 ` [ruby-core:66554] [ruby-trunk - Bug #10554] [Open] preview2 fails to generate prelude.c v.ondruch
2014-11-28 18:57 ` [ruby-core:66556] [ruby-trunk - Bug #10554] " usa
2014-11-28 19:16 ` [ruby-core:66557] " v.ondruch
2014-12-01 16:32 ` [ruby-core:66623] " v.ondruch
2014-12-01 16:59 ` [ruby-core:66624] " merch-redmine
2014-12-01 20:37 ` [ruby-core:66632] " nobu
2014-12-01 23:22 ` [ruby-core:66637] " v.ondruch
2014-12-02  7:56 ` [ruby-core:66643] " eregontp
2014-12-02 10:04 ` [ruby-core:66645] " v.ondruch
2018-08-10 10:53 ` [ruby-core:88435] [Ruby trunk Bug#10554][Rejected] " hsbt

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