Skip to content

Conversation

@lohedges
Copy link
Contributor

This PR closes #108 by applying patches to the AudioScan and EV modules so that they work with Perl 5.42 (and presumably above). The same patches have successfully been applied to the Arch Linux lyrionmusicserver package from the AUR, available here. (The PR with the fixes is here.) I thought I'd move the fix upstream so that it was (hopefully) useful to a wider audience.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this a change which should go upstream to the module's repository (https://github.com/LMS-Community/Audio-Scan)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I can move it upstream. Hopefully the change is backwards compatible, otherwise patching might be the easier solution.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Upstream PR raised here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've removed the patch in anticipation that the upstream PR will be accepted prior to this.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're optimistic 😁

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, we can live in hope ;-)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Version 1.11 of Audio-Scan has now been released. I've updated the buildme.sh file and added the new archive to the CPAN directory, using the download from this link, the sha256sum of which is:

1bed2a6aa3f6735c3f50ab8e9916b0abfa8a663b16bd95334c09790ba1fa6d42

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this file specific to the EV build?

Copy link
Contributor Author

@lohedges lohedges Sep 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the typemap file is part of EV. The same patch has been applied by Red Hat for their perl-EV package here and has been reported upstream at CPAN here. From the last comment there appears to be an EV dev package with the fix, but there has been no update since July.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please rename the patch to something like EV-typemap.patch?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

cd EV-4.03

if [[ "$PERL_VERSION" -ge "5.42" ]]; then
patch typemap ../EV-typemap.patch || true
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that I can skip the || true bit if desired. This was done to allow repeat builds for the AUR package, i.e. if you made some edits and re-ran the build. It also means that the build won't exit if EV is patched/fixed upstream.

Copy link
Member

@michaelherger michaelherger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's give that a try - thanks!

@michaelherger michaelherger merged commit 4425ff9 into LMS-Community:public/9.1 Sep 22, 2025
@lohedges
Copy link
Contributor Author

It looks like my version check for the EV patch isn't working. I'll debug locally and push a fix.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

buildme.sh fails for Perl 5.42 on Arch

2 participants