Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 503968 - media-sound/gpodder-3.6.0 - gpodder: No network connection
Summary: media-sound/gpodder-3.6.0 - gpodder: No network connection
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-03-09 09:19 UTC by sul
Modified: 2014-03-15 10:19 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sul 2014-03-09 09:19:43 UTC
+++ This bug was initially created as a clone of Bug #448466 +++

Just a version bump request

Hi,

I filled a bug on gpodder tracker : https://bugs.gpodder.org/show_bug.cgi?id=1730#c24.

Since update, gpodder always displays a message "No network connection".

Here changes that i made to make it works:

diff --git a/src/gpodder/util.py b/src/gpodder/util.py
index 076f6aa..e9a80bf 100644
--- a/src/gpodder/util.py
+++ b/src/gpodder/util.py
@@ -1703,6 +1703,11 @@ def unix_get_active_interfaces():
         if b:
             yield b.group(1)
 
+    # fix gentoo
+    for interface, state in re.findall('(\\w+):.*<([A-Z,]+)>', stdout):
+        if interface != 'lo' and 'UP' in state.split(','):
+            yield interface
+
 
 def connection_available():
     """Check if an Internet connection is available
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-03-09 15:21:41 UTC
Er, so is this about a patch against 3.6.0 or about a version bump to 3.6.1?
Comment 2 sul 2014-03-09 16:06:56 UTC
Yes, it's about a patch against 3.6.0. Currently, gpodder can't work.

note: maybe it works with sys-apps/iproute2, as commented on bug 448466 comment 5.
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2014-03-13 08:55:41 UTC
So, gpodder starts working if you enable USE="old-output" in sys-apps/net-tools?
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2014-03-13 08:59:31 UTC
(In reply to Samuli Suominen from comment #3)
> So, gpodder starts working if you enable USE="old-output" in
> sys-apps/net-tools?

asking because I'll propably end up adding a dependency like...

|| ( sys-apps/iproute2 sys-apps/net-tools[old-output] )

...to the ebuild until the patch gets reviewed and applied by upstream

and yes indeed, Gentoo's ifconfig has different output from eg. Debian's,
there is no proper upstream for net-tools, so I guess you could call the
net-tools package in Gentoo a fork
the output changed slightly when a bug was fixed that involved it, the
same bug is present in those other distributions ifconfig too, it's just
unfixed there, and thus, you have different outputs
Comment 5 sul 2014-03-13 20:57:06 UTC
(In reply to Samuli Suominen from comment #3)
> So, gpodder starts working if you enable USE="old-output" in
> sys-apps/net-tools?

Well, I added new flag for net-tools and re-emerge it, but gpodder still doesn't work.
Now I have the same output on debian and gentoo, but it doesn't match with this pattern: (\\w+):.*status: active$

The only way to solve this issue on linux seems to add a dependency with sys-apps/iproute2 package.
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2014-03-14 06:29:42 UTC
added iproute2 dep to ebuild so now 'ip' is used

could you share your test results in the upstream bug? provide him with different ifconfig outputs?
Comment 7 sul 2014-03-15 10:19:40 UTC
Ok, it works now with iproute2. Thank you.