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

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 14 Nov 2023 17:51:32 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274978

John Hein <jcfyecrayz@liamekaens.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #246313|                            |maintainer-approval?(bofh@f
              Flags|                            |reebsd.org)

--- Comment #3 from John Hein <jcfyecrayz@liamekaens.com> ---
Created attachment 246313
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=246313&action=edit
[patch] deconflict qemu-devel & dtc

Deconflict qemu-devel with libfdt in sysutils/dtc. Update
 link/compile flags.

 - Don't install conflicting libfdt & fdt.h, and use libfdt from
   systuils/dtc.
 - Let qemu use dtc from sysutils/dtc.
 - Fix broken quoting in --extra-ldflags [1].
 - Remove unnecessary cflags (no longer needed now - they were
   added years ago for a much older version of qemu).
 - Remove unnecessary -L/usr/lib (which forces /lib/libncurses.so
   even if NCURSES_PORT is on).
 - While here sort CONFIGURE_ARGS (a minimal change as suggested by
   portfmt).  The only actual changes to CONFIGURE_ARGS are
   --extra-ldflags and --extra-cflags and --enable-fdt.

[1] The escaped quoting in --extra-ldflags breaks meson which
gets the quote chars as is (so meson cannot find anything
in the path string literally spelled with quote characters).


Some of these updates (cflags/ldflags cleanup) can likely be applied to other
emulators/qemu* ports.

I also updated sysutils/dtc to 1.7.0 locally and had build success (with both
1.6.0 and 1.7.0).

-- 
You are receiving this mail because:
You are on the CC list for the bug.