[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#29712: 26.0.90; Three emacs-26 elisp tests are failing on darwin
From: |
John Wiegley |
Subject: |
bug#29712: 26.0.90; Three emacs-26 elisp tests are failing on darwin |
Date: |
Tue, 30 Jan 2018 14:40:08 -0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.91 (darwin) |
>>>>> "AT" == Alan Third <alan@idiocy.org> writes:
AT> How are you running the tests? Is it from this nix build location?
I run the test using this expression:
emacs26 = with pkgs; stdenv.lib.overrideDerivation
(emacs25.override { srcRepo = true; }) (attrs: rec {
name = "emacs-${version}${versionModifier}";
version = "26.0";
versionModifier = ".90";
buildInputs = emacs25.buildInputs ++ [ git ];
patches = lib.optionals stdenv.isDarwin
[ ./emacs/patches/at-fdcwd.patch
./emacs/patches/emacs-26.patch ];
CFLAGS = "-Ofast -momit-leaf-frame-pointer";
src = fetchgit {
url = https://git.savannah.gnu.org/git/emacs.git;
rev = "8d4500087f547e203cfba03f61dcbe641bf650de";
sha256 = "1zk9xm01v4chnxf9ns9c3kx2jal3lj88hadv5vp0zb8xr9vz4f31";
};
postPatch = ''
rm -fr .git
'';
postInstall = ''
mkdir -p $out/share/emacs/site-lisp
cp ${./emacs/site-start.el} $out/share/emacs/site-lisp/site-start.el
$out/bin/emacs --batch -f batch-byte-compile
$out/share/emacs/site-lisp/site-start.el
rm -rf $out/var
rm -rf $out/share/emacs/${version}/site-lisp
for srcdir in src lisp lwlib ; do
dstdir=$out/share/emacs/${version}/$srcdir
mkdir -p $dstdir
find $srcdir -name "*.[chm]" -exec cp {} $dstdir \;
cp $srcdir/TAGS $dstdir
echo '((nil . ((tags-file-name . "TAGS"))))' > $dstdir/.dir-locals.el
done
'' + lib.optionalString stdenv.isDarwin ''
mkdir -p $out/Applications
mv nextstep/Emacs.app $out/Applications
'';
});
emacs26debug = pkgs.stdenv.lib.overrideDerivation emacs26 (attrs: rec {
name = "emacs-26.0.90-debug";
doCheck = true;
CFLAGS = "-O0 -g3";
configureFlags = [ "--with-modules" ] ++
[ "--with-ns" "--disable-ns-self-contained"
"--enable-checking=yes,glyphs"
"--enable-check-lisp-object-type" ];
});
This is in my Nix overlays. I think just build nixpkgs.emacs26debug.
--
John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2