#4 Fix private lib provides
Closed 2 months ago by suve. Opened 3 months ago by vascom.
Unknown source master  into  master

file modified
+2

@@ -1,3 +1,5 @@

+ %global __provides_exclude_from %{_libdir}/lazarus/lcl/interfaces/qt5/cbindings/.*\\.so.*

+ 

  Name:           lazarus

  Version:        2.0.4

  Release:        3%{?dist}

Added macro to fix private lib provides #1763119

The change is solid, but uses some RPM magic that isn't very obvious in what it does.

Since Lazarus and qt5pas are built from the same source, I wonder if it wouldn't be better to make Lazarus depend on qt5pas, and then change the %{_libdir}/lazarus/lcl/interfaces/qt5/cbindings/.*.so.* files to symlinks pointing at files provided by qt5pas.

lazarus already depend on qt5pas.

You can fix it as you wish :)

I see build for rawhide succesful.

Now time for f31?

Could you please test if the rawhide build fixes the issue?

Fixed.

Was:

$ rpm -qp --provides lazarus-2.0.4-3.fc31.x86_64.rpm
application()
application(lazarus.desktop)
config(lazarus) = 2.0.4-3.fc31
lazarus = 2.0.4-3.fc31
lazarus(x86-64) = 2.0.4-3.fc31
libQt5Pas.so.1()(64bit)

Now:

$ rpm -qp --provides /var/lib/mock/fedora-31-x86_64/result/lazarus-2.0.4-4.fc31.x86_64.rpm 
application()
application(lazarus.desktop)
config(lazarus) = 2.0.4-4.fc31
lazarus = 2.0.4-4.fc31
lazarus(x86-64) = 2.0.4-4.fc31

Pull-Request has been closed by suve

2 months ago