git.iko.soy/typeable/nixpkgs
on master help sign in
xorg.xorgserver: add cf-private on darwin

Undefined symbols for architecture x86_64: "_NSDefaultRunLoopMode", referenced from: _X11ApplicationMain in libXquartz.a(X11Application.o) "_OBJC_CLASS_$_NSArray", referenced from: objc-class-ref in libXquartz.a(X11Application.o) objc-class-ref in libXquartz.a(X11Controller.o) objc-class-ref in libxpbproxy.a(x-selection.o) "_OBJC_CLASS_$_NSData", referenced from: objc-class-ref in libxpbproxy.a(x-selection.o) "_OBJC_CLASS_$_NSDictionary", referenced from: objc-class-ref in libxpbproxy.a(x-selection.o) "_OBJC_CLASS_$_NSMutableArray", referenced from: objc-class-ref in libXquartz.a(X11Application.o) objc-class-ref in libXquartz.a(X11Controller.o) "_OBJC_CLASS_$_NSMutableDictionary", referenced from: objc-class-ref in libXquartz.a(X11Application.o) "_OBJC_CLASS_$_NSRunLoop", referenced from: objc-class-ref in libXquartz.a(X11Application.o) "_OBJC_CLASS_$_NSURL", referenced from: objc-class-ref in libXquartz.a(X11Application.o) "_OBJC_EHTYPE_$_NSException", referenced from: GCC_except_table29 in libxpbproxy.a(x-selection.o) ld: symbol(s) not found for architecture x86_64

commitecf7c9c4b4e7f5b3737cb4a92570333fde7684c0 authorDaiderd Jordan <daiderd@gmail.com> dateTue 6 Nov 2018, 19:00 (8 years ago) parent2b76ad8
2 files changed+16−10
pkgs/servers/x11/xorg/overrides.nix+13−9 pkgs/top-level/all-packages.nix+3−1
pkgs/servers/x11/xorg/overrides.nix+13−9
@@ -2,10 +2,12 @@
22 stdenv, makeWrapper, lib, fetchurl, fetchpatch,
33
44 automake, autoconf, libtool, intltool, mtdev, libevdev, libinput,
5− python, freetype, apple_sdk, tradcpp, fontconfig,
5+ python, freetype, tradcpp, fontconfig,
66 libGL, spice-protocol, zlib, libGLU, dbus, libunwind, libdrm,
77 mesa_noglu, udev, bootstrap_cmds, bison, flex, clangStdenv, autoreconfHook,
8− mcpp, epoxy, openssl, pkgconfig, llvm_6 }:
8+ mcpp, epoxy, openssl, pkgconfig, llvm_6,
9+ cf-private, ApplicationServices, Carbon, Cocoa, Xplugin
10+}:
911
1012let
1113 inherit (stdenv) lib isDarwin;
@@ -108,9 +110,9 @@ self: super:
108110 });
109111
110112 libAppleWM = super.libAppleWM.overrideAttrs (attrs: {
111− buildInputs = attrs.buildInputs ++ [ apple_sdk.frameworks.ApplicationServices ];
113+ buildInputs = attrs.buildInputs ++ [ ApplicationServices ];
112114 preConfigure = ''
113− substituteInPlace src/Makefile.in --replace -F/System -F${apple_sdk.frameworks.ApplicationServices}
115+ substituteInPlace src/Makefile.in --replace -F/System -F${ApplicationServices}
114116 '';
115117 });
116118
@@ -466,7 +468,11 @@ self: super:
466468 sha256 = "1j1i3n5xy1wawhk95kxqdc54h34kg7xp4nnramba2q8xqfr5k117";
467469 };
468470 nativeBuildInputs = [ pkgconfig ];
469− buildInputs = [ dri2proto dri3proto renderproto libdrm openssl libX11 libXau libXaw libxcb xcbutil xcbutilwm xcbutilimage xcbutilkeysyms xcbutilrenderutil libXdmcp libXfixes libxkbfile libXmu libXpm libXrender libXres libXt ];
471+ buildInputs = [ dri2proto dri3proto renderproto libdrm openssl libX11 libXau libXaw libxcb xcbutil xcbutilwm xcbutilimage xcbutilkeysyms xcbutilrenderutil libXdmcp libXfixes libxkbfile libXmu libXpm libXrender libXres libXt ]
472+ ++ stdenv.lib.optionals stdenv.isDarwin [
473+ # Needed for NSDefaultRunLoopMode symbols.
474+ cf-private
475+ ];
470476 postPatch = stdenv.lib.optionalString stdenv.isLinux "sed '1i#include <malloc.h>' -i include/os.h";
471477 meta.platforms = stdenv.lib.platforms.unix;
472478 } else throw "unsupported xorg abiCompat ${abiCompat} for ${attrs_passed.name}";
@@ -538,9 +544,7 @@ self: super:
538544 nativeBuildInputs = attrs.nativeBuildInputs ++ [ autoreconfHook self.utilmacros self.fontutil ];
539545 buildInputs = commonBuildInputs ++ [
540546 bootstrap_cmds automake autoconf
541− apple_sdk.libs.Xplugin
542− apple_sdk.frameworks.Carbon
543− apple_sdk.frameworks.Cocoa
547+ Xplugin Carbon Cocoa
544548 ];
545549 propagatedBuildInputs = commonPropagatedBuildInputs ++ [
546550 libAppleWM applewmproto
@@ -582,7 +586,7 @@ self: super:
582586 preConfigure = ''
583587 mkdir -p $out/Applications
584588 export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -Wno-error"
585− substituteInPlace hw/xquartz/pbproxy/Makefile.in --replace -F/System -F${apple_sdk.frameworks.ApplicationServices}
589+ substituteInPlace hw/xquartz/pbproxy/Makefile.in --replace -F/System -F${ApplicationServices}
586590 '';
587591 postInstall = ''
588592 rm -fr $out/share/X11/xkb/compiled
pkgs/top-level/all-packages.nix+3−1
@@ -13858,7 +13858,9 @@ with pkgs;
1385813858 # have created a cycle.
1385913859 xorg = recurseIntoAttrs ((lib.callPackageWith __splicedPackages ../servers/x11/xorg {
1386013860 }).overrideScope' (lib.callPackageWith __splicedPackages ../servers/x11/xorg/overrides.nix {
13861− inherit (darwin) apple_sdk;
13861+ inherit (darwin) cf-private;
13862+ inherit (darwin.apple_sdk.frameworks) ApplicationServices Carbon Cocoa;
13863+ inherit (darwin.apple_sdk.libs) Xplugin;
1386213864 bootstrap_cmds = if stdenv.isDarwin then darwin.bootstrap_cmds else null;
1386313865 python = python2; # Incompatible with Python 3x
1386413866 udev = if stdenv.isLinux then udev else null;