Skip to content

Fix build for igraph v0.10.x#54

Merged
robgjansen merged 3 commits intoshadow:mainfrom
robgjansen:fix-build-igraph
Dec 30, 2023
Merged

Fix build for igraph v0.10.x#54
robgjansen merged 3 commits intoshadow:mainfrom
robgjansen:fix-build-igraph

Conversation

@robgjansen
Copy link
Copy Markdown
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
Copy Markdown
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
@robgjansen robgjansen deleted the fix-build-igraph branch December 30, 2023 14:14
@timwalsh300
Copy link
Copy Markdown

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