Package: libpython3.13-minimal

libpython3.13-minimal's prerm computes a safe xargs --max-chars value
by parsing GNU xargs --show-limits output:

https://sources.debian.org/src/python3.13/3.13.5-2%2Bdeb13u2/debian/libPVER-minimal.prerm.in/#L8

If xargs does not support --show-limits, max becomes empty.

I ran into this issue because I run the Rust port of findutils at
github.com/uutils/findutils.

While it should try to maintain compatibility (and I am working on a
patch) it is possibly a good idea to execute a fallback if
--show-limits is not implemented or returns an empty string.

E.g.

    max=$(LANG=C LC_ALL=C xargs --show-limits < /dev/null 2>&1 \
        | awk '/Maximum length/ {print int($NF / 4)}')
    if ! [ "$max" -gt 0 ] 2>/dev/null; then
        max=131072
    fi

Thanks very much,
Kevin Burke

Reply via email to