Skip to content

Commit 5dc54b2

Browse files
Merge pull request ericvaandering#104 from ericvaandering/docdb_8_8_12
Docdb 8 8 12
2 parents 9d1a347 + e4d71ed commit 5dc54b2

4 files changed

Lines changed: 19 additions & 8 deletions

File tree

DocDB/cgi/DocDBGlobals.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

2929
$TRUE = 1;
3030
$FALSE = 0;
31+
$MySQLVersion = 8;
3132

3233
# Advertising link for DocDB
3334

DocDB/cgi/DocDBVersion.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
# along with DocDB; if not, write to the Free Software
2222
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2323

24-
$DocDBVersion = "8.8.11";
24+
$DocDBVersion = "8.8.12";
2525

2626
1;

DocDB/cgi/SearchAtoms.pm

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,21 @@ sub RegExpSearchAtom {
113113
}
114114

115115
if ($RequireWord) {
116-
$RegExpAtom .= '[[:<:]]';
116+
if $MySQLVersion < 8 {
117+
$RegExpAtom .= '[[:<:]]';
118+
} else {
119+
$RegExpAtom .= '\\b';
120+
}
117121
}
118122
$RegExpAtom .= '(';
119123
$RegExpAtom .= join '|', @RegExpParts;
120124
$RegExpAtom .= ')';
121125
if ($RequireWord) {
122-
$RegExpAtom .= '[[:>:]]';
126+
if $MySQLVersion < 8 {
127+
$RegExpAtom .= '[[:>:]]';
128+
} else {
129+
$RegExpAtom .= '\\b';
130+
}
123131
}
124132

125133
my $SafeAtom = $dbh->quote($RegExpAtom);

docker/Dockerfile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,21 @@ RUN yum install -y httpd mod_ssl \
88
sudo git \
99
perl perl-CPAN perl-CGI perl-DBI perl-DBD-MySQL perl-DateTime perl-File-MimeInfo \
1010
perl-MailTools perl-XML-Twig perl-libxml-perl perl-DateTime-Format-ICal perl-libwww-perl \
11-
perl-Data-ICal python-pip perl-Digest-SHA1 \
12-
sendmail sendmail-cf \
11+
perl-Data-ICal python-pip perl-Digest-SHA1 perl-XML-Simple \
12+
sendmail sendmail-cf python3 pip3 \
1313
&& yum clean all \
1414
&& rm -rf /var/cache/yum
1515

16+
17+
1618
# Jobber is a lightweight cron replacement written in Go
1719
RUN rpm -i https://github.com/dshearer/jobber/releases/download/v1.4.4/jobber-1.4.4-1.el8.x86_64.rpm
1820
ADD dot-jobber.yaml /root/.jobber
1921

2022
# j2cli is used for templating config files which will be useful for passing environment variables
21-
RUN pip install --no-cache-dir --upgrade pip
22-
RUN pip install --no-cache-dir --upgrade setuptools
23-
RUN pip install --no-cache-dir j2cli
23+
RUN python3 -m pip install --no-cache-dir --upgrade pip
24+
RUN python3 -m pip install --no-cache-dir --upgrade setuptools
25+
RUN python3 -m pip install --no-cache-dir j2cli
2426

2527
# This file was generated by running CPAN once in "manual" not "local::lib" mode
2628
ADD MyConfig.pm /root/.cpan/CPAN/MyConfig.pm

0 commit comments

Comments
 (0)