[MacPorts] #56991: wine cannot be built against the 10.14 SDK
MacPorts
noreply at macports.org
Sat Sep 21 22:15:19 UTC 2019
#56991: wine cannot be built against the 10.14 SDK
---------------------------------------------+------------------------
Reporter: IComplainInComments | Owner: ryandesign
Type: defect | Status: assigned
Priority: Low | Milestone:
Component: ports | Version: 2.5.3
Resolution: | Keywords: mojave
Port: wine wine-devel wine-crossover |
---------------------------------------------+------------------------
Comment (by kencu):
yes, you're correct the 10.13 SDK should indeed go in
`/Library/Developer/CommandLineTools/SDKs/`
Try this -- it seems quite promising to fix almost everything, without a
portfile overlay. I haven't tested every port yet.
{{{
$ diff -u /opt/local/libexec/macports/lib/port1.0/portconfigure.tcl
/opt/universal/libexec/macports/lib/port1.0/portconfigure.tcl
--- /opt/local/libexec/macports/lib/port1.0/portconfigure.tcl 2019-05-09
18:02:41.000000000 -0700
+++ /opt/universal/libexec/macports/lib/port1.0/portconfigure.tcl
2019-09-21 14:31:58.000000000 -0700
@@ -893,6 +893,8 @@
append_to_environment_value configure $env_var
-isysroot${configure.sdkroot}
}
append_to_environment_value configure "LDFLAGS"
-Wl,-syslibroot,${configure.sdkroot}
+ append_to_environment_value configure "SDKROOT"
${configure.sdkroot}
+ append_to_environment_value configure "LDFLAGS" -Wl,-w
}
# add extra flags that are conditional on whether we're building
universal
$ diff -u /opt/local/libexec/macports/lib/port1.0/portbuild.tcl
/opt/universal/libexec/macports/lib/port1.0/portbuild.tcl
--- /opt/local/libexec/macports/lib/port1.0/portbuild.tcl 2018-10-11
15:01:13.000000000 -0700
+++ /opt/universal/libexec/macports/lib/port1.0/portbuild.tcl 2019-09-21
15:11:15.000000000 -0700
@@ -196,6 +196,11 @@
global build.cmd
set jobs_suffix [build_getjobsarg]
+ global configure.sdkroot
+ if {${configure.sdkroot} ne ""} {
+ ui_notice "setting build SDKROOT to ${configure.sdkroot}"
+ build.env-append SDKROOT="${configure.sdkroot}"
+ }
set realcmd ${build.cmd}
set build.cmd "${build.cmd}$jobs_suffix"
set realcmd ${build.cmd}
set build.cmd "${build.cmd}$jobs_suffix"
$ diff -u /opt/local/libexec/macports/lib/port1.0/portdestroot.tcl
/opt/universal/libexec/macports/lib/port1.0/portdestroot.tcl
--- /opt/local/libexec/macports/lib/port1.0/portdestroot.tcl 2018-10-11
15:01:13.000000000 -0700
+++ /opt/universal/libexec/macports/lib/port1.0/portdestroot.tcl
2019-09-21 15:11:09.000000000 -0700
@@ -121,6 +121,12 @@
}
proc portdestroot::destroot_main {args} {
+ global configure.sdkroot
+ if {${configure.sdkroot} ne ""} {
+ ui_notice "setting destroot SDKROOT to ${configure.sdkroot}"
+ destroot.env-append SDKROOT="${configure.sdkroot}"
+ }
+
command_exec destroot
return 0
}
}}}
--
Ticket URL: <https://trac.macports.org/ticket/56991#comment:39>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list