unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Leo Famulari <leo@famulari.name>
To: Luther Thompson <lutheroto@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: How do I define a package?
Date: Wed, 22 Aug 2018 02:01:26 -0400	[thread overview]
Message-ID: <20180822060126.GA2666@jasmine.lan> (raw)
In-Reply-To: <20180816183430.51a561e6@gmail.com>

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

On Thu, Aug 16, 2018 at 06:34:30PM -0400, Luther Thompson wrote:
> My next issue is that it won't install. I see this in the middle of
> the build output:
> 
> starting phase `install'
> scons: Reading SConscript files ...
> scons: done reading SConscript files.
> scons: Building targets ...
> scons: *** [/usr] /usr: Permission denied
> scons: building terminated because of errors.
> 
> As I understand it, every package has its own store directory, which
> mirrors FHS, and all the package's files get installed there. I expect
> Guix to install files to my package's store directory, but it looks
> like it wants to install to the root filesystem instead. I might need
> to add an `arguments` field to my package, but I'm not sure what to put
> in it.

Looking at some other Guix packages using the scons-build-system, it
seems like the Sconscripts usually take a 'PREFIX' or 'prefix' argument
that should contain the output directory in /gnu/store.

For example:

------
    (build-system scons-build-system)
    (arguments
     `(#:tests? #f  ;no tests
       #:scons-flags
       (list (string-append "prefix=" (assoc-ref %outputs "out")))
------

Which is from the aria-maestosa package:

https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/music.scm?id=dc695341f77c6c5326fd0aca78f94bf8ac0212f8#n150

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

  reply	other threads:[~2018-08-22 17:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-14 22:22 How do I define a package? Luther Thompson
2018-08-14 22:32 ` Pierre Neidhardt
2018-08-16 22:34   ` Luther Thompson
2018-08-22  6:01     ` Leo Famulari [this message]
2018-08-29 22:40       ` Luther Thompson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180822060126.GA2666@jasmine.lan \
    --to=leo@famulari.name \
    --cc=help-guix@gnu.org \
    --cc=lutheroto@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).