[Bug 259320] misc/shared-mime-info: some builds with USES=shared-mime-info are broken

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 20 Oct 2021 15:58:57 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259320

            Bug ID: 259320
           Summary: misc/shared-mime-info: some builds with
                    USES=shared-mime-info are broken
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: desktop@FreeBSD.org
          Reporter: felix@palmen-it.de
          Assignee: desktop@FreeBSD.org
             Flags: maintainer-feedback?(desktop@FreeBSD.org)

It seems commit ddacf99b4fc010511a09e1af376d0fca7399e208 broke a few builds of
ports depending on shared-mime-info.

Examples:

graphics/gdk-pixbuf2:
---
Run-time dependency shared-mime-info found: NO (tried pkgconfig)

meson.build:198:2: ERROR: Dependency "shared-mime-info" not found, tried
pkgconfig
---

security/kpkpass:
---
CMake Error at
/usr/local/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230
(message):
  Could NOT find SharedMimeInfo (missing: UPDATE_MIME_DATABASE_EXECUTABLE)
  (Required is at least version "1.3")
Call Stack (most recent call first):
  /usr/local/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:594
(_FPHSA_FAILURE_MESSAGE)
  /usr/local/share/ECM/find-modules/FindSharedMimeInfo.cmake:52
(find_package_handle_standard_args)
  CMakeLists.txt:34 (find_package)
---

(Both errors in configure phase)

I also commented on https://reviews.freebsd.org/D32452

I see it makes little sense to require shared-mime-info as a build-time
dependency, but some build systems seem to check for it nevertheless. Maybe
adding it as a build-time dependency should be optional?

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