Bug 227227 - databases/mariadb55-server: Adapt ${name}_limits to the new resource limiting mechanics for services
Summary: databases/mariadb55-server: Adapt ${name}_limits to the new resource limiting...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Bernard Spil
URL:
Keywords: regression
Depends on:
Blocks: 227205
  Show dependency treegraph
 
Reported: 2018-04-03 00:33 UTC by Mateusz Piotrowski
Modified: 2018-04-11 00:25 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (brnrd)
0mp: maintainer-feedback?


Attachments
Patch adding support for the new ${name}_limits mechanics (databases/mariadb55-server) (3.83 KB, patch)
2018-04-03 00:33 UTC, Mateusz Piotrowski
0mp: maintainer-approval?
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mateusz Piotrowski freebsd_committer freebsd_triage 2018-04-03 00:33:31 UTC
Created attachment 192142 [details]
Patch adding support for the new ${name}_limits mechanics (databases/mariadb55-server)

Thanks to the recent change to rc.subr(8) it is no longer necessary to
define a resource limiting logic in service scripts. limits(1) is now run
by default and its configuration is handled via the "${name}_limits"
variable.

Unfortunately, there is a collision of variable names. The service
scripts are broken on FreeBSD version with that new change (12.0-CURRENT,
11-STABLE and soon 11.2-RELEASE). It has been reported and diagnosed here.[2]

I'm submitting a patch fixing the service script for this port. A similar patch
has already been accepted by a maintainer of another database port.[2]

The patch preserves the old behavior on the systems without the
modification.

It would be great if you could review the patch and test it. :)

[1]: https://svnweb.freebsd.org/base?view=revision&revision=r328331
[2]: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=226907
Comment 1 commit-hook freebsd_committer freebsd_triage 2018-04-03 19:14:52 UTC
A commit references this bug:

Author: brnrd
Date: Tue Apr  3 19:14:01 UTC 2018
New revision: 466372
URL: https://svnweb.freebsd.org/changeset/ports/466372

Log:
  databases/mariadb55-server: Fix mysql_limits

   - 11-STABLE and 12-CURRENT add limits support to rc.subr(8)
     leading to variable conflicts with rc.d/mysql

  PR:		227227
  Submitted by:	0mp

Changes:
  head/databases/mariadb55-server/Makefile
  head/databases/mariadb55-server/files/mysql-server.in
Comment 2 Bernard Spil freebsd_committer freebsd_triage 2018-04-03 19:15:28 UTC
Thank you Mateusz!