View | Details | Raw Unified | Return to bug 227447
Collapse All | Expand All

(-)Makefile (+1 lines)
Lines 2-7 Link Here
2
2
3
PORTNAME=	${ORIGNAME:tl}
3
PORTNAME=	${ORIGNAME:tl}
4
DISTVERSION=	0.7.11
4
DISTVERSION=	0.7.11
5
PORTREVISION=	1
5
CATEGORIES=	devel
6
CATEGORIES=	devel
6
MASTER_SITES=	http://downloads.reviewboard.org/releases/${ORIGNAME}/${DISTVERSION:R}/
7
MASTER_SITES=	http://downloads.reviewboard.org/releases/${ORIGNAME}/${DISTVERSION:R}/
7
DISTNAME=	${ORIGNAME}-${DISTVERSION}
8
DISTNAME=	${ORIGNAME}-${DISTVERSION}
(-)files/patch-rbtools_utils_checks.py (+21 lines)
Line 0 Link Here
1
Allow rbtools to work on systems with BSD diff instead of GNU diff (which is
2
the case for FreeBSD 12 and later).
3
4
Several other places in the code base call diff directly, and the test suite
5
passes with BSD diff as well.
6
7
--- rbtools/utils/checks.py.orig	2018-04-11 17:08:14 UTC
8
+++ rbtools/utils/checks.py
9
@@ -35,6 +35,12 @@ def check_install(command):
10
 
11
 def check_gnu_diff():
12
     """Checks if GNU diff is installed, and informs the user if it's not."""
13
+
14
+    # On FreeBSD 12+, diff(1) is BSD diff by default, and it does not accept a
15
+    # --version parameter. It should be otherwise compatible with GNU diff, so
16
+    # we just make this function do nothing instead.
17
+    return
18
+
19
     has_gnu_diff = False
20
 
21
     try:

Return to bug 227447