[Nix-dev] Installation of polkit fails
Ilja Honkonen
ilja.honkonen at helsinki.fi
Sat Mar 17 20:12:59 CET 2012
Hello
Nix installation of polkit fails for me. I installed nix from today's
svn with:
./configure --prefix=$HOME/Tiedostot/Ohjelmat/nix
--with-store-dir=$HOME/Tiedostot/Ohjelmat/nix/store
--localstatedir=$HOME/Tiedostot/Ohjelmat/nix/var --with-bzip2=/
A dry run shows no problems:
ilja [ ~ ]$ ~/Tiedostot/Ohjelmat/nix/bin/nix-env -i polkit --dry-run
(dry run; not doing anything)
installing `polkit-0.102'
these derivations will be built:
/home/ilja/Tiedostot/Ohjelmat/nix/store/71fzihj87nb9gv4jpk65cbm40fixzia1-polkit-0.102.drv
but without it I get:
...
CC libpolkit_gobject_1_la-polkitpermission.lo
[3s[a/bin/sh ../../libtool --silent --tag=CC --mode=compile gcc
-DHAVE_CONFIG_H -I. -I../.. -I../../src -I../../src
-DPACKAGE_LIBEXEC_DIR=\""/home/ilja/Tiedostot/Ohjelmat/nix/store/by1k5ajymjplllvgbfhi07vv26005k6b-polkit-0.102/libexec/polkit-1"\"
-DPACKAGE_SYSCONF_DIR=\""/home/ilja/Tiedostot/Ohjelmat/nix/store/by1k5ajymjplllvgbfhi07vv26005k6b-polkit-0.102/etc"\"
-DPACKAGE_DATA_DIR=\""/home/ilja/Tiedostot/Ohjelmat/nix/store/by1k5ajymjplllvgbfhi07vv26005k6b-polkit-0.102/share"\"
-DPACKAGE_BIN_DIR=\""/home/ilja/Tiedostot/Ohjelmat/nix/store/by1k5ajymjplllvgbfhi07vv26005k6b-polkit-0.102/bin"\"
-DPACKAGE_LOCALSTATE_DIR=\""/home/ilja/Tiedostot/Ohjelmat/nix/store/by1k5ajymjplllvgbfhi07vv26005k6b-polkit-0.102/var"\"
-DPACKAGE_LOCALE_DIR=\""/home/ilja/Tiedostot/Ohjelmat/nix/store/by1k5ajymjplllvgbfhi07vv26005k6b-polkit-0.102/share/locale"\"
-DPACKAGE_LIB_DIR=\""/home/ilja/Tiedostot/Ohjelmat/nix/store/by1k5ajymjplllvgbfhi07vv26005k6b-polkit-0.102/lib"\"
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_POLKIT_COMPILATION
-pthread
-I/home/ilja/Tiedostot/Ohjelmat/nix/store/zp9lhvbxv9lc7l3vz78ic1igg85zc901-glib-2.28.8/include/glib-2.0
-I/home/ilja/Tiedostot/Ohjelmat/nix/store/zp9lhvbxv9lc7l3vz78ic1igg85zc901-glib-2.28.8/lib/glib-2.0/include
-DPACKAGE_DATA_DIR=\""/var/run/current-system/sw/share"\"
-DPACKAGE_LIB_DIR=\""/var/run/current-system/sw/lib"\"
-DPACKAGE_LOCALSTATE_DIR=\""/var"\" -DPACKAGE_SYSCONF_DIR=\""/etc"\"
-Wall -Wchar-subscripts -Wmissing-declarations -Wnested-externs
-Wpointer-arith -Wcast-align -Wsign-compare -Wformat -Wformat-security
-c -o libpolkit_gobject_1_la-polkitpermission.lo `test -f
'polkitpermission.c' || echo './'`polkitpermission.c[b
<command-line>:0:0: warning: "PACKAGE_DATA_DIR" redefined [enabled by
default]
<command-line>:0:0: note: this is the location of the previous definition
<command-line>:0:0: warning: "PACKAGE_LIB_DIR" redefined [enabled by
default]
<command-line>:0:0: note: this is the location of the previous definition
<command-line>:0:0: warning: "PACKAGE_LOCALSTATE_DIR" redefined [enabled
by default]
<command-line>:0:0: note: this is the location of the previous definition
<command-line>:0:0: warning: "PACKAGE_SYSCONF_DIR" redefined [enabled by
default]
<command-line>:0:0: note: this is the location of the previous definition
[q[pbuilding libpolkit-gobject-1.la
CCLD libpolkit-gobject-1.la
[q[pbuilding Polkit-1.0.gir
[3s[a/home/ilja/Tiedostot/Ohjelmat/nix/store/yjcvw1rzn5ladfj230jfly24fvj2ns2a-gobject-introspection-0.10.8/bin/g-ir-scanner
-v \
--warn-all \
--namespace Polkit \
--nsversion=1.0 \
--include=Gio-2.0 \
--library=polkit-gobject-1 \
--output Polkit-1.0.gir \
--pkg=glib-2.0 \
--pkg=gobject-2.0 \
--pkg=gio-2.0 \
--pkg-export=polkit-gobject-1 \
--libtool=../../libtool \
--c-include='polkit/polkit.h' \
-I../../src \
-D_POLKIT_COMPILATION \
polkitenumtypes.c polkitenumtypes.h polkit.h
polkitactiondescription.c polkitactiondescription.h
polkitauthorityfeatures.h polkitauthorityfeatures.c polkitdetails.c
polkitdetails.h polkitauthority.c polkitauthority.h polkiterror.c
polkiterror.h polkitsubject.c polkitsubject.h polkitunixprocess.c
polkitunixprocess.h polkitunixsession.c polkitunixsession.h
polkitsystembusname.c polkitsystembusname.h polkitidentity.c
polkitidentity.h polkitunixuser.c polkitunixuser.h
polkitunixgroup.c polkitunixgroup.h polkitauthorizationresult.c
polkitauthorizationresult.h polkitcheckauthorizationflags.c
polkitcheckauthorizationflags.h polkitimplicitauthorization.c
polkitimplicitauthorization.h polkittemporaryauthorization.c
polkittemporaryauthorization.h polkitpermission.c polkitpermission.h \
[b
<command-line>:0:53: warning: missing terminating " character [enabled
by default]
<command-line>:0:50: warning: missing terminating " character [enabled
by default]
<command-line>:0:31: warning: missing terminating " character [enabled
by default]
<command-line>:0:28: warning: missing terminating " character [enabled
by default]
<unknown>:: Warning: Polkit: (Interface)Identity:
context=Interface('Identity') Couldn't find associated structure for
''Identity''
<unknown>:: Warning: Polkit: (Interface)Subject:
context=Interface('Subject') Couldn't find associated structure for
''Subject''
g-ir-scanner: compile: gcc -Wall -pthread
-I/home/ilja/Tiedostot/Ohjelmat/nix/store/zp9lhvbxv9lc7l3vz78ic1igg85zc901-glib-2.28.8/include/glib-2.0
-I/home/ilja/Tiedostot/Ohjelmat/nix/store/zp9lhvbxv9lc7l3vz78ic1igg85zc901-glib-2.28.8/lib/glib-2.0/include
-DPACKAGE_DATA_DIR=\\\"\"/var/run/current-system/sw/share\"\\\"
-DPACKAGE_LIB_DIR=\\\"\"/var/run/current-system/sw/lib\"\\\"
-DPACKAGE_LOCALSTATE_DIR=\\\"\"/var\"\\\"
-DPACKAGE_SYSCONF_DIR=\\\"\"/etc\"\\\" -Wall -Wchar-subscripts
-Wmissing-declarations -Wnested-externs -Wpointer-arith -Wcast-align
-Wsign-compare -Wformat -Wformat-security -I../../src
-I/home/ilja/Tiedostot/Ohjelmat/nix/store/zp9lhvbxv9lc7l3vz78ic1igg85zc901-glib-2.28.8/include/glib-2.0
-I/home/ilja/Tiedostot/Ohjelmat/nix/store/zp9lhvbxv9lc7l3vz78ic1igg85zc901-glib-2.28.8/lib/glib-2.0/include
-I/home/ilja/Tiedostot/Ohjelmat/nix/store/zp9lhvbxv9lc7l3vz78ic1igg85zc901-glib-2.28.8/include/gio-unix-2.0/
-c -o
/tmp/nix-build-71fzihj87nb9gv4jpk65cbm40fixzia1-polkit-0.102.drv-0/polkit-0.102/src/polkit/tmp-introspectMoC7gl/Polkit-1.0.o
/tmp/nix-build-71fzihj87nb9gv4jpk65cbm40fixzia1-polkit-0.102.drv-0/polkit-0.102/src/polkit/tmp-introspectMoC7gl/Polkit-1.0.c
g-ir-scanner: link: ../../libtool --mode=link --tag=CC --silent gcc -o
/tmp/nix-build-71fzihj87nb9gv4jpk65cbm40fixzia1-polkit-0.102.drv-0/polkit-0.102/src/polkit/tmp-introspectMoC7gl/Polkit-1.0
-export-dynamic
-DPACKAGE_DATA_DIR=\\\"\"/var/run/current-system/sw/share\"\\\"
-DPACKAGE_LIB_DIR=\\\"\"/var/run/current-system/sw/lib\"\\\"
-DPACKAGE_LOCALSTATE_DIR=\\\"\"/var\"\\\"
-DPACKAGE_SYSCONF_DIR=\\\"\"/etc\"\\\" -Wall -Wchar-subscripts
-Wmissing-declarations -Wnested-externs -Wpointer-arith -Wcast-align
-Wsign-compare -Wformat -Wformat-security -L. -lpolkit-gobject-1
-pthread
-L/home/ilja/Tiedostot/Ohjelmat/nix/store/zp9lhvbxv9lc7l3vz78ic1igg85zc901-glib-2.28.8/lib
-lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0
/tmp/nix-build-71fzihj87nb9gv4jpk65cbm40fixzia1-polkit-0.102.drv-0/polkit-0.102/src/polkit/tmp-introspectMoC7gl/Polkit-1.0.o
[q[pbuilding Polkit-1.0.typelib
[3s[a/home/ilja/Tiedostot/Ohjelmat/nix/store/yjcvw1rzn5ladfj230jfly24fvj2ns2a-gobject-introspection-0.10.8/bin/g-ir-compiler
Polkit-1.0.gir -o Polkit-1.0.typelib[b
/usr/share/gir-1.0/GLib-2.0.gir:9:1: error: Unsupported version '1.0'
/usr/share/gir-1.0/GLib-2.0.gir:9:39: error: Unsupported version '1.0'
error parsing file Polkit-1.0.gir: Failed to parse included gir GLib-2.0
make[4]: *** [Polkit-1.0.typelib] Error 1
make[4]: Leaving directory
`/tmp/nix-build-71fzihj87nb9gv4jpk65cbm40fixzia1-polkit-0.102.drv-0/polkit-0.102/src/polkit'
[q[qmake[3]: *** [all] Error 2
make[3]: Leaving directory
`/tmp/nix-build-71fzihj87nb9gv4jpk65cbm40fixzia1-polkit-0.102.drv-0/polkit-0.102/src/polkit'
[q[qmake[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/tmp/nix-build-71fzihj87nb9gv4jpk65cbm40fixzia1-polkit-0.102.drv-0/polkit-0.102/src'
[q[qmake[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/tmp/nix-build-71fzihj87nb9gv4jpk65cbm40fixzia1-polkit-0.102.drv-0/polkit-0.102'
[q[qmake: *** [all] Error 2
[q[q[qbuilder for
`/home/ilja/Tiedostot/Ohjelmat/nix/store/71fzihj87nb9gv4jpk65cbm40fixzia1-polkit-0.102.drv'
failed with exit code 2
error: build of
`/home/ilja/Tiedostot/Ohjelmat/nix/store/71fzihj87nb9gv4jpk65cbm40fixzia1-polkit-0.102.drv'
failed
The directory mentioned in the error exists, but I guess it shouldn't
actually be used for anything:
ilja [ ~ ]$ l /usr/share/gir-1.0/
cairo-1.0.gir
fontconfig-2.0.gir
freetype2-2.0.gir
Gio-2.0.gir
GIRepository-2.0.gir
GL-1.0.gir
GLib-2.0.gir
GModule-2.0.gir
GObject-2.0.gir
libxml2-2.0.gir
Polkit-1.0.gir
xfixes-4.0.gir
xft-2.0.gir
xlib-2.0.gir
xrandr-1.3.gir
I'd appreciate any help.
Ilja
More information about the nix-dev
mailing list