Bug 171023 - [patch] x11/xclip: fix xclip-copyfile
Summary: [patch] x11/xclip: fix xclip-copyfile
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: Eitan Adler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-25 13:20 UTC by Vitaly Magerya
Modified: 2012-09-01 19:40 UTC (History)
0 users

See Also:


Attachments
file.diff (344 bytes, patch)
2012-08-25 13:20 UTC, Vitaly Magerya
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vitaly Magerya 2012-08-25 13:20:02 UTC
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.

Fix: Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-08-25 13:20:31 UTC
Responsible Changed
From-To: freebsd-ports-bugs->eadler

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2012-09-01 19:37:52 UTC
Author: eadler
Date: Sat Sep  1 18:37:38 2012
New Revision: 303506
URL: http://svn.freebsd.org/changeset/ports/303506

Log:
  Fix xclip-copyfile's use of mktemp
  without arguments
  
  PR:		ports/171023
  Submitted by:	Vitaly Magerya <vmagerya@gmail.com>

Modified:
  head/x11/xclip/Makefile

Modified: head/x11/xclip/Makefile
==============================================================================
--- head/x11/xclip/Makefile	Sat Sep  1 18:19:31 2012	(r303505)
+++ head/x11/xclip/Makefile	Sat Sep  1 18:37:38 2012	(r303506)
@@ -26,4 +26,8 @@ PLIST_FILES=	bin/xclip bin/xclip-copyfil
 pre-configure:
 	@cd ${WRKSRC}; ./bootstrap
 
+post-patch:
+	${REINPLACE_CMD} 's,mktemp,mktemp -t xclip,' \
+		${WRKSRC}/xclip-copyfile
+
 .include <bsd.port.mk>
_______________________________________________
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"
Comment 3 Eitan Adler freebsd_committer freebsd_triage 2012-09-01 19:38:09 UTC
State Changed
From-To: open->closed

Committed. Thanks!