Bug 257884 - net/openldap24-server: the slapd -l option has disappeared in version 2.4.59_3
Summary: net/openldap24-server: the slapd -l option has disappeared in version 2.4.59_3
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: Xin LI
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-16 14:15 UTC by martin
Modified: 2021-09-06 21:29 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (delphij)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description martin 2021-08-16 14:15:19 UTC
I've just upgraded pkgs in 11.4-RELEASE-p9, including this change:

openldap-server: 2.4.59 -> 2.4.59_3

and now the command line:

/usr/local/libexec/slapd -l DAEMON -h "ldapi://%2fvar%2frun%2fopenldap%2fldapi/ ldap://0.0.0.0/

fails with:

slapd: illegal option -- l
usage: /usr/local/libexec/slapd options
	-4		IPv4 only
	-6		IPv6 only
	-T {acl|add|auth|cat|dn|index|passwd|test}
			Run in Tool mode
	-c cookie	Sync cookie of consumer
	-d level	Debug level
	-f filename	Configuration file
	-F dir	Configuration directory
	-g group	Group (id or name) to run as
	-h URLs		List of URLs to serve
	-n serverName	Service name
	-o <opt>[=val] generic means to specify options; supported options:
		slp[={on|off|(attrs)}] enable/disable SLP using (attrs)
	-r directory	Sandbox directory to chroot to
	-s level	Syslog level
	-u user		User (id or name) to run as
	-V		print version info (-VV exit afterwards, -VVV print
			info about static overlays and backends)

The -l option was supported in version 2.4.59:

	-l facility	Syslog facility (default: LOCAL4)

and is still in the manual page slapd(8c).
Comment 1 Xin LI freebsd_committer freebsd_triage 2021-09-06 21:25:36 UTC
Confirmed, working on a fix.
Comment 2 commit-hook freebsd_committer freebsd_triage 2021-09-06 21:28:21 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ea525437cd38a64c0ce84e442ad8b4e2e2ee3a4a

commit ea525437cd38a64c0ce84e442ad8b4e2e2ee3a4a
Author:     Xin LI <delphij@FreeBSD.org>
AuthorDate: 2021-09-06 21:22:58 +0000
Commit:     Xin LI <delphij@FreeBSD.org>
CommitDate: 2021-09-06 21:27:39 +0000

    net/openldap24-server: Make DEBUG default.

    In 616f384d5cce7f52a9f5a2164d405f4185bbcab9 the port was converted
    to use the option framework's handling of options.  Previously,
    when "DEBUG" is unchecked, the port will not pass --disable-debug
    and because debug was enabled by default in upstream, the option
    is effectively saying build with debug anyways.  After the conversion,
    we are now correctly building a non-debug build which will also remove
    syslog support.

    Restore the historical behavior and build with debug option by default
    as it's what expected by upstream and the option never worked on FreeBSD
    until the recent conversion actually fixed the option to do what it was
    intended to do.

    PR:             ports/257884

 net/openldap24-server/Makefile | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)