GLibSharp / GtkSharp

.Net bindings for gtk+3 and above
Other
27 stars 21 forks source link

Libraries get installed to /usr/lib64 #72

Open belegdol opened 2 years ago

belegdol commented 2 years ago

I tried updating the ancient Fedora gtk-sharp 2.99.3 package to this fork. Unfortunately, meson -Dinstall=true results in the files getting installed to /usr/lib64 on an x86_64 machine. According to the Fedora packaging guidelines, mono packages are architecture-independent and should, as such, be installed to /usr/lib: https://docs.fedoraproject.org/en-US/packaging-guidelines/Mono/#_file_locations_and_architectures The ancient gtk-sharp-2.99.3 package installs the files to /usr/lib correctly.

eli-schwartz commented 2 years ago

Can't you just override --libdir=/usr/lib then?

belegdol commented 2 years ago

Can't you just override --libdir=/usr/lib then?

I tried, but it resulted in the pkgconfig files landing in /usr/lib as well.

thiblahute commented 2 years ago

Can't you just override --libdir=/usr/lib then?

I tried, but it resulted in the pkgconfig files landing in /usr/lib as well.

That sounds weird, do you understand why?

belegdol commented 2 years ago

It is not really weird, overriding libdir does what is is supposed to: https://github.com/GLibSharp/GtkSharp/blob/6f02bdbc7b7e8922394ca315dd0ddc6a2beea277/Source/meson.build#L78 PR #73 changes the meson build files so that the assemblies end up in /usr/lib regardless of libdir.

eli-schwartz commented 2 years ago

If the pkgconfig file refers to files in /usr/lib shouldn't it rightfully go in /usr/lib as well?

belegdol commented 2 years ago

Good question... in any case, on my system (Fedora 36 x86_64), /usr/lib/pkgconfig does not even exist, indicating that the pkg-config files should go to libdir regardless of where the files they refer to go.