all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nikita Karetnikov <nikita@karetnikov.org>
To: bug-guix@gnu.org
Subject: 'gobject-introspection': No such file or directory
Date: Mon, 28 Jan 2013 09:45:22 -0500	[thread overview]
Message-ID: <87a9rtxt61.fsf@karetnikov.org> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1739 bytes --]

Hi,

'./pre-inst-env guix-build gobject-introspection' fails with the
following error:

  GICOMP gir/cairo-1.0.gir
Traceback (most recent call last):
  File "./g-ir-scanner", line 46, in <module>
    sys.exit(scanner_main(sys.argv))
  File "./giscanner/scannermain.py", line 413, in scanner_main
    ss = create_source_scanner(options, args)
  File "./giscanner/scannermain.py", line 335, in create_source_scanner
    ss.parse_files(filenames)
  File "./giscanner/sourcescanner.py", line 250, in parse_files
    self._parse(headers)
  File "./giscanner/sourcescanner.py", line 283, in _parse
    stdout=subprocess.PIPE)
  File "/nix/store/rvbri7f1j91nrblhw8xhp8ik3p89m5hh-python-2.7.3/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/nix/store/rvbri7f1j91nrblhw8xhp8ik3p89m5hh-python-2.7.3/lib/python2.7/subprocess.py", line 1249, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
make[2]: *** [GLib-2.0.gir] Error 1
make[2]: Leaving directory `/tmp/nix-build-gobject-introspection-1.34.2.drv-12/gobject-introspection-1.34.2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/nix-build-gobject-introspection-1.34.2.drv-12/gobject-introspection-1.34.2'
make: *** [all] Error 2

The problem isn't version-specific.  I tested several versions.  I also
tried to remove all Cairo-related things from 'Makefile.in', but it
didn't help.  My guess is that our GLib causes the problem, but I'm not
sure.

Here's a snippet from Nixpkgs:

   # Tests depend on cairo, which is undesirable (it pulls in lots of
   # other dependencies).
   configureFlags = "--disable-tests";

AFAICT, this flag is useless because the tests are disabled by
default.

Nikita


[-- Attachment #1.2: gobject-introspection.scm --]
[-- Type: text/plain, Size: 2430 bytes --]

;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (gnu packages gobject-introspection)
  #:use-module (guix licenses)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix build-system gnu)
  #:use-module (gnu packages bison)
  #:use-module (gnu packages flex)
  #:use-module (gnu packages glib)
  #:use-module (gnu packages libffi)
  #:use-module (gnu packages pkg-config)
  #:use-module (gnu packages python))

(define-public gobject-introspection
  (package
    (name "gobject-introspection")
    (version "1.34.2")
    (source
     (origin
      (method url-fetch)
      (uri (string-append "http://ftp.gnome.org/pub/gnome/sources/"
                          name "/1.34/" name "-" version ".tar.xz"))
      (sha256
       (base32
        "0a9lq0y67sr3g37l1hy0biqn046jr9wnd05hvwi8j8g2bjilhydw"))))
    (build-system gnu-build-system)
    (inputs
     `(("bison" ,bison)
       ("flex" ,flex)
       ("glib" ,glib)
       ("libffi" ,libffi)
       ("pkg-config" ,pkg-config)
       ("python" ,python)))
    (home-page
     "https://live.gnome.org/GObjectIntrospection")
    (synopsis
     "GObject introspection, a middleware layer between C libraries")
    (description
     "GObject introspection is a middleware layer between C
libraries (using GObject) and language bindings.  The C library can be
scanned at compile time and generate a metadata file, in addition to the
actual native C library.  Then at runtime, language bindings can read
this metadata and automatically provide bindings to call into the C
library.")
    (license '(lgpl2+ gpl2+ bsd-2))))

[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]

             reply	other threads:[~2013-01-28 14:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-28 14:45 Nikita Karetnikov [this message]
2013-01-28 16:46 ` 'gobject-introspection': No such file or directory Ludovic Courtès
2013-02-01 18:26   ` Nikita Karetnikov
2013-02-04 22:36     ` Ludovic Courtès
2013-02-05  0:43       ` Nikita Karetnikov
2013-02-05  9:00         ` Ludovic Courtès
2013-02-07  8:56           ` 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=87a9rtxt61.fsf@karetnikov.org \
    --to=nikita@karetnikov.org \
    --cc=bug-guix@gnu.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.