https://bugzilla.redhat.com/show_bug.cgi?id=2393452
--- Comment #3 from Petr Pisar <[email protected]> --- This breaks perl-HarfBuzz-Shaper and perl-Pango: "/usr/bin/perl" "/usr/share/perl5/vendor_perl/ExtUtils/xsubpp" -typemap '/usr/share/perl5/ExtUtils/typemap' -typemap '/builddir/build/BUILD/perl-HarfBuzz-Shaper-0.028-build/HarfBuzz-Shaper-0.028/typemap' Shaper.xs > Shaper.xsc length(NAME) not supported with typemaps other than T_PV in Shaper.xs, line 41 length(NAME) not supported with typemaps other than T_PV in Shaper.xs, line 67 length(NAME) not supported with typemaps other than T_PV in Shaper.xs, line 94 length(NAME) not supported with typemaps other than T_PV in Shaper.xs, line 123 length(NAME) not supported with typemaps other than T_PV in Shaper.xs, line 262 Shaper.xs:41 is: void hb_buffer_add_utf8(hb_buffer_t *buf, bytestring_t s, size_t length(s), unsigned int offset=0, size_t len=-1) perlxs POD documents: The length(NAME) Keyword If one of the input arguments to the C function is the length of a string argument "NAME", one can substitute the name of the length-argument by length(NAME) in the XSUB declaration. This argument must be omitted when the generated Perl function is called. E.g., void dump_chars(char *s, short l) { short n = 0; while (n < l) { printf("s[%d] = \"\\%#03o\"\n", n, (int)s[n]); n++; } } MODULE = x PACKAGE = x void dump_chars(char *s, short length(s)) should be called as dump_chars($string). This directive is supported with ANSI-type function declarations only. While changelog claims: 3.59 Fri Sep 5 03:36:03 PM CEST 2025 - Throw an exception when combining the length operator with a typemap other than T_PV I don't get it. T_PV is a string type in Perl. char * is a string in C. What's the problem? -- You are receiving this mail because: You are on the CC list for the bug. https://bugzilla.redhat.com/show_bug.cgi?id=2393452 Report this comment as SPAM: https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202393452%23c3 -- _______________________________________________ perl-devel mailing list -- [email protected] To unsubscribe send an email to [email protected] Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/[email protected] Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
