Merge lp:~abogani/ubuntu/lucid/rxtx/rxtx-fix-361635 into lp:ubuntu/lucid/rxtx

Proposed by Alessio Igor Bogani
Status: Merged
Merge reported by: James Westby
Merged at revision: not available
Proposed branch: lp:~abogani/ubuntu/lucid/rxtx/rxtx-fix-361635
Merge into: lp:ubuntu/lucid/rxtx
Diff against target: 114 lines (+30/-8)
4 files modified
debian/changelog (+12/-0)
debian/control (+2/-1)
src/SerialImp.c (+14/-6)
src/SerialImp.h (+2/-1)
To merge this branch: bzr merge lp:~abogani/ubuntu/lucid/rxtx/rxtx-fix-361635
Reviewer Review Type Date Requested Status
Andrew Starr-Bochicchio Approve
Luke Yelavich Pending
Emmet Hikory Pending
Daniel Holbach Pending
Review via email: mp+15906@code.launchpad.net

This proposal supersedes a proposal from 2009-11-27.

To post a comment you must log in.
Revision history for this message
Alessio Igor Bogani (abogani) wrote : Posted in a previous version of this proposal

Backport from development tree of fix for 64 bit systems

Revision history for this message
Daniel Holbach (dholbach) wrote : Posted in a previous version of this proposal

 - Can you please add some documentation in debian/changelog about where exactly the patch is from and which files you changed?
 - Can you run update-maintainer (from ubuntu-dev-tools) to adhere to https://wiki.ubuntu.com/DebianMaintainerField

review: Needs Fixing
Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :

Marking "merged." This has already been uploaded to the archive, and the package importer has added it to lp:ubuntu/rxtx

See this revision:

http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/lucid/rxtx/lucid/revision/5

Thanks!

review: Approve
Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :

Hmmm... Not sure how to actually close this out. I can "claim the review" for Ubuntu Sponsors for universe and mark it approved, but I can't seem to change the status from "Needs review" to "Merged."

Revision history for this message
James Westby (james-w) wrote :

On Fri, 29 Jan 2010 01:19:33 -0000, Andrew Starr-Bochicchio <email address hidden> wrote:
> Hmmm... Not sure how to actually close this out. I can "claim the review" for Ubuntu Sponsors for universe and mark it approved, but I can't seem to change the status from "Needs review" to "Merged."

That would seem to be a bug in Launchpad, I'll investigate.

Thanks,

James

Revision history for this message
James Westby (james-w) wrote :

Ah, it's bug 504025.

Thanks,

