News:

--

Main Menu

RPMs built with CPack broken

Started by ajschult, January 26, 2019, 03:24:53 AM

Previous topic - Next topic

ajschult

Now that avidemux installs xdg metadata (https://github.com/mean00/avidemux2/pull/175) the building of RPMs (./bootStrap.bash --rpm) is broken.  The resulting avidemux3-qt5 RPM thinks that it owns the directories:

/usr/share/applications
/usr/share/icons
/usr/share/metainfo
/usr/share/icons/hicolor/128x128
/usr/share/icons/hicolor/128x128/apps
/usr/share/icons/hicolor
/usr/share/icons/hicolor
/usr/share/icons/hicolor/128x128
/usr/share/icons/hicolor/128x128/apps

But these are already owned by other packages on my system (Fedora 29).  Actually, that by itself does not seem to be a fatal problem (2 different packages own /usr/share/icons/hicolor), but the avidemux RPM wants the permissions to be different (drwxrwxr-x) from what the fedora packages have (drwxr-xr-x) and the difference in permissions apparently prevents the avidemux RPM from being installed (at least without --force).

I attempted to fix this via  CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION (https://cmake.org/cmake/help/v3.6/module/CPackRPM.html), but without success.

eumagga0x2a

The first thing I do on Fedora is to fix the default umask and set it to 0022. With this task done, CPack generated Avidemux RPMs install and run fine.

ajschult

Perhaps.  But that doesn't mean the CPack RPM build isn't broken.

eumagga0x2a

You're right, should be fixed now. Thank you for raising the issue.