(no subject)
Eliuth Pomar <[email protected]>
| Newsgroups | gmane.linux.lsb.implementation |
|---|---|
| Message-ID | <[email protected]> |
> The build files need to have conditionals for new architectures
> put into them to deal with the few instances of this. Looks
> like the current setup uses x86 as a default, which is probably
> not right.
> Anyway, there are quite a few places a new architecture
> needs to be added to start building.
> bootstrap/packages/gcc.xml is the one you're seeing.
> entities/general.in needs a pair of defines for the
> dynamic linker, one for what it's called in the
> native Linux for that architecture, the second for
> the one it should be called for LSB binaries.
> Generally any .xml file that has anything about ia64
> and ppc in it will also have to have similar stuff
> put in for s390.
> I'll be happy to put these in if you send some proposed
> changes.
Thanks. I was able to get pass this issue by making changes to general.in
and xml files. At the end of this e-mail I'm sending my proposed changes.
However, I'm not totally in the clear. I hit the following problem and I
can't find any reference as to where the error message is being generated
or why. Any suggestions?
-: linux-2.4.19/Documentation/mips/pci/pci.README
-: linux-2.4.19/Documentation/power/
-: linux-2.4.19/Documentation/power/pci.txt
-: linux-2.4.19/Documentation/README.nsp_cs.eng
-: linux-2.4.19/REPORTING-BUGS
I: Done unpacking
/mnt/93b0/usr/src/si/lsbsi-bootstrap/usr/src/packages-1.3.0
/linux-2.4.19.tar.bz2.
E: Unknown archive
(/mnt/93b0/usr/src/si/lsbsi-bootstrap/usr/src/packages-1.3.0/).
E: Unpacking /mnt/93b0/usr/src/si/lsbsi-bootstrap/usr/src/packages-1.3.0/
failed.
I: Log file stored in "/root/.nALFS/packages/linux-2.4.19.log".
E: Execution failed (255).
I: Executing for 00:05:28, total 00:05:28.
make: *** [bootstrap] Error 255
Regards,
Eliuth
Following are the changes I made to the following files in my system. Note
that by changes I mean I added the lines to the files.
entities/general and general.in
<!ENTITY linux-s390-dynlinker "ld-lsb-s390.so.1">
<!ENTITY lsb-s390-dynlinker "ld-lsb-s390.so.1">
entities/package
<!ENTITY gcc-s390-machdep "/usr/lib/gcc-lib/s390-ibm-linux/3.2.2/">
<!ENTITY glibc-ia64-patch "glibc-2.2.5.s390.patch">
<!ENTITY glibc-s390-machdep "/sysdeps/unix/sysv/linux/s390">
<!ENTITY lsbrpm-s390-package "lsb-1.3.0-1.s390.rpm">
phase2/package-build/glibc.xml
<s390>
<search_replace>
<base>&build_dir;/&glibc-directory;</base>
<file>shlib-versions</file>
<find>&linux-s390-dynlinker;</find>
<replace>&lsb-s390-dynlinker;</replace>
</search_replace>
<search_replace>
<base>&build_dir;/&glibc-directory;&glibc-s390-machdep;
</base>
<file>ldconfig.h</file>
<find>&linux-s390-dynlinker;</find>
<replace>&lsb-s390-dynlinker;</replace>
</search_replace>
</s390>
phase3/package-build/glibc.xml
<s390>
<search_replace>
<base>&phase3_build_dir;/&glibc-directory;</base>
<file>shlib-versions</file>
<find>&linux-s390-dynlinker;</find>
<replace>&lsb-s390-dynlinker;</replace>
</search_replace>
<search_replace>
<base>&phase3_build_dir;/&glibc-directory;&glibc-s390-machdep;
</base>
<file>ldconfig.h</file>
<find>&linux-s390-dynlinker;</find>
<replace>&lsb-s390-dynlinker;</replace>
</search_replace>
</s390>
phase3/finalize/tarball.xml
<s390>
<execute>
<base>&LSBsi-phase3;/..</base>
<command>tar</command>
<param>-cf</param>
<param>lsbsi-s390-&LSBsi-version;.tar</param>
<param>lsbsi</param>
</execute>
</s390>
./phase3/finalize/copyrpm.xml
<s390>
<copy>
<base>&LSBsi-phase3;</base>
<source>&LSBsi-phase2;/&packages_dir;/&lsbrpm-s390-package;</source>
<destination>&LSBsi-phase3;/tmp</destination>
</copy>
</s390>
./phase3/finalize/initrpm.xml
<s390>
<execute>
<command>rpm</command>
<param>--install</param>
<param>--nodeps</param>
<param>/tmp/&lsbrpm-s390-package;</param>
</execute>
<remove>/tmp/&lsbrpm-s390-package;</remove>
</s390>
./phase4/package-build/kernel.xml
<s390>
<unpack>
<archive>&packages_dir;/&linux-s390-package;</archive>
<destination>&phase4_build_dir;</destination>
</unpack>
<patch>
<base>
&phase4_build_dir;/&linux-directory;
</base>
<param>-N</param>
<param>-p1</param>
<param>-i ../&linux-s390-diff;</param>
</patch>
</s390>
and
<s390>
<make>
<base>&phase4_build_dir;/&linux-directory;</base>
<param>compressed</param>
</make>
</s390>
and
<s390>
<copy>
<base>&phase4_build_dir;/&linux-directory;</base>
<source>arch/ppc/boot/bzImage</source>
<destination>
&LSBsi-phase4-install;/boot/vmlinuz-&linux-version;
</destination>
</copy>
</s390>
and
<s390>
<remove>&phase4_build_dir;/&linux-s390-diff;</remove>
</s390>
phase4/finalize/tarball4a.xml
<s390>
<execute>
<base>&LSBsi-phase4a;</base>
<command>tar</command>
<param>-cf</param>
<param>../lsbsi-test-s390-&LSBsi-version;.tar</param>
<param>.</param>
</execute>
</s390>
phase4/finalize/tarball4b.xml
<s390>
<execute>
<base>&LSBsi-phase4b;</base>
<command>tar</command>
<param>-cf</param>
<param>../lsbsi-boot-s390-&LSBsi-version;.tar</param>
<param>.</param>
</execute>
</s390>
phase4/finalize/tarball4c.xml
<s390>
<execute>
<base>&LSBsi-phase4c;</base>
<command>tar</command>
<param>-cf</param>
<param>../lsbsi-uml-s390-&LSBsi-version;.tar</param>
<param>.</param>
</execute>
</s390>
bootstrap/packages/kernel.xml
<s390>
<unpack>
<archive>&LSBsi-bootstrap;&packages_dir;/&linux-s390-package;
</archive>
<destination>&LSBsi-bootstrap;/&linux-src-location;
</destination>
</unpack>
<patch>
<base>&LSBsi-bootstrap;/&linux-src-location;/&linux-directory;
</base>
<param>-N</param>
<param>-p1</param>
<param>-i ../&linux-s390-diff;</param>
</patch>
</s390>
and
<s390>
<remove>
&LSBsi-bootstrap;&build_dir;/&linux-s390-diff;
</remove>
</s390>
./bootstrap/packages/gcc.xml
<s390>
<search_replace>
<base>&LSBsi-bootstrap;&gcc-s390-machdep;</base>
<file>specs</file>
<find>&linux-s390-dynlinker;</find>
<replace>&lsb-s390-dynlinker;</replace>
</search_replace>
</s390>