James

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2008-07-21 18:20:31 +0000
+++ debian/changelog 2009-12-09 23:12:14 +0000
@@ -1,3 +1,15 @@
1rxtx (2.1.7r2-4ubuntu1) lucid; urgency=low
2
3 * Backport of fix for 64 bit systems
4 Source code changes have been backported from development
5 snapshot tarball (rxtx-2.2pre2.zip) downloaded from
6 http://rxtx.qbang.org/wiki/index.php/Download
7 These changes are related to int/long handling into src/SerialImp.c
8 and src/SerialImp.h
9 - LP: #361635
10
11 -- Alessio Igor Bogani <abogani@ubuntu.com> Tue, 09 Dec 2009 20:46:12 +0100
12
1rxtx (2.1.7r2-4) unstable; urgency=low13rxtx (2.1.7r2-4) unstable; urgency=low
214
3 * Changed Java build dependency to default-jdk-builddep.15 * Changed Java build dependency to default-jdk-builddep.
416
=== modified file 'debian/control'
--- debian/control 2008-07-21 18:20:31 +0000
+++ debian/control 2009-12-09 23:12:14 +0000
@@ -1,7 +1,8 @@
1Source: rxtx1Source: rxtx
2Section: libs2Section: libs
3Priority: optional3Priority: optional
4Maintainer: Mario Joussen <joussen@debian.org>4Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
5XSBC-Original-Maintainer: Mario Joussen <joussen@debian.org>
5Build-Depends: debhelper (>> 5.0.0), libtool, default-jdk-builddep6Build-Depends: debhelper (>> 5.0.0), libtool, default-jdk-builddep
6Standards-Version: 3.8.07Standards-Version: 3.8.0
7Homepage: http://www.rxtx.org8Homepage: http://www.rxtx.org
89
=== modified file 'src/SerialImp.c'
--- src/SerialImp.c 2007-07-28 16:13:55 +0000
+++ src/SerialImp.c 2009-12-09 23:12:14 +0000
@@ -1339,7 +1339,7 @@
1339 report("init_threads: get eis\n");1339 report("init_threads: get eis\n");
1340 jeis = (*eis->env)->GetFieldID( eis->env, eis->jclazz, "eis", "J" );1340 jeis = (*eis->env)->GetFieldID( eis->env, eis->jclazz, "eis", "J" );
1341 report("init_threads: set eis\n");1341 report("init_threads: set eis\n");
1342 (*eis->env)->SetIntField(eis->env, *eis->jobj, jeis, ( size_t ) eis );1342 (*eis->env)->SetLongField(eis->env, *eis->jobj, jeis, ( size_t ) eis );
1343 report("init_threads: stop\n");1343 report("init_threads: stop\n");
1344 report_time_end( );1344 report_time_end( );
1345 return( 1 );1345 return( 1 );
@@ -1532,7 +1532,7 @@
1532 jobject jobj, jboolean interrupted )1532 jobject jobj, jboolean interrupted )
1533{1533{
1534 int fd = get_java_var( env, jobj,"fd","I" );1534 int fd = get_java_var( env, jobj,"fd","I" );
1535 struct event_info_struct *eis = ( struct event_info_struct * ) get_java_var( env, jobj, "eis", "J" );1535 struct event_info_struct *eis = ( struct event_info_struct * ) get_java_var_long( env, jobj, "eis", "J" );
1536 int result, count=0;1536 int result, count=0;
15371537
1538 char message[80];1538 char message[80];
@@ -2941,7 +2941,7 @@
2941 /* TRENT */2941 /* TRENT */
2942 int flag, count = 0;2942 int flag, count = 0;
2943 struct event_info_struct *eis = ( struct event_info_struct * )2943 struct event_info_struct *eis = ( struct event_info_struct * )
2944 get_java_var( env, *jobj,"eis","J" );2944 get_java_var_long( env, *jobj,"eis","J" );
2945 2945
2946 report_time_start();2946 report_time_start();
2947 flag = eis->eventflags[SPE_DATA_AVAILABLE];2947 flag = eis->eventflags[SPE_DATA_AVAILABLE];
@@ -4875,9 +4875,9 @@
4875 exceptions: none4875 exceptions: none
4876 comments:4876 comments:
4877----------------------------------------------------------*/4877----------------------------------------------------------*/
4878size_t get_java_var( JNIEnv *env, jobject jobj, char *id, char *type )4878long get_java_var_long( JNIEnv *env, jobject jobj, char *id, char *type )
4879{4879{
4880 int result = 0;4880 long result = 0;
4881 jclass jclazz = (*env)->GetObjectClass( env, jobj );4881 jclass jclazz = (*env)->GetObjectClass( env, jobj );
4882 jfieldID jfd = (*env)->GetFieldID( env, jclazz, id, type );4882 jfieldID jfd = (*env)->GetFieldID( env, jclazz, id, type );
48834883
@@ -4891,7 +4891,11 @@
4891 LEAVE( "get_java_var" );4891 LEAVE( "get_java_var" );
4892 return result;4892 return result;
4893 }4893 }
4894 result = (int)( (*env)->GetIntField( env, jobj, jfd ) );4894 if ( !strcmp( type, "J" ) ) {
4895 result = (long)( (*env)->GetLongField( env, jobj, jfd ) );
4896 } else {
4897 result = (int) ( (*env)->GetIntField( env, jobj, jfd ) );
4898 }
4895/* ct7 & gel * Added DeleteLocalRef */4899/* ct7 & gel * Added DeleteLocalRef */
4896 (*env)->DeleteLocalRef( env, jclazz );4900 (*env)->DeleteLocalRef( env, jclazz );
4897 if(!strncmp( "fd",id,2) && result == 0)4901 if(!strncmp( "fd",id,2) && result == 0)
@@ -4902,6 +4906,10 @@
4902 return result;4906 return result;
4903}4907}
49044908
4909int get_java_var( JNIEnv *env, jobject jobj, char *id, char *type ) {
4910 return (int) get_java_var_long( env, jobj, id, type );
4911}
4912
4905/*----------------------------------------------------------4913/*----------------------------------------------------------
4906throw_java_exception4914throw_java_exception
49074915
49084916
=== modified file 'src/SerialImp.h'
--- src/SerialImp.h 2006-03-01 18:56:52 +0000
+++ src/SerialImp.h 2009-12-09 23:12:14 +0000
@@ -413,7 +413,8 @@
413void system_wait();413void system_wait();
414void finalize_event_info_struct( struct event_info_struct * );414void finalize_event_info_struct( struct event_info_struct * );
415int read_byte_array( JNIEnv *, jobject *, int, unsigned char *, int, int );415int read_byte_array( JNIEnv *, jobject *, int, unsigned char *, int, int );
416size_t get_java_var( JNIEnv *, jobject, char *, char * );416int get_java_var( JNIEnv *, jobject, char *, char * );
417long get_java_var_long( JNIEnv *, jobject, char *, char * );
417jboolean is_interrupted( struct event_info_struct * );418jboolean is_interrupted( struct event_info_struct * );
418int send_event(struct event_info_struct *, jint, int );419int send_event(struct event_info_struct *, jint, int );
419void dump_termios(char *,struct termios *);420void dump_termios(char *,struct termios *);

Subscribers

People subscribed via source and target branches