Skip to content

firehol: UNAME_CMD variable undefined, causing warnings on startup #59203

@entropiabinaria38911-star

Description

When firehol starts, the following warnings are printed to the console:

/usr/bin/firehol: line 5830: /builddir/.xbps-firehol/wrappers/uname: No such file or directory
/usr/bin/firehol: line 5836: /builddir/.xbps-firehol/wrappers/uname: No such file or directory

Cause:

The firehol script uses a variable UNAME_CMD at lines 5830 and 5836 to detect the kernel version. This variable is never defined anywhere in the installed package (not in /usr/bin/firehol, not in /etc/firehol/, not in /usr/lib/firehol/, not in /usr/share/firehol/). The path /builddir/.xbps-firehol/wrappers/uname is a build-time artifact that does not exist on the installed system.

Expected behavior:
UNAME_CMD should be set to /usr/bin/uname or equivalent before use.
Actual behavior:
UNAME_CMD is undefined, bash expands it to the build-time path, and the command fails with "No such file or directory".
Impact:
Firehol still works correctly despite the warnings, but the output is confusing and suggests a packaging error.

Note:
I may be missing something. If UNAME_CMD is supposed to be defined by the user or through some configuration file that I am not aware of, please let me know. I searched exhaustively in /usr/bin/firehol, /etc/firehol/, /usr/lib/firehol/ and /usr/share/firehol/ and found no definition for this variable. Any clarification is welcome.
Thanks you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions