From owner-freebsd-questions@FreeBSD.ORG Sat Nov 19 17:17:09 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D4E7316A41F for ; Sat, 19 Nov 2005 17:17:09 +0000 (GMT) (envelope-from smithi@nimnet.asn.au) Received: from gaia.nimnet.asn.au (nimbin.lnk.telstra.net [139.130.45.143]) by mx1.FreeBSD.org (Postfix) with ESMTP id C3A7243D53 for ; Sat, 19 Nov 2005 17:17:04 +0000 (GMT) (envelope-from smithi@nimnet.asn.au) Received: from nimnet.asn.au (89896c69f1ee429106336fcfd0478427@dialup1.nimnet.asn.au [203.41.52.161]) by gaia.nimnet.asn.au (8.8.8/8.8.8R1.4) with ESMTP id EAA07604 for ; Sun, 20 Nov 2005 04:17:00 +1100 (EST) (envelope-from smithi@nimnet.asn.au) Sender: smithi@nimnet.asn.au Message-ID: <437F5E03.7C0EACEA@nimnet.asn.au> Date: Sun, 20 Nov 2005 04:16:51 +1100 From: Ian Smith Organization: Nimbin Network Association X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.2 i386) X-Accept-Language: en, en-GB, en-US MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: comms/mlan3 port woes X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Nov 2005 17:17:09 -0000 Hello, I've been lent a couple of DS1921 ThermoCron iButtons and serial reader for a while, so installed mlan3 (mlan3-1.00) as a package. tstfind finds and lists the ibuttons ok, but the thermocron programs (thermodl and thermoms) are not included, though I'd noticed them in the sources. So I had a look at the port, found the patch-aa file is all wrong for the thermo make (and another in the apps suite, swtloop). Then had a look at phk's earlier mlan port and sure enough, the two wanted programs are in its pkg-plist, so I installed package mlan-1.03 .. and they work fine .. paqi# thermodl /dev/cuaa0 | grep -v \[EC\]\[nl\] | tail -7 12/25/2041 23:26 , 27.0 12/26/2041 00:26 , 26.0 12/26/2041 01:26 , 25.0 12/26/2041 02:26 , 24.0 12/26/2041 03:26 , 23.5 12/26/2041 04:26 , 23.0 paqi# thermodl /dev/cuaa0 /f | grep -v \[EC\]\[nl\] | tail -7 12/25/2041 23:26 , 80.6 12/26/2041 00:26 , 78.8 12/26/2041 01:26 , 77.0 12/26/2041 02:26 , 75.2 12/26/2041 03:26 , 74.3 12/26/2041 04:26 , 73.4 .. except those dates and times could really benefit from the Y2K patches mentioned in the mlan3 sources :) Log data with bad timestamps is useless as I want to scoop these logs into a database, preferably without having to write a date-conversion filter (though that's my last recourse). I've also successfully run thermoms, the 'missioning' program, which thankfully doesn't reprogram the thermocron's RTC to weird(er) times. So I'm stuck; searched the freebsd-ports list archives, and only came up with someone else in '04 having the same problem, with no response. This a 4.5-R box, but I've checked; apart from an 'unbreak on 5.x' patch there are no changes with respect to the missing programs' Makefiles: http://www.freebsd.org/cgi/cvsweb.cgi/ports/comms/mlan3/files/patch-aa?rev=1.2&content-type=text/x-cvsweb-markup I can *almost* see what needs doing to patch-aa to hopefully fix the broken make for the thermo programs, cloned from other subdir Makefiles, but I don't know how to go about fixing that, where to put things, or how to generate an updated patch file and apply it. Perhaps these two didn't build right for the mlan3 porter? (hm@) I don't want to spend too much time if they still aren't going to build, or work. Can anyone help, or advise? Cheers, Ian