svn commit: r392009 - in head/net/drawterm: . files

Steven Kreuzer skreuzer at FreeBSD.org
Tue Jul 14 14:47:32 UTC 2015


Author: skreuzer
Date: Tue Jul 14 14:47:30 2015
New Revision: 392009
URL: https://svnweb.freebsd.org/changeset/ports/392009

Log:
  r285140 introduced a fdclose(3) function which shadows a net/drawterm function
  definition. Shadow the stdio prototype with a macro and undef it after
  including stdio.h
  
  Convert port to the USES framework
  
  Regenerate the patch-Make.pthread file using makepatch
  
  PR:		201444
  Submitted by:	winston at ml1.net (maintainer)

Added:
  head/net/drawterm/files/patch-include_unix.h   (contents, props changed)
Modified:
  head/net/drawterm/Makefile
  head/net/drawterm/files/patch-Make.pthread

Modified: head/net/drawterm/Makefile
==============================================================================
--- head/net/drawterm/Makefile	Tue Jul 14 14:47:24 2015	(r392008)
+++ head/net/drawterm/Makefile	Tue Jul 14 14:47:30 2015	(r392009)
@@ -3,9 +3,9 @@
 
 PORTNAME=	drawterm
 PORTVERSION=	20140106
+PORTREVISION=	1
 CATEGORIES=	net
 MASTER_SITES=	http://swtch.com/drawterm/
-EXTRACT_SUFX=	.tgz
 
 MAINTAINER=	winston at ml1.net
 COMMENT=	Plan9 cpu client
@@ -13,6 +13,7 @@ COMMENT=	Plan9 cpu client
 # Additionally the Lucent Public License
 LICENSE=	MIT
 
+USES=	tar:tgz
 USE_XORG=	x11 xt
 
 PLIST_FILES=	bin/drawterm

Modified: head/net/drawterm/files/patch-Make.pthread
==============================================================================
--- head/net/drawterm/files/patch-Make.pthread	Tue Jul 14 14:47:24 2015	(r392008)
+++ head/net/drawterm/files/patch-Make.pthread	Tue Jul 14 14:47:30 2015	(r392009)
@@ -1,6 +1,6 @@
---- Make.pthread.orig	2009-08-26 00:44:41.000000000 -0500
-+++ Make.pthread	2012-02-15 14:04:26.020899861 -0600
-@@ -4,14 +4,14 @@
+--- Make.pthread.orig	2009-08-26 05:44:41 UTC
++++ Make.pthread
+@@ -4,14 +4,14 @@ PTHREAD=-pthread -DPTHREAD
  AR=ar
  AS=no-as-here
  RANLIB=ranlib

Added: head/net/drawterm/files/patch-include_unix.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/drawterm/files/patch-include_unix.h	Tue Jul 14 14:47:30 2015	(r392009)
@@ -0,0 +1,12 @@
+--- include/unix.h.orig	2015-07-13 22:14:41 UTC
++++ include/unix.h
+@@ -11,7 +11,9 @@
+ #define _FILE_OFFSET_BITS 64
+ 
+ 
++#define fdclose sysfdclose
+ #include <stdio.h>
++#undef fdclose
+ #include <stdlib.h>
+ #include <string.h>
+ #include <math.h>


More information about the svn-ports-all mailing list