[Bug 274978] emulators/qemu-devel: conflict with sysutils/dtc (libftd, ftd.h)

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 08 Nov 2023 23:54:59 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274978

            Bug ID: 274978
           Summary: emulators/qemu-devel: conflict with sysutils/dtc
                    (libftd, ftd.h)
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: jcfyecrayz@liamekaens.com
                CC: bofh@freebsd.org, uboot@FreeBSD.org
                CC: bofh@freebsd.org, uboot@FreeBSD.org

emulators/qemu-devel fails if sysutils/dtc is installed:

===>   Registering installation for qemu-devel-8.2.0.20231031 as automatic
Installing qemu-devel-8.2.0.20231031...
pkg-static: qemu-devel-8.2.0.20231031 conflicts with dtc-1.6.0 (installs files
into the same place).  Problematic file: /usr/local/include/fdt.h


After the recent update to qemu-devel, it appears to be building against a copy
of dtc extracted in WRKDIR.

Is it important that qemu-devel use THAT particular version of the upstream
repo (https://git.kernel.org/pub/scm/utils/dtc/dtc.git)?  Or could the
qemu-devel build be convinced to use sysutils/dtc?

If it is considered required or desirable to build against an imported version
of libfdt, perhaps qemu-devel should not install that imported version into
PREFIX/{lib,include}.  In that case, maybe don't install libfdt & fdt.h at all
- and statically link to libfdt.  Or install libfdt to a private directory (and
use rpath during linking) - for instance, install libftd.so to PREFIX/qemu/lib.

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