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

Can't use Devel::Cover for pkg_add on OpenBSD #325

Open
marcespie opened this issue Jul 4, 2023 · 3 comments
Open

Can't use Devel::Cover for pkg_add on OpenBSD #325

marcespie opened this issue Jul 4, 2023 · 3 comments

Comments

@marcespie
Copy link

The module OpenBSD::MkTemp (available from cpan) results in the following error messages:

``Devel::Cover: 9% Argument "*OpenBSD::MkTemp::_GEN_1" isn't numeric in addition (+) at /usr/local/libdata/perl5/site_perl/amd64-openbsd/Devel/Cover.pm line 852.
Devel::Cover: 50% Argument "*OpenBSD::MkTemp::_GEN_2" isn't numeric in scalar assignment at /usr/local/libdata/perl5/site_perl/amd64-openbsd/Devel/Cover.pm line 900.
Devel::Cover: 100% - 4s taken
Devel::Cover: Writing coverage database to /home/espie/cover_db/runs/1688455293.73376.08771
Devel::Cover: Oops, it looks like something went wrong writing the coverage.
It's possible that more bad things may happen but we'll try to
carry on anyway as if nothing happened. At a minimum you'll
probably find that you are missing coverage. If you're
interested, the problem was:

Found type 9 GLOB(0x55be246a778), but it is not representable by the Sereal encoding format at /usr/local/libdata/perl5/site_perl/amd64-openbsd/Devel/Cover/DB/IO/Sereal.pm line 46.

@marcespie
Copy link
Author

(forgot to mention we're running 1.40)

@pjcj
Copy link
Owner

pjcj commented Mar 12, 2024

Looks like a bad interaction between Devel::Cover, OpenBSD::MkTemp and Sereal. As a workaround you could probably set $DEVEL_COVER_DB_FORMAT to either JSON or Storable.

Thanks very much for the report and sorry it's taken a while for me to respond. I appreciate all the work you do with OpenBSD.

I'm having trouble locating OpenBSD::MkTemp on cpan. Do you have a link?

@marcespie
Copy link
Author

I'm not sure it's been upstreamed by Guenther. It's part of OpenBSD, so you can find it on the github mirror of OpenBSD's source code under src/gnu/u.srbin/perl/cpan/OpenBSD-MkTemp

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

No branches or pull requests

2 participants