From 62f8792e29cb65a84a5acc5da2fbc4f0a2624a6d Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Wed, 7 May 2014 14:57:15 -0700 Subject: [PATCH] catdoc: fails with clang This software uses undefined behavior (decrementing a null pointer) that compiles one way on GCC and another way on Clang with optimizations. --- Formula/catdoc.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Formula/catdoc.rb b/Formula/catdoc.rb index d2e964004b5..38a2e23bcc5 100644 --- a/Formula/catdoc.rb +++ b/Formula/catdoc.rb @@ -5,6 +5,10 @@ class Catdoc < Formula url 'http://ftp.wagner.pp.ru/pub/catdoc/catdoc-0.94.2.tar.gz' sha1 '50ce9d7cb24ad6b10a856c9c24183e2b0a11ca04' + fails_with :clang do + cause "The source uses undocumented behavior (decrementing null)." + end + def install # catdoc configure says it respects --mandir=, but does not. ENV['man1dir'] = man1