forked from rurban/perl-compiler
-
Notifications
You must be signed in to change notification settings - Fork 3
/
pre-setup.sh
executable file
·142 lines (127 loc) · 7.21 KB
/
pre-setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
#!/bin/bash
set -e
# consider using a yum repo
SRC="https://buildhub.dev.cpanel.net/RPM/11.98/centos/7/x86_64/"
SRC="src" # for now use local src (no packages built on buildhub)
PERL=/usr/local/cpanel/3rdparty/bin/perl536
echo "Removing perl older versions of Perl"
for V in "530" "532" "535" "536"; do
[ -e /usr/local/cpanel/3rdparty/perl/$V/bin/perl ] && rpm -e --nodeps cpanel-perl-$V ||:
done
rpm -Uv --force $SRC/cpanel-perl-535-5.35.10-1.cp1198.x86_64.rpm ||:
echo "Setup 5.36 from 5.35"
[ -e /usr/local/cpanel/3rdparty/perl/536 ] || ln -sf /usr/local/cpanel/3rdparty/perl/535 /usr/local/cpanel/3rdparty/perl/536
ln -sf /usr/local/cpanel/3rdparty/bin/perl535 /usr/local/cpanel/3rdparty/bin/perl536
echo "Setting perl & prove for 536"
ln -sf /usr/local/cpanel/3rdparty/perl/536/bin/prove /usr/local/cpanel/3rdparty/bin/prove
# # we now whave some custom RPMs available install and use them if possible
# rpm -Uv --force \
# $SRC/cpanel-perl-532-DBI-1.643-1.cp1194.x86_64.rpm \
# $SRC/cpanel-perl-532-DBD-SQLite-1.66-1.cp1194.x86_64.rpm \
# $SRC/cpanel-perl-532-DBD-Pg-3.14.2-1.cp1194.x86_64.rpm \
# $SRC/cpanel-perl-532-DBD-mysql-4.050-1.cp1194.x86_64.rpm
# echo "Installing Test2 & modules used for testing"
# RPMS="cpanel-perl-532-App-cpanminus-1.7044-1.cp1194.noarch.rpm \
# cpanel-perl-532-AppConfig-1.71-1.cp1194.noarch.rpm \
# cpanel-perl-532-B-Flags-0.17-1.cp1194.x86_64.rpm \
# cpanel-perl-532-Capture-Tiny-0.48-1.cp1194.noarch.rpm \
# cpanel-perl-532-CBOR-Free-0.31-1.cp1194.x86_64.rpm \
# cpanel-perl-532-Class-Accessor-0.51-1.cp1194.noarch.rpm \
# cpanel-perl-532-Class-Load-0.25-1.cp1194.noarch.rpm \
# cpanel-perl-532-Class-Load-XS-0.10-1.cp1194.x86_64.rpm \
# cpanel-perl-532-Class-Method-Modifiers-2.13-1.cp1194.noarch.rpm \
# cpanel-perl-532-Class-XSAccessor-1.19-1.cp1194.x86_64.rpm \
# cpanel-perl-532-common-sense-3.75-1.cp1194.noarch.rpm \
# cpanel-perl-532-Data-Dump-1.23-1.cp1194.noarch.rpm \
# cpanel-perl-532-Data-OptList-0.110-1.cp1194.noarch.rpm \
# cpanel-perl-532-Devel-GlobalDestruction-0.14-1.cp1194.noarch.rpm \
# cpanel-perl-532-Devel-OverloadInfo-0.005-1.cp1194.noarch.rpm \
# cpanel-perl-532-Devel-StackTrace-2.04-1.cp1194.noarch.rpm \
# cpanel-perl-532-Digest-HMAC-1.03-1.cp1194.noarch.rpm \
# cpanel-perl-532-Dist-CheckConflicts-0.11-1.cp1194.noarch.rpm \
# cpanel-perl-532-Encode-Locale-1.05-1.cp1194.noarch.rpm \
# cpanel-perl-532-Eval-Closure-0.14-1.cp1194.noarch.rpm \
# cpanel-perl-532-Exporter-Tiny-1.002002-1.cp1194.noarch.rpm \
# cpanel-perl-532-File-Listing-6.11-1.cp1194.noarch.rpm \
# cpanel-perl-532-File-Slurp-9999.32-1.cp1194.noarch.rpm \
# cpanel-perl-532-HTML-Parser-3.75-1.cp1194.x86_64.rpm \
# cpanel-perl-532-HTML-Tagset-3.20-1.cp1194.noarch.rpm \
# cpanel-perl-532-HTTP-Cookies-6.08-1.cp1194.noarch.rpm \
# cpanel-perl-532-HTTP-Daemon-6.12-1.cp1194.noarch.rpm \
# cpanel-perl-532-HTTP-Date-6.05-1.cp1194.noarch.rpm \
# cpanel-perl-532-HTTP-Message-6.26-1.cp1194.noarch.rpm \
# cpanel-perl-532-HTTP-Negotiate-6.01-1.cp1194.noarch.rpm \
# cpanel-perl-532-Importer-0.026-1.cp1194.noarch.rpm \
# cpanel-perl-532-IO-HTML-1.004-1.cp1194.noarch.rpm \
# cpanel-perl-532-IO-Socket-INET6-2.72-1.cp1194.noarch.rpm \
# cpanel-perl-532-IO-Socket-SSL-2.068-1.cp1194.noarch.rpm \
# cpanel-perl-532-IO-Stringy-2.113-1.cp1194.noarch.rpm \
# cpanel-perl-532-JSON-XS-4.03-1.cp1194.x86_64.rpm \
# cpanel-perl-532-libwww-perl-6.49-1.cp1194.noarch.rpm \
# cpanel-perl-532-List-MoreUtils-0.430-1.cp1194.noarch.rpm \
# cpanel-perl-532-List-MoreUtils-XS-0.430-1.cp1194.x86_64.rpm \
# cpanel-perl-532-LWP-MediaTypes-6.04-1.cp1194.noarch.rpm \
# cpanel-perl-532-Module-Build-0.4231-1.cp1194.noarch.rpm \
# cpanel-perl-532-Module-Implementation-0.09-1.cp1194.noarch.rpm \
# cpanel-perl-532-Module-Pluggable-5.2-1.cp1194.noarch.rpm \
# cpanel-perl-532-Module-Runtime-0.016-1.cp1194.noarch.rpm \
# cpanel-perl-532-Module-Runtime-Conflicts-0.003-1.cp1194.noarch.rpm \
# cpanel-perl-532-Moo-2.004000-1.cp1194.noarch.rpm \
# cpanel-perl-532-Moose-2.2013-1.cp1194.x86_64.rpm \
# cpanel-perl-532-MooseX-NonMoose-0.26-1.cp1194.noarch.rpm \
# cpanel-perl-532-MRO-Compat-0.13-1.cp1194.noarch.rpm \
# cpanel-perl-532-Net-DNS-1.27-1.cp1194.noarch.rpm \
# cpanel-perl-532-Net-HTTP-6.19-1.cp1194.noarch.rpm \
# cpanel-perl-532-Net-LibIDN-0.12-1.cp1194.x86_64.rpm \
# cpanel-perl-532-Net-SSLeay-1.88-1.cp1194.x86_64.rpm \
# cpanel-perl-532-Package-DeprecationManager-0.17-1.cp1194.noarch.rpm \
# cpanel-perl-532-Package-Stash-0.38-1.cp1194.noarch.rpm \
# cpanel-perl-532-Package-Stash-XS-0.29-1.cp1194.x86_64.rpm \
# cpanel-perl-532-Params-Util-1.101-1.cp1194.x86_64.rpm \
# cpanel-perl-532-Ref-Util-XS-0.117-1.cp1194.x86_64.rpm \
# cpanel-perl-532-Role-Tiny-2.001004-1.cp1194.noarch.rpm \
# cpanel-perl-532-Sereal-4.018-1.cp1194.noarch.rpm \
# cpanel-perl-532-Sereal-Decoder-4.018-1.cp1194.x86_64.rpm \
# cpanel-perl-532-Sereal-Encoder-4.018-1.cp1194.x86_64.rpm \
# cpanel-perl-532-Scope-Guard-0.21-1.cp1194.noarch.rpm \
# cpanel-perl-532-Socket6-0.29-1.cp1194.x86_64.rpm \
# cpanel-perl-532-Sub-Exporter-0.987-1.cp1194.noarch.rpm \
# cpanel-perl-532-Sub-Exporter-Progressive-0.001013-1.cp1194.noarch.rpm \
# cpanel-perl-532-Sub-Identify-0.14-1.cp1194.x86_64.rpm \
# cpanel-perl-532-Sub-Info-0.002-1.cp1194.noarch.rpm \
# cpanel-perl-532-Sub-Install-0.928-1.cp1194.noarch.rpm \
# cpanel-perl-532-Sub-Name-0.26-1.cp1194.x86_64.rpm \
# cpanel-perl-532-Sub-Quote-2.006006-1.cp1194.noarch.rpm \
# cpanel-perl-532-TAP-Formatter-JUnit-0.11-1.cp1194.noarch.rpm \
# cpanel-perl-532-Template-Toolkit-3.009-1.cp1194.x86_64.rpm \
# cpanel-perl-532-Term-Table-0.015-1.cp1194.noarch.rpm \
# cpanel-perl-532-Test-Deep-1.130-1.cp1194.noarch.rpm \
# cpanel-perl-532-Test-Fatal-0.016-1.cp1194.noarch.rpm \
# cpanel-perl-532-Test-Simple-1.302183-1.cp1194.noarch.rpm \
# cpanel-perl-532-Test-Trap-v0.3.4-1.cp1194.noarch.rpm \
# cpanel-perl-532-Test2-Plugin-NoWarnings-0.09-1.cp1194.noarch.rpm \
# cpanel-perl-532-Test2-Suite-0.000138-1.cp1194.noarch.rpm \
# cpanel-perl-532-Test2-Tools-Explain-0.02-1.cp1194.noarch.rpm \
# cpanel-perl-532-Text-Control-0.5-1.cp1194.noarch.rpm \
# cpanel-perl-532-TimeDate-2.33-1.cp1194.noarch.rpm \
# cpanel-perl-532-Try-Tiny-0.30-1.cp1194.noarch.rpm \
# cpanel-perl-532-Types-Serialiser-1.0-1.cp1194.noarch.rpm \
# cpanel-perl-532-URI-5.05-1.cp1194.noarch.rpm \
# cpanel-perl-532-WWW-RobotRules-6.02-1.cp1194.noarch.rpm \
# cpanel-perl-532-XML-Generator-1.04-1.cp1194.noarch.rpm \
# cpanel-perl-532-XML-Parser-2.46-1.cp1194.x86_64.rpm \
# cpanel-perl-532-X-Tiny-0.21-1.cp1194.noarch.rpm \
# cpanel-perl-532-XString-0.005-1.cp1194.x86_64.rpm"
# TO_INSTALL=""
# for rpm in $RPMS; do
# echo -n "Checking $rpm: ";
# curl --fail -s -I $SRC/$rpm >/dev/null;
# echo -e " \e[32mOK\e[0m"
# TO_INSTALL="${TO_INSTALL} $SRC/$rpm"
# done
# rpm -Uv --force $TO_INSTALL
cd src
$PERL install-perl-modules.pl
$PERL -MTAP::Formatter::JUnit -E "say q[perl installed with TAP::Formatter::JUnit];"
echo "Using prove: "
ls -l /usr/local/cpanel/3rdparty/bin/prove