Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 399003 - New Ebuild: sci-electronics/cdmm-0.3 - a console program to read data from RS232 Digital MultiMeters
Summary: New Ebuild: sci-electronics/cdmm-0.3 - a console program to read data from RS...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Default Assignee for New Packages
Keywords: EBUILD
Depends on:
Reported: 2012-01-15 16:27 UTC by Richard Ash
Modified: 2012-01-18 17:43 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---

Patch to fix the compile errors caused by missing includes (cdmm-0.3-includes.patch,2.04 KB, patch)
2012-01-15 16:29 UTC, Richard Ash
Details | Diff
Ebuild for cdmm 0.3 (cdmm-0.3.ebuild,1.08 KB, text/plain)
2012-01-15 16:44 UTC, Richard Ash
patch to fix a bug with flow control lines (cdmm-0.3-flowcontrol.patch,455 bytes, patch)
2012-01-18 17:40 UTC, Richard Ash
Details | Diff
Patch adding support for Tenma 72-7745 meter (cdmm-0.3-tenma.patch,676 bytes, patch)
2012-01-18 17:42 UTC, Richard Ash
Details | Diff
Updated ebuild which applies all three patches (cdmm-0.3.ebuild,1.15 KB, text/plain)
2012-01-18 17:43 UTC, Richard Ash

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Ash 2012-01-15 16:27:52 UTC
The console part of the QTDMM2 package does not depend on QT other than running qmake, and provides a useful tool to read the bizarre data formats emitted by digital multi-meters with RS232 serial ports.

The package fails to build due to some missing includes, and does not have a make install target. This makes the ebuild slightly less than trivial.The associated patch has been sent upstream.

Reproducible: Always

$ emerge --info
Portage (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.13-r4, 3.0.6-gentooamd64 x86_64)
System uname: Linux-3.0.6-gentooamd64-x86_64-AMD_Athlon-tm-_II_X4_620_Processor-with-gentoo-2.0.3
Timestamp of tree: Sun, 15 Jan 2012 14:15:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.4-r3
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo x-portage
ACCEPT_LICENSE="* -@EULA dlj-1.1 AdobeFlash-10.1 Oracle-BCLA-JavaSE"
CFLAGS="-O2 -march=native -mtune=native -pipe -fomit-frame-pointer"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -mtune=native -pipe -fomit-frame-pointer"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_GB"
MAKEOPTS="-j 6 -l 4.0"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
USE="3dnow 3dnowext 7zip X a52 aac acpi activefilter alsa amd64 amr asf audiofile bash-completion berkdb bidi binary-drivers branding bzip2 bzlib cairo cdda cddax cddb cdio cdparanoia cdr cdrom chm cjk cli consolekit cracklib crypt cscope css cups curlwrappers cxx dbase dbus dga dhcp dirac dnd dpms dri drm droproot dts dv dvb dvd dvdr dvdread edl emboss emf encode erandom evolution exif faac faad fame ffmpeg fftw firefox flac flash fortran fpx ftp fuse gdbm gdu geolocation gif gimp gimpprint git glut gnutls gphoto2 gpm gpu gs gstreamer iconv id3tag ieee1394 image imagemagick imap inkjar ipv6 jack jack-tmpfs javadoc javascript jp2 jpeg jpeg2k kde ladcca ladspa lame largeterminal lcms libnotify libvisual live lm_sensors lzo lzw lzw-tiff mad mbox md5sum mdb mime ming mixer mjpeg mmx mmxext mng modules mp2 mp3 mp4 mpeg mpeg2 mpeg4 mplayer mpm-prefork mudflap multilib musicbrainz ncurses network nls no-old-linux no24bpp nodrm noplugin nothemes nptl nptlonly nvidia ogg opencore-amr opengl openmp pam pango pcre pdf pdfkit plugin png policykit portaudio postgres postscript ppds pppd qt3support qt4 quicktime readline redeyes rtc rtsp samba schroedinger sdl semantic-desktop server session sftplogging smp sndfile sockets soundtouch sox speex spell sql sqlite sse sse2 ssl startup-notification stream subversion svg svgz sysfs syslog sysvipc taglib tcpd tga theora threads tidy tiff timidity transcode truetype twolame udev unicode usb userlocales utf8 v4l v4l2 vamp vdpau vhosts vim vim-syntax virtual vorbis wmf x11vnc x264 xanim xbase xcb xinerama xml xorg xosd xulrunner xv xvid xvmc yv12 zlib" ALSA_CARDS="hda_intel via82xx ens1371 dummy loopback" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="canon fuji ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse hyperpen void evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 arm x86_64" QEMU_USER_TARGETS="arm x86_64" RUBY_TARGETS="ruby18" SANE_BACKENDS="net hp hp3500 hp3900 hp4200 hp5400 hp5590 hpljm1005" USERLAND="GNU" VIDEO_CARDS="nvidia nv v4l vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Comment 1 Richard Ash 2012-01-15 16:29:00 UTC
Created attachment 299011 [details, diff]
Patch to fix the compile errors caused by missing includes

Without this patch (sent upstream) it doesn't compile.
Comment 2 Richard Ash 2012-01-15 16:44:13 UTC
Created attachment 299017 [details]
Ebuild for cdmm 0.3

This ebuild applies the patch and builds+installs correctly on amd64 and x86
Comment 3 Richard Ash 2012-01-18 17:40:57 UTC
Created attachment 299253 [details, diff]
patch to fix a bug with flow control lines

I found a bug which was causing the program not to set flow control correctly, which stopped my meter working because it powers the optoisolator from the flow control. Patch has been sent upstream.
Comment 4 Richard Ash 2012-01-18 17:42:30 UTC
Created attachment 299255 [details, diff]
Patch adding support for Tenma 72-7745 meter

This is a feature add patch - but it means that my hardware works much more easily than without it. Patch has been sent upstream.
Comment 5 Richard Ash 2012-01-18 17:43:32 UTC
Created attachment 299257 [details]
Updated ebuild which applies all three patches

Here we go, an ebuild that patches the sources with all my patches. Tested on x86 and amd64