all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Nikita Karetnikov <nikita@karetnikov.org>
Cc: bug-guix@gnu.org
Subject: Re: 'guix-build' returns 'unknown package', Bison's testsuite fails
Date: Sat, 26 Jan 2013 22:03:08 +0100	[thread overview]
Message-ID: <87ip6jejxv.fsf@gnu.org> (raw)
In-Reply-To: <87sj5ot7he.fsf@karetnikov.org> (Nikita Karetnikov's message of "Sat, 26 Jan 2013 08:10:31 -0500")

Hi,

Nikita Karetnikov <nikita@karetnikov.org> skribis:

>   1. 'guix-build' doesn't work for new packages; it returns
>      "<package>: unknown package."  I'm using the '-e' option as a
>      workaround, but it's not very convenient.

‘guix-build’ searches all modules under gnu/packages; in those modules,
it searches all the public variables that match ‘package?’, and finally
compares against their ‘name’ field.

Could it be that your package is not in a public variable?

>      For instance, if I copy the recipe for 'sed' to 'newsed.scm', then
>      replace 'sed' with 'newsed' in that file, and try to build it via
>      'guix-build newsed', it will return the mentioned error message.

That’s expected: what matters it the ‘name’ field of the ‘<package>’
instance, not the name of the file that defines it.

>   2. Bison's testsuite fails and I'm not able to fix it.  So I'd like to
>      disable it because I want to test 'gobject-introspection'.  Why
>      doesn't '(arguments `(#:tests? #f))' disable the testsuite?

Can you provide more details?  It appears to build for me as
/nix/store/2kdr905aj5kkm0mrwjqxsgv6zvmh2y0j-bison-2.6.1 (x86_64-linux).

> These issues may seem unrelated, but there is a similarity: My changes
> have no effect.  I've just replaced 'gnu/packages/bison.scm' with an
> empty file, but 'guix-build bison' doesn't raise any errors.  Is it
> related?

Actually, there’s an evil bug.  ‘guix-build’ & co. do this:

  GUILE_LOAD_COMPILED_PATH="@guilemoduledir@:$GUILE_LOAD_COMPILED_PATH"
  export GUILE_LOAD_COMPILED_PATH

So if you’ve run ‘make install’ before, the installed modules will
prevail over the non-installed ones.

I’ll see how to fix it.  In the meantime, you can, ahem, run
‘make uninstall’ or ‘make install’...

Thanks,
Ludo’.

  parent reply	other threads:[~2013-01-26 21:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-26 13:10 'guix-build' returns 'unknown package', Bison's testsuite fails Nikita Karetnikov
2013-01-26 17:21 ` Andreas Enge
2013-01-26 21:03 ` Ludovic Courtès [this message]
2013-01-28 14:35   ` Bison: testsuite failed (was: 'guix-build' returns 'unknown package', Bison's testsuite fails) Nikita Karetnikov
2013-01-28 16:35     ` Bison: testsuite failed Ludovic Courtès
2013-01-31  5:18       ` Nikita Karetnikov

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

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

  git send-email \
    --in-reply-to=87ip6jejxv.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=bug-guix@gnu.org \
    --cc=nikita@karetnikov.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.