unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* help with emacs package
@ 2020-12-10  7:45 Adam Kandur via
       [not found] ` <87pn3iklja.fsf@systemreboot.net>
  0 siblings, 1 reply; 4+ messages in thread
From: Adam Kandur via @ 2020-12-10  7:45 UTC (permalink / raw)
  To: Help Guix

hi everyone!
i'm trying to pack this https://melpa.org/#/roguel-ike
to do this, i wrote this package:
---
(define-public emacs-roguel-ike
  ;; tagged branch is outdated.
  (let ((revision "0")
        (commit "706dcb0687e8016d7d776f9d9e5ace9fdbbca43c"))
    (package
      (name "emacs-roguel-ike")
      (version (git-version "0.1.0" revision commit))
      (source
       (origin
         (method git-fetch)
         (uri (git-reference
           (url "https://github.com/stevenremot/roguel-ike")
           (commit "master")))
         (file-name (git-file-name name version))
         (sha256
          (base32 "0rgv4y9aa5cc2ddz3y5z8d22xmr8kf5c60h0r3g8h91jmcw3rb4z"))))
      (build-system emacs-build-system)
      (home-page "https://github.com/stevenremot/roguel-ike.git")
      (synopsis "Coffee-break roguelike for Emacs")
      (description "The goal of this project was to develop a coffee-break roguelike for Emacs.  
The complete game would allow the player to create various characters and to make them fulfill challenges like arena fight and short dungeon explorations.")
      (license license:gpl3))))
---

so, when i'm trying to build it i get this error:
---
starting phase `build'
Checking /gnu/store/fgzyhpkf1ysf7z4nynyqky8yp1idn5yc-emacs-roguel-ike-0.1.0-0.706dcb0/share/emacs/site-lisp/...
Compiling /gnu/store/fgzyhpkf1ysf7z4nynyqky8yp1idn5yc-emacs-roguel-ike-0.1.0-0.706dcb0/share/emacs/site-lisp/roguel-ike-autoloads.el...
Compiling /gnu/store/fgzyhpkf1ysf7z4nynyqky8yp1idn5yc-emacs-roguel-ike-0.1.0-0.706dcb0/share/emacs/site-lisp/roguel-ike.el...
../../../../../../tmp/guix-build-emacs-roguel-ike-0.1.0-0.706dcb0.drv-0/source/roguel-ike/hero-data.el: Obsolete name arg "Hero data" to constructor rlk--hero-data
Creating directory: Permission denied, /homeless-shelter
command "/gnu/store/k826y34z8zzjj57jv2nldmpw6vsdd145-emacs-minimal-27.1/bin/emacs" "--quick" "--batch" "--eval=(eval '(progn (setq byte-compile-debug t) (byte-recompile-directory (file-name-as-directory \"/gnu/store/fgzyhpkf1ysf7z4nynyqky8yp1idn5yc-emacs-roguel-ike-0.1.0-0.706dcb0/share/emacs/site-lisp\") 0 1)) t)" failed with status 255
builder for `/gnu/store/c44xk4nzrmif59xqiwxmnb6w3vds9zsi-emacs-roguel-ike-0.1.0-0.706dcb0.drv' failed with exit code 1
build of /gnu/store/c44xk4nzrmif59xqiwxmnb6w3vds9zsi-emacs-roguel-ike-0.1.0-0.706dcb0.drv failed
View build log at '/var/log/guix/drvs/c4/4xk4nzrmif59xqiwxmnb6w3vds9zsi-emacs-roguel-ike-0.1.0-0.706dcb0.drv.bz2'.
guix build: error: build of `/gnu/store/c44xk4nzrmif59xqiwxmnb6w3vds9zsi-emacs-roguel-ike-0.1.0-0.706dcb0.drv' failed---

maybe somebody had same problem?


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: help with emacs package
       [not found] ` <87pn3iklja.fsf@systemreboot.net>
@ 2020-12-10 10:50   ` Adam Kandur via
  2020-12-10 11:24     ` Arun Isaac
  0 siblings, 1 reply; 4+ messages in thread
From: Adam Kandur via @ 2020-12-10 10:50 UTC (permalink / raw)
  To: Arun Isaac; +Cc: Help Guix

thank you!
adding
---
    (arguments
     `(#:phases
       (modify-phases %standard-phases
         (add-before 'check 'set-test-environment
           (lambda _
             (setenv "HOME" "/tmp")
             #t)))))---
solved this problem ^_^

could anybody describe in details what went wrong? 





Dec 10, 2020, 10:22 by arunisaac@systemreboot.net:

>
> Hi Adam,
>
>> Creating directory: Permission denied, /homeless-shelter
>>
>
> Try setting the HOME environment variable to /tmp. Many package
> definitions do this. See, for example, the codec2 package in
> gnu/packages/audio.scm.
>
> Cheers!
>



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: help with emacs package
  2020-12-10 10:50   ` Adam Kandur via
@ 2020-12-10 11:24     ` Arun Isaac
  2020-12-10 12:15       ` Adam Kandur via
  0 siblings, 1 reply; 4+ messages in thread
From: Arun Isaac @ 2020-12-10 11:24 UTC (permalink / raw)
  To: Adam Kandur; +Cc: Help Guix

[-- Attachment #1: Type: text/plain, Size: 543 bytes --]


> could anybody describe in details what went wrong?

By default, the HOME environment variable in the build environment is
set to /homeless-shelter, a non-existent directory. Some packages try to
access HOME to put temporary files or for some other reason. When they
find the HOME directory does not exist, they error out. Note the
following error message in your build log.

>>> Creating directory: Permission denied, /homeless-shelter

So, for such packages, we set HOME to /tmp, a directory that actually
exists in the build environment.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 524 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: help with emacs package
  2020-12-10 11:24     ` Arun Isaac
@ 2020-12-10 12:15       ` Adam Kandur via
  0 siblings, 0 replies; 4+ messages in thread
From: Adam Kandur via @ 2020-12-10 12:15 UTC (permalink / raw)
  To: Arun Isaac; +Cc: Help Guix

ohhhhh,
thank you again for this information





Dec 10, 2020, 11:24 by arunisaac@systemreboot.net:

>> could anybody describe in details what went wrong?
>>
>
> By default, the HOME environment variable in the build environment is
> set to /homeless-shelter, a non-existent directory. Some packages try to
> access HOME to put temporary files or for some other reason. When they
> find the HOME directory does not exist, they error out. Note the
> following error message in your build log.
>
>>>> Creating directory: Permission denied, /homeless-shelter
>>>>
>
> So, for such packages, we set HOME to /tmp, a directory that actually
> exists in the build environment.
>



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-12-10 12:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-10  7:45 help with emacs package Adam Kandur via
     [not found] ` <87pn3iklja.fsf@systemreboot.net>
2020-12-10 10:50   ` Adam Kandur via
2020-12-10 11:24     ` Arun Isaac
2020-12-10 12:15       ` Adam Kandur via

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).