diff mbox

gnu: gimp: Fix python plugin.

Message ID 20160820163217.20132-1-iyzsong@gmail.com
State New
Headers show

Commit Message

宋文武 Aug. 20, 2016, 4:32 p.m. UTC
* gnu/packages/gimp.scm (gimp)[arguments]: Add phase to
install 'sitecustomize.py'.
---
 gnu/packages/gimp.scm | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

Comments

Kei Yamashita Aug. 21, 2016, 6:20 p.m. UTC | #1
Hello all,

I was wondering if any other GNOME users encountered a odd bug while
using the Applications menu. Dragging an icon while in the Applications
menu causes GNOME shell to crash for unknown reasons. I'd like to help
with fixing this bug if I can, but I don't know where to start or even
where to look.

I've attached the relevant information I could find from my system in
case it helps at all.
[  899.142390] traps: ..gnome-shell-r[1215] trap int3 ip:7fd81d212ed0 sp:7fff21008100 error:0 in libglib-2.0.so.0.4800.0[7fd81d1c4000+10c000]
Aug 21 13:56:10 localhost vmunix: [  899.142390] traps: ..gnome-shell-r[1215] trap int3 ip:7fd81d212ed0 sp:7fff21008100 error:0 in libglib-2.0.so.0.4800.0[7fd81d1c4000+10c000]
Aug 21 13:56:10 localhost gnome-session-binary[408]: WARNING: Application 'org.gnome.Shell.desktop' killed by signal 5 
Aug 21 13:56:12 localhost dbus[317]: [system] Activating service name='org.freedesktop.GeoClue2' (using servicehelper)
Aug 21 13:56:12 localhost dbus[317]: [system] Successfully activated service 'org.freedesktop.GeoClue2'
Aug 21 13:56:13 localhost dbus[317]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.47" (uid=1000 pid=1382 comm="/gnu/store/vfnc8lv7a5h6sb98qwmk9qi2zbziqkh1-gnome-") interface="org.freedesktop.DBus.ObjectManager" member="GetManagedObjects" error name="(unset)" requested_reply="0" destination=":1.3" (uid=0 pid=326 comm="/gnu/store/c21lmnh3sd79jwi9znm1pz4wibmx2yvh-bluez-")
Leo Famulari Aug. 21, 2016, 7:11 p.m. UTC | #2
On Sun, Aug 21, 2016 at 12:32:17AM +0800, 宋文武 wrote:
> * gnu/packages/gimp.scm (gimp)[arguments]: Add phase to
> install 'sitecustomize.py'.

On #guix, one of the GIMP developers (schumaml) suggest we instead set
PYTHONPATH in the file 'data/environ/default.env':
https://git.gnome.org/browse/gimp/tree/data/environ

The relevant conversation begins here:
https://gnunet.org/bot/log/guix/2016-08-21#T1110898

I don't understand the pros and cons of the two different solutions, so
I'm not suggesting we change how we solve this problem. But, I wanted to
pass on the suggestion from the GIMP developer.
Kei Yamashita Aug. 21, 2016, 8:28 p.m. UTC | #3
Kei Kebreau <kei@openmailbox.org> writes:

> Hello all,
>
> I was wondering if any other GNOME users encountered a odd bug while
> using the Applications menu. Dragging an icon while in the Applications
> menu causes GNOME shell to crash for unknown reasons. I'd like to help
> with fixing this bug if I can, but I don't know where to start or even
> where to look.
>
> I've attached the relevant information I could find from my system in
> case it helps at all.

I just got a gdb backtrace on the crash, following the instructions at
https://wiki.gnome.org/Projects/GnomeShell/Debugging. It is attached to
this email.
GNU gdb (GDB) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
Attaching to process 8786
[New LWP 8790]
[New LWP 8791]
[New LWP 8793]
[New LWP 8795]
[New LWP 8796]
[New LWP 8797]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/libthread_db.so.1".
0x00007f00bd535cdd in poll () from /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/libc.so.6
(gdb) continue
Continuing.
[New Thread 0x7f008ffff700 (LWP 8907)]
[Thread 0x7f008ffff700 (LWP 8907) exited]
[New Thread 0x7f008ffff700 (LWP 8926)]
[New Thread 0x7f00b3fff700 (LWP 8927)]
[New Thread 0x7f008f3ad700 (LWP 8928)]
[New Thread 0x7f008ebac700 (LWP 8929)]
[Thread 0x7f008f3ad700 (LWP 8928) exited]
[Thread 0x7f00b3fff700 (LWP 8927) exited]
[Thread 0x7f008ebac700 (LWP 8929) exited]

