From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57828) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dpXTE-0000AO-R5 for guix-patches@gnu.org; Wed, 06 Sep 2017 06:22:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dpXT8-0006DV-Mf for guix-patches@gnu.org; Wed, 06 Sep 2017 06:22:08 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:43621) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dpXT8-0006DN-I5 for guix-patches@gnu.org; Wed, 06 Sep 2017 06:22:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dpXT8-0008Ia-DK for guix-patches@gnu.org; Wed, 06 Sep 2017 06:22:02 -0400 Subject: [bug#28365] [PATCH] gnu: emacs-ess: Include the etc directory in the build Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57486) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dpXS6-0008Mb-Ms for guix-patches@gnu.org; Wed, 06 Sep 2017 06:20:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dpXS1-0005Nr-IW for guix-patches@gnu.org; Wed, 06 Sep 2017 06:20:58 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43829) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dpXS1-0005Nh-Ee for guix-patches@gnu.org; Wed, 06 Sep 2017 06:20:53 -0400 Received: from ip-80-113-14-101.ip.prioritytelecom.net ([80.113.14.101]:60478 helo=yellowstone) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dpXRy-0002yB-6V for guix-patches@gnu.org; Wed, 06 Sep 2017 06:20:51 -0400 From: Roel Janssen Message-ID: <874lsgyvra.fsf@gnu.org> Date: Wed, 06 Sep 2017 12:20:41 +0200 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 28365@debbugs.gnu.org --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-gnu-emacs-ess-Include-the-etc-directory-in-the-build.patch >From f8ae717ae7dd5db7f7c0c477b7c871b843607de5 Mon Sep 17 00:00:00 2001 From: Roel Janssen Date: Wed, 6 Sep 2017 12:14:18 +0200 Subject: [PATCH] gnu: emacs-ess: Include the etc directory in the build output. * gnu/packages/emacs.scm (emacs-ess): Also copy the etc directory. --- gnu/packages/emacs.scm | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index bc01d5777..1e29f357c 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -3209,22 +3209,25 @@ E-Prime forbids the use of the \"to be\" form to strengthen your writing.") "0w7mbbajn377gdmvnd21mpyr368b2ia46gq6cb99y4y5rspf9pcg")))) (build-system gnu-build-system) (arguments - `(#:tests? #f ; There is no test suite. - #:make-flags (list (string-append "PREFIX=" %output) - (string-append "LISPDIR=" %output - "/share/emacs/site-lisp/guix.d/ess")) - #:phases - (modify-phases %standard-phases - (delete 'configure) - (add-before 'build 'more-shebang-patching - (lambda* (#:key inputs #:allow-other-keys) - (substitute* "Makeconf" - (("SHELL = /bin/sh") - (string-append "SHELL = " (which "sh")))))) - ;; FIXME: the texlive-union insists on regenerating fonts. It stores - ;; them in HOME, so it needs to be writeable. - (add-before 'build 'set-HOME - (lambda _ (setenv "HOME" "/tmp") #t))))) + (let ((base-directory "/share/emacs/site-lisp/guix.d/ess")) + `(#:tests? #f ; There is no test suite. + #:make-flags (list (string-append "PREFIX=" %output) + (string-append "ETCDIR=" %output "/" + ,base-directory "/etc") + (string-append "LISPDIR=" %output "/" + ,base-directory)) + #:phases + (modify-phases %standard-phases + (delete 'configure) + (add-before 'build 'more-shebang-patching + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "Makeconf" + (("SHELL = /bin/sh") + (string-append "SHELL = " (which "sh")))))) + ;; FIXME: the texlive-union insists on regenerating fonts. It stores + ;; them in HOME, so it needs to be writeable. + (add-before 'build 'set-HOME + (lambda _ (setenv "HOME" "/tmp") #t)))))) (inputs `(("emacs" ,emacs-minimal) ("r-minimal" ,r-minimal))) -- 2.14.1 --=-=-= Content-Type: text/plain Dear Guix, When loading ESS "the standard way": (require 'ess-site) it fails to load because it cannot find the "etc" directory that should ship with this package. This patch puts that directory and its contents (as generated by the build system) into $PROFILE/share/emacs/site-lisp/guix.d/ess/etc. After this change, I was able to load ESS "the standard way". Thanks for your time. Kind regards, Roel Janssen --=-=-=--