File: 0002-Fix-compile-task.patch

package info (click to toggle)
ruby-rubocop-ast 1.49.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,768 kB
  • sloc: ruby: 17,017; yacc: 90; makefile: 9
file content (28 lines) | stat: -rw-r--r-- 744 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Description: Fix compile task
 No need to add files to be removed in the clean task since we do not call it
 during the build.
 .
 Call racc installed in the system via debian package instead of calling bundle
 exec.
Author: Lucas Kanashiro <kanashiro@debian.org>
Forwarded: not-needed
Last-Update: 2022-12-07

--- a/tasks/compile.rake
+++ b/tasks/compile.rake
@@ -21,7 +21,6 @@
   parser: 'lib/rubocop/ast/node_pattern/parser.racc.rb'
 }
 
-CLEAN.include(files.values)
 namespace :generate do
   files.each do |kind, filename|
     desc "Generate just the #{kind}"
@@ -35,6 +34,6 @@
 end
 
 rule '.racc.rb' => '.y' do |t|
-  cmd = "bundle exec racc -l -v -o #{t.name} #{t.source}"
+  cmd = "racc -l -v -o #{t.name} #{t.source}"
   sh cmd
 end