Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Dec 2020 21:05:56 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r556853 - head/devel/urjtag
Message-ID:  <202012022105.0B2L5ubU062961@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Wed Dec  2 21:05:55 2020
New Revision: 556853
URL: https://svnweb.freebsd.org/changeset/ports/556853

Log:
  devel/urjtag: Add the NOASYNC option to possibly work around bugs like bug#251533
  
  PR:		251533
  Reported by:	Torfinn Ingolfsen <tingox+freebsd@gmail.com>

Modified:
  head/devel/urjtag/Makefile

Modified: head/devel/urjtag/Makefile
==============================================================================
--- head/devel/urjtag/Makefile	Wed Dec  2 21:01:59 2020	(r556852)
+++ head/devel/urjtag/Makefile	Wed Dec  2 21:05:55 2020	(r556853)
@@ -3,7 +3,7 @@
 
 PORTNAME=	urjtag
 DISTVERSION=	2019.12
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	devel
 MASTER_SITES=	SF
 
@@ -23,7 +23,7 @@ CONFIGURE_ARGS=	--enable-stapl
 
 INSTALL_TARGET=	install-strip
 
-OPTIONS_DEFINE=			FTDI JEDEC NLS PYTHON USB
+OPTIONS_DEFINE=			FTDI JEDEC NOASYNC NLS PYTHON USB
 OPTIONS_DEFAULT=		FTDI USB
 OPTIONS_SUB=			yes
 
@@ -34,6 +34,8 @@ FTDI_CONFIGURE_WITH=		libftdi
 JEDEC_DESC=			Experimental JEDEC flash detection
 JEDEC_CONFIGURE_ENABLE=		jedec-exp
 
+NOASYNC_DESC=			Disable the libftdi async mode # possible workaround for bugs like bug#251533
+
 NLS_USES=			gettext
 NLS_CONFIGURE_ENABLE=		nls
 
@@ -43,5 +45,8 @@ PYTHON_BROKEN=			ld: error: unable to find library -l-
 USB_DESC=			USB JTAG adapters support
 #USB_CONFIGURE_ON=		--with-libusb=/usr # causes libusb to not be recognized: https://sourceforge.net/p/urjtag/bugs/133/
 USB_CONFIGURE_OFF=		--without-libusb
+
+post-patch-NOASYNC-on:
+	@${REINPLACE_CMD} -e 's|"ftdi_read_data_submit"|"ftdi_read_data_submitx"|' ${WRKSRC}/configure
 
 .include <bsd.port.mk>



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