Skip to content

debian: ship cmake package config in -dev package#192

Merged
dgarske merged 1 commit into
wolfSSL:masterfrom
LinuxJedi:debian-ship-cmake-config
Jun 18, 2026
Merged

debian: ship cmake package config in -dev package#192
dgarske merged 1 commit into
wolfSSL:masterfrom
LinuxJedi:debian-ship-cmake-config

Conversation

@LinuxJedi

Copy link
Copy Markdown
Member

The autotools build installs the CMake package-config files (wolfpkcs11Config.cmake, wolfpkcs11ConfigVersion.cmake, wolfpkcs11Targets.cmake) into $(libdir)/cmake/wolfpkcs11/ (see Makefile.am cmakepkgconfig_DATA), but debian/libwolfpkcs11-dev.install did not capture them.

Under debhelper-compat (= 13), dh_missing treats these orphaned files as a fatal error, so dpkg-buildpackage aborts during the binary step:

dh_missing: warning: usr/lib/x86_64-linux-gnu/cmake/wolfpkcs11/wolfpkcs11Config.cmake exists in debian/tmp but is not installed to anywhere
dh_missing: warning: usr/lib/x86_64-linux-gnu/cmake/wolfpkcs11/wolfpkcs11ConfigVersion.cmake exists in debian/tmp but is not installed to anywhere
dh_missing: warning: usr/lib/x86_64-linux-gnu/cmake/wolfpkcs11/wolfpkcs11Targets.cmake exists in debian/tmp but is not installed to anywhere
dh_missing: error: missing files, aborting
make: *** [debian/rules:21: binary] Error 25

This adds the cmake configs to the -dev package (their natural home, consumed by downstream find_package(wolfpkcs11)), which resolves the dh_missing failure.

Test plan

  • dpkg-buildpackage -us -uc -b on Debian 12 now completes the binary step; the three .cmake files land in libwolfpkcs11-dev.

🤖 Generated with Claude Code

The autotools build installs the CMake package-config files
(wolfpkcs11Config.cmake, wolfpkcs11ConfigVersion.cmake,
wolfpkcs11Targets.cmake) into $(libdir)/cmake/wolfpkcs11/, but
debian/libwolfpkcs11-dev.install did not capture them. Under
debhelper-compat 13, dh_missing treats these orphaned files as a fatal
error, so dpkg-buildpackage aborts during the binary step with:

  dh_missing: error: missing files, aborting

Ship the cmake configs in the -dev package so dependents can
find_package(wolfpkcs11) and the Debian build no longer fails.
Copilot AI review requested due to automatic review settings June 18, 2026 11:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes Debian packaging for the autotools build by ensuring the installed CMake package configuration files are included in the libwolfpkcs11-dev binary package, preventing dh_missing from failing the binary step under debhelper-compat (= 13).

Changes:

  • Add an install rule to include usr/lib/*/cmake/wolfpkcs11/*.cmake in libwolfpkcs11-dev.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dgarske dgarske merged commit 479a69e into wolfSSL:master Jun 18, 2026
78 checks passed
@LinuxJedi LinuxJedi deleted the debian-ship-cmake-config branch June 19, 2026 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants