Opened 8 years ago

Closed 7 years ago

Last modified 7 years ago

#52464 closed enhancement (fixed)

man @1.6g_0: add Xcode man pages to search path

Reported by: raimue (Rainer Müller) Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: haspatch Cc: kurthindenburg (Kurt Hindenburg)
Port: man

Description

man @1.6g_0 cannot find man pages provided by Xcode, while /usr/bin/man will:

$ man -w clang
No manual entry for clang
$ /usr/bin/man -w clang
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/share/man/man1/clang.1

Apple patched /usr/bin/man to add the Xcode location to the search paths by obtaining these paths from libxcselect. Unfortunately, the macOS SDK does not include the referenced xcselect.h header file. This modified patch recreates the necessary declarations from the context of this patch.

This patch can be applied for all versions of the Mac operation system with libxcselect. As far as I know, this should be the case for >= 10.9. I added this as a variant in order to allow users to disable this feature and retain the previous behavior.

Attachments (2)

man-xcode.diff (797 bytes) - added by raimue (Rainer Müller) 8 years ago.
PR11291804-xcode.diff (1.6 KB) - added by raimue (Rainer Müller) 8 years ago.

Download all attachments as: .zip

Change History (7)

Changed 8 years ago by raimue (Rainer Müller)

Attachment: man-xcode.diff added

Changed 8 years ago by raimue (Rainer Müller)

Attachment: PR11291804-xcode.diff added

comment:1 Changed 7 years ago by kurthindenburg (Kurt Hindenburg)

Cc: kurthindenburg added

comment:2 Changed 7 years ago by kurthindenburg (Kurt Hindenburg)

I would say go ahead and commit this - it worked when I tried it last - mww hasn't been active recently

comment:3 Changed 7 years ago by raimue (Rainer Müller)

Port abandonment initiated: #52863

comment:4 Changed 7 years ago by raimue (Rainer Müller)

Resolution: fixed
Status: newclosed

In d320be82/macports-ports:

man: add Xcode man pages to search path

Closes: #52464 (maintainer timeout)

comment:5 Changed 7 years ago by raimue (Rainer Müller)

In e72ae70f/macports-ports:

man: add missing patchfile after d320be8

See: #52464

Note: See TracTickets for help on using tickets.