2009/2/19 Glen Gray <[email protected]>:
> Ok guys,
>
> I'm hoping to start looking at creating my local moblin repo with rebuilt
> SRPMS that include more generic i686 compiler flags. Seeing as there's been
> some discussions on this already, I thought it might be an idea to setup a
> thread specifically on how to setup a build host for this.
>
> So, what I'm starting off with is a Fedora 10 x86 installation. It's up to
> date with the standard yum repo's and has all the various X and Gnome
> development groups installed.
>
> In the past I've used yum-pull tools from Bill Stearns' web site for setting
> up our own local snapshot of the fedora repo as well as creating our own
> local repo (http://www.stearns.org/mirror/README.yum-pull.html). Very useful
> set of tools. So I was planning on adopting a similar approach for my
> rebuilt moblin rpms.
>
> So, now it's over to yo guys. What other steps should I take to configure my
> buildhost to be able to correctly rebuild the srpms from mobiln ?
>
> Thanks in advance,


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 )

Regards,
Axel



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

Reply via email to