Open jimklimov opened 2 years ago
Updated checklist above with achievements around PR #2275 which merged current master into FTY branch so it built green for the first time, and ported back the installer, nutconf
and some smaller fixes to minimize the difference - those became part of recent NUT v2.8.2 release.
Note: with recent cross-pollinated work about making DMF codebase viable on MacOS, there were quite a few general quality-of-life improvements for that platform and others. Some of it (not DMF-specific parts) fed back into master right away.
A lot of work on NUT was done under the auspices of Eaton-backed 42ity project, as well as some earlier bundled releases that became part of its codebase. While much of the development was cross-posted for PRs, some was only pursued in the fork to perfect there first. 42ity took the decision to eventually move from the burden of maintaining a separate fork (thereby regularly solving merge conflicts) towards using the "upstream NUT" codebase directly, so I imported the "FTY" branch and identified the largest differing subjects to reconcile between the two:
do_convert_deci
toggle was converted from boolean setting into a flag checked right inmge-xml.c
; will be posted in #2472 resyncNotes about known feature changes between the forks (as of comparison in early 2022, before some of these changes got upstreamed in e.g. #320):
"device.N.input.feed.desc", "device.N.outlet.M.name", separated "device.N.outlet.group.M.name" vs. "device.N.outlet.group.M.desc" (also added "device.N.outlet.switchable") NOTE: compared to those master-branch builds, LOST phase info "outlet.group.N.phase" however maybe only for single-phase devices? seems there is a rename for three-phased ones:
3ph:
+outlet.group.1.desc: Section A -outlet.group.1.name: Section A -outlet.group.1.phase: L1 +outlet.group.1.name: A +outlet.group.1.phase: 1-N +outlet.group.2.desc: Section B -outlet.group.2.name: Section B -outlet.group.2.phase: L2 +outlet.group.2.name: B +outlet.group.2.phase: 2-N +outlet.group.3.desc: Section C -outlet.group.3.name: Section C -outlet.group.3.phase: L3 +outlet.group.3.name: C +outlet.group.3.phase: 3-N
+input.feed.desc: Feed A +outlet.1.name: A1 +outlet.group.1.desc: Section A -outlet.group.1.name: Section A -outlet.group.1.phase: L1 +outlet.group.1.name: A +outlet.group.1.phase: 1-N
+ambient.1.contacts.1.config: normal-opened +ambient.1.contacts.1.name: EMPDT1H1C2 @1-C1 +ambient.1.contacts.1.status: inactive ... +ambient.1.humidity.status: good +ambient.1.id: d01fd439-a44e-5367-bc99-5b5108c9abc5 +ambient.1.mfr: Eaton +ambient.1.model: Eaton EMPDT1H1C2 +ambient.1.name: EMPDT1H1C2 @1 +ambient.1.present: no +ambient.1.serial: GBxxxxxxxx +ambient.1.temperature.status: good +ambient.1.temperature.unit: celsius ... +ambient.contacts.1.name: EMPDT1H1C2 @1-C1 +ambient.contacts.2.name: EMPDT1H1C2 @1-C2
... +outlet.1.status: on +outlet.2.status: on +outlet.switchable: yes
+ambient.contacts.2.name: EMPDT1H1C2 @1-C2 +ambient.contacts.2.status: opened +outlet.1.status: on +outlet.2.status: on +outlet.switchable: yes -ups.type: high efficiency +ups.type: On-Line UPS, Single Phase
+ambient.contacts.1.name: Input #1 +ambient.contacts.1.status: opened +ambient.contacts.2.name: Input #2 +ambient.contacts.2.status: closed +device.contact: Team +device.location: Rack +outlet.1.status: on +outlet.2.status: on -ups.type: normal +ups.type: On-Line UPS, Single Phase
+ambient.contacts.1.status: opened +ambient.contacts.2.status: closed +device.contact: Team +device.location: Rack
:; git clone -b FTY https://github.com/42ity/nut . :; BUILD_WARNFATAL=yes BUILD_WARNOPT=medium CANBUILD_DRIVERS_DMF=yes BUILD_TYPE=default-alldrv ./ci_build.sh
!/bin/sh
date; \ echo "Making whatever succeeds"; \ make -j -k >/dev/null 2>&1; \ echo "Making for error report"; \ make -k > wall.tmp 2>&1 ; \ mv -f wall.tmp wall; \ egrep '[K?-Werror' < wall > wsum \ && awk '{print $NF}' < wsum | sort | uniq -c | sort -n > wsum.count \ && wc -l wsum >> wsum.count \ && cat wsum.count
$ ./_wsum February 2, 2022 at 02:58:20 PM CET Making whatever succeeds Making for error report 1 [-Werror=pedantic] 1 [-Werror=unused-parameter] 39 [-Werror] 697 [-Werror=missing-field-initializers] 738 wsum
scan_snmp.c:106:13: error: redefinition of typedef 'bool_t' [-Werror=pedantic]
../../include/config.h:29: error: "BINDIR" redefined [-Werror] ../../include/config.h:32: error: "CGIPATH" redefined [-Werror] ../../include/config.h:35: error: "CONFPATH" redefined [-Werror] ../../include/config.h:47: error: "DATADIR" redefined [-Werror] ../../include/config.h:51: error: "DEFAULT_DMFNUTSCAN_DIR" redefined [-Werror] ../../include/config.h:55: error: "DEFAULT_DMFNUTSCAN_RES_DIR" redefined [-Werror] ../../include/config.h:58: error: "DEFAULT_DMFSNMP_DIR" redefined [-Werror] ../../include/config.h:61: error: "DEFAULT_DMFSNMP_RES_DIR" redefined [-Werror] ../../include/config.h:64: error: "DRVPATH" redefined [-Werror] ../../include/config.h:812: error: "HTMLPATH" redefined [-Werror] ../../include/config.h:815: error: "LIBDIR" redefined [-Werror] ../../include/config.h:818: error: "LIBEXECDIR" redefined [-Werror] ../../include/config.h:914: error: "SBINDIR" redefined [-Werror]
drivers/eaton-pdu-marlin-mib.c:825:42: error: unused parameter 'daisy_dev_list' [-Werror=unused-parameter]