Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated RPM conflicts with filesystem base RPM #26

Closed
nikkej opened this issue Aug 28, 2020 · 1 comment
Closed

Generated RPM conflicts with filesystem base RPM #26

nikkej opened this issue Aug 28, 2020 · 1 comment

Comments

@nikkej
Copy link

nikkej commented Aug 28, 2020

A RPM generated conflicts with base filesystem RPM giving an error like:

Error: Transaction test error:
  file /lib from install of broadcom-bt-firmware-10.1.0.1115-1.noarch conflicts with file from package filesystem-3.12-2.fc31.x86_64

To propose 'minimum pain' fix and in trying to ensure no other packaging formats are breaked following patch seems to work for me:

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6d00889..354a680 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -7,6 +7,7 @@ project(broadcom-bt-firmware
 )
 
 set(CMAKE_INSTALL_PREFIX /)
+set(CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION "/lib;/lib/firmware")
 install(DIRECTORY brcm DESTINATION lib/firmware FILES_MATCHING PATTERN "*.hcd")
 install(FILES DEVICES.md README.md LICENSE.broadcom_bcm20702 LICENSE.MIT.txt
        DESTINATION usr/share/doc/${CMAKE_PROJECT_NAME}-${CMAKE_PROJECT_VERSION})
@winterheart
Copy link
Owner

Hello, thank you for report.

Closed via 68a7a8a

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

No branches or pull requests

2 participants