Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Jun 2013 22:17:46 GMT
From:      Uffe Jakobsen <uffe@uffe.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/179853: New port: devel/libsigrok
Message-ID:  <201306222217.r5MMHklX097644@oldred.freebsd.org>
Resent-Message-ID: <201306222220.r5MMK0hw010704@freefall.freebsd.org>

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

>Number:         179853
>Category:       ports
>Synopsis:       New port: devel/libsigrok
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 22 22:20:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Uffe Jakobsen
>Release:        FreeBSD 9.1
>Organization:
>Environment:
FreeBSD asus-u32u 9.1-RELEASE-p4 FreeBSD 9.1-RELEASE-p4 #0: Mon Jun 17 11:42:37 UTC 2013     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
New port: devel/libsigrok

The sigrok project aims at creating a portable, cross-platform,
Free/Libre/Open-Source signal analysis software suite that supports
various device types, such as logic analyzers, MSOs, oscilloscopes,
multimeters, LCR meters, sound level meters, thermometers, 
hygrometers, anemometers, light meters, DAQs, dataloggers, 
function generators, spectrum analyzers, power supplies,
GPIB interfaces, and more. 

WWW: http://sigrok.org/

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	libsigrok
#	libsigrok/pkg-plist
#	libsigrok/pkg-descr
#	libsigrok/distinfo
#	libsigrok/Makefile
#	libsigrok/files
#	libsigrok/files/patch-hardware-victor-dmm-api.c
#	libsigrok/files/patch-hardware-lascar-el-usb-protocol.c
#
echo c - libsigrok
mkdir -p libsigrok > /dev/null 2>&1
echo x - libsigrok/pkg-plist
sed 's/^X//' >libsigrok/pkg-plist << '3a94c2b6a9b86a15c23082131f60af5d'
Xbin/ar65
Xbin/ca65
Xbin/ca65html
Xbin/cc65
Xbin/cl65
Xbin/co65
Xbin/da65
Xbin/grc
Xbin/ld65
Xbin/od65
Xlib/cc65/asminc/_file.inc
Xlib/cc65/asminc/_heap.inc
Xlib/cc65/asminc/apple2.inc
Xlib/cc65/asminc/atari.inc
Xlib/cc65/asminc/atmos.inc
Xlib/cc65/asminc/c128.inc
Xlib/cc65/asminc/c16.inc
Xlib/cc65/asminc/c64.inc
Xlib/cc65/asminc/cbm510.inc
Xlib/cc65/asminc/cbm610.inc
Xlib/cc65/asminc/ctype.inc
Xlib/cc65/asminc/em-error.inc
Xlib/cc65/asminc/em-kernel.inc
Xlib/cc65/asminc/errno.inc
Xlib/cc65/asminc/fcntl.inc
Xlib/cc65/asminc/get_tv.inc
Xlib/cc65/asminc/joy-error.inc
Xlib/cc65/asminc/joy-kernel.inc
Xlib/cc65/asminc/lynx.inc
Xlib/cc65/asminc/modload.inc
Xlib/cc65/asminc/mouse-kernel.inc
Xlib/cc65/asminc/nes.inc
Xlib/cc65/asminc/o65.inc
Xlib/cc65/asminc/pet.inc
Xlib/cc65/asminc/plus4.inc
Xlib/cc65/asminc/rs232.inc
Xlib/cc65/asminc/ser-error.inc
Xlib/cc65/asminc/ser-kernel.inc
Xlib/cc65/asminc/signal.inc
Xlib/cc65/asminc/stdio.inc
Xlib/cc65/asminc/supervision.inc
Xlib/cc65/asminc/tgi-error.inc
Xlib/cc65/asminc/tgi-kernel.inc
Xlib/cc65/asminc/tgi-mode.inc
Xlib/cc65/asminc/time.inc
Xlib/cc65/asminc/utsname.inc
Xlib/cc65/asminc/vic20.inc
Xlib/cc65/asminc/zeropage.inc
Xlib/cc65/cfg/apple2-dos33.cfg
Xlib/cc65/cfg/apple2-loader.cfg
Xlib/cc65/cfg/apple2-reboot.cfg
Xlib/cc65/cfg/apple2-system.cfg
Xlib/cc65/cfg/apple2enh-dos33.cfg
Xlib/cc65/cfg/apple2enh-loader.cfg
Xlib/cc65/cfg/apple2enh-reboot.cfg
Xlib/cc65/cfg/apple2enh-system.cfg
Xlib/cc65/cfg/supervision-128k.cfg
Xlib/cc65/cfg/supervision-16k.cfg
Xlib/cc65/cfg/supervision-64k.cfg
Xlib/cc65/cfg/vic20-32k.cfg
Xlib/cc65/emd/a2.auxmem.emd
Xlib/cc65/emd/a2e.auxmem.emd
Xlib/cc65/emd/c128-georam.emd
Xlib/cc65/emd/c128-ram.emd
Xlib/cc65/emd/c128-ramcart.emd
Xlib/cc65/emd/c128-reu.emd
Xlib/cc65/emd/c128-vdc.emd
Xlib/cc65/emd/c16-ram.emd
Xlib/cc65/emd/c64-georam.emd
Xlib/cc65/emd/c64-ram.emd
Xlib/cc65/emd/c64-ramcart.emd
Xlib/cc65/emd/c64-reu.emd
Xlib/cc65/emd/c64-vdc.emd
Xlib/cc65/emd/cbm510-ram.emd
Xlib/cc65/emd/cbm610-ram.emd
Xlib/cc65/emd/dtv-himem.emd
Xlib/cc65/emd/geos-vdc.emd
Xlib/cc65/include/6502.h
Xlib/cc65/include/_6522.h
Xlib/cc65/include/_6525.h
Xlib/cc65/include/_6526.h
Xlib/cc65/include/_6545.h
Xlib/cc65/include/_6551.h
Xlib/cc65/include/_antic.h
Xlib/cc65/include/_gtia.h
Xlib/cc65/include/_heap.h
Xlib/cc65/include/_pbi.h
Xlib/cc65/include/_pia.h
Xlib/cc65/include/_pokey.h
Xlib/cc65/include/_sid.h
Xlib/cc65/include/_ted.h
Xlib/cc65/include/_vdc.h
Xlib/cc65/include/_vic.h
Xlib/cc65/include/_vic2.h
Xlib/cc65/include/ace.h
Xlib/cc65/include/apple2.h
Xlib/cc65/include/apple2enh.h
Xlib/cc65/include/assert.h
Xlib/cc65/include/atari.h
Xlib/cc65/include/atmos.h
Xlib/cc65/include/c128.h
Xlib/cc65/include/c16.h
Xlib/cc65/include/c64.h
Xlib/cc65/include/cbm.h
Xlib/cc65/include/cbm264.h
Xlib/cc65/include/cbm510.h
Xlib/cc65/include/cbm610.h
Xlib/cc65/include/conio.h
Xlib/cc65/include/ctype.h
Xlib/cc65/include/dbg.h
Xlib/cc65/include/dio.h
Xlib/cc65/include/dirent.h
Xlib/cc65/include/em.h
Xlib/cc65/include/em/em-kernel.h
Xlib/cc65/include/errno.h
Xlib/cc65/include/fcntl.h
Xlib/cc65/include/geos.h
Xlib/cc65/include/geos/gconst.h
Xlib/cc65/include/geos/gdisk.h
Xlib/cc65/include/geos/gdlgbox.h
Xlib/cc65/include/geos/gfile.h
Xlib/cc65/include/geos/ggraph.h
Xlib/cc65/include/geos/gmemory.h
Xlib/cc65/include/geos/gmenu.h
Xlib/cc65/include/geos/gprocess.h
Xlib/cc65/include/geos/gsprite.h
Xlib/cc65/include/geos/gstruct.h
Xlib/cc65/include/geos/gsym.h
Xlib/cc65/include/geos/gsys.h
Xlib/cc65/include/inttypes.h
Xlib/cc65/include/iso646.h
Xlib/cc65/include/joystick.h
Xlib/cc65/include/joystick/joy-kernel.h
Xlib/cc65/include/limits.h
Xlib/cc65/include/locale.h
Xlib/cc65/include/lynx.h
Xlib/cc65/include/modload.h
Xlib/cc65/include/mouse.h
Xlib/cc65/include/mouse/mouse-kernel.h
Xlib/cc65/include/nes.h
Xlib/cc65/include/o65.h
Xlib/cc65/include/peekpoke.h
Xlib/cc65/include/pet.h
Xlib/cc65/include/plus4.h
Xlib/cc65/include/rs232.h
Xlib/cc65/include/serial.h
Xlib/cc65/include/setjmp.h
Xlib/cc65/include/signal.h
Xlib/cc65/include/stdarg.h
Xlib/cc65/include/stdbool.h
Xlib/cc65/include/stddef.h
Xlib/cc65/include/stdint.h
Xlib/cc65/include/stdio.h
Xlib/cc65/include/stdlib.h
Xlib/cc65/include/string.h
Xlib/cc65/include/supervision.h
Xlib/cc65/include/sys/types.h
Xlib/cc65/include/sys/utsname.h
Xlib/cc65/include/tgi.h
Xlib/cc65/include/tgi/tgi-error.h
Xlib/cc65/include/tgi/tgi-kernel.h
Xlib/cc65/include/tgi/tgi-mode.h
Xlib/cc65/include/time.h
Xlib/cc65/include/unistd.h
Xlib/cc65/include/vic20.h
Xlib/cc65/include/zlib.h
Xlib/cc65/joy/a2.stdjoy.joy
Xlib/cc65/joy/a2e.stdjoy.joy
Xlib/cc65/joy/atarimj8.joy
Xlib/cc65/joy/ataristd.joy
Xlib/cc65/joy/c128-ptvjoy.joy
Xlib/cc65/joy/c128-stdjoy.joy
Xlib/cc65/joy/c16-stdjoy.joy
Xlib/cc65/joy/c64-hitjoy.joy
Xlib/cc65/joy/c64-numpad.joy
Xlib/cc65/joy/c64-ptvjoy.joy
Xlib/cc65/joy/c64-stdjoy.joy
Xlib/cc65/joy/cbm510-std.joy
Xlib/cc65/joy/geos-stdjoy.joy
Xlib/cc65/joy/lynx-stdjoy.joy
Xlib/cc65/joy/nes-stdjoy.joy
Xlib/cc65/joy/pet-ptvjoy.joy
Xlib/cc65/joy/plus4-stdjoy.joy
Xlib/cc65/joy/vic20-ptvjoy.joy
Xlib/cc65/joy/vic20-stdjoy.joy
Xlib/cc65/lib/apple2.lib
Xlib/cc65/lib/apple2enh.lib
Xlib/cc65/lib/atari.lib
Xlib/cc65/lib/atmos.lib
Xlib/cc65/lib/c128.lib
Xlib/cc65/lib/c16.lib
Xlib/cc65/lib/c64.lib
Xlib/cc65/lib/cbm510.lib
Xlib/cc65/lib/cbm610.lib
Xlib/cc65/lib/geos.lib
Xlib/cc65/lib/lynx.lib
Xlib/cc65/lib/nes.lib
Xlib/cc65/lib/pet.lib
Xlib/cc65/lib/plus4.lib
Xlib/cc65/lib/supervision.lib
Xlib/cc65/lib/vic20.lib
Xlib/cc65/mou/a2.stdmou.mou
Xlib/cc65/mou/a2e.stdmou.mou
Xlib/cc65/mou/c128-1351.mou
Xlib/cc65/mou/c128-joy.mou
Xlib/cc65/mou/c128-pot.mou
Xlib/cc65/mou/c64-1351.mou
Xlib/cc65/mou/c64-joy.mou
Xlib/cc65/mou/c64-pot.mou
Xlib/cc65/obj/apple2-iobuf-0800.o
Xlib/cc65/obj/apple2enh-iobuf-0800.o
Xlib/cc65/ser/a2.ssc.ser
Xlib/cc65/ser/a2e.ssc.ser
Xlib/cc65/ser/c128-swlink.ser
Xlib/cc65/ser/c64-swlink.ser
Xlib/cc65/ser/cbm510-std.ser
Xlib/cc65/ser/cbm610-std.ser
Xlib/cc65/ser/lynx-comlynx.ser
Xlib/cc65/ser/plus4-stdser.ser
Xlib/cc65/tgi/a2.hi.tgi
Xlib/cc65/tgi/a2.lo.tgi
Xlib/cc65/tgi/a2e.hi.tgi
Xlib/cc65/tgi/a2e.lo.tgi
Xlib/cc65/tgi/atmos-240-200-2.tgi
Xlib/cc65/tgi/c128-vdc.tgi
Xlib/cc65/tgi/c128-vdc2.tgi
Xlib/cc65/tgi/c64-hi.tgi
Xlib/cc65/tgi/geos-tgi.tgi
Xlib/cc65/tgi/lynx-160-102-16.tgi
X%%PORTDOCS%%%%DOCSDIR%%/BUGS
X%%PORTDOCS%%%%DOCSDIR%%/CREDITS
X%%PORTDOCS%%%%DOCSDIR%%/atari.mac
X%%PORTDOCS%%%%DOCSDIR%%/cbm.mac
X%%PORTDOCS%%%%DOCSDIR%%/compile.txt
X%%PORTDOCS%%%%DOCSDIR%%/cpu.mac
X%%PORTDOCS%%%%DOCSDIR%%/generic.mac
X%%PORTDOCS%%%%DOCSDIR%%/internal.txt
X%%PORTDOCS%%%%DOCSDIR%%/longbranch.mac
X%%PORTDOCS%%%%DOCSDIR%%/newvers.txt
X%%PORTDOCS%%%%DOCSDIR%%/readme.1st
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Makefile
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/README
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ascii.c
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/diodemo.c
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/fire.c
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/geos/appfile.grc
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/geos/apphello1.grc
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/geos/apphello2.grc
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/geos/apprmvprot.grc
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/geos/appvector-demo.grc
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/geos/appyesno.grc
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/geos/ca65-vlir/Makefile
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/geos/ca65-vlir/cvthead.grc
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/geos/ca65-vlir/vlir0.s
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/geos/ca65-vlir/vlir1.s
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/geos/ca65-vlir/vlir2.s
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/geos/dialog.c
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/geos/filesel.c
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/geos/geosconio.c
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/geos/geosconiores.res
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/geos/getid.c
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/geos/getidres.grc
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/geos/grphstr.c
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/geos/hello1.c
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/geos/hello2.c
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/geos/inittab.c
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/geos/menu.c
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/geos/rmvprot.c
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/geos/vector-demo.c
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/geos/yesno.c
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/gunzip65.c
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/hello.c
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mandelbrot.c
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mousedemo.c
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/nachtm.c
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/overlaydemo-apple2enh.cfg
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/overlaydemo-c64.cfg
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/overlaydemo.c
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/plasma.c
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sieve.c
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tgidemo.c
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tutorial/hello.c
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tutorial/text.s
X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/tutorial
X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/geos/ca65-vlir
X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/geos
X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
X@dirrm lib/cc65/tgi
X@dirrm lib/cc65/ser
X@dirrm lib/cc65/obj
X@dirrm lib/cc65/mou
X@dirrm lib/cc65/lib
X@dirrm lib/cc65/joy
X@dirrm lib/cc65/include/tgi
X@dirrm lib/cc65/include/sys
X@dirrm lib/cc65/include/mouse
X@dirrm lib/cc65/include/joystick
X@dirrm lib/cc65/include/geos
X@dirrm lib/cc65/include/em
X@dirrm lib/cc65/include
X@dirrm lib/cc65/emd
X@dirrm lib/cc65/cfg
X@dirrm lib/cc65/asminc
X@dirrm lib/cc65
3a94c2b6a9b86a15c23082131f60af5d
echo x - libsigrok/pkg-descr
sed 's/^X//' >libsigrok/pkg-descr << '1dd8ad2225647652e2c0f8ffa603b722'
XThe sigrok project aims at creating a portable, cross-platform,
XFree/Libre/Open-Source signal analysis software suite that supports
Xvarious device types, such as logic analyzers, MSOs, oscilloscopes,
Xmultimeters, LCR meters, sound level meters, thermometers, 
Xhygrometers, anemometers, light meters, DAQs, dataloggers, 
Xfunction generators, spectrum analyzers, power supplies,
XGPIB interfaces, and more. 
X
XWWW: http://sigrok.org/
1dd8ad2225647652e2c0f8ffa603b722
echo x - libsigrok/distinfo
sed 's/^X//' >libsigrok/distinfo << 'f4f3cec5eb62941ef0b1bce131730814'
XSHA256 (libsigrok-0.2.0.tar.gz) = 25b7930b7f5f0c3f8a8151e511cbffb97985f365fce338bb66f7bf111243b1de
XSIZE (libsigrok-0.2.0.tar.gz) = 852744
f4f3cec5eb62941ef0b1bce131730814
echo x - libsigrok/Makefile
sed 's/^X//' >libsigrok/Makefile << '073e2789db80640f8f775ecbe3f3ed36'
X# Created by: Uffe Jakobsen <uffe@uffe.org>
X# $FreeBSD: $
X
XPORTNAME=	libsigrok
XPORTVERSION=	0.2.0
XPORTREVISION=	1
XCATEGORIES=	devel
XMASTER_SITES= http://sigrok.org/download/source/libsigrok/
XEXTRACT_SUFX=	.tar.gz
X
XMAINTAINER=	uffe@uffe.org
XCOMMENT=	Library that supports various hardware logic analyzers, core library
X
XLIB_DEPENDS=	libzip:${PORTSDIR}/archivers/libzip
X
XGNU_CONFIGURE=	yes
XUSE_GMAKE=	yes
XMAKE_JOBS_UNSAFE=yes
X
X# Workaround FreeBSD 9.1 libusb not knowing LIBUSB_CLASS_APPLICATION
XCFLAGS+= -DLIBUSB_CLASS_APPLICATION=0xfe
X
X.include <bsd.port.mk>
073e2789db80640f8f775ecbe3f3ed36
echo c - libsigrok/files
mkdir -p libsigrok/files > /dev/null 2>&1
echo x - libsigrok/files/patch-hardware-victor-dmm-api.c
sed 's/^X//' >libsigrok/files/patch-hardware-victor-dmm-api.c << 'b96841fcc47074285ef2e221586528fa'
X--- ./hardware/victor-dmm/api.c.orig	2013-06-22 17:57:10.000000000 +0200
X+++ ./hardware/victor-dmm/api.c	2013-06-22 17:57:36.000000000 +0200
X@@ -379,8 +379,7 @@
X 	}
X 
X 	memset(&tv, 0, sizeof(struct timeval));
X-	libusb_handle_events_timeout_completed(drvc->sr_ctx->libusb_ctx, &tv,
X-					       NULL);
X+	libusb_handle_events_timeout(drvc->sr_ctx->libusb_ctx, &tv);
X 
X 	return TRUE;
X }
b96841fcc47074285ef2e221586528fa
echo x - libsigrok/files/patch-hardware-lascar-el-usb-protocol.c
sed 's/^X//' >libsigrok/files/patch-hardware-lascar-el-usb-protocol.c << 'd6bf37de142ab19c82d2e782ccc2d034'
X--- ./hardware/lascar-el-usb/protocol.c.orig	2013-06-22 17:57:14.000000000 +0200
X+++ ./hardware/lascar-el-usb/protocol.c	2013-06-22 17:57:56.000000000 +0200
X@@ -512,8 +512,7 @@
X 	}
X 
X 	memset(&tv, 0, sizeof(struct timeval));
X-	libusb_handle_events_timeout_completed(drvc->sr_ctx->libusb_ctx, &tv,
X-					       NULL);
X+	libusb_handle_events_timeout(drvc->sr_ctx->libusb_ctx, &tv);
X 
X 	return TRUE;
X }
d6bf37de142ab19c82d2e782ccc2d034
exit



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



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