svn commit: r449798 - head/net-mgmt/collectd5
Steve Wills
swills at FreeBSD.org
Fri Sep 15 17:18:32 UTC 2017
Hi,
On 09/15/2017 06:33, Dag-Erling Smørgrav wrote:
> Steve Wills <swills at FreeBSD.org> writes:
>> I'm happy to see more options enabled by default in this port, thanks
>> for that. We do have a policy that packaged binaries should be
>> stripped. Enabling the DEBUG option by default would seem to be at
>> odds with that policy to me. Could you please turn that one off by
>> default?
>
> # file /usr/local/sbin/collectd
> /usr/local/sbin/collectd: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, for FreeBSD 11.0 (1100122), FreeBSD-style, stripped
>
Hmm, mine built after this change shows:
/usr/local/sbin/collectd: ELF 64-bit LSB executable, x86-64, version
1 (FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, for
FreeBSD 12.0 (1200042), FreeBSD-style, not stripped
> The DEBUG option enables log messages which are indispensable when
> troubleshooting a collectd installation (or rather, makes an additional
> log level available). I didn't realize that it also disables stripping.
> If that is the case, it needs to be split in two, or maybe the relevant
> configure argument should simply be hardcoded.
Simply renaming the DEBUG option to LOGGING seems to avoid the issue:
/usr/local/sbin/collectd: ELF 64-bit LSB executable, x86-64, version 1
(FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, for
FreeBSD 12.0 (1200042), FreeBSD-style, stripped
Steve
More information about the svn-ports-head
mailing list