# cpack/rpm error when generating debuginfo with user specified

**URL:** <https://discourse.cmake.org/t/cpack-rpm-error-when-generating-debuginfo-with-user-specified/6719>\
**Category:** Usage\
**Tags:** os:linux, cpack:rpm\
**Created:** [October 25, 2022, 5:23pm UTC](https://discourse.cmake.org/t/cpack-rpm-error-when-generating-debuginfo-with-user-specified/6719 "2022-10-25T17:23:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmagistro](https://discourse.cmake.org/user_avatar/discourse.cmake.org/bmagistro/32/2856_2.png) [@bmagistro](https://discourse.cmake.org/u/bmagistro)\
**Post date:** [October 25, 2022, 5:23pm UTC](https://discourse.cmake.org/t/cpack-rpm-error-when-generating-debuginfo-with-user-specified/6719/1 "2022-10-25T17:23:13Z")

</div>

I don’t have the full error message readily available but not sure it is necessary.

To recreate this, specify a default user + group for the files and generate debuginfo. The `%files` block for the main rpm will have a `defattr` with the specified user while the debuginfo is hard coded to root. When trying to install both packages this results in a message of `file ... conflicts between attempted installs of <pkg> and <pkg-debuginfo>`.

We are utilizing the user to install and provide an environment for a low privilege user and the associated app. We can do some `%post` foo to chown things but that seems wrong/worse. How are others handling this/should we be approaching this?
