Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-28818

yggdrasil requires a build dependency /usr/bin/pkg-config

XMLWordPrintable

    • 1
    • False
    • Hide

      None

      Show
      None
    • False
    • yggdrasil-0.2.3-3
    • 0
    • Endeavour
    • None

      Description of problem:

      yggdrasil requires a build dependency /usr/bin/pkg-config. That forces customers to enable the AppStream repository to get pkg-config from there. The pkg-config package should be a build dependency as the end user is not supposed to consume the installed file`%{_prefix}/share/pkgconfig/%{name}.pc`, otherwise they want to operate with building yggdrasil.

      Hints:
      The script that injects that `Requires` in the package can be found in the rpm master branch: https://github.com/rpm-software-management/rpm/blob/master/scripts/pkgconfigdeps.sh

      Here are macros that use that script: https://github.com/rpm-software-management/rpm/blob/c2cc3c3763395fa28af9f4382674fe35324a3c4a/fileattrs/pkgconfig.attr#L2
      How reproducible:

      always

      Is this issue a regression from an earlier version:

      not a regression

      Steps to Reproduce:

      1. Check that yggdrasil requires pkg-config: rpm -qR yggdrasil

      Actual behavior:
      pkgconfigdeps.sh injects `/usr/bin/pkg-config` in yggdrrasil RPM package metadata

      Expected behavior:
      `/usr/bin/pkg-config` not present in yggdrrasil RPM package metadata

      Business Impact / Additional info:

      I see two ways to fix it.

      1. rm -f %{_prefix}/share/pkgconfig/%{name}.pc from build root
      2. or configuring make/configure to not create the .pc file at all

              aruzicka@redhat.com Adam Ruzicka
              rhn-support-ogajduse Ondrej Gajdusek
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: