Your message dated Wed, 28 Dec 2011 19:42:00 +0000
with message-id <[email protected]>
and subject line Bug#597526: fixed in ruby-serialport 1.0.4-1
has caused the Debian Bug report #597526,
regarding libserialport-ruby1.8: get/set line state (cts/dtr) is broken
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
597526: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=597526
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libserialport-ruby1.8
Version: 0.7.0-1
Severity: normal
Tags: upstream patch

Hi,

Reading the CTS and setting the DTR line state is broken:
$ irb1.8
irb(main):001:0> require 'serialport'
=> true
irb(main):002:0> s = SerialPort.new('/dev/ttyUSB0', 19200)
=> #<SerialPort:0xb74eaf7c>
irb(main):003:0> s.dtr = 0
irb: symbol lookup error: /usr/lib/ruby/1.8/i486-linux/serialport.so:
undefined symbol: set_signal
zsh: exit 127

$ irb1.8
irb(main):001:0> require 'serialport'
=> true
irb(main):002:0> s = SerialPort.new('/dev/ttyUSB0', 19200)
=> #<SerialPort:0xb74c8a30>
irb(main):003:0> s.cts
irb: symbol lookup error: /usr/lib/ruby/1.8/i486-linux/serialport.so:
undefined symbol: get_line_signals_helper
zsh: exit 127

The attached patch fixes this problem.  The version is very old, there is a
new upstream version (0.7.2) available:
http://github.com/toholio/ruby-serialport

And even a forked version 1.0.1 (since the original hasn't been modified since
2008) at http://github.com/toholio/ruby-serialport

If you need help, just contact me.  If you aren't interested in maintaining
this package any more, I would gladly take it over.

Cheers,
- Alexander

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libserialport-ruby1.8 depends on:
ii  libc6                        2.11.2-2    Embedded GNU C Library: Shared lib
ii  libruby1.8                   1.8.7.302-2 Libraries necessary to run Ruby 1.

libserialport-ruby1.8 recommends no packages.

libserialport-ruby1.8 suggests no packages.

-- no debconf information
diff --git a/ext/impl/posix_serialport.c b/ext/impl/posix_serialport.c
index 8ed5c2d..71fee84 100644
--- a/ext/impl/posix_serialport.c
+++ b/ext/impl/posix_serialport.c
@@ -631,13 +631,13 @@ static VALUE set_signal_impl(obj, val, sig)
 static VALUE sp_set_rts_impl(self, val)
    VALUE self, val;
 {
-   return set_signal(self, val, TIOCM_RTS);
+   return set_signal_impl(self, val, TIOCM_RTS);
 }
 
 static VALUE sp_set_dtr_impl(self, val)
    VALUE self, val;
 {
-   return set_signal(self, val, TIOCM_DTR);
+   return set_signal_impl(self, val, TIOCM_DTR);
 }
 
 static VALUE sp_get_rts_impl(self)
@@ -645,7 +645,7 @@ static VALUE sp_get_rts_impl(self)
 {
    struct line_signals ls;
 
-   get_line_signals_helper(self, &ls);
+   get_line_signals_helper_impl(self, &ls);
    return INT2FIX(ls.rts);
 }
 
@@ -654,7 +654,7 @@ static VALUE sp_get_dtr_impl(self)
 {
    struct line_signals ls;
 
-   get_line_signals_helper(self, &ls);
+   get_line_signals_helper_impl(self, &ls);
 
    return INT2FIX(ls.dtr);
 }

Attachment: signature.asc
Description: Digital signature


--- End Message ---
--- Begin Message ---
Source: ruby-serialport
Source-Version: 1.0.4-1

We believe that the bug you reported is fixed in the latest version of
ruby-serialport, which is due to be installed in the Debian FTP archive:

libserialport-ruby1.8_1.0.4-1_all.deb
  to main/r/ruby-serialport/libserialport-ruby1.8_1.0.4-1_all.deb
libserialport-ruby_1.0.4-1_all.deb
  to main/r/ruby-serialport/libserialport-ruby_1.0.4-1_all.deb
ruby-serialport_1.0.4-1.debian.tar.gz
  to main/r/ruby-serialport/ruby-serialport_1.0.4-1.debian.tar.gz
ruby-serialport_1.0.4-1.dsc
  to main/r/ruby-serialport/ruby-serialport_1.0.4-1.dsc
ruby-serialport_1.0.4-1_amd64.deb
  to main/r/ruby-serialport/ruby-serialport_1.0.4-1_amd64.deb
