ports/175044: misc/xd: Fix build with clang
KATO Tsuguru
tkato432 at yahoo.com
Sat Jan 5 18:10:12 UTC 2013
>Number: 175044
>Category: ports
>Synopsis: misc/xd: Fix build with clang
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sat Jan 05 18:10:12 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: KATO Tsuguru
>Release: FreeBSD 7.4-RELEASE-p10 i386
>Organization:
>Environment:
>Description:
- Fix build with clang
- Add LICENSE
New file:
files/patch-xd.c
>How-To-Repeat:
>Fix:
diff -urN /usr/ports/misc/xd/Makefile misc/xd/Makefile
--- /usr/ports/misc/xd/Makefile 2012-11-08 09:19:29.000000000 +0900
+++ misc/xd/Makefile 2012-12-03 23:55:52.000000000 +0900
@@ -1,9 +1,5 @@
-# New ports collection makefile for: xd
-# Date created: 17 October 1997
-# Whom: KIRIYAMA Kazuhiko <kiri at kiri.toba-cmt.ac.jp>
-#
+# Created by: KIRIYAMA Kazuhiko <kiri at kiri.toba-cmt.ac.jp>
# $FreeBSD: head/misc/xd/Makefile 300896 2012-07-14 13:54:48Z beat $
-#
PORTNAME= xd
PORTVERSION= 2.3
@@ -14,6 +10,8 @@
MAINTAINER= ports at FreeBSD.org
COMMENT= Yet another dump utility
+LICENSE= BSD
+
MAKE_ARGS= CC="${CC}" BINDIR="${PREFIX}/bin" \
MANDIR="${MAN1PREFIX}/man/man"
diff -urN /usr/ports/misc/xd/files/patch-xd.c misc/xd/files/patch-xd.c
--- /usr/ports/misc/xd/files/patch-xd.c 1970-01-01 09:00:00.000000000 +0900
+++ misc/xd/files/patch-xd.c 2012-10-24 05:57:12.000000000 +0900
@@ -0,0 +1,11 @@
+--- xd.c.orig 1996-08-27 02:23:22.000000000 +0900
++++ xd.c 2012-10-24 05:56:31.000000000 +0900
+@@ -392,7 +392,7 @@
+ *
+ */
+ #define ISFILE(str) (*(str) != '-' || *((str) + 1) == '\0')
+-void
++int
+ main(int argc, char *argv[])
+ {
+ int i, nf = 0, show_usage = FALSE, result;
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list