diff options
author | Aycan iRiCAN <iricanaycan@gmail.com> | 2015-04-20 09:18:10 +0300 |
---|---|---|
committer | Aycan iRiCAN <iricanaycan@gmail.com> | 2015-04-20 09:18:10 +0300 |
commit | 3cd32fcbed8610f6708533d8b8e5d864c3113515 (patch) | |
tree | df9dff63dbd07f3e7912f857bfb6c9169b6aa866 /pkgs/applications/editors | |
parent | 82173e6518572f0eb3aeb70e27ccee14e8811039 (diff) | |
parent | 236d963a1e56e58a3c457b20700d9bcf992f8754 (diff) | |
download | nixlib-3cd32fcbed8610f6708533d8b8e5d864c3113515.tar nixlib-3cd32fcbed8610f6708533d8b8e5d864c3113515.tar.gz nixlib-3cd32fcbed8610f6708533d8b8e5d864c3113515.tar.bz2 nixlib-3cd32fcbed8610f6708533d8b8e5d864c3113515.tar.lz nixlib-3cd32fcbed8610f6708533d8b8e5d864c3113515.tar.xz nixlib-3cd32fcbed8610f6708533d8b8e5d864c3113515.tar.zst nixlib-3cd32fcbed8610f6708533d8b8e5d864c3113515.zip |
Merge pull request #7473 from aycanirican/fix_darwin_emacs
emacs-24: Removed obsolete patch file
Diffstat (limited to 'pkgs/applications/editors')
5 files changed, 0 insertions, 57 deletions
diff --git a/pkgs/applications/editors/emacs-24/darwin-new-sections.patch b/pkgs/applications/editors/emacs-24/darwin-new-sections.patch deleted file mode 100644 index dfd72fe3f511..000000000000 --- a/pkgs/applications/editors/emacs-24/darwin-new-sections.patch +++ /dev/null @@ -1,50 +0,0 @@ -http://bazaar.launchpad.net/~naesten/emacs/nextstep-stuff/revision/108961 - -diff -ru emacs-24.3-orig/src/unexmacosx.c emacs-24.3/src/unexmacosx.c ---- emacs-24.3-orig/src/unexmacosx.c 2013-01-01 21:37:17.000000000 +0100 -+++ emacs-24.3/src/unexmacosx.c 2014-08-09 18:39:52.000000000 +0200 -@@ -838,7 +838,7 @@ - if (!(sectp->addr <= (unsigned long)my_edata - && my_size <= sectp->size)) - unexec_error ("my_edata is not in section %s", SECT_DATA); -- if (!unexec_write (sectp->offset, (void *) sectp->addr, my_size)) -+ if (!unexec_write (sectp->offset, (void *) sectp->addr, sectp->size)) - unexec_error ("cannot write section %s", SECT_DATA); - if (!unexec_copy (sectp->offset + my_size, old_file_offset + my_size, - sectp->size - my_size)) -@@ -880,6 +880,27 @@ - if (!unexec_write (header_offset, sectp, sizeof (struct section))) - unexec_error ("cannot write section %.16s's header", sectp->sectname); - } -+ else if (strncmp (sectp->sectname, "__bss", 5) == 0 -+ || strncmp (sectp->sectname, "__pu_bss", 8) == 0) -+ { -+ sectp->flags = S_REGULAR; -+ -+ /* These sections are produced by GCC 4.6+. -+ -+ FIXME: We possibly ought to clear uninitialized local -+ variables in statically linked libraries like for -+ SECT_BSS (__bss) above, but setting up the markers we -+ need in lastfile.c would be rather messy. See -+ darwin_output_aligned_bss () in gcc/config/darwin.c for -+ the root of the problem, keeping in mind that the -+ sections are numbered by their alignment in GCC 4.6, but -+ by log2(alignment) in GCC 4.7. */ -+ -+ if (!unexec_write (sectp->offset, (void *) sectp->addr, sectp->size)) -+ unexec_error ("cannot copy section %.16s", sectp->sectname); -+ if (!unexec_write (header_offset, sectp, sizeof (struct section))) -+ unexec_error ("cannot write section %.16s's header", sectp->sectname); -+ } - else if (strncmp (sectp->sectname, "__la_symbol_ptr", 16) == 0 - || strncmp (sectp->sectname, "__nl_symbol_ptr", 16) == 0 - || strncmp (sectp->sectname, "__got", 16) == 0 -@@ -891,6 +912,7 @@ - || strncmp (sectp->sectname, "__program_vars", 16) == 0 - || strncmp (sectp->sectname, "__mod_init_func", 16) == 0 - || strncmp (sectp->sectname, "__mod_term_func", 16) == 0 -+ || strncmp (sectp->sectname, "__static_data", 16) == 0 - || strncmp (sectp->sectname, "__objc_", 7) == 0) - { - if (!unexec_copy (sectp->offset, old_file_offset, sectp->size)) diff --git a/pkgs/applications/editors/emacs-24/default.nix b/pkgs/applications/editors/emacs-24/default.nix index c6060d2720bc..01895647a6b8 100644 --- a/pkgs/applications/editors/emacs-24/default.nix +++ b/pkgs/applications/editors/emacs-24/default.nix @@ -32,7 +32,6 @@ stdenv.mkDerivation rec { }; patches = stdenv.lib.optionals stdenv.isDarwin [ - ./darwin-new-sections.patch ./at-fdcwd.patch ]; diff --git a/pkgs/applications/editors/emacs-24/macport-24.3.nix b/pkgs/applications/editors/emacs-24/macport-24.3.nix index d9b32351040b..191969eef5b0 100644 --- a/pkgs/applications/editors/emacs-24/macport-24.3.nix +++ b/pkgs/applications/editors/emacs-24/macport-24.3.nix @@ -17,8 +17,6 @@ stdenv.mkDerivation rec { sha256 = "194y341zrpjp75mc3099kjc0inr1d379wwsnav257bwsc967h8yx"; }; - patches = [ ./darwin-new-sections.patch ]; - buildInputs = [ ncurses pkgconfig texinfo libxml2 gnutls ]; postUnpack = '' diff --git a/pkgs/applications/editors/emacs-24/macport-24.4.nix b/pkgs/applications/editors/emacs-24/macport-24.4.nix index 802faf44c649..b79ac6150edd 100644 --- a/pkgs/applications/editors/emacs-24/macport-24.4.nix +++ b/pkgs/applications/editors/emacs-24/macport-24.4.nix @@ -17,8 +17,6 @@ stdenv.mkDerivation rec { sha256 = "0qzzqnql0z0a2p3ciccy8gq79v0s7s717lchcprn3wlaqcrk2g1p"; }; - patches = [ ./darwin-new-sections.patch ]; - buildInputs = [ ncurses pkgconfig texinfo libxml2 gnutls ]; postUnpack = '' diff --git a/pkgs/applications/editors/emacs-24/macport-24.5.nix b/pkgs/applications/editors/emacs-24/macport-24.5.nix index 4ca1d334b97f..db0d05584e1c 100644 --- a/pkgs/applications/editors/emacs-24/macport-24.5.nix +++ b/pkgs/applications/editors/emacs-24/macport-24.5.nix @@ -17,8 +17,6 @@ stdenv.mkDerivation rec { sha256 = "1a86l3556h24x9ml6r8n6xbrxymb9gr38sicny3f0m281myhlsvv"; }; - # patches = [ ./darwin-new-sections.patch ]; - buildInputs = [ ncurses pkgconfig texinfo libxml2 gnutls ]; postUnpack = '' |