-
-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace Getopt with GLib option parsing #378
Comments
Did you have an example in mind? I've never had a report of a system on which Enchant won't build owing to getopt. GitHub CI builds it on macOS, Windows and Ubuntu. Having said that, I would happily accept a patch to the |
Hi @rrthomas, yup, Windows with MSVC doesn't have POSIX GNU tools and libraries, here is the traceback:
Making this part of the updates as you move the commands to Vala sounds like a great plan. |
I'd be happy to add support for proprietary toolchains as paid work. Otherwise, please try rrthomas/master where I have added the gnulib |
I would also accept a patch to the GitHub Actions to build Enchant on Windows with MSVC, once it's confirmed working. |
Hi @rrthomas, Here is what I get:
Yup, I can contribute a GitHub Action. |
I don't understand how the build is run here, maybe you can help. In particular, AM_CPPFLAGS = -I$(top_srcdir) $(ISYSTEM)$(top_builddir)/libgnu $(ISYSTEM)$(top_srcdir)/libgnu -I$(top_srcdir)/lib $(GLIB_CFLAGS) $(WARN_CFLAGS) -DG_LOG_DOMAIN='"libenchant"' Note the two occurrences of But I don't see |
Great, a PR that adds a suitable stanza to |
I looked at this more closely on how the build is working on Windows. We are patching in a NMake makefile.mak which is posted here:
So your changes on your fork aren't getting pulled in because we aren't using the bootstrap script (no bash) or GNU Make. This might be a larger project than just replacing Getopt. |
OK, so this is not an Enchant issue. Thanks! |
Reopening, as I will use GLib's command-line parser in the Vala commands. |
Unfortunately, |
Use GLib’s option parsing for enchant but not enchant-lsmod (see #378). This commit also includes updates to the GLib VAPI. Remove enchant_get_user_language from the public API, as it’s now trivial, and was probably not applicable to all applications anyway.
Gvsbuild has a very old version of Enchant from an old XChat fork. Since Getopt isn't very cross-platform, would it be possible to replace it with GLib's command parsing functionality?
The text was updated successfully, but these errors were encountered: