[MacPorts] #61113: py27-gobject +quartz build failure: implicit declaration of function 'g_desktop_app_info_set_desktop_env'
MacPorts
noreply at macports.org
Wed Sep 16 10:47:31 UTC 2020
#61113: py27-gobject +quartz build failure: implicit declaration of function
'g_desktop_app_info_set_desktop_env'
-------------------------+--------------------
Reporter: jmercouris | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.6.3
Resolution: | Keywords:
Port: py-gobject |
-------------------------+--------------------
Comment (by jmercouris):
I would like to note that I did get it to compile with the following
patch:
{{{
--- gio/unix-types.defs.orig 2020-09-02 13:56:20.000000000 +0200
+++ gio/unix-types.defs 2020-09-02 13:59:41.000000000 +0200
@@ -15,8 +15,8 @@
)
(in-module "giounix")
(parent "GObject")
- (c-name "GDesktopAppInfo")
- (gtype-id "G_TYPE_DESKTOP_APP_INFO")
+ (c-name "GOsxAppInfo")
+ (gtype-id "G_TYPE_OSX_APP_INFO")
)
(define-object FDMessage
--- gio/unix.defs.orig 2020-09-02 13:56:46.000000000 +0200
+++ gio/unix.defs 2020-09-02 13:57:04.000000000 +0200
@@ -31,55 +31,6 @@
)
-
-;; From gdesktopappinfo.h
-
-(define-function desktop_app_info_get_type
- (c-name "g_desktop_app_info_get_type")
- (return-type "GType")
-)
-
-(define-function desktop_app_info_new_from_filename
- (c-name "g_desktop_app_info_new_from_filename")
- (return-type "GDesktopAppInfo*")
- (parameters
- '("const-char*" "filename")
- )
-)
-
-(define-function g_desktop_app_info_new_from_keyfile
- (c-name "g_desktop_app_info_new_from_keyfile")
- (return-type "GDesktopAppInfo*")
- (parameters
- '("GKeyFile*" "key_file")
- )
-)
-
-(define-function desktop_app_info_new
- (c-name "g_desktop_app_info_new")
- (is-constructor-of "GDesktopAppInfo")
- (return-type "GDesktopAppInfo*")
- (parameters
- '("const-char*" "desktop_id")
- )
-)
-
-(define-method get_is_hidden
- (of-object "GDesktopAppInfo")
- (c-name "g_desktop_app_info_get_is_hidden")
- (return-type "gboolean")
-)
-
-(define-function desktop_app_info_set_desktop_env
- (c-name "g_desktop_app_info_set_desktop_env")
- (return-type "none")
- (parameters
- '("const-char*" "desktop_env")
- )
-)
-
-
-
;; From gunixfdmessage.h
(define-function g_unix_fd_message_get_type
--- gio/unix.override.orig 2020-09-02 13:55:46.000000000 +0200
+++ gio/unix.override 2020-09-02 13:59:41.000000000 +0200
@@ -24,7 +24,7 @@
#define NO_IMPORT_PYGOBJECT
#include <pygobject.h>
#include <gio/gio.h>
-#include <gio/gdesktopappinfo.h>
+#include <gio/gosxappinfo.h>
#include <gio/gunixinputstream.h>
#include <gio/gunixmounts.h>
#include <gio/gunixoutputstream.h>
}}}
Not ideal, but perhaps most users do not need these functions.
--
Ticket URL: <https://trac.macports.org/ticket/61113#comment:9>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list