Description of problem: Firebird build don't find tomcrypt.h. In fact /usr/lib64/pkgconfig/libtomcrypt.pc is wrong: prefix=/usr/local exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include Name: LibTomCrypt Description: public domain open source cryptographic toolkit Version: 1.18.2 Libs: -L${libdir} -ltomcrypt Cflags: -I${includedir} it should be : prefix=/usr/local exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include//tomcrypt Name: LibTomCrypt Description: public domain open source cryptographic toolkit Version: 1.18.2 Libs: -L${libdir} -ltomcrypt Cflags: -I${includedir}
Another solution should be to do like Fedora and put headers under /usr/include/ not /usr/include/tomcrypt
may be add in the spec after %make_install: # Fix pkgconfig path sed -i \ -e 's|^prefix=.*|prefix=%{_prefix}|g' \ -e 's|^libdir=.*|libdir=${prefix}/%{_lib}|g' \ -e 's|^includedir=.*|includedir=%{_prefix}/include/tomcrypt|g' \ %{buildroot}%{_libdir}/pkgconfig/%{name}.pc or do : %make_install INSTALL_OPTS="-m 0755" INCPATH=%{_includedir} LIBPATH=%{_libdir} -f makefile.shared # Fix pkgconfig path sed -i \ -e 's|^prefix=.*|prefix=%{_prefix}|g' \ -e 's|^libdir=.*|libdir=${prefix}/%{_lib}|g' \ %{buildroot}%{_libdir}/pkgconfig/%{name}.pc find %{buildroot} -name "*.la" -delete find %{buildroot} -name '*.a' -delete %files -n %{libname} %doc LICENSE %{_libdir}/lib*.so.%{major}{,.*} %files -n %{libname_devel} %doc doc/crypt.pdf %{_includedir}/*.h %{_libdir}/lib*.so %{_libdir}/pkgconfig/*.pc
Thanks for the report & all the information. I am unsure whether that relates to 'libtomcrypt' or 'firebird'. You look after the latter, so I assume the former. That is officially with danf (still around, so CC'ing him); but is committed by different people, so assigning the bug globally.
CC: (none) => danSummary: Wrong information in pc file => Wrong information in libtomcrypt.pc fileSource RPM: libtomcrypt-1.18.2-4.mga8.src.rpm => libtomcrypt-1.18.2-4.mga8.src.rpm,firebird-3.0.7.33374-1.mga8.src.rpmAssignee: bugsquad => pkg-bugs
Fixed in libtomcrypt-1.18.2-5.mga9. Moved headers to /usr/include and fixed paths in pkgconf .pc file.
Resolution: (none) => FIXEDCC: (none) => jani.valimaaStatus: NEW => RESOLVED