[MDEV-14340] packageconfig file in the wrong location Created: 2017-11-09  Updated: 2020-08-22  Resolved: 2020-03-09

Status: Closed
Project: MariaDB Server
Component/s: Packaging, Platform RedHat
Affects Version/s: 10.4.3, 10.2.22, 10.3.13
Fix Version/s: 10.1.45, 10.2.32, 10.3.23, 10.4.13, 10.5.2

Type: Bug Priority: Major
Reporter: Michal Schorm Assignee: Vicențiu Ciorbaru
Resolution: Fixed Votes: 0
Labels: contribution, foundation, patch
Environment:

Fedora - all
Redhat - all


Issue Links:
Relates
relates to MDEV-23538 Rename mariadb.pc to mariadbd.pc to a... Open

 Description   

On Fedora & RH OS, the packageconfig file (mariadb.pc) should be:

  • in sharedir if arch independend
  • in libdir if arch dependend

Since the pkgconfig file contains lines like:

libdir=${prefix}/lib
libdir=${prefix}/lib64

It is clearly arch dependend, thus should be moved to correct location.



 Comments   
Comment by Daniel Black [ 2018-02-10 ]

Debian Upstream also considered it arch dependent
https://packages.debian.org/search?searchon=contents&keywords=mariadb.pc&mode=path&arch=any

PR attached.

Comment by Otto Kekäläinen [ 2020-02-26 ]

Same multi arch requirements apply also for Debian, though the paths are a tad different. Debian official packages have now this:

mariadb-10.4/debian$ cat libmariadb-dev.install
#!/usr/bin/dh-exec
usr/bin/mariadb_config
usr/include/mariadb
usr/lib/*/libmariadb.so
usr/lib/*/libmariadbclient.a
usr/lib/*/libmariadbclient.so
usr/lib/*/libmysqlservices.a
usr/share/aclocal/mysql.m4
usr/share/man/man1/mysql_config.1
usr/lib/pkgconfig/libmariadb.pc usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig/
usr/share/pkgconfig/mariadb.pc usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig/

Comment by Otto Kekäläinen [ 2020-02-26 ]

Of the 3 PRs this one seems best: https://github.com/MariaDB/server/pull/597

Comment by Otto Kekäläinen [ 2020-03-03 ]

In https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=920365 there is attached a script that could potentially generate mariadb.pc in a way that would be not arch-dependent.

Generated at Thu Feb 08 08:12:48 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.