pyinstaller -> fpm -> rpm -> yum results in file conflicts with CentOS 8

122 views
Skip to first unread message

Demetrios Tsillas

unread,
Feb 26, 2021, 2:49:09 AM2/26/21
to PyInstaller
Hi Folks,

love love love pyinstaller. Been using it for five plus years.

Today I was trying to migrate an app from CentOS 7 to CentOS 8 and ran into a little problem.

I produce an rpm from my dist dir but when I tried to use yum to install it I got errors like:

Running transaction test
Error: Transaction test error:
  file /usr/lib/.build-id/a8/eb2df066410c61ce9b8a9aa23bf354edbbbbd7 from install of InstrumentationBrowser-0.4.8-1.x86_64 conflicts with file from package libgcc-8.3.1-5.1.el8.x86_64

So I'm thinking that yum is now aware of libraries which are copied into dist and the resulting rpm won't install unless I add --replacefiles (not something I normally want to do).

Is there a way to have pyinstaller not copy in some set of .so files which would be part of some external package dependency. I would then have to figure out how to make that dependency happen with fpm I suppose.

Your assistance is much appreciated!
-Jim.

bwoodsend

unread,
Feb 28, 2021, 12:56:22 PM2/28/21
to PyInstaller

There is a way to blacklist files although it’s not very streamlined. See this answer. Definitely excluding anything you can mark as a yum/rpm dependency is a good way to avoid these kinds of incompatibilities.

Reply all
Reply to author
Forward
0 new messages