Opened 4 years ago

Closed 4 years ago

#59648 closed defect (fixed)

rxvt-unicode install fails

Reported by: jghub Owned by: exg (Emanuele Giaquinta)
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc: mojca (Mojca Miklavec)
Port: rxvt-unicode

Description

install fails due to inability to locate <sys/types.h>. although the file is in place at "/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/sys/types.h". this happens even after having downgraded the command line tools from Xcode 11 to Xcode 10.

main.log attached.

Attachments (1)

main.log (84.7 KB) - added by jghub 4 years ago.
logfile of failed install

Download all attachments as: .zip

Change History (8)

Changed 4 years ago by jghub

Attachment: main.log added

logfile of failed install

comment:1 Changed 4 years ago by mf2k (Frank Schima)

In the future, please add the port maintainer(s) to Cc (port info --maintainers rxvt-unicode), if any.

comment:2 Changed 4 years ago by mf2k (Frank Schima)

Owner: set to exg
Status: newassigned

comment:3 Changed 4 years ago by exg (Emanuele Giaquinta)

The problem is that the macports perl includes "-isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk" in the compiler flags to embed a perl interpreter (perl -MExtUtils::Embed -e ccopts), which means that a full xcode installation is needed to build a macports application that embeds a perl interpreter using the flags that perl provides. Maybe the perl port can be fixed to not include this flag; if not, I'll need to modify the rxvt-unicode port to require a full xcode installation using the use_xcode option.

comment:4 Changed 4 years ago by mojca (Mojca Miklavec)

Cc: mojca added

comment:5 Changed 4 years ago by mojca (Mojca Miklavec)

The flags are apparently stored in

> perldoc -lm Config
/opt/local/lib/perl5/5.28/darwin-thread-multi-2level/Config.pm

comment:6 Changed 4 years ago by exg (Emanuele Giaquinta)

Nevermind, I opened a PR with a workaround that should fix the build failure: https://github.com/macports/macports-ports/pull/5753

comment:7 Changed 4 years ago by exg (Emanuele Giaquinta)

Resolution: fixed
Status: assignedclosed

In 470ac3bf431352f030c8500125787910c5e8ec4a/macports-ports (master):

rxvt-unicode: fix build failure

urxvt fails to build If the sdk used to build perl is missing, because
the compiler arguments provided by the ExtUtils::Embed perl module
include the corresponding -isysroot option and are placed after
CXXFLAGS.

Closes: #59648

Note: See TracTickets for help on using tickets.