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

Update node_data::remove to use new equals() method #303

Merged
merged 1 commit into from Apr 8, 2015

Conversation

bdutro
Copy link
Contributor

@bdutro bdutro commented Apr 8, 2015

  • Update the call to equals() in node_data::remove() to match the new implementation
  • Add unit test for node::remove() to catch this type of bug in the future

- Update the call to equals() in node_data::remove() to match the new implementation
- Add unit test for node::remove() to catch this type of bug in the future
jbeder added a commit that referenced this pull request Apr 8, 2015
Fix compiler error by updating node_data::remove to use new equals() method.
@jbeder jbeder merged commit 5c390e8 into jbeder:master Apr 8, 2015
@jbeder jbeder mentioned this pull request Oct 8, 2015
@pbeeson
Copy link

pbeeson commented Dec 2, 2016

Any reason why you cannot fix this equals() call in remove() for 0.5.2, so that Ubuntu 16.04 (once it pulls changes) would have a working yaml.cpp out of the box?

@akimd
Copy link

akimd commented Dec 3, 2016

Ping.

@jbeder
Copy link
Owner

jbeder commented Dec 3, 2016

@pbeeson and @akimd what is your question? This has been fixed at HEAD, and will be in the next release.

@akimd
Copy link

akimd commented Dec 4, 2016

Yes, sorry for being so uninformative... I was interrupted when I was about to write.

My problem is that Debian ships 0.5.2 so my application is broken on it. Are there any possible work around for these versions? I'm reluctant to embed a patched version of the guilty header in my software, but... Besides, I don't think I saw a CPP symbol that defines the version of yaml-cpp, something I could use to #if that include.

@pbeeson
Copy link

pbeeson commented Dec 4, 2016

The problem is straightforward. 0.5.2 is broken in that the header won't compile. Current Debian and Ubuntu releases are pegged to 0.5.2.

My solution right now is either to install 0.5.3 on every machine in my building that might use yaml-cpp (we use ROS so that's that every machine) or to patch the use/include/ header for the shipped 0.5.2 release. This is not ideal. Perhaps Debian/Ubuntu need to promote 0.5.3 to their current stable/LTS releases, and I would have hoped the actual software architect would has some influence in that.

@jbeder
Copy link
Owner

jbeder commented Dec 4, 2016

Has anyone asked Debian about this?

@pbeeson
Copy link

pbeeson commented Dec 4, 2016

I put in a request to the Debian package maintainer, but haven't heard back as of yet. Given that nothing that includes the impl header from 0.5.2 will compile, it baffles me that no one has caught this sooner.

@akimd
Copy link

akimd commented Dec 5, 2016

@pbeeson I don't think the header is not that broken: the function node_data::remove is templated, so it's only if you use it that the compilation fails. So you and I are affected because we use it, but most users probably don't remove nodes.

@pbeeson
Copy link

pbeeson commented Dec 6, 2016

@akimd I suggest trying this PPA. It works for me.

https://launchpad.net/~winterheart/+archive/ubuntu/openxcom

@willstott101
Copy link

willstott101 commented Jul 3, 2019

FWIW for those finding this, it looks like this has been patched for 0.5.2 by ubuntu 18.04+ (at least) downstream.

changelog here

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

5 participants