ruby-serialport_1.0.4.orig.tar.gz
  to main/r/ruby-serialport/ruby-serialport_1.0.4.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Paul van Tilburg <[email protected]> (supplier of updated ruby-serialport 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Wed, 28 Dec 2011 16:27:04 +0100
Source: ruby-serialport
Binary: ruby-serialport libserialport-ruby libserialport-ruby1.8
Architecture: source amd64 all
Version: 1.0.4-1
Distribution: unstable
Urgency: low
Maintainer: Debian Ruby Extras Maintainers 
<[email protected]>
Changed-By: Paul van Tilburg <[email protected]>
Description: 
 libserialport-ruby - Transitional package for ruby-serialport
 libserialport-ruby1.8 - Transitional package for ruby-serialport
 ruby-serialport - Library for using RS-232 serial ports from Ruby programs
Closes: 597526
Changes: 
 ruby-serialport (1.0.4-1) unstable; urgency=low
 .
   * New upstream release (closes: #597526).
   * Source packages adapted according to the new Ruby policy:
     - Build for both ruby1.8 and ruby1.9.1.
     - Migrated to pkg-ruby-extras git repos. Changed the Vcs-* fields in
       debian/control accordingly.
     - Changed the depends and recommends to follow the new Ruby
       library naming scheme.
   * debian/control:
     - Added a default DM-Upload-Allowed field set to yes.
     - Standards-Version bumped to 3.9.2; no changes required.
     - Set XS-Ruby-Versions to all.
     - Changed the build-depends for using gem2deb instead of ruby-pkg-tools.
     - Switched the maintainer with the uploaders field as per new
       convention the team is the default maintainer.
     - Added libserialport-ruby and libserialport-ruby1.8 as transitional
       packages.
   * debian/copyright: reworked to fit the DEP5 format.
   * debian/rules: disable tests for now, a TTY device is not guaranteed to be
     available.
Checksums-Sha1: 
 88f4d746cc3e02e50751b328d88a32097e8ec804 1576 ruby-serialport_1.0.4-1.dsc
 e9060ee32064fb2d58a2e3dbad59c87297bc7d37 20550 
ruby-serialport_1.0.4.orig.tar.gz
 49592c0ee81a58aedb51c741fef454afb9c2a33c 3048 
ruby-serialport_1.0.4-1.debian.tar.gz
 42b5c2cec3e35aec40a28ee2779c34244bab6f0f 17752 
ruby-serialport_1.0.4-1_amd64.deb
 c8f7ce2584f4e62a9de2aa359fe4ebcd5305a1b6 4004 
libserialport-ruby_1.0.4-1_all.deb
 168e762f10579117a83d2b68738f241900c4b3af 4008 
libserialport-ruby1.8_1.0.4-1_all.deb
Checksums-Sha256: 
 e3a04efecfc7fa799d7d8c07e4df6a1867b463140bf81762aab519c685a92bb6 1576 
ruby-serialport_1.0.4-1.dsc
 e00fa6ea5b53868a4b484d63fe078ef8e32e616870a94f6696257ea70616c5c4 20550 
ruby-serialport_1.0.4.orig.tar.gz
 32f917ee46e4935bdc02cecd763e030324c2aed175a0ce26015f2ad8897eb5af 3048 
ruby-serialport_1.0.4-1.debian.tar.gz
 9df990de270c65a87becd55121d59a5679c6e98cc51ff8cc43cedc58f8bc392f 17752 
ruby-serialport_1.0.4-1_amd64.deb
 1d0cb3ed687c0f566e85318d7deb87c8a90562268b6cde4ba16c4613e5fbc618 4004 
libserialport-ruby_1.0.4-1_all.deb
 4078c484341f37e6ac0252b266e6a17ff00c833375e15fcc755a69361b7a3871 4008 
libserialport-ruby1.8_1.0.4-1_all.deb
Files: 
 4038be3452b68a6320e913e49a3ab1b7 1576 ruby optional ruby-serialport_1.0.4-1.dsc
 4bf5d22be0e1ccac6bd6b947916e884f 20550 ruby optional 
ruby-serialport_1.0.4.orig.tar.gz
 0440d96a3a800d54376c6233428c9297 3048 ruby optional 
ruby-serialport_1.0.4-1.debian.tar.gz
 c0ab88d0918328a89e1e644276e24d80 17752 ruby optional 
ruby-serialport_1.0.4-1_amd64.deb
 58a70309b3dae70811e27f069040bf28 4004 oldlibs extra 
libserialport-ruby_1.0.4-1_all.deb
 3a36e65d4b59892775d45402c858e1be 4008 oldlibs extra 
libserialport-ruby1.8_1.0.4-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk77OWQACgkQJBBhylAGQYGKCACeMjRZHV5ISR7vqgi6wON/gNT2
BWsAn0QO8tEylTLqxaCEhuf2tdoXkcoY
=6Fvt
-----END PGP SIGNATURE-----



--- End Message ---
_______________________________________________
Pkg-ruby-extras-maintainers mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ruby-extras-maintainers

Reply via email to