Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Aug 2012 12:12:10 GMT
From:      Vitaly Magerya <vmagerya@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/171023: [patch] x11/xclip: fix xclip-copyfile
Message-ID:  <201208251212.q7PCCAe6021093@red.freebsd.org>
Resent-Message-ID: <201208251220.q7PCK2l9000284@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         171023
>Category:       ports
>Synopsis:       [patch] x11/xclip: fix xclip-copyfile
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 25 12:20:02 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Vitaly Magerya
>Release:        
>Organization:
>Environment:
>Description:
xclip-copyfile(1) executable that x11/xclip installs tries to
invoke mktemp(1) without arguments, which does not work with
FreeBSD implementation of mktemp.

The attached patch fixes this problem by using -t option.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruN xclip.orig/Makefile xclip/Makefile
--- xclip.orig/Makefile	2011-08-21 23:51:39.000000000 +0300
+++ xclip/Makefile	2012-08-25 15:00:26.000000000 +0300
@@ -26,4 +26,8 @@
 pre-configure:
 	@cd ${WRKSRC}; ./bootstrap
 
+post-patch:
+	${REINPLACE_CMD} 's,`mktemp`,`mktemp -t xclip`,' \
+		${WRKSRC}/xclip-copyfile
+
 .include <bsd.port.mk>


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208251212.q7PCCAe6021093>