[备忘] Debian format 3.0

  1. 加入新文件: debian/source/format, 内容为
    3.0 (quilt)
  2. 设定环境变量 (可以加到 $HOME/.bashrc 中)
    export QUILT_PATCHES=debian/patches
  3. 运行如下的命令, 创建第一个补丁
    $ quilt new binutils-gold.patch # 新建补丁,名字叫 binutils-gold.patch
    $ quilt add CMakeLists.txt # 这个补丁需要修改 
    CMakeLists.txt, 所以把  CMakeLists.txt 加入列表
    $ vi 
    CMakeLists.txt
    ...
    $ quilt refresh # 把更改写入补丁文件
    $ quilt pop     # 从工作区去除补丁
  4. 检验 debian/patches 目录,确认如下两个文件存在
    binutils-gold.patch
    series
  5. 用 debuild 测试 (最好安装 lintian 2.2.18, 否则 lintian 会给出一些警告)
  6. 测试成功后,根据 DEP3 写 debian/patches/binutils-gold.patch 这个补丁的元信息 (下面是 fcitx 一个补丁的范例)
    Description: fix FTBFS with binutils-gold
    Forwarded: http://code.google.com/p/fcitx/issues/detail?id=159
    Bug-Debian: http://bugs.debian.org/554282
    Author: LI Daobing <lidaobing@debian.org>
    Last-Update: 2010-02-22

    Index: fcitx/src/Makefile.am
    ===================================================================
    --- fcitx.orig/src/Makefile.am    2010-02-22 20:29:47.000000000 +0800
    +++ fcitx/src/Makefile.am    2010-02-22 20:38:56.000000000 +0800
    @@ -37,4 +37,4 @@
             ImeRemote.c
             
     fcitx_LDADD = ../lib/libXimd.a
    -fcitx_LDFLAGS = -lXpm -lXtst -lpthread
    +fcitx_LDFLAGS = -lXpm -lXtst -lpthread -ldl -lXext


  7. 完成,可以提交了。

转载于:https://www.cnblogs.com/lidaobing/archive/2011/03/21/debian-format-3_0.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值