After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 653364 - build failure on kfreebsd: Error on line 6 char 104: Invalid UTF-8 encoded text in
build failure on kfreebsd: Error on line 6 char 104: Invalid UTF-8 encoded te...
Status: RESOLVED FIXED
Product: anjuta
Classification: Applications
Component: core application
3.0.x
Other Linux
: Normal normal
: ---
Assigned To: Naba Kumar
Anjuta maintainers
Depends on:
Blocks:
 
 
Reported: 2011-06-24 19:34 UTC by Michael Biebl
Modified: 2011-06-27 17:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Skip directories when processing schema files (858 bytes, patch)
2011-06-25 00:18 UTC, Michael Biebl
rejected Details | Review
fix (911 bytes, patch)
2011-06-26 14:36 UTC, Sébastien Granjoux
none Details | Review

Description Michael Biebl 2011-06-24 19:34:22 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
Comment 1 Michael Biebl 2011-06-25 00:18:23 UTC
Created attachment 190631 [details] [review]
Skip directories when processing schema files
Comment 2 Sébastien Granjoux 2011-06-26 14:32:55 UTC
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.
Comment 3 Sébastien Granjoux 2011-06-26 14:36:57 UTC
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?
Comment 4 Michael Biebl 2011-06-27 16:26:28 UTC
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?
Comment 5 Sébastien Granjoux 2011-06-27 17:35:18 UTC
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.