Browse Source

Merge pull request #2150 from knewmanTE/specify-perl-extension-version

Specify perl extension version
Nate 9 years ago
parent
commit
af62fc3530

+ 0 - 7
frameworks/Perl/dancer/cpanfile

@@ -1,7 +0,0 @@
-requires 'Dancer', '1.3134';
-requires 'Dancer::Plugin::Database', '2.10';
-requires 'DBI', '1.633';
-requires 'DBD::mysql', '4.031';
-requires 'JSON::XS', '3.01';
-requires 'Plack', '1.0034';
-requires 'Starman', '0.4011';

+ 9 - 2
frameworks/Perl/dancer/setup.sh

@@ -6,8 +6,15 @@ sed -i 's|server unix.*frameworks-benchmark.sock;|server unix:'"${TROOT}"'/frame
 
 fw_depends perl nginx
 
-carton install --cpanfile ${TROOT}/cpanfile
-
+cpanm --notest --no-man-page \
+    [email protected] \
+    Dancer::Plugin::[email protected] \
+    [email protected] \
+    DBD::[email protected] \
+    JSON::[email protected] \
+    [email protected] \
+    [email protected]
+    
 nginx -c ${TROOT}/nginx.conf
 
 plackup -E production -s Starman --workers=${MAX_THREADS} -l ${TROOT}/frameworks-benchmark.sock -a ./app.pl &

+ 8 - 8
frameworks/Perl/kelp/setup.sh

@@ -7,14 +7,14 @@ sed -i 's|server unix.*frameworks-benchmark.sock;|server unix:'"${TROOT}"'/frame
 fw_depends perl nginx
 
 cpanm --notest --no-man-page \
-    Kelp \
-    DBI \
-    DBD::mysql \
-    MongoDB \
-    Kelp::Module::JSON::XS \
-    HTML::Escape \
-    HTTP::Parser::XS \
-    Starman
+    Kelp@0.9071 \
+    DBI@1.636 \
+    DBD::mysql@4.033 \
+    MongoDB@1.4.2 \
+    Kelp::Module::JSON::XS@0.502 \
+    HTML::Escape@1.10 \
+    HTTP::Parser::XS@0.17 \
+    Starman@0.4014
 
 nginx -c ${TROOT}/nginx.conf
 

+ 0 - 6
frameworks/Perl/plack/cpanfile

@@ -1,6 +0,0 @@
-requires 'JSON::XS', '3.01';
-requires 'HTTP::Parser::XS', '0.16';
-requires 'Plack', '1.0030';
-requires 'DBI', '1.631';
-requires 'DBD::mysql', '4.027';
-requires 'Starlet', '0.24';

+ 8 - 2
frameworks/Perl/plack/setup.sh

@@ -5,7 +5,13 @@ sed -i 's|server unix:.*/FrameworkBenchmarks/plack|server unix:'"${TROOT}"'|g' n
 
 fw_depends perl nginx
 
-cpanm --notest --no-man-page --installdeps $TROOT
-
+cpanm --notest --no-man-page \
+    JSON::[email protected] \
+    HTTP::Parser::[email protected] \
+    [email protected] \
+    [email protected] \
+    DBD::[email protected] \
+    [email protected]
+    
 nginx -c $TROOT/nginx.conf
 start_server --backlog=16384 --pid-file=$TROOT/app.pid --path=$TROOT/app.sock -- plackup -E production -s Starlet --max-keepalive-reqs 1000 --max-reqs-per-child 50000 --min-reqs-per-child 40000 --max-workers=${MAX_THREADS} -a $TROOT/app.psgi &

+ 8 - 2
frameworks/Perl/web-simple/setup.sh

@@ -5,8 +5,14 @@ sed -i 's|server unix:.*/FrameworkBenchmarks/web-simple|server unix:'"${TROOT}"'
 
 fw_depends perl nginx
 
-cpanm --notest --no-man-page Web::Simple DBI DBD::mysql Plack Starman JSON::XS
-
+cpanm --notest --no-man-page  \
+    Web::[email protected] \
+    [email protected] \
+    DBD::[email protected] \
+    [email protected] \
+    [email protected] \
+    JSON::[email protected]
+    
 nginx -c $TROOT/nginx.conf
 
 plackup -E production -s Starman --workers=${MAX_THREADS} -l $TROOT/frameworks-benchmark.sock -a $TROOT/app.pl &