写在前面: 本文希望通过一个具体的修改编译安装Ubuntu系统软件包的过程 帮助在编译安装时遇到类似问题的盆友解决问题.
恩, 首先呢, 这个问题仅仅针对启用了 ppa:xorg-edgers/ppa 的 alpha tester 盆友…
这个悲剧已经有两个多月(以上)的历史拉(因为两个多月前Felix才忍不住去report了), 我report的错误参见: https://bugs.launchpad.net/ubuntu/+source/pixman/+bug/623272
不过某位大大(Peter Clifton)给出了解决方案, 这里简单解释一下…
首先获得当前版本的notify-osd的源代码:
1 |
sudo apt-get source notify-osd |
完成后进入目录, 把下面的patch存成文件 然后用patch命令应用上去:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
=== modified file 'src/tile.c' --- src/tile.c 2009-07-31 11:07:29 +0000 +++ src/tile.c 2010-12-06 00:24:55 +0000 @@ -180,7 +180,7 @@ // top right cairo_matrix_init_scale (&matrix, -1.0f, 1.0f); - cairo_matrix_translate (&matrix, -width, 0.0f); + cairo_matrix_translate (&matrix, -1.0f * width, 0.0f); cairo_pattern_set_matrix (pattern, &matrix); cairo_rectangle (cr, width - pad_width, @@ -193,7 +193,7 @@ // bottom right cairo_matrix_init_scale (&matrix, -1.0f, -1.0f); - cairo_matrix_translate (&matrix, -width, -height); + cairo_matrix_translate (&matrix, -1.0f * width, -1.0f * height); cairo_pattern_set_matrix (pattern, &matrix); cairo_rectangle (cr, pad_width, @@ -206,7 +206,7 @@ // bottom left cairo_matrix_init_scale (&matrix, 1.0f, -1.0f); - cairo_matrix_translate (&matrix, 0.0f, -height); + cairo_matrix_translate (&matrix, 0.0f, -1.0f * height); cairo_pattern_set_matrix (pattern, &matrix); cairo_rectangle (cr, x, |
然后
1 |
patch -p1 -i xxx.patch |