[Pkg-net-snmp-devel] Bug#864485: net-snmp-config --base-lib-cflags is broken

Ignacy Gawedzki bugs at qult.net
Fri Jun 9 09:44:41 UTC 2017


Source: net-snmp
Severity: normal

Dear Maintainer,

The --base-lib-cflags option to net-snmp-config added by Debian
developers is broken as it outputs @LIBCFLAGS@ among others.

The problem comes from the fact that when it was introduced (version
5.4.2.1~dsfg-4), the original patch modified the configure.in file as
well. In the meantime, the structure of configure.ac has changed and
when the patch was adapted, the modification to configure.ac was
dropped, resulting in a substitution left aside.

The attached patch is an attempt to restore the original behavior. It
is meant as a replacement of debian/patches/62_add_lib_cflags.patch .

Nevertheless, the way information output by net-snmp-config
--base-lib-cflags is gathered is wrong. There shouldn't IMHO be any
GCC optimization flags like -O2 in the substitution, among others. The
variable to substitute @LIBCFLAGS@ should be carefully constructed
during the configure process instead.

-- System Information:
Debian Release: stretch/sid
  APT prefers zesty-updates
  APT policy: (500, 'zesty-updates'), (500, 'zesty-security'), (500, 'zesty-proposed'), (500, 'zesty'), (100, 'zesty-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.10.0-22-lowlatency (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 62_add_lib_cflags.patch
Type: text/x-diff
Size: 1479 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-net-snmp-devel/attachments/20170609/771d8e90/attachment.patch>


More information about the Pkg-net-snmp-devel mailing list