#1138739 tomcat11: Inconsistencies/quirks of historical server packages

Package:
tomcat11
Source:
tomcat11
Submitter:
Reuben Roessler
Date:
2026-07-20 00:29:02 UTC
Severity:
normal
Tags:
#1138739#5
Date:
2026-06-03 04:34:06 UTC
From:
To:
Dear Maintainer,

Whilst restoring server packages in tomcat10 for the next release of Ubuntu, we came across some harmless inconsistencies
with some of the historical server package files. Coincidentally, these also affect tomcat11 and include:

- debian/sysuser/tomcat11.conf: Sets home directory to /var/lib/tomcat (and not /var/lib/tomcat11). This is inconsistent with
  CATALINA_BASE but functionally harmless since the user logs in nologin.
- debian/tomcat11.postrm.in: Has find var/lib/tomcat11/lib/classes (missing leading /) relative path. Again harmless, but with an easy fix.
- debian/tomcat11.dirs: Includes etc/logrotate.d, however since the logrotate config is installed via ucf from the template this results
  in an empty dir creation noise but is again harmless.
- debian/tomcat11.cron.daily: This file has overlap with the debian/logrotate.template and is more so worth noting for future refactorings.

So far I have tested that fixing the first three items is safe to do so, however was unsure whether removing debian/tomcat11.cron.daily would
result in a regression since it uses settings from /etc/default/tomcat11 values.

Happy to submit a merge request which resolves these.

Kind regards,

Reuben

#1138739#10
Date:
2026-07-20 00:27:19 UTC
From:
To:
Dear Maintainers,

Would it be possible to consider the MR[1] as a proposed solution for
this issue.

Best regards,
Vladimir.

[1] https://salsa.debian.org/java-team/tomcat11/-/merge_requests/3