#42 [Patch] Gobject interospection on msys

1.0
closed
Alexx83
None
2014-05-19
2014-05-18
No

Here's a patch to get gobject-interospection to work through msys2

1 Attachments

Related

Tickets: #42

Discussion

  • Alexx83

    Alexx83 - 2014-05-18

    Thanks a lot! Will check it today.

     
  • LRN

    LRN - 2014-05-18

    Which version of Python do you use this with? MSYS-python or W32 CPython (binaries downloaded from python.org)? What problems does this patch fix? How do these problems manifest? Which GCC are you using?
    Also, this:

    os.environ['CC'] = "C:\moluccas\mingw32\bin\gcc.exe"

    is completely bizarre.

     
    Last edit: LRN 2014-05-18
    • Ray Donnelly

      Ray Donnelly - 2014-05-18

      LRN: We provide our own mingw pythons and I assume that is the one that
      should be used here.. Unless the patch is to make gobject introspection
      work as an msys2 library.. Yeah I haven't checked yet..

      Which version of Python do you use this with? MSYS-python or W32 CPython
      (binaries downloaded from python.org)? What problems does this patch fix?
      How do these problems manifest? Which GCC are you using?
      Also, this:

      os.environ['CC'] = "C:\moluccas\mingw32\bin\gcc.exe"
      is completely bizarre.


      Status: open
      Milestone: 1.0
      Created: Sun May 18, 2014 03:55 PM UTC by Zach Thibeau
      Last Updated: Sun May 18, 2014 04:00 PM UTC
      Owner: nobody

      Here's a patch to get gobject-interospection to work through msys2

      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/msys2/tickets/42/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Tickets: #42

  • wowzaman12

    wowzaman12 - 2014-05-18

    probably could be changed easily. But either way I just tested it and it works well. Was able to compile libpeas with it.

     
  • Alexx83

    Alexx83 - 2014-05-18

    There are some issues that need to be solved in patch.

    1. os.environ.get('MSYSTEM') == 'MINGW32'
      Need to handle any MINGW* names.

    2. What is the weird string?
      +os.environ['CC'] = "C:\moluccas\mingw32\bin\gcc.exe"

     
  • wowzaman12

    wowzaman12 - 2014-05-18

    well for the most part it works.
    for 2 Alexx, I guess it's to direct python to use gcc, but at a hardcoded path, being that python being included with msys2, could just use gcc instead of using a path to gcc.

     
    • Ray Donnelly

      Ray Donnelly - 2014-05-18

      If the goal is to make a MSYS2 gobject introspection(as opposed to a
      mingw-w64 one which we've already got) them can you make a PKGBUILD file
      and a merge request from github please?
      On May 18, 2014 5:14 PM, "wowzaman12" wowzaman12@users.sf.net wrote:

      well for the most part it works.
      for 2 Alexx, I guess it's to direct python to use gcc, but at a hardcoded
      path, being that python being included with msys2, could just use gcc
      instead of using a path to gcc.


      Status: open
      Milestone: 1.0
      Created: Sun May 18, 2014 03:55 PM UTC by Zach Thibeau
      Last Updated: Sun May 18, 2014 04:10 PM UTC
      Owner: nobody

      Here's a patch to get gobject-interospection to work through msys2

      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/msys2/tickets/42/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Tickets: #42

      • wowzaman12

        wowzaman12 - 2014-05-18

        No from the looks of it, it's not for msys2 gcc but mingw-w64 gcc really.

         
  • Alexx83

    Alexx83 - 2014-05-18

    Maybe you give us errors that you have without this patch?
    I'm patch nearly every package that need to be builded with object-introspection and maybe just patch you package too?

     
    • wowzaman12

      wowzaman12 - 2014-05-18

      GISCAN Peas-1.0.gir
      Traceback (most recent call last):
      File "C:/msys32/mingw32/bin/g-ir-scanner", line 87, in <module>
      sys.exit(scanner_main(sys.argv))
      File "C:/msys32/mingw32/lib/gobject-introspection/giscanner/scannermain.py", line 479, in scanner_main
      ss = create_source_scanner(options, args)
      File "C:/msys32/mingw32/lib/gobject-introspection/giscanner/scannermain.py", line 397, in create_source_scanner
      ss.parse_files(filenames)
      File "C:/msys32/mingw32/lib/gobject-introspection/giscanner/sourcescanner.py", line 256, in parse_files
      self._parse(headers)
      File "C:/msys32/mingw32/lib/gobject-introspection/giscanner/sourcescanner.py", line 299, in _parse
      stdout=subprocess.PIPE)
      File "C:/msys32/mingw32/lib/python2.7/subprocess.py", line 709, in init
      errread, errwrite)
      File "C:/msys32/mingw32/lib/python2.7/subprocess.py", line 957, in _execute_child
      startupinfo)
      WindowsError: [Error 2] The system cannot find the file specified
      /mingw32/share/gobject-introspection-1.0/Makefile.introspection:153: recipe for target 'Peas-1.0.gir' failed
      make[3]: [Peas-1.0.gir] Error 1
      make[3]: Leaving directory '/home/TheCanadianBacon/Documents/sources/libpeas-1.10.0/libpeas'
      Makefile:513: recipe for target 'all' failed
      make[2]:
      [all] Error 2
      make[2]: Leaving directory '/home/TheCanadianBacon/Documents/sources/libpeas-1.10.0/libpeas'
      Makefile:482: recipe for target 'all-recursive' failed
      make[1]: [all-recursive] Error 1
      make[1]: Leaving directory '/home/TheCanadianBacon/Documents/sources/libpeas-1.10.0'
      Makefile:413: recipe for target 'all' failed
      make:
      [all] Error 2

       
  • LRN

    LRN - 2014-05-18

    I think that right now what you guys need is to hear from Zach Thibeau, the original submitter. Set aside your crystal balls and let him speak for himself.

     
  • Alexx83

    Alexx83 - 2014-05-19
    • status: open --> closed
    • assigned_to: Alexx83