Bug 175044 - misc/xd: Fix build with clang
Summary: misc/xd: Fix build with clang
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Martin Wilke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-05 18:10 UTC by tkato432
Modified: 2013-02-07 14:40 UTC (History)
0 users

See Also:


Attachments
file.diff (1.17 KB, patch)
2013-01-05 18:10 UTC, tkato432
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tkato432 2013-01-05 18:10:12 UTC
- Fix build with clang
- Add LICENSE

New file:
files/patch-xd.c
Comment 1 Marcelo Araujo freebsd_committer freebsd_triage 2013-01-18 06:17:22 UTC
Responsible Changed
From-To: freebsd-ports-bugs->araujo

I'll take it.
Comment 2 Martin Wilke freebsd_committer freebsd_triage 2013-02-07 14:31:59 UTC
State Changed
From-To: open->closed
Comment 3 Martin Wilke freebsd_committer freebsd_triage 2013-02-07 14:31:59 UTC
Responsible Changed
From-To: araujo->miwi

Committed thx
Comment 4 dfilter service freebsd_committer freebsd_triage 2013-02-07 14:32:13 UTC
Author: miwi
Date: Thu Feb  7 14:32:00 2013
New Revision: 311847
URL: http://svnweb.freebsd.org/changeset/ports/311847

Log:
  - Fix build with clang
  
  PR:		175044
  Submitted by:	ports fury

Added:
  head/misc/xd/files/
  head/misc/xd/files/patch-xd.c   (contents, props changed)
Modified:
  head/misc/xd/Makefile   (contents, props changed)

Modified: head/misc/xd/Makefile
==============================================================================
--- head/misc/xd/Makefile	Thu Feb  7 14:30:48 2013	(r311846)
+++ head/misc/xd/Makefile	Thu Feb  7 14:32:00 2013	(r311847)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	xd
-# Date created:		17 October 1997
-# Whom:			KIRIYAMA Kazuhiko <kiri@kiri.toba-cmt.ac.jp>
-#
+# Created by: KIRIYAMA Kazuhiko <kiri@kiri.toba-cmt.ac.jp>
 # $FreeBSD$
-#
 
 PORTNAME=	xd
 PORTVERSION=	2.3
@@ -14,6 +10,8 @@ DISTNAME=	xd-8087
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Yet another dump utility
 
+LICENSE=	BSD
+
 MAKE_ARGS=	CC="${CC}" BINDIR="${PREFIX}/bin" \
 		MANDIR="${MAN1PREFIX}/man/man"
 

Added: head/misc/xd/files/patch-xd.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/misc/xd/files/patch-xd.c	Thu Feb  7 14:32:00 2013	(r311847)
@@ -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;
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"