[Bug 267042] devel/qt6-translations: not being properly registered as a dependency

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 14 Oct 2022 10:23:45 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267042

            Bug ID: 267042
           Summary: devel/qt6-translations: not being properly registered
                    as a dependency
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: kde@FreeBSD.org
          Reporter: madpilot@FreeBSD.org
          Assignee: kde@FreeBSD.org
             Flags: maintainer-feedback?(kde@FreeBSD.org)

Created attachment 237291
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=237291&action=edit
patch v1

Hi,

First of all thanks for the hard work done on porting qt6!

Unluckily I've noticed a small glitch. A port having devel/qt6-translations
will not get it properly registered as a dependency in the package, causing
poudriere to constantly rebuilding the port due to a new dependency.

This shows up with this message in the poudriere log:

===>  Building package for py39-qt6-pyqt-6.4.0
actual-package-depends: dependency on /usr/local/share/qt6/translations not
registered (normal if it belongs to base)
pkg-static: DEBUG: -/


(note, the log mentions the py-qt6 port I'm working on, but patches are still
not ready for publication though)


I have discovered this happens due to the dependency for devel/qt6-translations
referencing a directory and not an actual file, something pkg does not act well
on.

So I'm attaching a patch changing Mk/Uses/qt.mk to reference a random file from
the ones installed by the port. This fixes this issue.

-- 
You are receiving this mail because:
You are the assignee for the bug.