Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 894448 - dev-python/netifaces-0.11.0-r1 fails to compile (MUSL-CLANG-SYSTEM): netifaces.c:1808:9: error: incompatible pointer to integer conversion initializing int with an expression of type void [-Wint-conversion]
Summary: dev-python/netifaces-0.11.0-r1 fails to compile (MUSL-CLANG-SYSTEM): netiface...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2023-02-14 20:40 UTC by Agostino Sarubbo
Modified: 2024-01-06 14:28 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,52.09 KB, text/plain)
2023-02-14 20:40 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2023-02-14 20:40:07 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-python/netifaces-0.11.0-r1 fails to compile (MUSL-CLANG-SYSTEM).
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
(MUSL-CLANG-SYSTEM) in the summary means that bug was found on a machine that runs MUSL libc + clang16 but this bug MAY or MAY NOT BE related to musl/clang16.
Comment 1 Agostino Sarubbo gentoo-dev 2023-02-14 20:40:09 UTC
Created attachment 851150 [details]
build.log

build log and emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-15 02:28:16 UTC
Repo upstream is archived.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-02-15 07:19:09 UTC
If only it didn't have half a dozen revdeps, sigh.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-02-15 10:44:25 UTC
I think this is musl-specific.

So apparently there's a fork [1,2].  However, it looks like not the best kind of fork, and its maintainer recommends using dev-python/ifaddr anyway.  Not sure if it's functionally equivalent though.

[1] https://pypi.org/project/netifaces-plus/
[2] https://github.com/tsukumijima/netifaces-plus
Comment 5 Larry the Git Cow gentoo-dev 2024-01-06 14:28:06 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f12d5a41f4c84db8a8abe77c4572f340f5724a6

commit 2f12d5a41f4c84db8a8abe77c4572f340f5724a6
Author:     Brahmajit Das <brahmajit.xyz@gmail.com>
AuthorDate: 2023-08-03 18:55:14 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2024-01-06 14:25:32 +0000

    dev-python/netifaces: Fix incompatible pointer to integer conversion
    
    Closes: https://bugs.gentoo.org/894448
    Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/32130
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 .../files/netifaces-0.11.0-musl-clang16-null.patch | 21 +++++++++++++++
 dev-python/netifaces/netifaces-0.11.0-r2.ebuild    | 30 ++++++++++++++++++++++
 2 files changed, 51 insertions(+)