Make install bug in P11-kit 0.23.19

Jeffrey Walton noloader at
Sun Feb 2 03:10:34 UTC 2020

Hi Everyone,

I'm configuring a test build. --prefix=$HOME/tmp/ok_to_delete. P11-kit
builds and tests OK, but 'make install' fails:

Installing package
make  install-recursive
make[1]: Entering directory '/home/jwalton/p11-kit-0.23.19'
Making install in .
.../bin/mkdir -p /home/jwalton/tmp/ok_to_delete/share/p11-kit/modules
make[4]: Leaving directory '/home/jwalton/p11-kit-0.23.19'
/bin/mkdir -p '/usr/share/bash-completion/completions'
/usr/bin/install -c -m 644 bash-completion/p11-kit
bash-completion/trust '/usr/share/bash-completion/completions'
/usr/bin/install: cannot create regular file
'/usr/share/bash-completion/completions/p11-kit': Permission denied
/usr/bin/install: cannot create regular file
'/usr/share/bash-completion/completions/trust': Permission denied
Makefile:4634: recipe for target 'install-bashcompDATA' failed
make[3]: *** [install-bashcompDATA] Error 1
make[3]: Leaving directory '/home/jwalton/p11-kit-0.23.19'
Makefile:5608: recipe for target 'install-am' failed
make[2]: *** [install-am] Error 2
make[2]: Leaving directory '/home/jwalton/p11-kit-0.23.19'
Makefile:4767: recipe for target 'install-recursive' failed
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory '/home/jwalton/p11-kit-0.23.19'
Makefile:5602: recipe for target 'install' failed
make: *** [install] Error 2

When install fails, it fails to write p11-kit.pc in $PREFIX/lib/pkgconfig.

Then, I try to build GnuTLS, and it fails to configure because the
*.pc file is missing:

checking for P11_KIT... no
configure: error:
*** p11-kit >= 0.23.1 was not found. To disable PKCS #11 support
*** use --without-p11-kit, otherwise you may get p11-kit from

Is there an easy way to disable the install-bashcompDATA recipe?


More information about the p11-glue mailing list