File: Fail-the-build-if-any-subpackage-fails

package info (click to toggle)
ruby-gnome 3.4.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 29,116 kB
  • sloc: ansic: 97,029; ruby: 70,747; xml: 350; sh: 142; cpp: 45; makefile: 29
file content (29 lines) | stat: -rw-r--r-- 503 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
29
Description: Fail the build if any subpackage fails
Origin: vendor
Forwarded: not-needed
Last-Update: 2016-10-09

--- a/exec_make.rb
+++ b/exec_make.rb
@@ -29,7 +29,8 @@
 	if ret
 		success << subdir 
 	else
-		failure << subdir
+                puts "Building of #{subdir} failed."
+                exit(1)
 	end
 end
 
--- a/extconf.rb
+++ b/extconf.rb
@@ -95,6 +95,9 @@
   if ret
     target_modules << subdir
   else
+    if $strict
+      exit(1)
+    end
     ignore_modules << subdir
   end
 end