Author Topic: RPMs built with CPack broken  (Read 303 times)

ajschult

  • Jr. Member
  • **
  • Posts: 98
RPMs built with CPack broken
« on: January 26, 2019, 03:24:53 AM »
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

  • Moderator
  • Hero Member
  • *****
  • Posts: 2723
Re: RPMs built with CPack broken
« Reply #1 on: January 26, 2019, 10:18:50 AM »
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

  • Jr. Member
  • **
  • Posts: 98
Re: RPMs built with CPack broken
« Reply #2 on: January 30, 2019, 12:20:35 AM »
Perhaps.  But that doesn't mean the CPack RPM build isn't broken.

eumagga0x2a

  • Moderator
  • Hero Member
  • *****
  • Posts: 2723
Re: RPMs built with CPack broken
« Reply #3 on: January 30, 2019, 07:09:15 PM »
You're right, should be fixed now. Thank you for raising the issue.