On 26 Feb 2009, at 23:08, axel lin wrote:
hi Glen,
Here is the way I build moblin2 SRPMS.
1. I build the SRPMS on "moblin2 SDK"
2. I copy cp /usr/lib/rpm/moblin/rpmrc to /etc/rpmrc
and set
optflags: i586 %{__global_cflags} -m32 -march=pentium-m
-fasynchronous-unwind-tables
3. I modified /usr/lib/rpm/macros
In /usr/lib/rpm/macros, I set below settings:
%_default_patch_fuzz 2
# Axel: comment out below line
#%__check_files /usr/lib/rpm/check-files %{buildroot}
%_unpackaged_files_terminate_build 0
%_missing_doc_files_terminate_build 0
4 I download all SRPMS and rebuild with below scripts
for FILE in *.src.rpm ; do
yum-builddep -y ${FILE}
rpmbuild --rebuild --target i586 ${FILE}
echo "DONE ${FILE} EXIT $?"
done
5. I found some errors when build with above scripts, then I manually
fix it with below changes.
1. I need to manually edit some spec files ( e.g. newt-python ) to
make python related packages pass compilation.(add below line in spec
file)
%include /usr/lib/rpm/macros.python
I don't know why copy macros.python to /etc/rpm/ does not include
macros.python automatically.
2. I need to remove db4-devel-4.7.25-12.14.moblin2.i586, then I can
compile cyrus-sasl-2.1.22-17.29.moblin2.src.rpm:
3. some packages requires bison(-devel) to build, some requires
byacc. However, bison is conflicted with byacc. So I need to manually
remove one and install another to compile some packages.
4. for kernel package, I edit the spec file and add "netbook"
definition
That is all I have done.
It works. But I don't think this is a good way for automatically
build. ( Because I do some manually changes )
Thanks for updating this thread Axel.
Much appreciated.
Arjan, do you have any comments on the above, does it seem sensible ?
--
Glen Gray <[email protected]> Digital Depot, Thomas Street
Software Engineering Manager Dublin 8, Ireland
Lincor Solutions Ltd. Ph: +353 (0) 1 4893682
_______________________________________________
Moblin dev Mailing List
[email protected]
To manage or unsubscribe from this mailing list visit:
https://lists.moblin.org/mailman/listinfo/dev or your user account on
http://moblin.org once logged in.
For more information on the Moblin Developer Mailing lists visit:
http://moblin.org/community/mailing-lists