Re: [CMake] Cmake/Cpack creates a corrupt .rpm

2019-05-30 Thread Gonzalo Garramuño
El 30/5/19 a las 21:36, Zan Lynx escribió: RPM files are not cpio. They contain a cpio. Use rpm2cpio as a filter. Thanks for that.  Using: rpm2cpio mrViewer-v5.0.7-Linux-64.rpm | cpio -idmv I can extract all the contents of the archive with no errors. However, rpm -i bails out with a cpio:

Re: [CMake] Cmake/Cpack creates a corrupt .rpm

2019-05-30 Thread Zan Lynx
On May 30, 2019 5:21:59 PM MST, "Gonzalo Garramuño" wrote: > >El 30/5/19 a las 12:51, Gonzalo Garramuño escribió: >> rpm -ql mrViewer-v5.0.6-Linux-64.rpm > >If I run cpio -i < mrViewer-v5.0.6-Linux-64.rpm > >I get a bunch of warnings of Incorrect numbers (and garbage) and Cannot > >make mknod: the

Re: [CMake] Cmake/Cpack creates a corrupt .rpm

2019-05-30 Thread Gonzalo Garramuño
El 30/5/19 a las 12:51, Gonzalo Garramuño escribió: rpm -ql mrViewer-v5.0.6-Linux-64.rpm If I run cpio -i < mrViewer-v5.0.6-Linux-64.rpm I get a bunch of warnings of Incorrect numbers (and garbage) and Cannot make mknod: the multibyte or extended character is incomplete or invalid, and att

Re: [CMake] cmake rewrites part of -S argument depending on the current directory!

2019-05-30 Thread Brad King via CMake
On 5/30/19 1:25 PM, Marc Herbert wrote: > I suspect the behaviour I described is also considered a bug Yes, it is a bug and is related to 16228. The problem is that there is a poor implementation of support for the use case described in that issue, and the details of that implementation leak out

Re: [CMake] cmake rewrites part of -S argument depending on the current directory!

2019-05-30 Thread Marc Herbert
Thanks Brad for the reference, really appreciated. Some of 16228 seems relevant. Other parts unfortunately not because 16228: - tries to deal with all the crazy ways users can use symbolic links, including relative paths and relative links, - tries to deal with all the ways users can invoke cmake,

Re: [CMake] Cmake/Cpack creates a corrupt .rpm

2019-05-30 Thread Gonzalo Garramuño
El 30/5/19 a las 12:51, Gonzalo Garramuño escribió: I have a CMakeLists.txt (extract) with the following commands: SET(CPACK_GENERATOR DEB RPM TGZ ) # SET the installation directory. SET(CPACK_SET_DESTDIR true) # Needed SET(CPACK_INSTALL_PREFIX /usr/local/${mrViewerShortName}) SET(CPACK_RP

[CMake] Cmake/Cpack creates a corrupt .rpm

2019-05-30 Thread Gonzalo Garramuño
I have a CMakeLists.txt (extract) with the following commands: SET(CPACK_GENERATOR DEB RPM TGZ ) # SET the installation directory. SET(CPACK_SET_DESTDIR true) # Needed SET(CPACK_INSTALL_PREFIX /usr/local/${mrViewerShortName}) SET(CPACK_RPM_PACKAGE_NAME mrViewer) SET(CPACK_RPM_PACKAGE_RELOCATA

[CMake] CMake install doesn't find binary that CMake built?

2019-05-30 Thread Benjamin Shadwick
Using CMake 3.12.2. Consider the following project: project(myproject) set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}"

Re: [CMake] cmake rewrites part of -S argument depending on the current directory!

2019-05-30 Thread Brad King via CMake
On 5/30/19 3:22 AM, Marc Herbert wrote: > IF the current directory is a parent of the -S argument AND > one component of the current directory is a symbolic link THEN > the leading part of the -S argument is overridden using that > symbolic link. See this issue: https://gitlab.kitware.com/cmake

[CMake] cmake rewrites part of -S argument depending on the current directory!

2019-05-30 Thread Marc Herbert
Hi, I discovered a very unexpected -S behaviour and I'd like to know whether it's a bug or a feature. IF the current directory is a parent of the -S argument AND one component of the current directory is a symbolic link THEN the leading part of the -S argument is overridden using that symbolic li