Skip to content
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

Enable XML_ATTR_INFO in build #264

Closed
wants to merge 1 commit into from
Closed

Enable XML_ATTR_INFO in build #264

wants to merge 1 commit into from

Conversation

MohammedKhajapasha
Copy link
Contributor

enable XML_ATTR_INFO in build to cover XML_ATTR_INFO in CI

Signed-off-by: Mohammed Khajapasha mohammed.khajapasha@intel.com

Copy link
Member

@hartwork hartwork left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I notice that I'm not 100% sure about these open questions:

  • should the new default be ON or OFF for XML_ATTR_INFO? It's been OFF so far but extending the static .def files would need ON for a default (unless we drop the Visual Studio files build system and only generate those through CMake)
  • how critical is it to get both XML_ATTR_INFO covered by CI (Add CMake/Autotools build options for define XML_ATTR_INFO #244)? I'm tending towards need for coverage. The pull request does not yet do that.
  • should we drop and auto-enable XML_ATTR_INFO code for everyone, instead?

I appreciate your input!

CC @RMJ10 @kwaclaw

${unicode_enabled} \
&& configure_args+=( CPPFLAGS='-DXML_UNICODE -DXML_UNICODE_WCHAR_T' )
&& configure_args+=( CPPFLAGS+='-DXML_UNICODE -DXML_UNICODE_WCHAR_T' )
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That second += looks wrong to me. Does configure support that?

Also gave it a try:

# ./configure CPPFLAGS=X CPPFLAGS+=Y
configure: error: invalid variable name: `CPPFLAGS+'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated review comments and uploaded the change

expat/configure.ac Outdated Show resolved Hide resolved
@MohammedKhajapasha
Copy link
Contributor Author

MohammedKhajapasha commented Jun 22, 2019 via email

@hartwork
Copy link
Member

I thought about this some more and search the internet for expat "XML_ATTR_INFO" as well.
I conclude that no one uses that option publicly as of today. Also the CI has never covered that option before. It does not feel safe to me to just drop support for XML_ATTR_INFO as of today — someone might use it outside the public internet.

In my eyes to go forward we should:

  • Keep XML_ATTR_INFO as a compile time switch for now, and keep it disabled by default
  • Make the CI cover both XML_ATTR_INFO enabled and disabled

This happens to be in line with #244.

I'll review the latest changes on the base of this comment now.

Copy link
Member

@hartwork hartwork left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check my comment at #264 (comment) and the review comments below. Thank you!

expat/CMakeLists.txt Outdated Show resolved Hide resolved
expat/configure.ac Outdated Show resolved Hide resolved
expat/configure.ac Show resolved Hide resolved
expat/coverage.sh Show resolved Hide resolved
expat/lib/libexpat.def Outdated Show resolved Hide resolved
@MohammedKhajapasha
Copy link
Contributor Author

MohammedKhajapasha commented Jul 1, 2019 via email

Copy link
Member

@hartwork hartwork left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty good to me by now, some formatting detail comments below.

Please not that to close #244, these new build flags will need to be used by the CI, which this pull request does not yet do. We can do it in here or in a new pull request after merging, as you like.

Best!

expat/coverage.sh Outdated Show resolved Hide resolved
expat/coverage.sh Outdated Show resolved Hide resolved
expat/coverage.sh Outdated Show resolved Hide resolved
enable XML_ATTR_INFO in build to cover XML_ATTR_INFO in CI

Signed-off-by: Mohammed Khajapasha <mohammed.khajapasha@intel.com>
@MohammedKhajapasha
Copy link
Contributor Author

MohammedKhajapasha commented Jul 2, 2019 via email

hartwork added a commit that referenced this pull request Jul 3, 2019
hartwork added a commit that referenced this pull request Jul 3, 2019
@hartwork
Copy link
Member

hartwork commented Jul 3, 2019

Merged in df83b43 with tiny changes on top, thanks!

@hartwork hartwork closed this Jul 3, 2019
@hartwork hartwork added this to the 2.2.8 milestone Jul 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants