EPrints Technical Mailing List Archive

Message: #05925


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] Eprints on Ubuntu 16LTS


Dear list,

 

I noticed that the Debian packages for Eprints have some issues with Ubuntu 16.  From what I found, two small workarounds is required for those who do not want to compile from the source code.  If anyone have noticed something else, please let me know!  So far I can tell everything works but not everything have been tested yet…

 

First, create fake entry for apache2-mpm-prefork (required by eprints.deb) and install a MPM fork for apache:


apt-get install libapache2-mod-php
apt-get install -y equivs
equivs-control apache2-mpm-prefork
dpkg -i apache2-mpm-prefork_1.0_all.deb

 

Secondly, a bug/new feature in Perls URI module forces either an update of the URI module or a simple edit of the file /usr/share/eprints3/perl_lib/URI/Escape.pm.

 

Replace line 205

return join '', @URI::Escape::escapes{$[0] =~ /(\C)/g};

 

with the following:

if (utf8::isutf8($[0])) {
my $s = $[0];
utf8::encode($s);
unshift(@, $s);
}
return join '', @URI::Escape::escapes{$_[0] =~ /(.)/sg};
}

 

See: https://github.com/libwww-perl/uri/commit/7e03cdd3e5d25df5556a36dbfcd5d6cbcd676afb for more details (or if you want proper bugfix syntax).

 

Regards,

Christer