[Yum-devel] [PATCH] move bash-completion scripts to /usr/share/ BZ 922992

Zdenek Pavlas zpavlas at redhat.com
Wed Mar 20 15:02:55 UTC 2013


> > *.py symlinks to shell scripts break poor brp-python-bytecompile.
> > Could be worked around, but is it worth the hassle?
> 
> You be the judge, I don't insist.

Yes, I'd like to drop it.  But given how broken and inflexible
brp-python-bytecompile is, it should be probably avoided anyway.

> Yes, provided that bash-completion is installed, i.e. "BuildRequires:
> bash-completion" is in place -- that's where bash-completion.pc comes
> from.

OIC, thanks.

> In order to support earlier bash completion versions I'd probably do
> something like this (untested):

> compdir := $(shell pkg-config --variable=completionsdir
> bash-completion 2>/dev/null || echo /etc/bash_completion.d)

Confirmed, pkg-config returns 1 for unknown packages.  But when
querying an undefined variable, it does not signal an error.


More information about the Yum-devel mailing list