[RULE] What I did on my Summer vacation...

Michael Fratoni mfratoni at tuxfan.homeip.net
Sun Jul 27 19:39:10 EEST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 27 July 2003 12:04 pm, Eugene Wong wrote:
> From: Michael Fratoni 
>
> >I've now managed to create a source rpm that builds just TinyX. (Even
> > on an i586, this takes less than 15 minutes)

> I hope the vacation went well with you.

It was excellent, thanks.

> Would you be able to give a brief explanation as to how you managed to
> build only TinyX? I'm not sure that I follow. I've built older versions
> [4.2.* or something like that] of TinyX, but I don't understand how you
> could only build "some of this" & "none of that".
>
> You never cease to amaze me, as to what can done with the various
> sources.

I'll try. ;)

The package I created provides only a .spec file, and relies on Red Hat's 
XFree86 package for the source and patches. In my spec file, I've 
redefined where the package will look for it's sources, like so:
%define _sourcedir  %{_topdir}/SOURCES/XFree86-%{version} 
Normally, rpm would expect the sources to be in:
%{_topdir}/SOURCES/%{name}-%{version} 
In our case this would be
%{_topdir}/SOURCES/XFree86-TinyX-4.3.0
(%{_topdir} defaults to /usr/src/redhat, unless you have modified your 
rpmbuild environment so you can build as a non root user.)

Rebuilding using my spec file causes the rpmbuild process to unpack the 
sources and apply all the XFree86 patches, then replaces the host.def 
file with one that causes only TinyX to be built. 
( By using  #define BuildServersOnly        YES )

Now, modifying the TinyX build options is as simple as editing the spec 
file in the section where we write out the new host.def file, then 
rebuilding the package.

For more details, install the package
http://www.tuxfan.homeip.net:8080/rule/RPMS/kdrive/9/XFree86-TinyX-4.3.0-7RULE.nosrc.rpm
and have a look at the spec file. If you have more questions, let me know, 
and I'll see what I can do.

- -- 
- -Michael

pgp key:  http://www.tuxfan.homeip.net:8080/gpgkey.txt
Red Hat Linux 7.{2,3}|8.0|9 in 8M of RAM: www.rule-project.org
- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE/JAAun/07WoAb/SsRAqj+AJ9me9H9qOOOiSBgxQFnC/pnM5MvJACfVFup
F1hbIri3goI9WljbMiJIk2E=
=s8+h
-----END PGP SIGNATURE-----



_______________________________________________
Original home page of the RULE project: www.rule-project.org
Original Rule Development Site http://savannah.gnu.org/projects/rule/
Original RULE mailing list: Rule-list at nongnu.org, hosted at http://mail.nongnu.org/mailman/listinfo/rule-list




This full static mirror of the Run Up to Date Linux Everywhere Project mailing list, originally hosted at http://lists.hellug.gr/mailman/listinfo/rule-list, is kept online by Free Software popularizer, researcher and trainer Marco Fioretti. To know how you can support this archive, and Marco's work in general, please click here