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

package info (click to toggle)
ruby-gnome 4.2.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 26,648 kB
  • sloc: ruby: 67,701; ansic: 67,431; xml: 350; sh: 201; cpp: 45; makefile: 42
file content (40 lines) | stat: -rw-r--r-- 918 bytes parent folder | download
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
30
31
32
33
34
35
36
37
38
39
40
From: Debian Ruby Team <pkg-ruby-extras-maintainers@lists.alioth.debian.org>
Date: Sun, 25 Aug 2024 21:03:56 -0300
Subject: Fail the build if any subpackage fails

Origin: vendor
Forwarded: not-needed
Last-Update: 2016-10-09
---
 exec_make.rb | 3 ++-
 extconf.rb   | 3 +++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/exec_make.rb b/exec_make.rb
index 84550d7..76ed54f 100644
--- a/exec_make.rb
+++ b/exec_make.rb
@@ -29,7 +29,8 @@ SUBDIRS.each do |subdir|
 	if ret
 		success << subdir 
 	else
-		failure << subdir
+                puts "Building of #{subdir} failed."
+                exit(1)
 	end
 end
 
diff --git a/extconf.rb b/extconf.rb
index 54b48fc..68c936a 100644
--- a/extconf.rb
+++ b/extconf.rb
@@ -95,6 +95,9 @@ subdirs.each do |subdir|
   if ret
     target_modules << subdir
   else
+    if $strict
+      exit(1)
+    end
     ignore_modules << subdir
   end
   puts "::endgroup::"