Thread 1 "..gnome-shell-r" received signal SIGTRAP, Trace/breakpoint trap.
0x00007f00bf47aed0 in g_logv () from /gnu/store/l1s4cw9g58hmcpd2qgbckfl228143qzx-glib-2.48.0/lib/libglib-2.0.so.0
(gdb) t a a bt

Thread 9 (Thread 0x7f008ffff700 (LWP 8926)):
#0  0x00007f00bd53a8a9 in syscall () from /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/libc.so.6
#1  0x00007f00bf4b7492 in g_cond_wait_until () from /gnu/store/l1s4cw9g58hmcpd2qgbckfl228143qzx-glib-2.48.0/lib/libglib-2.0.so.0
#2  0x00007f00bf44a259 in g_async_queue_pop_intern_unlocked () from /gnu/store/l1s4cw9g58hmcpd2qgbckfl228143qzx-glib-2.48.0/lib/libglib-2.0.so.0
#3  0x00007f00bf44a84b in g_async_queue_timeout_pop () from /gnu/store/l1s4cw9g58hmcpd2qgbckfl228143qzx-glib-2.48.0/lib/libglib-2.0.so.0
#4  0x00007f00bf49a78c in g_thread_pool_thread_proxy () from /gnu/store/l1s4cw9g58hmcpd2qgbckfl228143qzx-glib-2.48.0/lib/libglib-2.0.so.0
#5  0x00007f00bf499d45 in g_thread_proxy () from /gnu/store/l1s4cw9g58hmcpd2qgbckfl228143qzx-glib-2.48.0/lib/libglib-2.0.so.0
#6  0x00007f00befa7434 in start_thread () from /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/libpthread.so.0
#7  0x00007f00bd53ed8d in clone () from /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/libc.so.6

Thread 7 (Thread 0x7f00b1de9700 (LWP 8797)):
#0  0x00007f00befad07f in pthread_cond_wait@@GLIBC_2.3.2 () from /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/libpthread.so.0
#1  0x00007f00bcbbd094 in PR_WaitCondVar () from /gnu/store/vhib3yw12yk8dg5ns4mdkijp3f9pqb0f-nspr-4.12/lib/libnspr4.so
#2  0x00007f00ccbbbd9e in js::SourceCompressorThread::compressorThread(void*) ()
   from /gnu/store/dvk7wp9k9c8p9px7aii1psmhqnpjpvg8-mozjs-24.2.0/lib/libmozjs-24.so
#3  0x00007f00bcbc4b12 in _pt_root () from /gnu/store/vhib3yw12yk8dg5ns4mdkijp3f9pqb0f-nspr-4.12/lib/libnspr4.so
#4  0x00007f00befa7434 in start_thread () from /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/libpthread.so.0
#5  0x00007f00bd53ed8d in clone () from /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/libc.so.6

Thread 6 (Thread 0x7f00b25ea700 (LWP 8796)):
#0  0x00007f00befad07f in pthread_cond_wait@@GLIBC_2.3.2 () from /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/libpthread.so.0
#1  0x00007f00bcbbd094 in PR_WaitCondVar () from /gnu/store/vhib3yw12yk8dg5ns4mdkijp3f9pqb0f-nspr-4.12/lib/libnspr4.so
#2  0x00007f00ccb49b0e in js::GCHelperThread::threadLoop() () from /gnu/store/dvk7wp9k9c8p9px7aii1psmhqnpjpvg8-mozjs-24.2.0/lib/libmozjs-24.so
#3  0x00007f00bcbc4b12 in _pt_root () from /gnu/store/vhib3yw12yk8dg5ns4mdkijp3f9pqb0f-nspr-4.12/lib/libnspr4.so
#4  0x00007f00befa7434 in start_thread () from /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/libpthread.so.0
#5  0x00007f00bd53ed8d in clone () from /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/libc.so.6

Thread 5 (Thread 0x7f00b2deb700 (LWP 8795)):
#0  0x00007f00bd535cdd in poll () from /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/libc.so.6
#1  0x00007f00ced94e71 in poll_func () from /gnu/store/3a3qhlr9ssczrkjr10jllb01mbdgsijp-pulseaudio-8.0/lib/libpulse.so.0
#2  0x00007f00ced868d1 in pa_mainloop_poll () from /gnu/store/3a3qhlr9ssczrkjr10jllb01mbdgsijp-pulseaudio-8.0/lib/libpulse.so.0
#3  0x00007f00ced86f0e in pa_mainloop_iterate () from /gnu/store/3a3qhlr9ssczrkjr10jllb01mbdgsijp-pulseaudio-8.0/lib/libpulse.so.0
#4  0x00007f00ced86fc0 in pa_mainloop_run () from /gnu/store/3a3qhlr9ssczrkjr10jllb01mbdgsijp-pulseaudio-8.0/lib/libpulse.so.0
#5  0x00007f00ced94dd6 in thread () from /gnu/store/3a3qhlr9ssczrkjr10jllb01mbdgsijp-pulseaudio-8.0/lib/libpulse.so.0
#6  0x00007f00ceb36bc8 in internal_thread_func () from /gnu/store/3a3qhlr9ssczrkjr10jllb01mbdgsijp-pulseaudio-8.0/lib/pulseaudio/libpulsecommon-8.0.so
#7  0x00007f00befa7434 in start_thread () from /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/libpthread.so.0
#8  0x00007f00bd53ed8d in clone () from /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/libc.so.6

Thread 4 (Thread 0x7f00b37f4700 (LWP 8793)):
#0  0x00007f00bd535cdd in poll () from /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/libc.so.6
#1  0x00007f00bf474b34 in g_main_context_iterate.isra () from /gnu/store/l1s4cw9g58hmcpd2qgbckfl228143qzx-glib-2.48.0/lib/libglib-2.0.so.0
#2  0x00007f00bf474c3c in g_main_context_iteration () from /gnu/store/l1s4cw9g58hmcpd2qgbckfl228143qzx-glib-2.48.0/lib/libglib-2.0.so.0
#3  0x00007f00b913a73d in dconf_gdbus_worker_thread () from /gnu/store/grpycqvvcjzadi7bvbc0cwg0xwin4wa1-dconf-0.26.0/lib/gio/modules/libdconfsettings.so
#4  0x00007f00bf499d45 in g_thread_proxy () from /gnu/store/l1s4cw9g58hmcpd2qgbckfl228143qzx-glib-2.48.0/lib/libglib-2.0.so.0
#5  0x00007f00befa7434 in start_thread () from /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/libpthread.so.0
#6  0x00007f00bd53ed8d in clone () from /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/libc.so.6

Thread 3 (Thread 0x7f00b88a3700 (LWP 8791)):
---Type <return> to continue, or q <return> to quit---
#0  0x00007f00bd535cdd in poll () from /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/libc.so.6
#1  0x00007f00bf474b34 in g_main_context_iterate.isra () from /gnu/store/l1s4cw9g58hmcpd2qgbckfl228143qzx-glib-2.48.0/lib/libglib-2.0.so.0
#2  0x00007f00bf474eb2 in g_main_loop_run () from /gnu/store/l1s4cw9g58hmcpd2qgbckfl228143qzx-glib-2.48.0/lib/libglib-2.0.so.0
#3  0x00007f00c1ec64e6 in gdbus_shared_thread_func () from /gnu/store/l1s4cw9g58hmcpd2qgbckfl228143qzx-glib-2.48.0/lib/libgio-2.0.so.0
#4  0x00007f00bf499d45 in g_thread_proxy () from /gnu/store/l1s4cw9g58hmcpd2qgbckfl228143qzx-glib-2.48.0/lib/libglib-2.0.so.0
#5  0x00007f00befa7434 in start_thread () from /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/libpthread.so.0
#6  0x00007f00bd53ed8d in clone () from /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/libc.so.6

