Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FFI::C Build with cpanspec confusion between %{perl_vendorarch} and %{perl_vendorlib} #63

Open
mrdvt92 opened this issue Aug 19, 2024 · 0 comments

Comments

@mrdvt92
Copy link

mrdvt92 commented Aug 19, 2024

With: https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/FFI-C-0.15.tar.gz

I'm not an expert on FFI::C but the spec file that cpanspec generates expects the FFI::C files to be in %{perl_vendorarch} which is /usr/lib64/perl5/vendor_perl on EL9 but the FFI::C install puts them in %{perl_vendorlib} /usr/share/perl5/vendor_perl.

To get an el9 RPM to build, I changed the files section as below.

-%{perl_vendorarch}/auto/*
-%{perl_vendorarch}/FFI*
+%{perl_vendorlib}/FFI*

All tests pass with this change.

$ prove
t/00_diag.t .......... 1/? #
#
#
# HARNESS_ACTIVE=1
# HARNESS_VERSION=3.42
# LANG=C.UTF-8
# SHELL=/bin/bash
#
#
#
# perl                      5.032001 linux x86_64-linux-thread-multi
# Capture::Tiny             0.48
# Class::Inspector          1.36
# ExtUtils::MakeMaker       7.60
# FFI::Platypus             1.34
# FFI::Platypus::Memory     1.34
# FFI::Platypus::Record     1.34
# FFI::Platypus::Type::Enum 0.06
# Math::Int64               -
# Path::Tiny                0.118
# Ref::Util                 0.204
# Sub::Identify             0.14
# Sub::Install              0.928
# Sub::Util                 1.56
# Test2::V0                 0.000139
#
#
#
t/00_diag.t .......... ok
t/ffi_c.t ............ ok
t/ffi_c_array.t ...... ok
t/ffi_c_arraydef.t ... ok
t/ffi_c_def.t ........ ok
t/ffi_c_enumdef.t .... ok
t/ffi_c_ffi.t ........ ok
t/ffi_c_file.t ....... ok
t/ffi_c_posixfile.t .. ok
t/ffi_c_struct.t ..... ok
t/ffi_c_structdef.t .. ok
t/ffi_c_union.t ...... ok
t/ffi_c_uniondef.t ... ok
t/ffi_c_util.t ....... ok
All tests successful.
Files=14, Tests=148,  3 wallclock secs ( 0.08 usr  0.02 sys +  1.92 cusr  0.37 csys =  2.39 CPU)
Result: PASS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant