git.iko.soy/typeable/nixpkgs
on master help sign in
emacs: include cf-private on darwin and don't propagate frameworks

Undefined symbols for architecture x86_64: "_CFNotificationCenterAddObserver", referenced from: _macfont_copy_available_families_cache in macfont.o "_CFNotificationCenterGetLocalCenter", referenced from: _macfont_copy_available_families_cache in macfont.o "_NSDefaultRunLoopMode", referenced from: _ns_send_appdefined in nsterm.o -[EmacsApp run] in nsterm.o "_OBJC_CLASS_$_NSArray", referenced from: objc-class-ref in nsterm.o objc-class-ref in nsmenu.o objc-class-ref in nsselect.o "_OBJC_CLASS_$_NSData", referenced from: objc-class-ref in nsimage.o "_OBJC_CLASS_$_NSDate", referenced from: objc-class-ref in nsterm.o "_OBJC_CLASS_$_NSDictionary", referenced from: objc-class-ref in macfont.o "_OBJC_CLASS_$_NSLocale", referenced from: objc-class-ref in nsterm.o "_OBJC_CLASS_$_NSMutableArray", referenced from: objc-class-ref in nsterm.o objc-class-ref in nsmenu.o "_OBJC_CLASS_$_NSMutableDictionary", referenced from: objc-class-ref in nsmenu.o objc-class-ref in nsselect.o "_OBJC_CLASS_$_NSMutableSet", referenced from: objc-class-ref in nsterm.o "_OBJC_CLASS_$_NSRunLoop", referenced from: objc-class-ref in nsmenu.o "_OBJC_CLASS_$_NSTimer", referenced from: objc-class-ref in nsterm.o objc-class-ref in nsmenu.o "_OBJC_CLASS_$_NSURL", referenced from: objc-class-ref in nsterm.o objc-class-ref in nsfns.o "_OBJC_CLASS_$_NSUserDefaults", referenced from: objc-class-ref in nsterm.o objc-class-ref in nsfns.o "_OBJC_EHTYPE_$_NSException", referenced from: GCC_except_table8 in nsterm.o GCC_except_table1 in nsselect.o ld: symbol(s) not found for architecture x86_64

commitf495707eb68cf56b4611ed57e2ae7a05740493d9 authorDaiderd Jordan <daiderd@gmail.com> dateMon 5 Nov 2018, 21:11 (8 years ago) parent86bf715
2 files changed+8−4
pkgs/applications/editors/emacs/default.nix+7−4 pkgs/top-level/all-packages.nix+1
pkgs/applications/editors/emacs/default.nix+7−4
@@ -1,7 +1,7 @@
11{ stdenv, lib, fetchurl, ncurses, xlibsWrapper, libXaw, libXpm, Xaw3d
22, pkgconfig, gettext, libXft, dbus, libpng, libjpeg, libungif
33, libtiff, librsvg, gconf, libxml2, imagemagick, gnutls, libselinux
4−, alsaLib, cairo, acl, gpm, AppKit, GSS, ImageIO, m17n_lib, libotf
4+, alsaLib, cairo, acl, gpm, cf-private, AppKit, GSS, ImageIO, m17n_lib, libotf
55, systemd ? null
66, withX ? !stdenv.isDarwin
77, withNS ? stdenv.isDarwin
@@ -64,9 +64,12 @@ stdenv.mkDerivation rec {
6464 ++ lib.optional (withX && withGTK2) gtk2-x11
6565 ++ lib.optionals (withX && withGTK3) [ gtk3-x11 gsettings-desktop-schemas ]
6666 ++ lib.optional (stdenv.isDarwin && withX) cairo
67− ++ lib.optionals (withX && withXwidgets) [ webkitgtk ];
68−
69− propagatedBuildInputs = lib.optionals withNS [ AppKit GSS ImageIO ];
67+ ++ lib.optionals (withX && withXwidgets) [ webkitgtk ]
68+ ++ lib.optionals withNS [
69+ AppKit GSS ImageIO
70+ # Needed for CFNotificationCenterAddObserver symbols.
71+ cf-private
72+ ];
7073
7174 hardeningDisable = [ "format" ];
7275
pkgs/top-level/all-packages.nix+1
@@ -16313,6 +16313,7 @@ with pkgs;
1631316313 imagemagick = null;
1631416314 acl = null;
1631516315 gpm = null;
16316+ inherit (darwin) cf-private;
1631616317 inherit (darwin.apple_sdk.frameworks) AppKit GSS ImageIO;
1631716318 };
1631816319