Skip to content

Fix nut-scanner debuglevel#1160

Merged
jimklimov merged 7 commits intonetworkupstools:masterfrom
jimklimov:fix-nut-scanner-debuglevel
Nov 7, 2021
Merged

Fix nut-scanner debuglevel#1160
jimklimov merged 7 commits intonetworkupstools:masterfrom
jimklimov:fix-nut-scanner-debuglevel

Conversation

@jimklimov
Copy link
Copy Markdown
Member

While working on #1157 and #1158 I found that debug-logging from nut-scanner acted funny: the nut_debug_level worked correctly for code in nut-scanner.c (reacted to -D arguments, etc.) but remained zero for actual scanners.

Finally tracked this to the binary (and its part in libnutscanner) being built with both libcommon.la and common.c directly, and apparently the two same-named objects delivered same-named variables, which apparently confused things.

Numerous attempts to rebuild the partial codebase (and in particular to reliably clean and rebuild recipes themselves) led to recipe fixes such as #1151 and #1159 and repercussions in a few other recent PRs.

All for the loss of a horseshoe nail... :)

jimklimov and others added 7 commits November 5, 2021 09:20
… (avoid double-definition of nut_debug_level among other things)
…-debuglevel

Apply the different (upstream) out-of-dir source tracking method
with further steps to achieve this PR branch goals: avoid conflict
of several copies of nut_debug_level (common.o) in nut-scanner.
@jimklimov jimklimov requested a review from aquette November 6, 2021 20:55
@jimklimov jimklimov merged commit e172036 into networkupstools:master Nov 7, 2021
@jimklimov jimklimov deleted the fix-nut-scanner-debuglevel branch November 7, 2021 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants