You are not logged in.
Hi,
I wrote a PKGBUILD to build gir-repository from svn (it's it the AUR), but it doesn't work if you have clutter installed and you use makepkg to build it, although it does work if you attempt to build it yourself. I investigated a little further and found that gir-repository doesn't build if you use fakeroot, which makepkg does use. Is there anyway to override the use of fakeroot, or some way to work around the problem?
Offline
man makepkg, look for the --asroot flag.
Offline
Yes, I thought of that and built the package that way, but it's really not the best solution to fixing the PKGBUILD so you don't have to build as root.
Offline
What is the error you get?
Offline
The scanner script used in the build dies. This appears to be the same issue that used to happen when trying to build on Ubuntu, which was due to a libselinux bug.
gir-repository-build/gir -lvte /usr/lib/libgirepository.so -lgio-2.0 -lffi -ldl -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -pthread
18 nodes; 4 objects, 0 interfaces, 3 enums
Type resolution; pass=0
/usr/bin/g-ir-scanner -v --namespace ClutterJson --nsversion=0.8 \
--add-include-path=. --add-include-path=. \
--include=GObject-2.0 \
--library=clutter-glx-0.8 \
--libtool="/bin/sh ../libtool" \
--pkg gobject-2.0 \
--pkg clutter-glx-0.8 \
--output ClutterJson-0.8.gir \
`pkg-config --variable=includedir clutter-glx-0.8`/clutter-0.8/clutter/json/*.h
libtool: link: gcc -o /tmp/tmp-introspectSg68b5/ClutterJson-0.8 -pthread -Wl,--export-dynamic /tmp/tmp-introspectSg68b5/ClutterJson-0.8.o -L/var/abs/local/seed-related/gir-repository-svn/src/gir-repository-build/gir -lclutter-glx-0.8 /usr/lib/libgirepository.so -lgio-2.0 -lffi -ldl -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -pthread
Traceback (most recent call last):
File "/usr/bin/g-ir-scanner", line 327, in <module>
sys.exit(main(sys.argv))
File "/usr/bin/g-ir-scanner", line 314, in main
namespace = glibtransformer.parse()
File "/usr/lib/python2.6/site-packages/giscanner/glibtransformer.py", line 134, in parse
self._execute_binary()
File "/usr/lib/python2.6/site-packages/giscanner/glibtransformer.py", line 230, in _execute_binary
subprocess.check_call(args, stdout=sys.stdout, stderr=sys.stderr)
File "/usr/lib/python2.6/subprocess.py", line 462, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/tmp/tmp-introspectSg68b5/ClutterJson-0.8', '--introspect-dump=/tmp/tmp-introspectSg68b5/types.txt,/tmp/tmp-introspectSg68b5/dump.xml']' returned non-zero exit status -11
make[2]: *** [ClutterJson-0.8.gir] Error 1
make[2]: Leaving directory `/var/abs/local/seed-related/gir-repository-svn/src/gir-repository-build/gir'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/abs/local/seed-related/gir-repository-svn/src/gir-repository-build'
make: *** [all] Error 2
==> ERROR: Build Failed.
Aborting...
Offline