https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292011-06-11T19:50:36ZRedmineRedmine - Patch #8588: Rakefile for rake 0.9.2https://www.redmine.org/issues/8588?journal_id=298292011-06-11T19:50:36ZSzymon Połom
<ul></ul><p>I can confirm this issue with Redmine 1.2.0 on Debian Squeeze with Rake 0.8.7.</p>
<p>The provided patch solved my problem.</p> Redmine - Patch #8588: Rakefile for rake 0.9.2https://www.redmine.org/issues/8588?journal_id=300742011-06-20T02:21:14ZJean-Baptiste Barth
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>7</i></li><li><strong>Assignee</strong> set to <i>Jean-Baptiste Barth</i></li></ul><p>Did you notice any other incompatibilities with rake 0.9.2 ? I saw other warnings, and even errors but it was on an experimental branch with bundler enabled. I'll have a look at this anyway. For now, I updated the wiki to encourage the use of rake 0.8.7 (<a class="wiki-page" href="https://www.redmine.org/projects/redmine/wiki/RedmineInstall">RedmineInstall</a>).</p> Redmine - Patch #8588: Rakefile for rake 0.9.2https://www.redmine.org/issues/8588?journal_id=314252011-08-12T12:43:50Zjohn s.
<ul></ul><p>on which rakefile file i have to make the patch?</p>
<p>best regards john s.</p> Redmine - Patch #8588: Rakefile for rake 0.9.2https://www.redmine.org/issues/8588?journal_id=319952011-09-05T02:27:50ZBruno Medeiros
<ul></ul><p>Same issue on Ubuntu 11.04, rake 0.8.7<br />The patch fixed the problem.</p>
<p>My output after patch was:<br /><pre>
root@brunojcm-htpc:/opt/redmine/current# rake generate_session_store
(in /opt/redmine/redmine-1.2)
/var/lib/gems/1.8/gems/rake-0.9.2/lib/rake/file_utils.rb:10: warning: already initialized constant RUBY
/var/lib/gems/1.8/gems/rake-0.9.2/lib/rake/file_utils.rb:84: warning: already initialized constant LN_SUPPORTED
rake/rdoctask is deprecated. Use rdoc/task instead (in RDoc 2.4.2+)
</pre></p>
<p>Hope it helps.</p> Redmine - Patch #8588: Rakefile for rake 0.9.2https://www.redmine.org/issues/8588?journal_id=320062011-09-05T07:30:36ZEtienne Massip
<ul></ul><p>Bruno Medeiros wrote:</p>
<blockquote>
<p>Same issue on Ubuntu 11.04, rake 0.8.7</p>
</blockquote>
<p>Obviously you're using rake 0.9.2 too.</p> Redmine - Patch #8588: Rakefile for rake 0.9.2https://www.redmine.org/issues/8588?journal_id=321642011-09-12T14:41:23ZBruno Medeiros
<ul></ul><p>Etienne Massip wrote:</p>
<blockquote>
<p>Bruno Medeiros wrote:</p>
<blockquote>
<p>Same issue on Ubuntu 11.04, rake 0.8.7</p>
</blockquote>
<p>Obviously you're using rake 0.9.2 too.</p>
</blockquote>
<p>Something is weird here... If i run <code>rake -V</code> in terminal, I got:</p>
<pre>
root@ubuntu-redmine:/opt/redmine# rake -V
rake, version 0.8.7
</pre>
<p>But when I run some rake command, it shows 0.9.2 as version i the stacktrace...</p>
<pre>
root@ubuntu-redmine:/opt/redmine/current# RAILS_ENV=production rake db:migrate
(in /opt/redmine/redmine-1.2)
/var/lib/gems/1.8/gems/rake-0.9.2/lib/rake/file_utils.rb:10: warning: already initialized constant RUBY
/var/lib/gems/1.8/gems/rake-0.9.2/lib/rake/file_utils.rb:84: warning: already initialized constant LN_SUPPORTED
...
</pre>
<p>Anyway, the patch fixed the problem.</p> Redmine - Patch #8588: Rakefile for rake 0.9.2https://www.redmine.org/issues/8588?journal_id=322672011-09-15T13:53:01ZAnonymous
<ul></ul><p>If you have both versions installed, you can run rake <em>0.8.7</em> rb:migrate.</p> Redmine - Patch #8588: Rakefile for rake 0.9.2https://www.redmine.org/issues/8588?journal_id=322682011-09-15T13:54:29ZAnonymous
<ul></ul><p>If you have both versions installed, you can run <code>rake _0.8.7_ db:migrate</code>.</p> Redmine - Patch #8588: Rakefile for rake 0.9.2https://www.redmine.org/issues/8588?journal_id=383712012-05-22T21:30:03Zyannick quenec'hdu
<ul></ul><p>Nathan Smith wrote:</p>
<blockquote>
<p>If you have both versions installed, you can run <code>rake _0.8.7_ db:migrate</code>.</p>
</blockquote>
<p>I have the same problem with Redmine 2.0</p>
<p>update patch, like this :</p>
<pre><code class="ruby syntaxhl"><span class="o">!</span><span class="sr">/usr/</span><span class="n">bin</span><span class="o">/</span><span class="n">env</span> <span class="n">rake</span>
<span class="nb">require</span> <span class="no">File</span><span class="p">.</span><span class="nf">expand_path</span><span class="p">(</span><span class="s1">'../config/application'</span><span class="p">,</span> <span class="kp">__FILE__</span><span class="p">)</span>
<span class="no">RedmineApp</span><span class="o">::</span><span class="no">Application</span><span class="p">.</span><span class="nf">load_tasks</span>
<span class="nb">require</span> <span class="s1">'rake/dsl_definition'</span>
<span class="nb">require</span> <span class="s1">'rake'</span>
<span class="nb">require</span> <span class="s1">'rake/testtask'</span>
</code></pre>
<p>the command <code>rake generate_secret_token</code> work very well with rake 0.9.2, not with 0.8.7</p> Redmine - Patch #8588: Rakefile for rake 0.9.2https://www.redmine.org/issues/8588?journal_id=388992012-06-10T20:42:31ZJean-Baptiste Barth
<ul><li><strong>Assignee</strong> deleted (<del><i>Jean-Baptiste Barth</i></del>)</li></ul> Redmine - Patch #8588: Rakefile for rake 0.9.2https://www.redmine.org/issues/8588?journal_id=394752012-07-05T12:42:44ZC. X.
<ul></ul><p>Please use next time the pre tag. Otherwise someone can't see the underscores of your File constant.</p>
<p>I only needed following:<br /><pre>
require File.expand_path('../config/application', __FILE__)
require 'rake/dsl_definition'
RedmineApp::Application.load_tasks
</pre></p>
<p>But I got two warnings now:<br /><pre>
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/file_utils.rb:9: warning: already initialized constant RUBY
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/file_utils.rb:86: warning: already initialized constant LN_SUPPORTED
</pre></p>
<p>yannick quenec'hdu wrote:</p>
<blockquote>
<p>I have the same problem with Redmine 2.0</p>
<p>update patch, like this :</p>
<p>!/usr/bin/env rake<br />require File.expand_path('../config/application', <i>FILE</i>)<br />RedmineApp::Application.load_tasks<br />require 'rake/dsl_definition'<br />require 'rake'<br />require 'rake/testtask'</p>
<p>the command <code>rake generate_secret_token</code> work very well with rake 0.9.2, not with 0.8.7</p>
</blockquote> Redmine - Patch #8588: Rakefile for rake 0.9.2https://www.redmine.org/issues/8588?journal_id=396292012-07-12T13:46:15ZAshwin Sewbaran
<ul></ul><p>Bruno Medeiros wrote:</p>
<blockquote>
<p>Etienne Massip wrote:</p>
<blockquote>
<p>Bruno Medeiros wrote:</p>
<blockquote>
<p>Same issue on Ubuntu 11.04, rake 0.8.7</p>
</blockquote>
<p>Obviously you're using rake 0.9.2 too.</p>
</blockquote></blockquote>
<p>This is incorrect.</p>
<p>The gem rake version you use is version 0.9.2, but the system rake version is 0.8.7.<br />This is something that happens when you install rake using the default repositories.</p>
<p>If you are running on debian you can fix this problem by uninstalling the current rake version with:<br /><pre>
apt-get uninstall rake
</pre></p>
<p>afterwards download the version you require (0.9.2+) from:<br /><pre>
http://packages.debian.org/sid/all/rake/download
</pre></p>
<p>This fixed the following warning messages for me:<br /><pre>
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/file_utils.rb:9: warning: already initialized constant RUBY
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/file_utils.rb:86: warning: already initialized constant LN_SUPPORTED
</pre></p> Redmine - Patch #8588: Rakefile for rake 0.9.2https://www.redmine.org/issues/8588?journal_id=442222013-01-13T20:04:03ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>7</i> to <i>New</i></li></ul><p>Assigned issue with no assignee back to New status.</p> Redmine - Patch #8588: Rakefile for rake 0.9.2https://www.redmine.org/issues/8588?journal_id=879202018-10-09T11:16:26ZGo MAEDA
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li></ul><p>I think we don't have to take care of this issue now because rake 0.9.2 is too old and we are using newer versions of rake.</p>