Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Aug 2006 01:09:46 +0100
From:      Mark Hobden <markhobden@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/101790: [patch] update comms/libirman to 0.4.4 and fix problem with reopening the device.
Message-ID:  <20060811000948.F279E43D73@mx1.FreeBSD.org>
Resent-Message-ID: <200608110010.k7B0AHLO007793@freefall.freebsd.org>

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

>Number:         101790
>Category:       ports
>Synopsis:       [patch] update comms/libirman to 0.4.4 and fix problem with reopening the device.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 11 00:10:16 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Mark Hobden
>Release:        FreeBSD 6.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD mark.mclgm.net 6.1-RELEASE FreeBSD 6.1-RELEASE #4: Wed May 31 15:36:18 BST 2006 mark@mark.mclgm.net:/usr/obj/usr/src/sys/GENERIC i386

>Description:
Update to 0.4.4:
	better IRA-3 support
	fixes compile with gcc 4.0
The new patch file resets the device before trying to talk to it. This means the program using the device can be
reloaded without removing and reattaching the device first.

The maintainer has approved the patch via email and has been cc'd.
>How-To-Repeat:
>Fix:

--- libirman.diff begins here ---
diff -ur --new-file libirman.orig/Makefile libirman/Makefile
--- libirman.orig/Makefile	Sun Feb 20 08:05:18 2005
+++ libirman/Makefile	Fri Aug 11 00:43:56 2006
@@ -6,8 +6,7 @@
 #
 
 PORTNAME=	libirman
-PORTVERSION=	0.4.2
-PORTREVISION=	1
+PORTVERSION=	0.4.4
 CATEGORIES=	comms
 MASTER_SITES=	http://lirc.sourceforge.net/software/snapshots/
 
diff -ur --new-file libirman.orig/distinfo libirman/distinfo
--- libirman.orig/distinfo	Sun Jan 22 08:22:01 2006
+++ libirman/distinfo	Fri Aug 11 00:14:01 2006
@@ -1,3 +1,3 @@
-MD5 (libirman-0.4.2.tar.gz) = b99017d049685cb84a95098190a89de8
-SHA256 (libirman-0.4.2.tar.gz) = 43b12f243c6978ffa85dc4a606335b1e46b5df870e61e3381387edae4f20beb8
-SIZE (libirman-0.4.2.tar.gz) = 52665
+MD5 (libirman-0.4.4.tar.gz) = b3898fb7f0bc6995cee8950a1bd73368
+SHA256 (libirman-0.4.4.tar.gz) = b29d0858450c56fca97c03cb1032e3b469166d431bfa7327fa3183d31a9f64b2
+SIZE (libirman-0.4.4.tar.gz) = 52782
diff -ur --new-file libirman.orig/files/patch-irio.c libirman/files/patch-irio.c
--- libirman.orig/files/patch-irio.c	Thu Jan  1 01:00:00 1970
+++ libirman/files/patch-irio.c	Fri Aug 11 00:04:05 2006
@@ -0,0 +1,43 @@
+--- irio.c.orig	Mon Mar 29 00:42:41 1999
++++ irio.c	Thu Aug 10 22:44:50 2006
+@@ -66,17 +66,11 @@
+  *
+  */
+ 
+-/*
+- * Ignore the things in SUNATTEMPT.  They're not even needed for a Sun.
+- */
+- 
+-
+ int ir_open_port(char *filename)
+ {
+   int parnum = 0;
+-#ifdef SUNATTEMPT
++  int clearhand = 0;
+   int hand = TIOCM_DTR | TIOCM_RTS;
+-#endif
+   int baudrate=B9600;
+ 
+   /* get a file descriptor */
+@@ -188,13 +182,19 @@
+     return -1;
+   }
+ 
+-#ifdef SUNATTEMPT
++  /* drop the control lines to cut power to the unit */
++  if (ioctl(portfd, TIOCMSET, &clearhand) < 0) {
++    printf("ioctl error\n");
++    return -1;
++  }
++
++  sleep(2);
++
+   /* raise the control lines to power the unit*/
+   if (ioctl(portfd, TIOCMSET, &hand) < 0) {
+     printf("ioctl error\n");
+     return -1;
+   }
+-#endif
+ 
+   /* wait a little while for everything to settle through */
+   ir_usleep(IR_POWER_ON_LATENCY);
--- libirman.diff ends here ---


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



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