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 652285 - glib port to interix
glib port to interix
Status: RESOLVED OBSOLETE
Product: glib
Classification: Platform
Component: build
2.28.x
Other other
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2011-06-10 13:02 UTC by Markus Duft
Modified: 2018-05-24 13:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch to make glib compile/run on interix. (20.61 KB, patch)
2011-06-10 13:02 UTC, Markus Duft
needs-work Details | Review

Description Markus Duft 2011-06-10 13:02:12 UTC
Created attachment 189624 [details] [review]
patch to make glib compile/run on interix.

I did some porting to Interix, recently, and i think that other platforms might benefit from the effort too. In the attached patch, appart from making it compile and mostly run on interix, i made IPV6 optional (older interixen don't even define AF_INET6, so....).

Could i ask for a round of reviews for the patch? thanks!
Comment 1 Colin Walters 2011-06-10 13:57:08 UTC
Please break this patch up into parts, preferably like this:

* An initial patch to configure.ac to add whatever new checks are necessary
* Patches to glib/
* Patches to gio/

Each patch should be in "git format-patch" style with a commit message and rationale.  For more information, see:

http://live.gnome.org/GnomeLove/SubmittingPatches
Comment 2 Markus Duft 2011-06-10 14:01:34 UTC
ok, will do this ASAP :)
Comment 3 Colin Walters 2011-06-10 14:07:32 UTC
One drive by:

+++ glib-2.28.6/gio/gioenumtypes.c	2011-06-09 13:57:48 +0200
@@ -646,7 +646,9 @@
         { G_SOCKET_FAMILY_INVALID, "G_SOCKET_FAMILY_INVALID", "invalid" },
         { G_SOCKET_FAMILY_UNIX, "G_SOCKET_FAMILY_UNIX", "unix" },
         { G_SOCKET_FAMILY_IPV4, "G_SOCKET_FAMILY_IPV4", "ipv4" },
+#ifdef G_SOCKET_FAMILY_IPV6
         { G_SOCKET_FAMILY_IPV6, "G_SOCKET_FAMILY_IPV6", "ipv6" },
+#endif
         { 0, NULL, NULL }
       };
       GType g_define_type_id =

I think it's a bad idea to change public API like this.  Rather, functions should accept G_SOCKET_FAMILY_IPV6, but return an error (G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED).
Comment 4 Colin Walters 2011-06-10 14:09:48 UTC
Alternatively, and probably even better is to structure the patches along vertical changes.

For example, a patch to configure.ac that checks for nanosleep and also uses the new #ifdef in glib/gtimer.c.
Comment 5 Matthias Clasen 2014-01-20 01:34:35 UTC
Review of attachment 189624 [details] [review]:

reflecting earlier comments
Comment 6 GNOME Infrastructure Team 2018-05-24 13:10:31 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glib/issues/416.