+1
−1
Loading
Some versions of the file (e.g. 5.33) confuse the sharedlib files with pie-executable ones when they already have the executable bit set. Since this particular bit is already set on the .so.* when they are built, file may report the type as "application/x-pie-executable" instead. As a result, lib files won't have proper permissions set when installed. This is a bit problematic for building the RPMs since when find-provides kicks in to determine the dependencies, said files are not picked up at all - package ends up with empty "provides:" data breaking the dependency lookup during installation of other packages which may depend on the broken one. To mitigate, don't use mime-type, simply run file against the lib in default mode and look for "shared object" string - this should work for most of the file versions available on the supported distribution. Spotted on Fedora31. Signed-off-by:Michal Berger <michalx.berger@intel.com> Change-Id: If9974f5acbdad6eb1204b64f0ee1ac9b2e20f85b Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6703 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by:
Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by:
Ben Walker <benjamin.walker@intel.com> Reviewed-by:
Karol Latecki <karol.latecki@intel.com>