LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 3170|回复: 43

请教一下debian下的cairo等等怎样打cleartype或者是ubuntu补丁

[复制链接]
发表于 2009-3-14 16:37:41 | 显示全部楼层 |阅读模式
我是一个gentoo用户,现在我想装一个debian互相补充,我记得好像debian的cairo, freetype等是没有打过补丁的。 没有补丁效果肯定不如别的distro好,比较关心这个问题,在gentoo上一直都是用patch过的。请问大家有没有什么方法给debian的几个相关的东西打上补丁,或者那里有已经打好的二进制包。debian下自己打包我不太熟悉。呵呵。
发表于 2009-3-14 17:58:39 | 显示全部楼层
cat {0,1,2,3,4}.bz2 > cleartype.tar.bz2

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2009-3-14 18:01:26 | 显示全部楼层
用 apt-build

apt-build --patch PATCH_PATH install libcairo2
回复 支持 反对

使用道具 举报

发表于 2009-3-15 08:37:53 | 显示全部楼层
Post by aiezue;1960847
我是一个gentoo用户,现在我想装一个debian互相补充,我记得好像debian的cairo, freetype等是没有打过补丁的。 没有补丁效果肯定不如别的distro好,比较关心这个问题,在gentoo上一直都是用patch过的。请问大家有没有什么方法给debian的几个相关的东西打上补丁,或者那里有已经打好的二进制包。debian下自己打包我不太熟悉。呵呵。


有一点要注意的,补丁如非软件自身官方发出的,发行版跟发行版之间未必能通用
回复 支持 反对

使用道具 举报

发表于 2009-3-15 22:04:26 | 显示全部楼层
3楼

请问
  1. $ sudo apt-build --noupdate --patch /mnt/etch/data/cleartype-rebuild/apt-build/freetype-2.3.7-subpixel-disable-quantization.diff install libfreetype6                                                                       
  2. -----> Installing build dependencies (for freetype) <-----                                                                  
  3. Reading package lists... Done                                                                                                
  4. Building dependency tree                                                                                                     
  5. Reading state information... Done                                                                                            
  6. 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.                                                               
  7. -----> Downloading source freetype (2.3.9-4) <-----                                                                          
  8. Reading package lists... Done                                                                                                
  9. Building dependency tree                                                                                                     
  10. Reading state information... Done                                                                                            
  11. Skipping already downloaded file 'freetype_2.3.9-4.dsc'                                                                     
  12. Skipping already downloaded file 'freetype_2.3.9.orig.tar.gz'                                                               
  13. Skipping already downloaded file 'freetype_2.3.9-4.diff.gz'                                                                  
  14. Need to get 0B of source archives.                                                                                          
  15. Skipping unpack of already unpacked source in freetype-2.3.9                                                                 
  16. -----> Building freetype <-----                                                                                             
  17. -----> Patching (/mnt/etch/data/cleartype-rebuild/apt-build/freetype-2.3.7-subpixel-disable-quantization.diff) <-----        
  18. can't find file to patch at input line 4                                                                                    
  19. Perhaps you used the wrong -p or --strip option?                                                                             
  20. The text leading up to this was:                                                                                             
  21. --------------------------                                                                                                   
  22. |diff -ruNa freetype-2.3.7.orig/src/autofit/aflatin2.c freetype-2.3.7/src/autofit/aflatin2.c                                 
  23. |--- freetype-2.3.7.orig/src/autofit/aflatin2.c 2007-06-12 05:42:06.000000000 +0800                                          
  24. |+++ freetype-2.3.7/src/autofit/aflatin2.c      2009-03-10 15:59:32.000000000 +0800                                          
  25. --------------------------                                                                                                   
  26. File to patch:                                                                                                               
  27. Skip this patch? [y] y                                                                                                      
  28. Skipping patch.                                                                                                              
  29. 1 out of 1 hunk ignored                                                                                                      
  30. can't find file to patch at input line 24                                                                                    
  31. Perhaps you used the wrong -p or --strip option?                                                                             
  32. The text leading up to this was:                                                                                             
  33. --------------------------                                                                                                   
  34. |diff -ruNa freetype-2.3.7.orig/src/autofit/aflatin.c freetype-2.3.7/src/autofit/aflatin.c                                   
  35. |--- freetype-2.3.7.orig/src/autofit/aflatin.c  2007-07-07 04:52:39.000000000 +0800                                          
  36. |+++ freetype-2.3.7/src/autofit/aflatin.c       2009-03-10 16:00:47.000000000 +0800                                          
  37. --------------------------                                                                                                   
  38. File to patch:                                                                                                               
  39. Skip this patch? [y] y                                                                                                      
  40. Skipping patch.                                                                                                              
  41. 1 out of 1 hunk ignored                                                                                                      
  42. ----> Cleaning up object files <-----                                                                                       
  43. Cleaning in directory .                                                                                                      
  44. dh_testdir                                                                                                                  
  45. dh_testroot                                                                                                                  
  46. rm -f build-stamp unpack-stamp patch-stamp                                                                                   
  47. rm -f /var/cache/apt-build/build/freetype-2.3.9/debian/freetype-config.man                                                   
  48. rm -rf freetype-2.3.9 ft2demos-2.3.9                                                                                         
  49. dh_clean                                                                                                                     
  50. Error while building libfreetype6!                                                                                          
  51. Sorry, no package to install.     
  52.                              $ cat /mnt/etch/data/cleartype-rebuild/apt-build/freetype-2.3.7-subpixel-disable-quantization.diff
  53. diff -ruNa freetype-2.3.7.orig/src/autofit/aflatin2.c freetype-2.3.7/src/autofit/aflatin2.c                                
  54. --- freetype-2.3.7.orig/src/autofit/aflatin2.c  2007-06-12 05:42:06.000000000 +0800                                       
  55. +++ freetype-2.3.7/src/autofit/aflatin2.c       2009-03-10 15:59:32.000000000 +0800                                       
  56. @@ -1424,14 +1424,14 @@                                                                                                   
  57.       *  We snap the width of vertical stems for the monochrome and                                                        
  58.       *  horizontal LCD rendering targets only.                                                                           
  59.       */                                                                                                                  
  60. -    if ( mode == FT_RENDER_MODE_MONO || mode == FT_RENDER_MODE_LCD )                                                      
  61. +    if ( mode == FT_RENDER_MODE_MONO )                                                                                    
  62.        other_flags |= AF_LATIN_HINTS_HORZ_SNAP;                                                                           
  63.                                                                                                                            
  64.      /*                                                                                                                    
  65.       *  We snap the width of horizontal stems for the monochrome and                                                      
  66.       *  vertical LCD rendering targets only.                                                                              
  67.       */                                                                                                                  
  68. -    if ( mode == FT_RENDER_MODE_MONO || mode == FT_RENDER_MODE_LCD_V )
  69. +    if ( mode == FT_RENDER_MODE_MONO )
  70.        other_flags |= AF_LATIN_HINTS_VERT_SNAP;
  71.      /*
  72. diff -ruNa freetype-2.3.7.orig/src/autofit/aflatin.c freetype-2.3.7/src/autofit/aflatin.c
  73. --- freetype-2.3.7.orig/src/autofit/aflatin.c   2007-07-07 04:52:39.000000000 +0800
  74. +++ freetype-2.3.7/src/autofit/aflatin.c        2009-03-10 16:00:47.000000000 +0800
  75. @@ -1342,14 +1342,14 @@
  76.       *  We snap the width of vertical stems for the monochrome and
  77.       *  horizontal LCD rendering targets only.
  78.       */
  79. -    if ( mode == FT_RENDER_MODE_MONO || mode == FT_RENDER_MODE_LCD )
  80. +    if ( mode == FT_RENDER_MODE_MONO )
  81.        other_flags |= AF_LATIN_HINTS_HORZ_SNAP;
  82.      /*
  83.       *  We snap the width of horizontal stems for the monochrome and
  84.       *  vertical LCD rendering targets only.
  85.       */
  86. -    if ( mode == FT_RENDER_MODE_MONO || mode == FT_RENDER_MODE_LCD_V )
  87. +    if ( mode == FT_RENDER_MODE_MONO )
  88.        other_flags |= AF_LATIN_HINTS_VERT_SNAP;
  89.      /*
复制代码

这个问题怎么处理啊?

很奇怪怎么会找不到呢?我手动打没问题
回复 支持 反对

使用道具 举报

发表于 2009-3-16 18:40:10 | 显示全部楼层
楼主不要麻烦了,看这里:
http://quanli.googlepages.com/da ... ackagesfordebiansid
回复 支持 反对

使用道具 举报

发表于 2009-3-16 18:44:54 | 显示全部楼层
sudo apt-build --noupdate --patch -p 1 /mnt/etch/data/cleartype-rebuild/apt-build/freetype-2.3.7-subpixel-disable-quantization.diff install libfreetype6

加上这个试试

apt-build 我也不是很常用……
回复 支持 反对

使用道具 举报

发表于 2009-3-16 19:50:59 | 显示全部楼层
Post by tigatron;1961771
sudo apt-build --noupdate --patch -p 1 /mnt/etch/data/cleartype-rebuild/apt-build/freetype-2.3.7-subpixel-disable-quantization.diff install libfreetype6

加上这个试试

apt-build 我也不是很常用……


好像没区别,我以前就试过,发帖子时把p1删掉了
还是找不到要打补丁的文件
好像是包没解开。。。
回复 支持 反对

使用道具 举报

发表于 2009-3-16 20:11:58 | 显示全部楼层
Post by laris;1961369
3楼

请问

  1. $ sudo apt-build --noupdate --patch /mnt/etch/data/cleartype-rebuild/apt-build/freetype-2.3.7-subpixel-disable-quantization.diff install libfreetype6                                                                       
  2. -----> Installing build dependencies (for freetype) <-----                                                                  
  3. Reading package lists... Done                                                                                                
  4. Building dependency tree                                                                                                     
  5. Reading state information... Done                                                                                            
  6. 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.                                                               
  7. -----> Downloading source freetype (2.3.9-4) <-----                                                                          
  8. Reading package lists... Done                                                                                                
  9. Building dependency tree                                                                                                     
  10. Reading state information... Done                                                                                            
  11. Skipping already downloaded file 'freetype_2.3.9-4.dsc'                                                                     
  12. Skipping already downloaded file 'freetype_2.3.9.orig.tar.gz'                                                               
  13. Skipping already downloaded file 'freetype_2.3.9-4.diff.gz'                                                                  
  14. Need to get 0B of source archives.                                                                                          
  15. Skipping unpack of already unpacked source in freetype-2.3.9                                                                 
  16. -----> Building freetype <-----                                                                                             
  17. -----> Patching (/mnt/etch/data/cleartype-rebuild/apt-build/freetype-2.3.7-subpixel-disable-quantization.diff) <-----        
  18. can't find file to patch at input line 4                                                                                    
  19. Perhaps you used the wrong -p or --strip option?                                                                             
  20. The text leading up to this was:                                                                                             
  21. --------------------------                                                                                                   
  22. |diff -ruNa freetype-2.3.7.orig/src/autofit/aflatin2.c freetype-2.3.7/src/autofit/aflatin2.c                                 
  23. |--- freetype-2.3.7.orig/src/autofit/aflatin2.c 2007-06-12 05:42:06.000000000 +0800                                          
  24. |+++ freetype-2.3.7/src/autofit/aflatin2.c      2009-03-10 15:59:32.000000000 +0800                                          
  25. --------------------------                                                                                                   
  26. File to patch:                                                                                                               
  27. Skip this patch? [y] y                                                                                                      
  28. Skipping patch.                                                                                                              
  29. 1 out of 1 hunk ignored                                                                                                      
  30. can't find file to patch at input line 24                                                                                    
  31. Perhaps you used the wrong -p or --strip option?                                                                             
  32. The text leading up to this was:                                                                                             
  33. --------------------------                                                                                                   
  34. |diff -ruNa freetype-2.3.7.orig/src/autofit/aflatin.c freetype-2.3.7/src/autofit/aflatin.c                                   
  35. |--- freetype-2.3.7.orig/src/autofit/aflatin.c  2007-07-07 04:52:39.000000000 +0800                                          
  36. |+++ freetype-2.3.7/src/autofit/aflatin.c       2009-03-10 16:00:47.000000000 +0800                                          
  37. --------------------------                                                                                                   
  38. File to patch:                                                                                                               
  39. Skip this patch? [y] y                                                                                                      
  40. Skipping patch.                                                                                                              
  41. 1 out of 1 hunk ignored                                                                                                      
  42. ----> Cleaning up object files <-----                                                                                       
  43. Cleaning in directory .                                                                                                      
  44. dh_testdir                                                                                                                  
  45. dh_testroot                                                                                                                  
  46. rm -f build-stamp unpack-stamp patch-stamp                                                                                   
  47. rm -f /var/cache/apt-build/build/freetype-2.3.9/debian/freetype-config.man                                                   
  48. rm -rf freetype-2.3.9 ft2demos-2.3.9                                                                                         
  49. dh_clean                                                                                                                     
  50. Error while building libfreetype6!                                                                                          
  51. Sorry, no package to install.     


  52.                              $ cat /mnt/etch/data/cleartype-rebuild/apt-build/freetype-2.3.7-subpixel-disable-quantization.diff
  53. diff -ruNa freetype-2.3.7.orig/src/autofit/aflatin2.c freetype-2.3.7/src/autofit/aflatin2.c                                
  54. --- freetype-2.3.7.orig/src/autofit/aflatin2.c  2007-06-12 05:42:06.000000000 +0800                                       
  55. +++ freetype-2.3.7/src/autofit/aflatin2.c       2009-03-10 15:59:32.000000000 +0800                                       
  56. @@ -1424,14 +1424,14 @@                                                                                                   
  57.       *  We snap the width of vertical stems for the monochrome and                                                        
  58.       *  horizontal LCD rendering targets only.                                                                           
  59.       */                                                                                                                  
  60. -    if ( mode == FT_RENDER_MODE_MONO || mode == FT_RENDER_MODE_LCD )                                                      
  61. +    if ( mode == FT_RENDER_MODE_MONO )                                                                                    
  62.        other_flags |= AF_LATIN_HINTS_HORZ_SNAP;                                                                           
  63.                                                                                                                            
  64.      /*                                                                                                                    
  65.       *  We snap the width of horizontal stems for the monochrome and                                                      
  66.       *  vertical LCD rendering targets only.                                                                              
  67.       */                                                                                                                  
  68. -    if ( mode == FT_RENDER_MODE_MONO || mode == FT_RENDER_MODE_LCD_V )
  69. +    if ( mode == FT_RENDER_MODE_MONO )
  70.        other_flags |= AF_LATIN_HINTS_VERT_SNAP;

  71.      /*
  72. diff -ruNa freetype-2.3.7.orig/src/autofit/aflatin.c freetype-2.3.7/src/autofit/aflatin.c
  73. --- freetype-2.3.7.orig/src/autofit/aflatin.c   2007-07-07 04:52:39.000000000 +0800
  74. +++ freetype-2.3.7/src/autofit/aflatin.c        2009-03-10 16:00:47.000000000 +0800
  75. @@ -1342,14 +1342,14 @@
  76.       *  We snap the width of vertical stems for the monochrome and
  77.       *  horizontal LCD rendering targets only.
  78.       */
  79. -    if ( mode == FT_RENDER_MODE_MONO || mode == FT_RENDER_MODE_LCD )
  80. +    if ( mode == FT_RENDER_MODE_MONO )
  81.        other_flags |= AF_LATIN_HINTS_HORZ_SNAP;

  82.      /*
  83.       *  We snap the width of horizontal stems for the monochrome and
  84.       *  vertical LCD rendering targets only.
  85.       */
  86. -    if ( mode == FT_RENDER_MODE_MONO || mode == FT_RENDER_MODE_LCD_V )
  87. +    if ( mode == FT_RENDER_MODE_MONO )
  88.        other_flags |= AF_LATIN_HINTS_VERT_SNAP;

  89.      /*

复制代码


这个问题怎么处理啊?

很奇怪怎么会找不到呢?我手动打没问题

我也是习惯手动的,而且是习惯用 LFS 的方式

http://www.linuxsir.cn/bbs/showthread.php?t=321773
回复 支持 反对

使用道具 举报

发表于 2009-3-16 20:17:00 | 显示全部楼层
我今天升级到 freetype-2.3.9 也没有用过任何补丁,也不见得有什麽不好。

其实这些补丁会带来什麽区别?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表