[Rock-dev] Amake stuck

Janosch Machowinski Janosch.Machowinski at dfki.de
Tue Sep 19 14:15:25 CEST 2017


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


-- 
  Dipl. Inf. Janosch Machowinski
  SAR- & Sicherheitsrobotik

  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äftstelle:
  Robert-Hooke-Straße 5
  28359 Bremen, Germany
  
  Tel.:    +49 421 178 45-6614
  Empfang: +49 421 178 45-6600
  Fax:     +49 421 178 45-4150
  E-Mail:  jmachowinski at informatik.uni-bremen.de

  Weitere Informationen: http://www.informatik.uni-bremen.de/robotik



More information about the Rock-dev mailing list