Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-14340

packageconfig file in the wrong location

Details

    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.

      Attachments

        Issue Links

          Activity

            danblack Daniel Black added a comment -

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

            PR attached.

            danblack Daniel Black added a comment - Debian Upstream also considered it arch dependent https://packages.debian.org/search?searchon=contents&keywords=mariadb.pc&mode=path&arch=any PR attached.

            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/
            

            otto Otto Kekäläinen added a comment - 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/

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

            otto Otto Kekäläinen added a comment - Of the 3 PRs this one seems best: https://github.com/MariaDB/server/pull/597

            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.

            otto Otto Kekäläinen added a comment - 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.

            People

              cvicentiu Vicențiu Ciorbaru
              mschorm Michal Schorm
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.