[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

LSB SI on PPC process and patchs




I have finished the bootstrap step of LSB SI on PPC. Now I am in the phase2, and half of the packages are built successfully. But there still have a few problems:
        bin86-0.16.0.tar.gz package doesn't support PPC, so I made a patch for it, and also change some files related to this patch.
        The nALFS's path is wrong in src/si/Makefile.in, so I correct it.
        The "linux-dynlinker" and "ld-dynlinker" variable don't defined in package file, so I change it.

The following is the patchs that I made, for Sean said he can not find the patch file while I attach them, so I paste them directly into my mail.

1. File bin86-0.16.ppc.patch in package directory:
--- bin86-0.16.0/ld/x86_aout.h.orig        2002-08-12 10:55:52.000000000 +1000
+++ bin86-0.16.0/ld/x86_aout.h        2002-08-12 10:54:18.000000000 +1000
@@ -9,7 +9,7 @@
 #define __AOUT_H
 
 /* If the host isn't an x86 all bets are off, use chars. */
-#if defined(i386) || defined(__BCC__) || defined(MSDOS)
+#if defined(i386) || defined(__BCC__) || defined(MSDOS) || defined(powerpc)
 typedef long Long;
 #define __OUT_OK 1
 #else

2. File bin86.xml in src/si/package-build/ directory
--- si/phase2/package-build/bin86.xml.orig        2002-08-12 10:59:56.000000000 +1000
+++ si/phase2/package-build/bin86.xml        2002-08-12 11:02:36.000000000 +1000
@@ -7,8 +7,15 @@
                         <archive>&packages_dir;/&bin86-package;</archive>
                         <destination>&build_dir;</destination>
                 </unpack>
-        </prebuild>
 
+                <patch>
+                        <base>&build_dir;/&bin86-directory;</base>
+                        <param>-N</param>
+                        <param>-p1</param>
+                        <param>-i &packages_dir;/&bin86-patch;</param>
+                </patch>
+        </prebuild>
+                
         <build>
                 <make>
                         <base>&build_dir;/&bin86-directory;</base>


3. File package in /src/si/entities directory (Of course, you should not apply this patch directly, for I change the "gcc-machdep" variable to PPC, and not x86, but I think we should have some better ways to determine the machine type automatically)
--- si/entities/package.orig        2002-08-12 12:02:29.000000000 +1000
+++ si/entities/package        2002-08-12 12:01:54.000000000 +1000
@@ -16,6 +16,7 @@
 
 <!ENTITY bin86-version "0.16.0">
 <!ENTITY bin86-package "bin86-0.16.0.tar.gz">
+<!ENTITY bin86-patch "bin86-0.16.ppc.patch">
 <!ENTITY bin86-directory "bin86-0.16.0">
 
 <!ENTITY bison-version "1.35">
@@ -77,7 +78,9 @@
 <!ENTITY gcc-cxx-package "gcc-g++-3.1.tar.gz">
 <!ENTITY gcc-specs-patch "gcc-3.1.specs.patch">
 <!ENTITY gcc-directory "gcc-3.1">
-<!ENTITY gcc-machdep "/usr/lib/gcc-lib/i686-pc-linux-gnu/3.1">
+<!ENTITY gcc-machdep "/usr/lib/gcc-lib/powerpc-unknown-linux-gnu/3.1">
+<!ENTITY linux-dynlinker "ld-linux.so.2">
+<!ENTITY lsb-dynlinker "ld-lsb.so.1">
 
 <!ENTITY gettext-version "0.11.2">
 <!ENTITY gettext-package "gettext-0.11.2.tar.gz">

4. File Makefile.in in /src/si directory
--- si/Makefile.in.orig        2002-08-12 11:57:39.000000000 +1000
+++ si/Makefile.in        2002-08-12 11:57:50.000000000 +1000
@@ -1,4 +1,4 @@
-NALFS_DIR = ../nALFS
+NALFS_DIR = ../tools/nALFS
 BUILD_DIR = @BUILDDIR@
 PACKAGE_DIR = @PACKAGEDIR@
 DATE=`date +"%m%d%Y"`





Yours Sincerely

Shou Hua Wang

IBM China Development Laboratory

Reply to: