Skip to content

packaging scripts and others like upsdrvsvcctl/nut-driver-enumerator.sh.in should use the EGREP they located during configure/build #3099

@nbriggs

Description

@nbriggs

scripts/upsdrvsvcctl/nut-driver-enumerator.sh.in contains grep invocations like

scripts/upsdrvsvcctl/nut-driver-enumerator.sh.in:if set | grep -E '^(shell|version|t?csh)' | grep -E 't?csh' >/dev/null ; then
scripts/upsdrvsvcctl/nut-driver-enumerator.sh.in:        echo "$SVCINST_PROPS" | grep -E "^${SVCINST}${TABCHAR}"'$' >/dev/null && echo "$SVCINST"
scripts/upsdrvsvcctl/nut-driver-enumerator.sh.in:        echo "$SVCINST_PROPS" | grep -E "^${SVCINST}${TABCHAR}" >/dev/null || echo "$SVCINST"
scripts/upsdrvsvcctl/nut-driver-enumerator.sh.in:        echo "$SVCINSTS" | grep -E "^${SVCINST_PROP}"'$' >/dev/null || echo "$SVCINST_PROP"
scripts/upsdrvsvcctl/nut-driver-enumerator.sh.in:        echo "$SVCINST_PROPS" | grep -E "^${SVCINST}${TABCHAR}"'$' >/dev/null && echo "$SVCINST"
scripts/upsdrvsvcctl/nut-driver-enumerator.sh.in:        echo "$SVCINST_PROPS" | grep -E "^${SVCINST}${TABCHAR}" >/dev/null || echo "$SVCINST"

However it has gone to some trouble during configure step to determine what the functional names of EGREP, FGREP, and GREP are -- and on a Solaris system those are

scripts/upsdrvsvcctl/Makefile:EGREP = /usr/gnu/bin/grep -E
scripts/upsdrvsvcctl/Makefile:FGREP = /usr/gnu/bin/grep -F
scripts/upsdrvsvcctl/Makefile:GREP = /usr/gnu/bin/grep

not just plain grep. So... it would be helpful if the transformation from nut-driver-enumerator.sh.in to nut-driver-enumerator.sh took this into account.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CIEntries related to continuous integration infrastructure (here CI = tools + scripts + recipes)Solaris/illumosSolaris and illumos systems (OpenIndiana, OmniOS, SmartOS, TribbliX...)bugimpacts-release-2.8.4Issues reported against NUT release 2.8.4 (maybe vanilla or with minor packaging tweaks)portabilityWe want NUT to build and run everywhere possible

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions