[Rock-dev] Amake stuck
Sylvain Joyeux
bir.sylvain at gmail.com
Tue Sep 19 15:57:24 CEST 2017
And proposed Pierre's solution to rake: https://github.com/ruby/rake/pull/224
On Tue, Sep 19, 2017 at 9:45 AM, Sylvain Joyeux <bir.sylvain at gmail.com> wrote:
> FYI, I've just release autobuild 1.11.2 which constrains rake to < 12.1.0.
>
> Sylvain
>
>
>
> On Tue, Sep 19, 2017 at 9:37 AM, Christoph Hertzberg
> <chtz at informatik.uni-bremen.de> wrote:
>> Thanks, this works for me!
>>
>> On 2017-09-19 14:15, Janosch Machowinski wrote:
>>> I can confirm this, pinning rake to
>>> 12.0.0 fixes the problem.
>>>
>>> To do this (perhaps hacky way), edit
>>> instDir/.autoproj/Gemfile
>>> instDir/install/gems/Gemfile
>>> and add the entry
>>> gem "rake", "= 12.0.0"
>>> to both files
>>>
>>> afterwards call
>>> bundle install
>>>
>>> if this command fails, delete
>>> instDir/.autoproj/Gemfile.lock
>>> instDir/install/gems/Gemfile.lock
>>>
>>> and run
>>> bundle install
>>>
>>> again.
>>>
>>> Greetings
>>> Janosch
>>>
>>> Am 19.09.2017 um 14:07 schrieb Pierre Willenbrock:
>>>> Hello everyone,
>>>> i am not able to reproduce amake being stuck, but i am experiencing
>>>> excessive slowness. I traced that down to Rake::FileTask.needed?(to be
>>>> more specific: Rake::FileTask.out_of_date?) taking a long time to
>>>> recursively check the timestamps of all the prerequisites.
>>>>
>>>> Modifying rake to have Rake::FileTask.out_of_date? like below helps
>>>> immensely(collects the touched tasks first, then checks timestamps):
>>>>
>>>> def out_of_date?(stamp)
>>>> all_prerequisite_tasks.any? { |prereq_task|
>>>> if prereq_task.instance_of?(Rake::FileTask)
>>>> prereq_task.timestamp > stamp || !
>>>> File.exist?(prereq_task.name) || @application.options.build_all
>>>> else
>>>> prereq_task.timestamp > stamp
>>>> end
>>>> }
>>>> end
>>>>
>>>> The behaviour has changed between rake-12.0.0 and rake-12.1.0. In
>>>> rake-12.0.0, out_of_date? only checked its own timestamp.
>>>>
>>>> Maybe this helps someone.
>>>>
>>>> Regards,
>>>> Pierre
>>>> _______________________________________________
>>>> Rock-dev mailing list
>>>> Rock-dev at dfki.de
>>>> http://www.dfki.de/mailman/cgi-bin/listinfo/rock-dev
>>>
>>>
>>
>> --
>> Dr.-Ing. Christoph Hertzberg
>>
>> Universität Bremen
>> FB 3 - Mathematik und Informatik
>> AG Robotik
>> Robert-Hooke-Straße 1
>> 28359 Bremen, Germany
>>
>> Zentrale: +49 421 178 45-6611
>>
>> Besuchsadresse der Nebengeschäftsstelle:
>> Robert-Hooke-Straße 5
>> 28359 Bremen, Germany
>>
>> Tel.: +49 421 178 45-4021
>> Empfang: +49 421 178 45-6600
>> Fax: +49 421 178 45-4150
>> E-Mail: chtz at informatik.uni-bremen.de
>>
>> Weitere Informationen: http://www.informatik.uni-bremen.de/robotik
>> _______________________________________________
>> Rock-dev mailing list
>> Rock-dev at dfki.de
>> http://www.dfki.de/mailman/cgi-bin/listinfo/rock-dev
More information about the Rock-dev
mailing list