Koha/debian/control
David Cook 57c62a612d Bug 16357: Override __WARN__ in Plack to use Log4Perl
This patch overrides __WARN__ in Plack to use Log4Perl to add
timestamps to error output. The Log4Perl config uses a screen
appender so the output still goes to STDERR so that it is still
managed by Starman.

This patch adds a Plack::Middleware::LogWarn package dependency.
(The dependency is very simplistic, so we could always do out own
 version if we would prefer to skip the external dependency.)

To Test:
0) apt-get install libplack-middleware-logwarn-perl
1) Apply patch
2) Copy PLACK block from etc/log4perl.conf to
/etc/koha/sites/kohadev/log4perl.conf
3) Copy debian/templates/plack.psgi to /etc/koha/sites/kohadev/plack.psgi
4) Create some output on STDERR (it might be necessary to add
a 'warn "TEST";' line to the intranet or OPAC)
5) koha-plack --restart kohadev
6) Open /var/log/koha/kohadev/plack-error.log
7) Observe a log line like the following:
[2020/06/22 03:51:23] [WARN] TEST at /kohadevbox/koha/opac/opac-user.pl line 59.

Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-09-28 16:09:10 +02:00

409 lines
10 KiB
Text

Source: koha
Maintainer: Mason James <mtj@kohaaloha.com>
Section: web
Priority: optional
Standards-Version: 3.8.4
# WARNING: The "control" file is automatically generated from the "control.in" file.
# Do not manually edit "control" or your changes will be clobbered when you
# run update-control
# NOTA BENE: Build dependencies end up as runtime dependencies as well.
# See debian/rules, the override_dh_gencontrol rules.
# There are some exceptions.
Build-Depends: libalgorithm-checkdigits-perl,
libanyevent-http-perl,
libanyevent-perl,
libarchive-extract-perl,
libarchive-zip-perl,
libarray-utils-perl,
libauthen-cas-client-perl,
libbiblio-endnotestyle-perl,
libbusiness-isbn-perl,
libbusiness-issn-perl,
libbytes-random-secure-perl,
libcache-fastmmap-perl,
libcache-memcached-fast-safe-perl,
libcache-memcached-perl,
libcgi-compile-perl,
libcgi-emulate-psgi-perl,
libcgi-pm-perl,
libcgi-session-driver-memcached-perl,
libcgi-session-perl,
libcgi-session-serialize-yaml-perl,
libclass-accessor-perl,
libclass-factory-util-perl,
libclass-inspector-perl,
libclone-perl,
libcpan-meta-perl (>= 2.150010) | perl-modules-5.28 | perl-modules-5.30 | perl-modules (>= 5.20.2),
libcrypt-eksblowfish-perl,
libdata-ical-perl,
libdate-calc-perl,
libdate-manip-perl,
libdatetime-event-ical-perl,
libdatetime-format-ical-perl,
libdatetime-format-mysql-perl,
libdatetime-perl,
libdatetime-set-perl,
libdatetime-timezone-perl,
libdbd-mock-perl,
libdbd-mysql-perl,
libdbd-sqlite2-perl,
libdbi-perl,
libdbix-class-schema-loader-perl,
libdbix-runsql-perl,
libdevel-cover-perl,
libdigest-sha-perl,
libemail-date-perl,
libemail-messageid-perl,
libemail-valid-perl,
libexception-class-perl,
libfile-slurp-perl,
libfont-ttf-perl,
libgd-barcode-perl,
libgd-perl,
libgraphics-magick-perl,
libgravatar-url-perl,
libhtml-format-perl,
libhtml-parser-perl,
libhtml-scrubber-perl,
libhttp-cookies-perl,
libhttp-message-perl,
libhttp-oai-perl (>= 3.2) | libhttp-oai-3.27-perl, libhttp-oai-perl (<< 4.0) | libhttp-oai-3.27-perl,
libintl-perl,
libjson-perl,
libjson-validator-perl,
liblibrary-callnumber-lc-perl,
liblingua-ispell-perl,
liblingua-stem-perl,
liblingua-stem-snowball-perl,
liblist-moreutils-perl,
liblocale-currency-format-perl,
liblocale-codes-perl,
liblocale-po-perl,
liblog-log4perl-perl,
liblwp-protocol-https-perl|libwww-perl (<<6.02), libio-socket-ssl-perl,
libmail-sendmail-perl,
libmarc-charset-perl,
libmarc-file-mij-perl,
libmarc-record-perl,
libmarc-xml-perl,
libmime-lite-perl,
libmodern-perl-perl,
libmodule-bundled-files-perl,
libmodule-cpanfile-perl,
libmodule-load-conditional-perl,
libmodule-pluggable-perl,
libmojolicious-perl (>= 6.0),
libmojolicious-plugin-openapi-perl,
libmoo-perl,
libnet-cidr-perl,
libnet-ldap-perl,
libnet-netmask-perl,
libnet-oauth2-authorizationserver-perl,
libnet-server-perl,
libnet-sftp-foreign-perl,
libnet-z3950-simpleserver-perl,
libnet-z3950-zoom-perl,
libnumber-format-perl,
libopenoffice-oodoc-perl,
libparallel-forkmanager-perl,
libpdf-api2-perl,
libpdf-fromhtml-perl,
libpdf-reuse-barcode-perl,
libpdf-reuse-perl,
libpdf-table-perl,
libplack-middleware-logwarn-perl,
libplack-middleware-reverseproxy-perl,
libppi-perl,
libreadonly-perl,
libreadonly-xs-perl,
libscalar-list-utils-perl,
libschedule-at-perl,
libsearch-elasticsearch-perl,
libsereal-decoder-perl,
libsereal-encoder-perl,
libsms-send-perl,
libstring-random-perl,
libsys-cpu-perl,
libtemplate-perl,
libtemplate-plugin-htmltotext-perl,
libtemplate-plugin-json-escape-perl,
libtemplate-plugin-stash-perl,
libtest-deep-perl,
libtest-exception-perl,
libtest-mockmodule-perl,
libtest-mockobject-perl,
libtest-mocktime-perl,
libtest-simple-perl,
libtest-strict-perl,
libtest-warn-perl,
libtest-www-mechanize-perl,
libtest-yaml-valid-perl,
libtext-bidi-perl,
libtext-csv-encoded-perl,
libtext-csv-perl,
libtext-csv-xs-perl,
libtext-iconv-perl,
libtext-pdf-perl,
libtext-unidecode-perl,
libtime-fake-perl,
libtry-tiny-perl,
libuniversal-can-perl,
libuniversal-require-perl,
liburi-perl,
libuuid-perl,
libwebservice-ils-perl,
libwww-csrf-perl,
libwww-perl,
libxml-dumper-perl,
libxml-libxml-perl,
libxml-libxslt-perl,
libxml-rss-perl,
libxml-sax-perl,
libxml-sax-writer-perl,
libxml-simple-perl,
libxml-writer-perl,
libyaml-perl,
libyaml-syck-perl,
debhelper (>= 7.0.50), gettext, xsltproc, docbook-xsl, fonts-dejavu | ttf-dejavu,
libxml2-utils, bash-completion, perl-modules-5.26 | libtest-simple-perl (>= 1.302073)
Package: koha-common
Architecture: all
Depends: ${misc:Depends}, ${koha:Depends},
apache2,
apache2-mpm-itk | libapache2-mpm-itk,
at,
cron-daemon,
daemon,
debconf,
idzebra-2.0,
libjs-jquery,
memcached,
mysql-client | virtual-mysql-client,
perl-doc,
pwgen,
starman,
sudo,
fonts-dejavu | ttf-dejavu,
unzip,
xmlstarlet,
yaz
Suggests: mysql-server | virtual-mysql-server,
letsencrypt,
Homepage: http://koha-community.org/
Description: integrated (physical) library management system
Koha is an Integrated Library Management system for real-world libraries
(the kinds with books).
.
This package contains everything needed to run Koha, except the site
specific configuration files. See the package koha for the rest.
Package: koha
Architecture: all
Depends: ${shlib:Depends}, ${misc:Depends},
koha-common,
dbconfig-common,
mysql-server | virtual-mysql-server
Homepage: http://koha-community.org/
Description: integrated (physical) library management system
Koha is an Integrated Library Management system for real-world libraries
(the kinds with books).
.
This package contains site-specific configuration files and sets up
the MySQL database for Koha. For simplicity, the database server is
assumed to run on the same host as Koha.
.
Please see /usr/share/doc/koha/README.Debian for instructions on how to
configure things after installing this package.
Package: koha-deps
Depends: ${misc:Depends},
apache2,
apache2-mpm-itk | libapache2-mpm-itk,
at,
cron-daemon,
daemon,
debconf,
idzebra-2.0,
libjs-jquery,
mysql-client | virtual-mysql-client,
mysql-server | virtual-mysql-server,
perl-doc,
pwgen,
starman,
sudo,
fonts-dejavu | ttf-dejavu,
unzip,
xmlstarlet,
yaz
Architecture: all
Description: Other dep. for koha
Koha is an Integrated Library Management system for real-world libraries
(the kinds with books).
.
This meta-package contains general dependencies packages for koha (apache2,
daemon, debconf, etc.).
Package: koha-perldeps
Depends: libalgorithm-checkdigits-perl,
libanyevent-http-perl,
libanyevent-perl,
libarchive-extract-perl,
libarchive-zip-perl,
libarray-utils-perl,
libauthen-cas-client-perl,
libbiblio-endnotestyle-perl,
libbusiness-isbn-perl,
libbusiness-issn-perl,
libbytes-random-secure-perl,
libcache-fastmmap-perl,
libcache-memcached-fast-safe-perl,
libcache-memcached-perl,
libcgi-compile-perl,
libcgi-emulate-psgi-perl,
libcgi-pm-perl,
libcgi-session-driver-memcached-perl,
libcgi-session-perl,
libcgi-session-serialize-yaml-perl,
libclass-accessor-perl,
libclass-factory-util-perl,
libclass-inspector-perl,
libclone-perl,
libcpan-meta-perl (>= 2.150010) | perl-modules-5.28 | perl-modules-5.30 | perl-modules (>= 5.20.2),
libcrypt-eksblowfish-perl,
libdata-ical-perl,
libdate-calc-perl,
libdate-manip-perl,
libdatetime-event-ical-perl,
libdatetime-format-ical-perl,
libdatetime-format-mysql-perl,
libdatetime-perl,
libdatetime-set-perl,
libdatetime-timezone-perl,
libdbd-mock-perl,
libdbd-mysql-perl,
libdbd-sqlite2-perl,
libdbi-perl,
libdbix-class-schema-loader-perl,
libdbix-runsql-perl,
libdevel-cover-perl,
libdigest-sha-perl,
libemail-date-perl,
libemail-messageid-perl,
libemail-valid-perl,
libexception-class-perl,
libfile-slurp-perl,
libfont-ttf-perl,
libgd-barcode-perl,
libgd-perl,
libgraphics-magick-perl,
libgravatar-url-perl,
libhtml-format-perl,
libhtml-parser-perl,
libhtml-scrubber-perl,
libhttp-cookies-perl,
libhttp-message-perl,
libhttp-oai-perl (>= 3.2) | libhttp-oai-3.27-perl, libhttp-oai-perl (<< 4.0) | libhttp-oai-3.27-perl,
libintl-perl,
libjson-perl,
libjson-validator-perl,
liblibrary-callnumber-lc-perl,
liblingua-ispell-perl,
liblingua-stem-perl,
liblingua-stem-snowball-perl,
liblist-moreutils-perl,
liblocale-codes-perl,
liblocale-currency-format-perl,
liblocale-po-perl,
liblog-log4perl-perl,
liblwp-protocol-https-perl|libwww-perl (<<6.02), libio-socket-ssl-perl,
libmail-sendmail-perl,
libmarc-charset-perl,
libmarc-file-mij-perl,
libmarc-record-perl,
libmarc-xml-perl,
libmime-lite-perl,
libmodern-perl-perl,
libmodule-bundled-files-perl,
libmodule-cpanfile-perl,
libmodule-load-conditional-perl,
libmodule-pluggable-perl,
libmojolicious-perl (>= 6.0),
libmojolicious-plugin-openapi-perl,
libmoo-perl,
libnet-cidr-perl,
libnet-ldap-perl,
libnet-netmask-perl,
libnet-oauth2-authorizationserver-perl,
libnet-server-perl,
libnet-sftp-foreign-perl,
libnet-z3950-simpleserver-perl,
libnet-z3950-zoom-perl,
libnumber-format-perl,
libopenoffice-oodoc-perl,
libparallel-forkmanager-perl,
libpdf-api2-perl,
libpdf-fromhtml-perl,
libpdf-reuse-barcode-perl,
libpdf-reuse-perl,
libpdf-table-perl,
libplack-middleware-logwarn-perl,
libplack-middleware-reverseproxy-perl,
libppi-perl,
libreadonly-perl,
libreadonly-xs-perl,
libscalar-list-utils-perl,
libschedule-at-perl,
libsearch-elasticsearch-perl,
libsereal-decoder-perl,
libsereal-encoder-perl,
libsms-send-perl,
libstring-random-perl,
libsys-cpu-perl,
libtemplate-perl,
libtemplate-plugin-htmltotext-perl,
libtemplate-plugin-json-escape-perl,
libtemplate-plugin-stash-perl,
libtest-deep-perl,
libtest-exception-perl,
libtest-mockmodule-perl,
libtest-mockobject-perl,
libtest-mocktime-perl,
libtest-simple-perl,
libtest-strict-perl,
libtest-warn-perl,
libtest-www-mechanize-perl,
libtest-yaml-valid-perl,
libtext-bidi-perl,
libtext-csv-encoded-perl,
libtext-csv-perl,
libtext-csv-xs-perl,
libtext-iconv-perl,
libtext-pdf-perl,
libtext-unidecode-perl,
libtime-fake-perl,
libtry-tiny-perl,
libuniversal-can-perl,
libuniversal-require-perl,
liburi-perl,
libuuid-perl,
libwebservice-ils-perl,
libwww-csrf-perl,
libwww-perl,
libxml-dumper-perl,
libxml-libxml-perl,
libxml-libxslt-perl,
libxml-rss-perl,
libxml-sax-perl,
libxml-sax-writer-perl,
libxml-simple-perl,
libxml-writer-perl,
libyaml-perl,
libyaml-syck-perl
Architecture: all
Description: Perl dep. for koha
Koha is an Integrated Library Management system for real-world libraries
(the kinds with books).
.
This meta-package contains perl dependencies packages for koha (all
perl lib).