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

configure: revise user/group/path settings and reporting #1719

Merged
merged 39 commits into from Nov 26, 2022

Conversation

…dir to report current defaults (not arbitrary suggestions)
…rrent system circumstances down, to just before we use them
...and comment arguments for NUT_REPORT_FEATURE()
Should have no "nut" subdir for STATEPATH and ALTPIDPATH

Follow-up for networkupstools#1030, networkupstools#1037, networkupstools#1117
May be related to networkupstools#1712
…and NUT_REPORT_SETTING_PATH() to populate it
@jimklimov jimklimov added CI Entries related to continuous integration infrastructure (historically also recipes like Makefiles) service/daemon start/stop General subject for starting and stopping NUT daemons (drivers, server, monitor); also BG/FG/Debug labels Nov 25, 2022
@jimklimov jimklimov added this to the 2.8.1 milestone Nov 25, 2022
@jimklimov
Copy link
Member Author

jimklimov commented Nov 25, 2022

Updated markdown/asciidoc-friendly chapters in config.nut_report_feature.log e.g. https://ci.appveyor.com/api/buildjobs/gisvyaim9ndxdkfd/artifacts/config.nut_report_feature.log would show:


NUT Configuration summary:

  • build serial drivers: yes
  • build USB drivers: yes (libusb-0.1)
  • build neon based XML driver: yes
  • enable Avahi support: no
  • build Powerman PDU client driver: no
  • build Modbus driver: yes
  • build IPMI driver: no
  • build Mac OS X meta-driver: no
  • build i2c based drivers: no
  • enable SSL support: yes (OpenSSL)
  • enable libwrap (tcp-wrappers) support: no
  • enable libltdl (Libtool dlopen abstraction) support: yes
  • build nut-scanner: yes
  • build CGI programs: yes
  • install NUT-Monitor desktop application: no
  • install PyNUT binding module: yes
  • build and install documentation: skip
  • build specific documentation format(s): no
  • build and install the development files: yes
  • build C++11 codebase (client library, etc.): yes
  • build C++ tests with CPPUNIT: yes
  • build SNMP drivers: yes
  • build SNMP drivers with statically linked lib(net)snmp: no
  • User to run as: nobody
  • Group of user to run as: nobody

NUT Paths:

  • Default installation prefix path: /mingw64
  • State file path: /var/state/ups
  • Unprivileged PID file path: /var/state/ups
  • Privileged PID file path: /var/run
  • Driver program path: /mingw64/bin
  • CGI program path: /mingw64/cgi-bin
  • HTML file path: /mingw64/html
  • Config file path: /mingw64/etc
  • Data file path: /mingw64/share
  • Tool program path: /mingw64/bin
  • System program path: /mingw64/sbin
  • System library path: /mingw64/lib
  • System exec-library path: /mingw64/libexec

NUT Build/Target system info:

  • host env spec we run on: x86_64-w64-mingw32
  • host env spec we built on: x86_64-w64-mingw32
  • host env spec we built for: x86_64-w64-mingw32
  • host OS short spec we run on: x86_64-mingw32
  • host OS short spec we built on: x86_64-mingw32
  • host OS short spec we built for: x86_64-mingw32

NUT Compiler settings:

  • CC : gcc
  • CFLAGS : -g -O2 -Wno-reserved-identifier -fdiagnostics-color=always -Wno-unknown-warning-option -std=gnu99 -Wno-system-headers -Wall -Wextra -Wsign-compare -pedantic -Wno-format -Wno-error
  • CXX : g++
  • CXXFLAGS : -g -O2 -Wno-reserved-identifier -fdiagnostics-color=always -Wno-unknown-warning-option -std=gnu++11 -Wno-system-headers -Wall -Wextra -Wno-format -Wno-error
  • CPP : gcc -E
  • CPPFLAGS :

@jimklimov
Copy link
Member Author

jimklimov commented Nov 25, 2022

Testing ./ci_build.sh inplace on a deployed system:

...
configure: checking for autoconf macro support of pkg-config module checker
checking for pkg-config... yes
checking for in-place replacement default sysconfdir (better than '${prefix}/etc')... /etc/nut
checking how to run the C preprocessor... gcc -E
...
checking for in-place replacement default group (better than 'nogroup')... nut
checking for in-place replacement default user (better than 'nobody')... Got from /usr/local/ups/lib/pkgconfig/libupsclient.pc
nut
checking if requested user to run as... default
checking setting for User to run as... "nut"
checking if requested group membership of user to run as... default
checking setting for Group of user to run as... "nut"
...
* User to run as:       nut
* Group of user to run as:      nut
...
* Config file path:     /etc/nut
...

@jimklimov jimklimov merged commit 07654e9 into networkupstools:master Nov 26, 2022
@jimklimov jimklimov deleted the issue-1714 branch November 26, 2022 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Entries related to continuous integration infrastructure (historically also recipes like Makefiles) service/daemon start/stop General subject for starting and stopping NUT daemons (drivers, server, monitor); also BG/FG/Debug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant