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

;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2013 Nikita Karetnikov <[email protected]>
;;;
;;; 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: pgpZ3YC8IaE6D.pgp
Description: PGP signature

Reply via email to