在 ltib 目录中执行以下代码:

cd <your ltib folder>
./patch-ltib-ubuntu12.04.sh
patch -p1 < patch-dist-ubuntu12.04.patch

其中 patch-ltib-ubuntu12.04.sh 与 patch-dist-ubuntu12.04.patch 见下文

patch-ltib-ubuntu12.04.sh

#!/usr/bin/env bash

# get the patch tarball and untar it
wget -O ubuntu-ltib-patch.tgz https://community.freescale.com/servlet/JiveServlet/downloadBody/93454-102-3-2834/ubuntu-ltib-patch.tgz
tar -xzvf ubuntu-ltib-patch.tgz # execute the script which do the patching
ltibDir=`pwd`
cd ubuntu-ltib-patch
./install-patches.sh $ltibDir

patch-dist-ubuntu12.04.patch

diff -uNr old/dist/lfs-5.1/base_libs/base_libs.spec new/dist/lfs-5.1/base_libs/base_libs.spec
--- old/dist/lfs-5.1/base_libs/base_libs.spec -- ::21.897348939 +
+++ new/dist/lfs-5.1/base_libs/base_libs.spec -- ::58.175937281 +
@@ -, +, @@ # remove absolute paths from text search files (if they exist)
perl -w -e '
- @ARGV = grep { `file $_` =~ m,ASCII C program text, } @ARGV;
+ @ARGV = grep { `file $_` =~ m,ASCII\s+.*text, } @ARGV;
exit() unless @ARGV;
$^I = ".bak";
while(<>) {
diff -uNr old/dist/lfs-5.1/glibc/glibc-2.3..spec new/dist/lfs-5.1/glibc/glibc-2.3..spec
--- old/dist/lfs-5.1/glibc/glibc-2.3..spec -- ::13.149349103 +
+++ new/dist/lfs-5.1/glibc/glibc-2.3..spec -- ::22.835937109 +
@@ -, +, @@ # remove absolute paths from text search files (if they exist)
perl -w -e '
- @ARGV = grep { `file $_` =~ m,ASCII C program text, } @ARGV;
+ @ARGV = grep { `file $_` =~ m,ASCII\s+.*text, } @ARGV;
exit() unless @ARGV;
$^I = ".bak";
while(<>) {
diff -uNr old/dist/lfs-5.1/glibc/glibc.spec new/dist/lfs-5.1/glibc/glibc.spec
--- old/dist/lfs-5.1/glibc/glibc.spec -- ::13.145349103 +
+++ new/dist/lfs-5.1/glibc/glibc.spec -- ::48.431936930 +
@@ -, +, @@ # remove absolute paths from text search files (if they exist)
perl -w -e '
- @ARGV = grep { `file $_` =~ m,ASCII C program text, } @ARGV;
+ @ARGV = grep { `file $_` =~ m,ASCII\s+.*text, } @ARGV;
exit() unless @ARGV;
$^I = ".bak";
while(<>) {
diff -uNr old/dist/lfs-5.1/gst-plugins-good/gst-plugins-good.spec new/dist/lfs-5.1/gst-plugins-good/gst-plugins-good.spec
--- old/dist/lfs-5.1/gst-plugins-good/gst-plugins-good.spec -- ::59.141349366 +
+++ new/dist/lfs-5.1/gst-plugins-good/gst-plugins-good.spec -- ::10.143878188 +
@@ -, +, @@
%patch1 -p1 %Build
-#export CAIRO_CFLAGS="-I${DEV_IMAGE}/usr/include/cairo"
-#export CAIRO_LIBS="-L${DEV_IMAGE}/usr/lib/cairo"
-#export LIBS="-lcairo" ./configure --prefix=%{_prefix} --host=$CFGHOST \
--build=%{_build} --without-check \

最新文章

  1. 阿里云服务器上开启linux远程桌面连接
  2. Eclipse CDT launch failed.Binary not found in Linux/Ubuntu
  3. Linux学习笔记(20) Linux系统管理
  4. string.Format格式化
  5. php之无限极分类
  6. 转发细节——forward
  7. opencv + numpy for python
  8. UVA 816 Abbott’s Revenge
  9. 四、spark常用函数说明学习
  10. Netty 学习 一、初识Netty【原创】
  11. 网络流问题 P2763 试题库问题
  12. ES6学习笔记(let,const,变量的解构赋值)
  13. window.innerWidth和document.body.clientWidth的区别
  14. 对Functional Language的认识
  15. Oracle中的时间函数用法(to_date、to_char) (总结)
  16. AngularJS 表达式 对象和数组
  17. idea 2018注册码(激活码)永久性的
  18. HDFS高可用性及其分布式系统思想基础
  19. sqoop 补充
  20. python随机验证码函数

热门文章

  1. 博客迁移至新平台ixirong.com
  2. (转)JSON Web Token - 在Web应用间安全地传递信息
  3. Selenium之Chrome浏览器的启动
  4. #C++初学记录(高精度运算)(加法)
  5. Git: A分支上的commit提交到B分支上
  6. 前端学习笔记之JavaScript
  7. phpstorm 代码片段使用方法
  8. 枚举子集&amp;高位前缀和
  9. OpenDayLight Helium实验三 OpenDaylight二层转发机制实验 2
  10. SPOJ - PGCD Primes in GCD Table(莫比乌斯反演)