Fwd: gsettings-desktop-schemas introspection error

Juan Rafael García Blanco juanrgar at gmail.com
Sat May 4 04:52:54 PDT 2013


Hi,

I answer myself. This error is due to g-ir-scanner setting a default CC path to a non-existent binary. Setting the environment variable CC solves this issue, as it is pointed out in the GTK3 Portfile.

Best regards,
Juan.

Begin forwarded message:

> From: Juan Rafael García Blanco <juanrgar at gmail.com>
> Date: May 2, 2013 2:04:03 PM GMT+02:00
> To: macports-dev at lists.macosforge.org
> Subject: gsettings-desktop-schemas introspection error
> 
> Hi,
> 
> This is my first post, and my first attempt to write a Portfile. I'm trying to port gsettings-desktop-schemas. At first, I was not able to manage the port command to start downloading the source file; but after changing the macports user to 'root', it worked. Now I'm stuck with a compile error related to introspection of gobjects:
> 
> Making all in headers
>  GISCAN GDesktopEnums-3.0.gir
> Traceback (most recent call last):
>  File "/opt/local/bin/g-ir-scanner", line 46, in <module>
>    sys.exit(scanner_main(sys.argv))
>  File "/opt/local/lib/gobject-introspection/giscanner/scannermain.py", line 452, in scanner_main
>    ss = create_source_scanner(options, args)
>  File "/opt/local/lib/gobject-introspection/giscanner/scannermain.py", line 373, in create_source_scanner
>    ss.parse_files(filenames)
>  File "/opt/local/lib/gobject-introspection/giscanner/sourcescanner.py", line 251, in parse_files
>    self._parse(headers)
>  File "/opt/local/lib/gobject-introspection/giscanner/sourcescanner.py", line 293, in _parse
>    stdout=subprocess.PIPE)
>  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 679, in __init__
>    errread, errwrite)
>  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1249, in _execute_child
>    raise child_exception
> OSError: [Errno 2] No such file or directory
> make[1]: *** [GDesktopEnums-3.0.gir] Error 1
> make: *** [all-recursive] Error 1
> 
> I know I can compile it with introspection option disabled, but I'd like to compile it with this option enabled, unless there is a known problem that prevents it to work.
> 
> Thank you very much in advance.
> 
> Best regards,
> Juan.



More information about the macports-dev mailing list