net-snmp-config --base-lib-cflags is broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
net-snmp (Ubuntu) |
New
|
Medium
|
Unassigned |
Bug Description
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/
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.
The attachment "Replacement patch proposition." seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]