[debhelper-devel] Bug#868584: [Pkg-cmake-team] Bug#868584: debhelper: please disable user package registry for CMake builds

Felix Geyer fgeyer at debian.org
Tue Jul 25 17:54:25 UTC 2017


Hi,

On 16.07.2017 23:52, Christian Seiler wrote:
> Package: debhelper
> Version: 10.2.5
> Severity: important
> Control: affects -1 cmake
> X-Debbugs-Cc: pkg-cmake-team at lists.alioth.debian.org
> 
> Dear debhelper Maintainers,
> (Cc'ing CMake packaging list as this affects them)
> 
> I just stubmled upon a feature added to CMake 3.x that allows packages
> to register in a "package registry" via the export() CMake command.
> This causes CMake to write into the home dirctory of a user. I believe
> this is not desireable when building Debian packages - the registry in
> the home directory should be ignored. When looking for packages only
> the system registry should be queried (but that does need to happen,
> otherwise builds may break), and the export() command should be
> disabled completely.
> 
> Documentation for this:
> 
> https://cmake.org/cmake/help/v3.9/manual/cmake-packages.7.html#package-registry
> https://cmake.org/cmake/help/v3.0/command/export.html
> https://cmake.org/cmake/help/v3.9/manual/cmake-packages.7.html#disabling-the-package-registry
> https://cmake.org/Bug/view.php?id=14849
> 
> It should be sufficient to pass
> 
>   -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON
>   -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON

debhelper should indeed pass those flags to cmake.
Thanks for bringing this up.

I don't expect any breakage since packages would have to set HOME to something writable in order
to use the user registry in some form.

Felix




More information about the debhelper-devel mailing list