Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
NetworkManager: make libsoup optional.
View unanswered posts
View posts from last 24 hours

Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message

Joined: 23 Jan 2011
Posts: 46

PostPosted: Mon Mar 24, 2014 1:15 am    Post subject: NetworkManager: make libsoup optional. Reply with quote

Problem: libsoup is a Gnome 3.8 mess which kills my Eclipse 4.2. And it's required by net-misc/networkmanager, which I use on the same machine.

Now, let's look at the code.

static void
nm_connectivity_check_cb (SoupSession *session, SoupMessage *msg, gpointer user_data)
        GSimpleAsyncResult *simple = user_data;
        NMConnectivity *self;
        NMConnectivityPrivate *priv;
        NMConnectivityState new_state;
        const char *nm_header;

        self = NM_CONNECTIVITY (g_async_result_get_source_object (G_ASYNC_RESULT (simple)));
        g_object_unref (self);
        priv = NM_CONNECTIVITY_GET_PRIVATE (self);

        if (SOUP_STATUS_IS_TRANSPORT_ERROR (msg->status_code)) {
                nm_log_info (LOGD_CONCHECK, "Connectivity check for uri '%s' failed with '%s'.",
                             priv->uri, msg->reason_phrase);
                new_state = NM_CONNECTIVITY_LIMITED;
                goto done;

This is the only part where libsoup is used - and it's already ifdef'd.

Now, the configure script is more of a problem:

# Check whether --enable-concheck was given.
if test "${enable_concheck+set}" = set; then :
  enableval=$enable_concheck; enable_concheck=${enableval}

So if I think I don't want to have libsoup on my system, because
a) it's a cludge for lazy people who cant write a HTTP parser (and cant use libcurl) it doesn't even seems to support SSL
b) I dont want a bunch of cludges from Gnome just to get a networkmanager
c) (and I actually don't like it due to it conflicting with Eclipse 4.2's )

- do you think it is a proper idea to a) add valid 'concheck' use flag to networkmanager b) without the flag, disable concheck in configure.
Commit code back to ALSA, save your latency and CPU: rm /usr/bin/pulseaudio;touch /usr/bin/pulseaudio;chattr +i /usr/bin/pulseaudio
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum