Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Jul 2020 20:09:59 +0000 (UTC)
From:      Diane Bruce <db@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r543376 - in head/cad/cura: . files
Message-ID:  <202007242009.06OK9xSY088163@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: db
Date: Fri Jul 24 20:09:59 2020
New Revision: 543376
URL: https://svnweb.freebsd.org/changeset/ports/543376

Log:
  The serial library returns 'n/a' to the port[2] string that Cura was checking
  for starting with 'USB' (which would actually be 'U' for us). I guess
  somewhere it is only splitting on 'tty' and not 'cua'. Well, let's just
  not filter serial ports for USB for now.
  
  PR:		ports/248227
  Submitted by:	greg@unrelenting.technology

Added:
  head/cad/cura/files/patch-plugins_USBPrinting_USBPrinterOutputDeviceManager.py   (contents, props changed)
Modified:
  head/cad/cura/Makefile

Modified: head/cad/cura/Makefile
==============================================================================
--- head/cad/cura/Makefile	Fri Jul 24 19:52:00 2020	(r543375)
+++ head/cad/cura/Makefile	Fri Jul 24 20:09:59 2020	(r543376)
@@ -3,7 +3,7 @@
 PORTNAME=	Cura
 DISTVERSION=	4.5.0-82
 DISTVERSIONSUFFIX=	-g7c70ace
-PORTREVISION=	2
+PORTREVISION=	3	
 PORTEPOCH=	2
 CATEGORIES=	cad
 DIST_SUBDIR=	Ultimaker

Added: head/cad/cura/files/patch-plugins_USBPrinting_USBPrinterOutputDeviceManager.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/cura/files/patch-plugins_USBPrinting_USBPrinterOutputDeviceManager.py	Fri Jul 24 20:09:59 2020	(r543376)
@@ -0,0 +1,14 @@
+We cannot really distinguish between USB and non-USB here,
+as port[2] is 'n/a' on FreeBSD.
+
+--- plugins/USBPrinting/USBPrinterOutputDeviceManager.py.orig	2020-07-23 19:29:25 UTC
++++ plugins/USBPrinting/USBPrinterOutputDeviceManager.py
+@@ -112,8 +112,6 @@ class USBPrinterOutputDeviceManager(QObject, OutputDev
+         for port in serial.tools.list_ports.comports():
+             if not isinstance(port, tuple):
+                 port = (port.device, port.description, port.hwid)
+-            if only_list_usb and not port[2].startswith("USB"):
+-                continue
+ 
+             # To prevent cura from messing with serial ports of other devices,
+             # filter by regular expressions passed in as environment variables.



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