当前位置首页 > Ubuntu知识

LTIBforubuntu12.04

阅读次数:250 次  来源:admin  发布时间:

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

cd <your ltib folder>

./patch-ltib-ubuntu12.04.sh

atch -p1 < patch-dist-ubuntu12.04.patch

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

atch-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

atch-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    2013-11-09 11:08:21.897348939 +0800
+++ new/dist/lfs-5.1/base_libs/base_libs.spec    2013-11-08 15:18:58.175937281 +0800
@@ -296,7 +296,7 @@
 
 # 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(0) unless @ARGV;
     $^I = ".bak";
     while(<>) {
diff -uNr old/dist/lfs-5.1/glibc/glibc-2.3.2.spec new/dist/lfs-5.1/glibc/glibc-2.3.2.spec
--- old/dist/lfs-5.1/glibc/glibc-2.3.2.spec    2013-11-09 11:08:13.149349103 +0800
+++ new/dist/lfs-5.1/glibc/glibc-2.3.2.spec    2013-11-08 15:19:22.835937109 +0800
@@ -192,7 +192,7 @@
 
 # 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(0) 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    2013-11-09 11:08:13.145349103 +0800
+++ new/dist/lfs-5.1/glibc/glibc.spec    2013-11-08 15:19:48.431936930 +0800
@@ -97,7 +97,7 @@
 
 # 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(0) 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    2013-11-09 11:07:59.141349366 +0800
+++ new/dist/lfs-5.1/gst-plugins-good/gst-plugins-good.spec    2013-11-08 17:40:10.143878188 +0800
@@ -21,9 +21,6 @@
 %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 \
上一篇:debian10使用国内源安装docker以及一些使用方法-剩余价值
下一篇:debian系统安装ThinkpadT410s的无线网卡驱动:centrinoAdvanced-N62002x2AGN-王亮1