You are not logged in.

#1 2012-07-18 03:11:22

nankura
Member
Registered: 2011-08-02
Posts: 166

[SOLVED]awn-extras-applets wont compile

hey guys im trying to install awn-extras-applets via yaourt and it doesnt compile, it starts and then just stops half way asking me to restart the build process. though avant-window-navigator goes fine

heres the compile messages

         Avant Window Navigator Extras 0.4.0
         ===================================

                   prefix:   /usr

             Vala Support:   yes

           WebKit Support:   webkit-1.0

        XULRunner Support:   no

Making all in applets
Making all in maintained/animal-farm
Generating and caching the translation database
Merging translations into animal-farm.desktop.
Making all in maintained/awnterm
  CC    awn-terminal.o
In file included from ./keybinder.h:27:0,
                 from awn-terminal.c:40:
/usr/include/glib-2.0/glib/gtypes.h:28:2: error: #error "Only <glib.h> can be included directly."
In file included from awn-terminal.c:41:0:
/usr/include/glib-2.0/glib/gi18n.h:28:0: warning: "_" redefined [enabled by default]
In file included from awn-terminal.c:37:0:
/usr/include/glib-2.0/glib/gi18n-lib.h:32:0: note: this is the location of the previous definition
In file included from awn-terminal.c:41:0:
/usr/include/glib-2.0/glib/gi18n.h:29:0: warning: "Q_" redefined [enabled by default]
In file included from awn-terminal.c:37:0:
/usr/include/glib-2.0/glib/gi18n-lib.h:33:0: note: this is the location of the previous definition
In file included from awn-terminal.c:41:0:
/usr/include/glib-2.0/glib/gi18n.h:31:0: warning: "C_" redefined [enabled by default]
In file included from awn-terminal.c:37:0:
/usr/include/glib-2.0/glib/gi18n-lib.h:35:0: note: this is the location of the previous definition
awn-terminal.c: In function 'awn_terminal_applet_create_new_tab':
awn-terminal.c:885:2: warning: 'vte_terminal_fork_command' is deprecated (declared at /usr/include/vte-0.0/vte/vtedeprecated.h:82) [-Wdeprecated-declarations]
awn-terminal.c: In function 'awn_terminal_applet_exited_cb':
awn-terminal.c:1035:3: warning: 'vte_terminal_fork_command' is deprecated (declared at /usr/include/vte-0.0/vte/vtedeprecated.h:82) [-Wdeprecated-declarations]
make[4]: *** [awn-terminal.lo] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Makepkg was unable to build awn-extras-applets.
==> Restart building awn-extras-applets ? [y/N]

im also having a problem when starting avant with the terminal. it says gtk warning and no protocal

heres the error

avant-window-navigator
No protocol specified
No protocol specified

(avant-window-navigator:5464): Gtk-WARNING **: cannot open display: :0

All of this is in virtualbox. so that might be causing an issue im not sure and openbox, i also tried the bzr versions and it wont connect to the bazaar server

Last edited by nankura (2012-07-20 22:58:48)

Offline

#2 2012-07-18 13:19:33

nankura
Member
Registered: 2011-08-02
Posts: 166

Re: [SOLVED]awn-extras-applets wont compile

anyone know a way i can get the AWN Extra applets? seriously, ive asked this twice and yes ive read the wiki and all the guides for archlinux and searched the forums, i tried the glib fix and setting the proper files in the AUR builds even

Offline

#3 2012-07-19 16:00:00

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: [SOLVED]awn-extras-applets wont compile

I can only say that the fix suggested on aur worked for me a month ago, when i compiled the extras-applets the last time.
It seems there are multiple problems with the Pkgbuild now.

for file in $(find -name '*.c' -or -name '*.h'); do
sed -i 's|#include <glib/[^>]*>|#include <glib.h>|' $file
done

To give a more general recommendation do not use yaourt if there are problems with Pkgbuilds.
You would want to use a downloader like cower and makepkg instead.

Offline

#4 2012-07-20 22:57:29

nankura
Member
Registered: 2011-08-02
Posts: 166

Re: [SOLVED]awn-extras-applets wont compile

this was fixed by doing the following to the pkgbuild

after the line

  sed -i 's/async(\"python \"/async(\"python2 \"/' applets/maintained/shiny-switcher/shinyswitcherapplet.c 

add in

  sed -i 's|glib/g.*\.h|glib.h|' applets/maintained/awnterm/*
  sed -i 's|glib/g.*\.h|glib.h|' applets/unmaintained/awnsystemmonitor/*
  sed -i 's|glib/g.*\.h|glib.h|' applets/maintained/notification-daemon/*
  sed -i 's|glib/g.*\.h|glib.h|' applets/unmaintained/main-menu/*

and then performaning makepkg -si

I found the fix on the forum after hours of searching ( yea i know ) , i cant remember which post it was

Thanks guys

Last edited by nankura (2012-07-20 22:58:27)

Offline

#5 2012-11-07 08:37:54

jackun
Member
Registered: 2012-11-07
Posts: 2

Re: [SOLVED]awn-extras-applets wont compile

Dumping terminal applet patch here:

--- awn-extras-0.4.0/applets/maintained/awnterm/awn-terminal.c	2012-10-18 15:26:16.110686193 +0300
+++ awn-extras-0.4.0.new/applets/maintained/awnterm/awn-terminal.c	2012-10-18 15:31:26.179060476 +0300
@@ -882,7 +880,11 @@
 	g_return_if_fail (self != NULL);
 	terminal = g_object_ref_sink ((VteTerminal*) vte_terminal_new ());
 	vte_terminal_set_emulation (terminal, "xterm");
-	vte_terminal_fork_command (terminal, NULL, NULL, NULL, "~/", FALSE, FALSE, FALSE);
+	char *startterm[2]={0,0};
+	startterm[0]=vte_get_user_shell();
+	vte_terminal_fork_command_full(VTE_TERMINAL(terminal),
+		VTE_PTY_NO_LASTLOG | VTE_PTY_NO_UTMP | VTE_PTY_NO_WTMP,
+		"~/", startterm, NULL, 0, NULL, NULL, NULL, NULL);
 	if (self->priv->_background_image != NULL) {
 		vte_terminal_set_background_image_file (terminal, self->priv->_background_image);
 	}
@@ -1032,7 +1032,11 @@
 		gtk_widget_show_all ((GtkWidget*) self->priv->dialog);
 	} else {
 		vte_terminal_reset (terminal, TRUE, TRUE);
-		vte_terminal_fork_command (terminal, NULL, NULL, NULL, "~/", FALSE, FALSE, FALSE);
+		char *startterm[2]={0,0};
+		startterm[0]=vte_get_user_shell();
+		vte_terminal_fork_command_full(VTE_TERMINAL(terminal),
+			VTE_PTY_NO_LASTLOG | VTE_PTY_NO_UTMP | VTE_PTY_NO_WTMP,
+			"~/", startterm, NULL, 0, NULL, NULL, NULL, NULL);
 		gtk_widget_hide ((GtkWidget*) self->priv->dialog);
 	}
 }

Offline

Board footer

Powered by FluxBB