Thread 2 (Thread 0x7f00bc696700 (LWP 8790)):
#0  0x00007f00bd535cdd in poll () from /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/libc.so.6
#1  0x00007f00bf474b34 in g_main_context_iterate.isra () from /gnu/store/l1s4cw9g58hmcpd2qgbckfl228143qzx-glib-2.48.0/lib/libglib-2.0.so.0
#2  0x00007f00bf474c3c in g_main_context_iteration () from /gnu/store/l1s4cw9g58hmcpd2qgbckfl228143qzx-glib-2.48.0/lib/libglib-2.0.so.0
#3  0x00007f00bf474c79 in glib_worker_main () from /gnu/store/l1s4cw9g58hmcpd2qgbckfl228143qzx-glib-2.48.0/lib/libglib-2.0.so.0
#4  0x00007f00bf499d45 in g_thread_proxy () from /gnu/store/l1s4cw9g58hmcpd2qgbckfl228143qzx-glib-2.48.0/lib/libglib-2.0.so.0
#5  0x00007f00befa7434 in start_thread () from /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/libpthread.so.0
#6  0x00007f00bd53ed8d in clone () from /gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/libc.so.6

Thread 1 (Thread 0x7f00cfc67980 (LWP 8786)):
#0  0x00007f00bf47aed0 in g_logv () from /gnu/store/l1s4cw9g58hmcpd2qgbckfl228143qzx-glib-2.48.0/lib/libglib-2.0.so.0
#1  0x00007f00bf47b102 in g_log () from /gnu/store/l1s4cw9g58hmcpd2qgbckfl228143qzx-glib-2.48.0/lib/libglib-2.0.so.0
#2  0x00007f00c2ed3a23 in _gdk_x11_display_error_event () from /gnu/store/s6mz9491fmj3fjra8b54y3m6232vrrks-gtk+-3.20.3/lib/libgdk-3.so.0
#3  0x00007f00c2edf259 in gdk_x_error () from /gnu/store/s6mz9491fmj3fjra8b54y3m6232vrrks-gtk+-3.20.3/lib/libgdk-3.so.0
#4  0x00007f00be27bd35 in _XError () from /gnu/store/hikq6xwxa14cxgmyg02aqldmxpf8zrxm-libx11-1.6.3/lib/libX11.so.6
#5  0x00007f00be278dc7 in handle_error () from /gnu/store/hikq6xwxa14cxgmyg02aqldmxpf8zrxm-libx11-1.6.3/lib/libX11.so.6
#6  0x00007f00be278e75 in handle_response () from /gnu/store/hikq6xwxa14cxgmyg02aqldmxpf8zrxm-libx11-1.6.3/lib/libX11.so.6
#7  0x00007f00be279d88 in _XReply () from /gnu/store/hikq6xwxa14cxgmyg02aqldmxpf8zrxm-libx11-1.6.3/lib/libX11.so.6
#8  0x00007f00beb9a9e6 in XFixesGetCursorImage () from /gnu/store/b3qgr0bz1whbx4f7pwxazz5gzk0y5rnw-libxfixes-5.0.1/lib/libXfixes.so.3
#9  0x00007f00c7a9f191 in ensure_xfixes_cursor () from /gnu/store/ydl07b9sfhlqd6y4zl661jmqcvv83wpm-mutter-3.20.1/lib/libmutter.so.0
#10 0x00007f00c7a9f588 in meta_cursor_tracker_get_sprite () from /gnu/store/ydl07b9sfhlqd6y4zl661jmqcvv83wpm-mutter-3.20.1/lib/libmutter.so.0
#11 0x00007f00cf635b8e in shell_util_cursor_tracker_to_clutter ()
   from /gnu/store/vfnc8lv7a5h6sb98qwmk9qi2zbziqkh1-gnome-shell-3.20.1/lib/gnome-shell/libgnome-shell.so
#12 0x00007f00bf74075e in ffi_call_unix64 () from /gnu/store/sncfamh3fjrrdgd950d79g6yml2s6a07-libffi-3.2.1/lib/libffi.so.6
#13 0x00007f00bf73fa29 in ffi_call () from /gnu/store/sncfamh3fjrrdgd950d79g6yml2s6a07-libffi-3.2.1/lib/libffi.so.6
#14 0x00007f00cd66de7a in ?? () from /gnu/store/3r18gkarj1s45dx0l4ybzbs2fbmjq952-gjs-1.44.0/lib/libgjs.so.0
#15 0x00007f00cd66f35f in ?? () from /gnu/store/3r18gkarj1s45dx0l4ybzbs2fbmjq952-gjs-1.44.0/lib/libgjs.so.0
#16 0x00007f00cca2dc4c in js::Invoke(JSContext*, JS::CallArgs, js::MaybeConstruct) ()
   from /gnu/store/dvk7wp9k9c8p9px7aii1psmhqnpjpvg8-mozjs-24.2.0/lib/libmozjs-24.so
#17 0x00007f00cca34356 in Interpret(JSContext*, js::RunState&) () from /gnu/store/dvk7wp9k9c8p9px7aii1psmhqnpjpvg8-mozjs-24.2.0/lib/libmozjs-24.so
#18 0x00007f00cca3a3b8 in js::RunScript(JSContext*, js::RunState&) () from /gnu/store/dvk7wp9k9c8p9px7aii1psmhqnpjpvg8-mozjs-24.2.0/lib/libmozjs-24.so
#19 0x00007f00cca2db2d in js::Invoke(JSContext*, JS::CallArgs, js::MaybeConstruct) ()
   from /gnu/store/dvk7wp9k9c8p9px7aii1psmhqnpjpvg8-mozjs-24.2.0/lib/libmozjs-24.so
#20 0x00007f00ccb3f755 in js_fun_apply(JSContext*, unsigned int, JS::Value*) ()
   from /gnu/store/dvk7wp9k9c8p9px7aii1psmhqnpjpvg8-mozjs-24.2.0/lib/libmozjs-24.so
#21 0x00007f00cca2db5f in js::Invoke(JSContext*, JS::CallArgs, js::MaybeConstruct) ()
   from /gnu/store/dvk7wp9k9c8p9px7aii1psmhqnpjpvg8-mozjs-24.2.0/lib/libmozjs-24.so
#22 0x00007f00cca2dfeb in js::Invoke(JSContext*, JS::Value const&, JS::Value const&, unsigned int, JS::Value*, JS::Value*) ()
   from /gnu/store/dvk7wp9k9c8p9px7aii1psmhqnpjpvg8-mozjs-24.2.0/lib/libmozjs-24.so
#23 0x00007f00ccc87699 in js::jit::DoCallFallback(JSContext*, js::jit::BaselineFrame*, js::jit::ICCall_Fallback*, unsigned int, JS::Value*, JS::MutableHandle<JS::Value>) () from /gnu/store/dvk7wp9k9c8p9px7aii1psmhqnpjpvg8-mozjs-24.2.0/lib/libmozjs-24.so
---Type <return> to continue, or q <return> to quit---
#24 0x00007f00b15e1aa2 in ?? ()
#25 0x00007f00b13604c0 in ?? ()
#26 0x00007ffc205e6bb8 in ?? ()
#27 0x0000000000000004 in ?? ()
#28 0xfff9000000000000 in ?? ()
#29 0x00007f00cd0e6880 in js::jit::CreateThisInfo () from /gnu/store/dvk7wp9k9c8p9px7aii1psmhqnpjpvg8-mozjs-24.2.0/lib/libmozjs-24.so
#30 0x00007f00b1435640 in ?? ()
#31 0x00007f00b15e5b8f in ?? ()
#32 0x0000000000000502 in ?? ()
#33 0x00007ffc205e6c78 in ?? ()
#34 0x0000000002d534c0 in ?? ()
#35 0x0000000000000002 in ?? ()
#36 0x00007ffc205e6c00 in ?? ()
#37 0xfffbff00b13378c0 in ?? ()
#38 0xfffbff00b021eac0 in ?? ()
#39 0xfffbff00b0272180 in ?? ()
#40 0xfffa000000000009 in ?? ()
#41 0x00007ffc205e6cc0 in ?? ()
#42 0x0000000002d534c0 in ?? ()
#43 0x00007f009402a298 in ?? ()
#44 0x0000000000000881 in ?? ()
#45 0xfffa000000000009 in ?? ()
#46 0xfffbff00b0272180 in ?? ()
#47 0xfffbff00b021eac0 in ?? ()
#48 0xfffbff00b13378c0 in ?? ()
#49 0xfffa000000000009 in ?? ()
#50 0xfff9000000000000 in ?? ()
#51 0xfffb000000000000 in ?? ()
#52 0x0000000000000000 in ?? ()
(gdb) call gjs_dumpstack ()
[Thread 0x7f008ffff700 (LWP 8926) exited]
$1 = 19454288
(gdb) quit
A debugging session is active.

	Inferior 1 [process 8786] will be detached.

