Debian 10 编译安装chromium
2023-03-02 14:08:08
ThanksView
  • 访问次数: 222
  • 注册日期: 2019-03-19
  • 最后登录: 2024-04-22
1,安装软件依赖包:apt-get install 

build-essential

2,  下载代码和debian打包配置文件

http://security.debian.org/debian-security/pool/updates/main/c/chromium-browser/chromium-browser_52.0.2743.116.orig.tar.xz
http://security.debian.org/debian-security/pool/updates/main/c/chromium-browser/chromium-browser_52.0.2743.116-1~deb8u1.debian.tar.xz

修改编译代码:

1. 解压

tar xf chromium-browser_52.0.2743.116.orig.tar.xz tar xf chromium-browser_52.0.2743.116-1~deb8u1.debian.tar.xz mv debian chromium-52.0.2743.116/

3. 修改编译规则

3.1 修改文件 debian/rules, defines中添加

symbol_level=0



3.2 修改debian/control, Architecture 都改成all, 除了Package: chromium-dbg, 我们不需要chromium的debug信息

 

3.3 修改debian/scripts/chromium, 删除下面的内容


osse2="\ The hardware on this system lacks support for the sse2 instruction set.

The upstream chromium project no longer supports this configuration.

For more information, please read and possibly provide input to their

bug tracking system at http://crbug.com/348761."  # Check whether this system supports sse2 if test -z "$(grep sse2 /proc/cpuinfo)"; then xmessage "$nosse2" exit 1 fi



因为我们copy的debian 配置文件都是针对x86平台的, arm平台没有sse,这个就不需要了


4. 编译debian pakcage

dpkg-buildpackage


第一次编译会出现dependence的问题,按照提示的要求把缺少的包安装下,然后就继续这条命令

中间有简单的问题调整的话,请使用

fakeroot debian/rules binary

ThanksView 最后编辑, 2023-03-02 14:17:02

三维半岛官网: http://www.thanksview.com

进入首页