CPack - Transaction error

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

CPack - Transaction error

Kristian
Hi,

I want to generate a RPM package. My CMakeLists.txt looks loke this:

##########################

cmake_minimum_required(VERSION 3.5)

set(INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/ssp/)

install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/ssp-suite/" DESTINATION
${INSTALL_DIR})
install(PROGRAMS "${CMAKE_CURRENT_SOURCE_DIR}/ssp_script" DESTINATION bin)

set(CPACK_RPM_PACKAGE_REQUIRES "java-1.8.0-openjdk >= 1.8.0")

# ...

INCLUDE(CPack)

############################

The idea is to install needed files for the software under /opt/ssp.
Now I generate a package with command

> cmake -DCMAKE_INSTALL_PREFIX=/opt -V --debug .

When I want to install that in a docker container, I get the error message

********

Transaction check error:
  file /opt from install of ssp-suite-7.1-1.x86_64 conflicts with file
from package filesystem-3.2-21.el7.x86_64

Error Summary

********

What is the problem?
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: CPack - Transaction error

Domen Vrankar
Transaction check error:
  file /opt from install of ssp-suite-7.1-1.x86_64 conflicts with file
from package filesystem-3.2-21.el7.x86_64

Error Summary

Directory /opt is already owned by filesystem package but is not listed in CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST variable.
Add /opt (and possibly other directories owned by other packages) to
CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION [1] which is appended to paths listed in
CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST.


Regards,
Domen

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: CPack - Transaction error

Kristian
Thank you, that helped!

2017-05-09 15:24 GMT+02:00 Domen Vrankar <[hidden email]>:

>> Transaction check error:
>>   file /opt from install of ssp-suite-7.1-1.x86_64 conflicts with file
>> from package filesystem-3.2-21.el7.x86_64
>>
>> Error Summary
>
>
> Directory /opt is already owned by filesystem package but is not listed in
> CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST variable.
> Add /opt (and possibly other directories owned by other packages) to
> CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION [1] which is appended to paths
> listed in
> CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST.
>
>
> [1]
> https://cmake.org/cmake/help/v3.5/module/CPackRPM.html?highlight=cpack_rpm_exclude_from_auto_filelist#variable:CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION
>
> Regards,
> Domen
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake