ruby-gnome2 (1.1.3-2) Fail-the-build-if-any-subpackage-fails

Summary

 exec_make.rb |    3 ++-
 extconf.rb   |    5 +++++
 2 files changed, 7 insertions(+), 1 deletion(-)

    
download this patch

Patch contents

--- ruby-gnome2-1.1.3.orig/exec_make.rb
+++ ruby-gnome2-1.1.3/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
 
--- ruby-gnome2-1.1.3.orig/extconf.rb
+++ ruby-gnome2-1.1.3/extconf.rb
@@ -75,6 +75,10 @@ subdirs.each do |subdir|
   if ret
     targets << subdir
   else
+    if $strict
+        exit(1)
+    end
+
     ignore << subdir
   end
 end
@@ -114,6 +118,7 @@ def run_make_in_sub_dirs(command)
 	  echo "FAILED: $$failed";		\\
 	  echo "-----";				\\
 	  echo "Done.";				\\
+	  test "$$failed" = "NONE";             \\
 	)
     EOS
   end