LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: aiezue

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

[复制链接]
发表于 2009-3-16 20:20:22 | 显示全部楼层
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:23:57 | 显示全部楼层
毁灭老大,debian源码包的patch不是加到debian目录里面再用control rule来实现控制的吗?
有直接打到源码上?
回复 支持 反对

使用道具 举报

发表于 2009-3-16 20:28:49 | 显示全部楼层
因为我把它用在 LFS 系统上。。。没有制成 deb 包来装,哈哈
回复 支持 反对

使用道具 举报

发表于 2009-3-16 20:30:29 | 显示全部楼层
字体显示效果好一点而已。

本帖子中包含更多资源

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

x
回复 支持 反对

使用道具 举报

发表于 2009-3-16 20:36:47 | 显示全部楼层
Post by LaKes;1961871
字体显示效果好一点而已。


请问没有补丁又是何种效果?
回复 支持 反对

使用道具 举报

发表于 2009-3-16 20:37:22 | 显示全部楼层
Post by d00m3d;1961868
因为我把它用在 LFS 系统上。。。没有制成 deb 包来装,哈哈


晕了。。。毁灭老大没理解我说的话

我话的意思是   debian的补丁应该是在源码包中生成debian目录,再把更改的东西写到这个下面,包括patch,有个patch目录存放(这段对不?)

如果是用于其他linux上不是要自己到该目录下再手动patch之?
回复 支持 反对

使用道具 举报

发表于 2009-3-16 20:47:11 | 显示全部楼层
不好意思,还是没有理解,我的理解是:

所谓 patch 者其实就是改动後的源码跟原来未改动过的源码两者的差异部份,diff 者也

Debian 的 diff 也不例外,只不过它除源码改动过的部份,还可能会加入 Debian 专属的部份如安装脚本,个别文档,维护者信息等,这些都会加到 debian 目录下,我看其他的源码改动会否在 debian 目录似乎很不一致,大多数都不是。不知是不是维护者个别取向?
回复 支持 反对

使用道具 举报

发表于 2009-3-16 20:54:06 | 显示全部楼层
如此,解压debian源码包实验之。。。

感谢毁灭老大的发言
回复 支持 反对

使用道具 举报

发表于 2009-3-16 21:06:44 | 显示全部楼层
我说话有可能会不对,有错请指正 :)
回复 支持 反对

使用道具 举报

发表于 2009-3-16 21:20:13 | 显示全部楼层
毁灭老大是说白话的?

应该是,看到“情度” 这类字眼

后天来打报告
回复 支持 反对

使用道具 举报

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

本版积分规则

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