|
Bugzilla – Full Text Bug Listing |
| Summary: | YCP bindings for LibStorage have problems with integers > 2^32 | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE 11.1 | Reporter: | Arvin Schnell <aschnell> |
| Component: | YaST2 | Assignee: | Martin Vidner <mvidner> |
| Status: | RESOLVED FIXED | QA Contact: | Jiri Srain <jsrain> |
| Severity: | Major | ||
| Priority: | P5 - None | ||
| Version: | Factory | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | Other | ||
| Whiteboard: | |||
| Found By: | Development | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
| Attachments: | example script | ||
|
Description
Arvin Schnell
2008-07-14 09:55:48 UTC
Perl integers have only 32 bits on i386, so YCP uses strings to pass larger numbers to Perl (see also bug 127896, and newPerlReferenceableScalar in http://svn.opensuse.org/svn/yast/trunk/perl-bindings/src/YPerl.cc). The above RuntimeError comes from SWIG code so it seems we need to adapt the SWIG typemaps to account for this. Created attachment 227637 [details]
example script
Thanks, I can reproduce it now. And the responsible code is in http://svn.opensuse.org/svn/yast/trunk/perl-bindings/pluglib-bindings/swig/stdc/references.i Hmm, it even has a testsuite in pluglib-bindings/tests (which is not compiled by default). Fixed in SVN perl-bindings. You will need to make clean in libstorage bindings because they do not specify a dependency on the typemaps. (delaying autobuild submission until I look at the deque bug 398815) yast2-perl-bindings-2.17.0 submitted |