[opensuse-gnome] Error with buildservice twhen building patched Nautilus
Dear All, I have been trying to build a version on Nautilus-Elementary for OpenSuse, starting fromt he Mandriva packages available here: http://suse-art.org/content/show.php/Nautilus-Elementary+Mandriva+RPM?conten... Basically, I took the normal spec file of the SuSe nautilus package and added the lementary patch from the Mdv rpm (with almost no modifications). The resulting rpm builds and works perfectly on my system. However, when I tried to build the packages with the build service I get this error: E: nautilus 64bit-portability-issue nautilus-mime-actions.c:1480 SysRq : Power Off Power down. Now, my programming skills re not bad, but not so advanced. The problem lies in this function: void launch_gnome_app_install_mimetype(GdkScreen *screen, NautilusFile *file, char *uri) { char *qmimetype, *quri, *qduri, *command; if (!screen) screen = gdk_display_get_default_screen(gdk_display_get_default ()); qmimetype = g_shell_quote (nautilus_file_info_get_mime_type (file)); quri = g_shell_quote (uri); command = g_strconcat("gnome-app-install --mime-type=", qmimetype, " ", quri, (char*)0 /* NB NULL is wrong */); g_free (qmimetype); g_free (quri); g_free (qduri); //eel_gnome_shell_execute_on_screen (command, screen); gdk_spawn_command_line_on_screen (screen, command, NULL); g_free (command); } This line is causing the error: qmimetype = g_shell_quote (nautilus_file_info_get_mime_type (file)); Can someone please help me to debug it? Or at least explain to me the nature of the error? My goal is to create an OBS repo for the elementary stuff, and this is one of the last packages that I must build. BTW would there really be an interest in such a repository? I am doing it mainly for myself but I would feel encouraged if others are interested. Thanks in advance Valerio -- To unsubscribe, e-mail: opensuse-gnome+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-gnome+help@opensuse.org
Some more information. The function patches (on debian) the following bug:
http://www.mail-archive.com/debian-bugs-closed@lists.debian.org/msg156644.ht...
OpenSuse does not seem to have this patch.
If I revert the patch, the package compiles in OBS. I should not lose
too much. Until I (or someone) comes up with a fix, I am going to
leave the function out
Valerio
On Fri, Aug 27, 2010 at 1:32 PM, Valerio Mariani
Dear All,
I have been trying to build a version on Nautilus-Elementary for OpenSuse, starting fromt he Mandriva packages available here:
http://suse-art.org/content/show.php/Nautilus-Elementary+Mandriva+RPM?conten...
Basically, I took the normal spec file of the SuSe nautilus package and added the lementary patch from the Mdv rpm (with almost no modifications). The resulting rpm builds and works perfectly on my system. However, when I tried to build the packages with the build service I get this error:
E: nautilus 64bit-portability-issue nautilus-mime-actions.c:1480 SysRq : Power Off Power down.
Now, my programming skills re not bad, but not so advanced. The problem lies in this function:
void launch_gnome_app_install_mimetype(GdkScreen *screen, NautilusFile *file, char *uri) { char *qmimetype, *quri, *qduri, *command; if (!screen) screen = gdk_display_get_default_screen(gdk_display_get_default ());
qmimetype = g_shell_quote (nautilus_file_info_get_mime_type (file)); quri = g_shell_quote (uri); command = g_strconcat("gnome-app-install --mime-type=", qmimetype, " ", quri, (char*)0 /* NB NULL is wrong */); g_free (qmimetype); g_free (quri); g_free (qduri);
//eel_gnome_shell_execute_on_screen (command, screen); gdk_spawn_command_line_on_screen (screen, command, NULL); g_free (command); }
This line is causing the error:
qmimetype = g_shell_quote (nautilus_file_info_get_mime_type (file));
Can someone please help me to debug it? Or at least explain to me the nature of the error? My goal is to create an OBS repo for the elementary stuff, and this is one of the last packages that I must build.
BTW would there really be an interest in such a repository? I am doing it mainly for myself but I would feel encouraged if others are interested.
Thanks in advance
Valerio
-- To unsubscribe, e-mail: opensuse-gnome+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-gnome+help@opensuse.org
On 08/27/2010 at 1:32 PM, Valerio Mariani
wrote: Dear All, I have been trying to build a version on Nautilus-Elementary for OpenSuse, starting fromt he Mandriva packages available here:
http://suse-art.org/content/show.php/Nautilus-Elementary+Mandriva+RPM?conten t=128727
Basically, I took the normal spec file of the SuSe nautilus package and added the lementary patch from the Mdv rpm (with almost no modifications). The resulting rpm builds and works perfectly on my system. However, when I tried to build the packages with the build service I get this error:
E:nautilus64bit-portability-issuenautilus-mime-actions.c:1480 SysRq:PowerOff Powerdown.
Hi, I suggest you read higher up in the log file. Look for nautilus-mime-actions.c:1480 and most likely you will find an 'implicit declaration' of something there. The 'problem' in this case is most likely that either a) a header is not being included, thus the function unknown b) the function has been deprecated In case of b, it might be possible to instruct configure to allow deprecated symbols, but it would be better to actually rewrite the patch in this case to not use them at all. Hth, Dominique -- To unsubscribe, e-mail: opensuse-gnome+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-gnome+help@opensuse.org
participants (2)
-
Dominique Leuenberger
-
Valerio Mariani