Skip to content

Build and package on MSYS2 #505

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

Closed
oscarfv opened this issue Aug 10, 2015 · 6 comments
Closed

Build and package on MSYS2 #505

oscarfv opened this issue Aug 10, 2015 · 6 comments

Comments

@oscarfv
Copy link

oscarfv commented Aug 10, 2015

This is related to #354.

I see some people working with MSYS2 here (@k-takata).

Yesterday I compiled universal-ctags on MSYS2 with configure && make method but the process resulted on an executable with on support for regexs. Once this was activated (invoking configure with LIBS=-lpcreposix or something) the executable crashes when it needs to use that functionality (for --regex-lang= etc). This is the same problem that Exhuberant Ctags 5.8 has. For 5.8, using the Mingw-specific makefile works.

I wonder if there is a method for building Universal Ctags on MSYS and if somebody plans to package it. I can take care of the later, once we have a solid build process.

@k-takata
Copy link
Member

invoking configure with LIBS=-lpcreposix or something

If you want to link with libpcreposix, you must include pcreposix.h instead of regex.h.
You might think that the function prototype of regcomp and regexec are same with GNU regex and pcreposix, but GNU regex's regex_t and pcreposix's regex_t are not compatible.

Added

I compile u-ctags with ./configure --enable-iconv --disable-external-sort && make on MSYS2 (without setting LIBS). This configuration uses bundled regex library.

@oscarfv
Copy link
Author

oscarfv commented Aug 12, 2015

@k-takata : thanks for the tips. I submitted a merge request with a tiny change. Once this is merged, I'll submit a PKGBUILD file to MSYS2.

BTW, the failed tests are something to be concerned about, for a user that is switching from Exuberant Ctags to Universal Ctags? I mean, is Universal Ctags ready for replacing Exuberant Ctags? (In the MSYS2 case, specifically)

@masatake
Copy link
Member

masatake commented Sep 7, 2015

BTW, the failed tests are something to be concerned about, ...

@oscarfv, which test case you are talking about? I and @k-takata have worked hard to fix such failures on windows via AppVeyor. Could you try the latest code?

@oscarfv
Copy link
Author

oscarfv commented Sep 7, 2015

I was thinking of #494, which was closed a few hours ago, not something that I tried.

MSYS2 now has a binary package for universal-ctags.

That binary package was created 6 days ago, based on 80256f4. Do you think it is important to rebuild with the latest code?

@masatake
Copy link
Member

masatake commented Sep 7, 2015

That binary package was created 6 days ago, based on 80256f4. Do you think it is important to rebuild with the latest code?

Yes, a minor bug is fixed.

@oscarfv
Copy link
Author

oscarfv commented Sep 11, 2015

Thanks, as universal-ctags if built from git on MSYS2, it will be rebuilt rather sooner than later. Requesting a new build for solving a minor bug is not worth the trouble.

@oscarfv oscarfv closed this as completed Sep 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants