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

netifaces2 is highly non-portable #3130

Open
ptribble opened this issue Mar 22, 2025 · 1 comment
Open

netifaces2 is highly non-portable #3130

ptribble opened this issue Mar 22, 2025 · 1 comment
Labels
dependencies Pull requests that update a dependency file enhancement
Milestone

Comments

@ptribble
Copy link

As of Glances 4.3.1, the netifaces dependency has been replaced by netifaces2. Unfortunately, there are a number of problems with netifaces2:

  • It requires rust to build, which is a blocker on less common platforms that don't have rust available (such as some SPARC systems)
  • netifaces2 isn't portable, and fails to build on illumos for example; the code in netifaces2 is highly platform-specific (even if it built, it might not work)

As a result, on Tribblix (an illumos distribution) I've rolled back to Glances 4.3.0.8.

From my experience, the original netifaces might be old but it has the great advantage of actually building and working correctly, I would recommend rolling back the dependency.

@nicolargo
Copy link
Owner

Hi @ptribble, thanks for the report.

netifaces (but also netifaces-plus) compilation fail with GCC >14 and are not compliant with modern operating system (ex: Alpine 3.21 or higher).

I understand the problems with netifaces2 but it is the only maintain alternative for the moment.

If you know other alternative i am open !

Nicolas

@nicolargo nicolargo added enhancement dependencies Pull requests that update a dependency file and removed need investigation labels Apr 6, 2025
@nicolargo nicolargo modified the milestones: Glances 4.3.2, Next releases Apr 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file enhancement
Projects
None yet
Development

No branches or pull requests

2 participants