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

Fix build for igraph v0.10.x #54

Merged
merged 3 commits into from
Dec 30, 2023
Merged

Conversation

robgjansen
Copy link
Member

@robgjansen robgjansen commented Dec 30, 2023

This fixes the tgen build on systems with igraph library versions >= 0.10.0. We no longer need to use workarounds to install older version from backports or previous release repositories.

The general strategy here was to implement the tgen code according to the newer igraph api changes from v0.10.x, and then set up the messy compat definitions in tgen-igraph-compat.h that we can eventually just delete if we ever decide we no longer want to support igraph versions older than v0.10.0.

We also stop setting the C attribute table multiple times during program execution, and just sets it once at program startup as explained in #44 (comment).

Fixes #44

@robgjansen robgjansen added the bug Something isn't working label Dec 30, 2023
@robgjansen robgjansen self-assigned this Dec 30, 2023
@robgjansen robgjansen changed the title Fix build igraph Fix build for igraph v0.10.x Dec 30, 2023
@robgjansen robgjansen force-pushed the fix-build-igraph branch 2 times, most recently from b875bdf to 434623e Compare December 30, 2023 01:59
Copy link
Contributor

@stevenengler stevenengler left a comment

Choose a reason for hiding this comment

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

🎉

@robgjansen robgjansen merged commit 1116e63 into shadow:main Dec 30, 2023
13 checks passed
@robgjansen robgjansen deleted the fix-build-igraph branch December 30, 2023 14:14
@timwalsh300
Copy link

I appreciate the work that you all do!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Doesn't build against igraph 0.10.3 (default version on fedora 38 and debian 12)
3 participants