Skip to content

Commit fece58b

Browse files
committed
lobotimize HTML-Tagset to install on v5.8 libwww-perl/HTML-Tagset#14
1 parent 7564334 commit fece58b

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/linux.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,25 @@ jobs:
9090
- name: Setup environment
9191
run: |
9292
echo "PERL_LWP_SSL_VERIFY_HOSTNAME=0" >> $GITHUB_ENV
93+
# HTML::Tagset bumped its minimum version to v5.10 for no good reason
94+
# but this is a prereq to LWP, which runs on v5.8. To get around this,
95+
# download the tarball and fix it for v5.8.
96+
# 1. remove the META files which have references to v5.10 and ignore
97+
# the warnings
98+
# 2. fix Makefile.PL to remove two references to v5.10
99+
# https://github.com/libwww-perl/HTML-Tagset/pull/14
100+
- name: fix html-tagset for v5.8
101+
if: env.PERL_VERSION == 'v5.8'
102+
run: |
103+
curl -L -O https://cpan.metacpan.org/authors/id/P/PE/PETDANCE/HTML-Tagset-3.24.tar.gz
104+
tar -xzf HTML-Tagset-3.24.tar.gz
105+
cd HTML-Tagset-3.24
106+
rm META.*
107+
mv Makefile.PL Makefile.PL.orig
108+
perl -n -e 'next if /(^use 5)|(MIN_PERL)/; print' Makefile.PL.orig > Makefile.PL
109+
cpan -T .
110+
cd ..
111+
pwd
93112
# I had some problems with openssl on Ubuntu, so I punted by installing
94113
# cpanm first, which is easy. I can install IO::Socket::SSL with that,
95114
# then switch back to cpan. I didn't explore this further, but what you

0 commit comments

Comments
 (0)