Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refine configure --enable-inplace-runtime and CONFIG_FLAGS support #1826

Closed
5 tasks done
jimklimov opened this issue Jan 19, 2023 · 0 comments · Fixed by #1835
Closed
5 tasks done

Refine configure --enable-inplace-runtime and CONFIG_FLAGS support #1826

jimklimov opened this issue Jan 19, 2023 · 0 comments · Fixed by #1835

Comments

@jimklimov
Copy link
Member

jimklimov commented Jan 19, 2023

Follow-up from #1709

  • Avoid saving the --disable-runtime-support flag (especially as used by configure itself to re-enter)
  • Avoid saving (duplicate at least) --enable-runtime-support flag(s)
  • Save NUT config report file (if retained) as a /usr/share/nut/... artifact; maybe create and keep a JSON copy to use in later rebuilds?
  • Report NUT version the config was inherited from, if possible (e.g. runnable tools exist and tell)
  • When reporting built-in details (upsd -DV etc.) avoid upsdebugx->vupslog limit of LARGEBUF (use direct sprintf? custom larger/dynamic vupslog?) Example string from PowerWalker VI 3000 RT HID  #1824 is truncated mid-word probably due to the buffer-size limit (which in turn stems from SYSLOG limits - earlier RFC 3164 says 1Kb max, modern implementations can have it configurable). Note the primary use-case is about "inplace rebuilds" (maybe always-delivering a libupsclient-config, or using the JSON version of config report or similar artifact is a better solution for many situations), and helping diagnose run-time deployments as people copy-paste their logs.
@jimklimov jimklimov added this to the 2.8.1 milestone Jan 21, 2023
jimklimov added a commit to jimklimov/nut that referenced this issue Jan 21, 2023
jimklimov added a commit to jimklimov/nut that referenced this issue Jan 21, 2023
…support, and only track once that we --enable-runtime-support [networkupstools#1826]
jimklimov added a commit to jimklimov/nut that referenced this issue Jan 21, 2023
…er option lists for purposes of "configure --enable-inplace-runtime" [networkupstools#1826]
jimklimov added a commit to jimklimov/nut that referenced this issue Jan 21, 2023
jimklimov added a commit to jimklimov/nut that referenced this issue Jan 21, 2023
…able_inplace_runtime, try PATH beside PREFIX, and generalize to try upsc if upsd is not found [networkupstools#1826]
jimklimov added a commit to jimklimov/nut that referenced this issue Jan 21, 2023
jimklimov added a commit to jimklimov/nut that referenced this issue Jan 22, 2023
jimklimov added a commit to jimklimov/nut that referenced this issue Jan 22, 2023
jimklimov added a commit to jimklimov/nut that referenced this issue Jan 22, 2023
jimklimov added a commit to jimklimov/nut that referenced this issue Jan 22, 2023
jimklimov added a commit that referenced this issue Feb 6, 2023
INSTALL.nut: update with "in-place" rebuilds chapter [#1826]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant