Opened 8 years ago

Closed 8 years ago

#52754 closed defect (fixed)

libsdl2 @2.0.5: missing x11 library dependencies cause opportunistic linking and varying amounts of functionality for +x11 variant.

Reported by: dbevans (David B. Evans) Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch Cc:
Port: liibsdl2

Description (last modified by dbevans (David B. Evans))

When building with the +x11 variant, libsdl2 has a list of X11 libraries that it will look for at configure time and enable or disable functionality depending on the results. This results in opportunistic linking with libraries that were not listed as dependencies in the port, and variable functionality based on what is, or is not present.

From a review of configure.in here is the list of ports that should be added in addition to the current ones as dependencies for the +x11 variant:

  • xorg-libX11 (previously implied, now explicit)
  • xorg-libXcursor
  • xorg-libXi
  • xorg-libXinerama
  • xorg-libXScrnSaver
  • xorg-libXxf86vm

Patch attached with rev bump to ensure all have the same set of functionality.

Attachments (1)

libsdl2-x11deps.patch (796 bytes) - added by dbevans (David B. Evans) 8 years ago.
Proposed patch to add missing dependencies, rev bump

Download all attachments as: .zip

Change History (3)

Changed 8 years ago by dbevans (David B. Evans)

Attachment: libsdl2-x11deps.patch added

Proposed patch to add missing dependencies, rev bump

comment:1 Changed 8 years ago by dbevans (David B. Evans)

Description: modified (diff)

comment:2 Changed 8 years ago by dbevans (David B. Evans)

Resolution: fixed
Status: newclosed

In 7dbb4e01/macports-ports:

libsdl2 +x11: add missing X11 dependencies to avoid opportunistic linking

Closes #52754

Note: See TracTickets for help on using tickets.