xfce4-sensors-plugin: correct netcat PACKAGECONFIG

In case netcat PACKAGECONFIG is enabled, do_configure fails
with the following error message:

| configure: error: hddtemp isn't queryable via netcat (use --disable-pathchecks to disable this check)

hddtemp service keeps a TCP port open to query the sensor data.
In case netcat is enabled for this recipe, the configure script
will search for the netcat binary, and will try to query this
hddtemp port, as a sanity check. This check is performed
independently from the hddtemp PACKAGECONFIG. Since hddtemp
isn't running in the build environment (probably) and
network connection is also disabled, this check fails.

To avoid this problem, add the extra config argument suggested by the
error message.

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Gyorgy Sarvari 2025-02-13 18:44:44 +01:00 committed by Khem Raj
parent 10ae09fb46
commit b16f9c6f04
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -22,7 +22,7 @@ do_configure:prepend() {
PACKAGECONFIG ??= "libnotify"
PACKAGECONFIG[libsensors] = "--enable-libsensors,--disable-libsensors, lmsensors"
PACKAGECONFIG[hddtemp] = "--enable-hddtemp,--disable-hddtemp, hddtemp"
PACKAGECONFIG[netcat] = "--enable-netcat,--disable-netcat, netcat"
PACKAGECONFIG[netcat] = "--enable-netcat --disable-pathchecks,--disable-netcat, netcat"
PACKAGECONFIG[libnotify] = "--enable-notification,--disable-notification, libnotify"
FILES_SOLIBSDEV = "${libdir}/xfce4/modules/lib*${SOLIBSDEV}"