GNOME Bugzilla – Bug 653364
build failure on kfreebsd: Error on line 6 char 104: Invalid UTF-8 encoded text in
Last modified: 2011-06-27 17:35:18 UTC
Version: 3.0.3.0 anjuta ftbfs on kfreebsd-* on Debian: libtool: link: ( cd ".libs" && rm -f "libanjuta-build-basic-autotools.la" && ln -s "../libanjuta-build-basic-autotools.la" "libanjuta-build-basic-autotools.la" ) ../../scripts/builder2schema.pl anjuta-build-basic-autotools-plugin.ui org.gnome.anjuta.build ./ > anjuta-build-basic-autotools-plugin.gschema.xml mv -f anjuta-build-basic-autotools-plugin.gschema.xml org.gnome.anjuta.build.gschema.xml if test -f "org.gnome.anjuta.build.gschema.xml"; then d=; else d="./"; fi; /usr/lib/glib-2.0/glib-compile-schemas --strict --dry-run --schema-file=${d}org.gnome.anjuta.build.gschema.xml && touch org.gnome.anjuta.build.gschema.valid org.gnome.anjuta.build.gschema.xml: Error on line 6 char 104: Invalid UTF-8 encoded text in name - not valid ' å?H'. --strict was specified; exiting. make[4]: *** [org.gnome.anjuta.build.gschema.valid] Error 1 make[4]: Leaving directory `/build/buildd-anjuta_3.0.3.0-1-kfreebsd-amd64-wnfcWQ/anjuta-3.0.3.0/plugins/build-basic-autotools' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/build/buildd-anjuta_3.0.3.0-1-kfreebsd-amd64-wnfcWQ/anjuta-3.0.3.0/plugins' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/build/buildd-anjuta_3.0.3.0-1-kfreebsd-amd64-wnfcWQ/anjuta-3.0.3.0' make[1]: *** [all] Error 2 make[1]: Leaving directory `/build/buildd-anjuta_3.0.3.0-1-kfreebsd-amd64-wnfcWQ/anjuta-3.0.3.0' make: *** [debian/stamp-makefile-build] Error 2 For further details see [1] including a proposed patch by Petr Salinger <Petr.Salinger@seznam.cz>. [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=631469
Created attachment 190631 [details] [review] Skip directories when processing schema files
Review of attachment 190631 [details] [review]: Thanks for your report and the patch. It is working but it is not right. The script builder2schema.pl shouldn't get a directory as argument. This bug was due to a recent change, done by me, allowing to create schemas when Anjuta is built outside the source directory. I have replaced "$(prefs_keyfile)" by "$(srcdir)/$(prefs_keyfile)", the issue is that prefs_keyfile is optional and could be empty. But in this case instead of getting nothing, the script now get the source directory. The error is here.
Created attachment 190697 [details] [review] fix Here is a new patch that is adding the source directory to the key file only if it exists. It should solve this issue and I think it's better. It uses some GNU make extension though. I think it is ok because this syntax is already use elsewhere in Anjuta. Could you check that it is working fine on your system?
Thanks for your quick response. (In reply to comment #3) > Created an attachment (id=190697) [details] [review] > fix > > Here is a new patch that is adding the source directory to the key file only if > it exists. It should solve this issue and I think it's better. > > It uses some GNU make extension though. I think it is ok because this syntax is > already use elsewhere in Anjuta. > > Could you check that it is working fine on your system? This works fine, too. Do you plan to release a version 3.0.4 including this fix?
Thanks for checking this. I have committed the fix in the development version, so it will be available in version 3.1.3. I don't think we will release a version 3.0.4.