diff options
| author | nibbles 2bits | 2012-10-28 09:12:20 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-10-28 12:33:46 -0700 |
| commit | 634ea079cbddba4ab5a4c29ceb20a19486c46342 (patch) | |
| tree | 5fad2a7940681651bb7fd21574abdaf850de2c33 /Library/Formula | |
| parent | bf70462e5e0b9d9edd2773fd5e0ec8e103512255 (diff) | |
| download | homebrew-634ea079cbddba4ab5a4c29ceb20a19486c46342.tar.bz2 | |
scrub 2.5.2
- Upgrade to 2.5.2
- Add a patch to add <sys/types.h> otherwise missing symbols
- Add a patch to make a non-void function return a `0`
- Add comments for the patch linking the upstream bug report.
- Works with superenv on 10.8.2
Closes #15717.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/scrub.rb | 37 |
1 files changed, 33 insertions, 4 deletions
diff --git a/Library/Formula/scrub.rb b/Library/Formula/scrub.rb index dd981f550..c2af23a1c 100644 --- a/Library/Formula/scrub.rb +++ b/Library/Formula/scrub.rb @@ -1,13 +1,42 @@ require 'formula' class Scrub < Formula - url 'http://diskscrub.googlecode.com/files/scrub-2.4.tar.bz2' homepage 'http://code.google.com/p/diskscrub/' - sha1 '1065cde68549cd8b013f2b82bc5bb24922010da7' + url 'https://diskscrub.googlecode.com/files/scrub-2.5.2.tar.bz2' + sha1 '863e5894e6acb3f922cb25f58e260f9c59b55c14' + + # in src/genrand.c:109 the `return;` statement should be `return 0;` for clang + # in src/util.h we need <sys/types.h> to get off_t which is reported: + # https://code.google.com/p/diskscrub/issues/detail?id=21 + def patches; DATA; end def install - system "./configure", "--disable-debug", "--disable-dependency-tracking", - "--prefix=#{prefix}", "--mandir=#{man}" + system "./configure", "--disable-dependency-tracking", + "--prefix=#{prefix}" system "make install" end end + +__END__ +--- a/src/genrand.c 2012-06-20 15:00:27.000000000 -0700 ++++ b/src/genrand.c 2012-10-27 22:02:27.000000000 -0700 +@@ -106,7 +106,7 @@ + buf[n] = result; + } + #endif +- return; ++ return 0; + } + } + +--- a/src/util.h 2012-06-20 15:00:27.000000000 -0700 ++++ b/src/util.h 2012-10-27 22:10:32.000000000 -0700 +@@ -24,6 +24,8 @@ + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. + \*****************************************************************************/ + ++#include <sys/types.h> ++ + #ifdef HAVE_STDBOOL_H + #include <stdbool.h> + #else |
