Description of problem: rpm-build generates odd 'provides' listing. Some libraries have relative or absolute paths in the output of find /var/tmp/rpm-buildroot -type f | xargs /usr/lib/rpm/rpmdeps --provides. This causes all of the libraries provided by the package to not satisfy the requirements found by rpmdeps --requires. The rpm thus does not install on the system on which it was just built. With rpm-build-4.1-1.06 there were no paths and the rpm would install. Version-Release number of selected component (if applicable): rpm -q rpm-build: rpm-build-4.2-0.25.1 Repeatability: I can get rpmbuild to do it with an RPM I build of our local Matlab installation. I'm having trouble getting other packages to do it. Steps to Reproduce: 1. rpmbuild -bi mza-matlab.spec 2. find /var/tmp/mza-matlab-6.5-buildroot -type f | xargs /usr/lib/rpm/rpmdeps --provides | sort --unique Actual results: Expected results: Additional info:
I need more details to even begin to guess what's happening. Can you attach the output of rpmdeps --rpmfcdebug, and point out the specific file/dependency that is not being generated?
Created attachment 89220 [details] provides result result of 'find /var/tmp/mza-matlab-6.5-buildroot -type f | xargs '/usr/lib/rpm/rpmdeps --provides | sort --unique > mza-matlab.provides
Created attachment 89221 [details] requires result result of 'find /var/tmp/mza-matlab-6.5-buildroot -type f | xargs /usr/lib/rpm/rpmdeps --requires | sort --unique > mza-matlab.requires'
Notice that the provides script says that the rpm provides e.g. '../../bin/glnx86/libmex.so(libmex.INTERNAL)' while the requires script wants 'libmex.so' and 'libmex.so(libmex.INTERNAL)'. All of the lines in the provides result that have paths in them generate complaints when I try and install the rpm. I'm in the process of getting the output of 'rpmdeps --rpmfcdebug'
the output of 'find /var/tmp/mza-matlab-6.5-buildroot -type f | xargs /usr/lib/rpm/rpmdeps --rpmfcdebug > mza-matlab.rpmfcdebug 2>&1' is about 3 1/2 Meg. Do you still want it as an attachment?
Ick. I can see lots of packaging problems here. Add to spec file (or to build system configuration) %_use_internal_dependency_generator 0 %__find_requires /usr/lib/rpm/find-requires %__find_provides /usr/lib/rpm/find-provides and you'll be autogenerating dependencies the Good Old Way. You will lose per-file dependencies, and file classes/colors, but I very much doubt that you care.
The --rmfcdebug indicates which files generated which dependencies. The next step is to examine readelf -a output, looking for anomalies.
Note if adding to spec file you want %define __find_requires /usr/lib/rpm/find-requires etc.