Quit anyway? (y or n) y
Detaching from program: /gnu/store/vfnc8lv7a5h6sb98qwmk9qi2zbziqkh1-gnome-shell-3.20.1/bin/..gnome-shell-real-real, process 8786
k@asmodai ~ [env]$ exit
=?utf-8?B?5a6L5paH5q2m?= Aug. 22, 2016, 11:33 a.m. UTC | #4
Leo Famulari <leo@famulari.name> writes:

> On Sun, Aug 21, 2016 at 12:32:17AM +0800, 宋文武 wrote:
>> * gnu/packages/gimp.scm (gimp)[arguments]: Add phase to
>> install 'sitecustomize.py'.
>
> On #guix, one of the GIMP developers (schumaml) suggest we instead set
> PYTHONPATH in the file 'data/environ/default.env':
> https://git.gnome.org/browse/gimp/tree/data/environ
>
> The relevant conversation begins here:
> https://gnunet.org/bot/log/guix/2016-08-21#T1110898
>
> I don't understand the pros and cons of the two different solutions, so
> I'm not suggesting we change how we solve this problem. But, I wanted to
> pass on the suggestion from the GIMP developer.

Oh, thanks.  Actually, I first tried to use an environ file, but couldn't
make it works...
Andy Wingo Aug. 26, 2016, 10:53 a.m. UTC | #5
On Sun 21 Aug 2016 20:20, Kei Kebreau <kei@openmailbox.org> writes:

> I was wondering if any other GNOME users encountered a odd bug while
> using the Applications menu. Dragging an icon while in the Applications
> menu causes GNOME shell to crash for unknown reasons. I'd like to help
> with fixing this bug if I can, but I don't know where to start or even
> where to look.

I always thought this was because we were missing some SVG icon for some
reason, possibly because the gdk-pixbuf that the shell uses doesn't have
rsvg support, or something.  Can you check your .xsession-errors to see
if you get a warning about this?

I would certainly love to fix this irritating bug.

Andy
diff mbox

Patch

diff --git a/gnu/packages/gimp.scm b/gnu/packages/gimp.scm
index 7e0b54a..6540990 100644
--- a/gnu/packages/gimp.scm
+++ b/gnu/packages/gimp.scm
@@ -141,7 +141,23 @@  buffers.")
     (arguments
      '(#:configure-flags (list (string-append "--with-html-dir="
                                               (assoc-ref %outputs "doc")
-                                              "/share/gtk-doc/html"))))
+                                              "/share/gtk-doc/html"))
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'install 'install-sitecustomize.py
+           ;; Install 'sitecustomize.py' into gimp's python directory to
+           ;; add pygobject and pygtk to pygimp's search path.
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let* ((pythonpath (getenv "PYTHONPATH"))
+                    (out        (assoc-ref outputs "out"))
+                    (sitecustomize.py
+                     (string-append
+                      out "/lib/gimp/2.0/python/sitecustomize.py")))
+               (call-with-output-file sitecustomize.py
+                 (lambda (port)
+                   (format port "import site~%")
+                   (format port "for dir in '~a'.split(':'):~%" pythonpath)
+                   (format port "    site.addsitedir(dir)~%")))))))))
     (inputs
      `(("babl" ,babl)
        ("glib" ,glib)