[Aurora-sparc-devel] Build scripts for aurora??
Dean Anderson
dean at av8.com
Mon Jun 11 17:51:16 EDT 2007
On Thu, 7 Jun 2007, Tom "spot" Callaway wrote:
> On Thu, 2007-06-07 at 16:05 -0400, Dean Anderson wrote:
> > Can you post the build scripts that you use to build the distributions?
>
> We're currently using pungi and koji. Its a lot cleaner than how we used
> to it.
These just build ISOs, right? I can do that already with your RPMs and
SRPMs. That isn't my question.
Where are the scripts you use to turn SRPMs into RPMs? Suppose I want to
re-build everything from source? (you do that, right?)
Yes, most SRPMs just work with "rpmbuild -bb <package.spec>". But the
kernel-smp and the compiler don't 'just work' on rebuild.
> > How do things like kernel-smp get built?
>
> Like any other packages. I'm not sure what you're looking for here.
I'd like to build kernel-smp from SRPM. The distributed SRPM identifed
by the distributed RPM doesn't have a package for kernel-smp. Perhaps
there are two SRPMs with the same name and only one is distributed.
Perhaps there are some environment variables passed in to rpmbuild by
the build scripts:
============================
rpm -q -i kernel-smp
Name : kernel-smp Relocations: (not
relocateable)
Version : 2.4.20 Vendor: (none)
Release : 2.3sparc Build Date: Wed 15 Jan 2003
07:06:47 PM EST
Install date: Sat 24 Feb 2007 07:59:04 PM EST Build Host:
fry.rdu.redhat.com
Group : System Environment/Kernel Source RPM:
kernel-2.4.20-2.3sparc.src.rpm
Size : 21653529 License: GPL
Summary : The Linux kernel compiled for SMP machines.
Description :
This package includes a SMP version of the Linux kernel. It is
required only on machines with two or more CPUs, although it should
work fine on single-CPU boxes.
Install the kernel-smp package if your machine uses two or more CPUs.
============================
The spec file:
============================
Name: kernel
Summary: The Linux Kernel
Version: 2.4.202.3sparccustom
Release: 3
License: GPL
Group: System Environment/Kernel
Vendor: The Linux Community
URL: http://www.kernel.org
Source: kernel-2.4.202.3sparccustom.tar.gz
BuildRoot: /var/tmp/%{name}-%{PACKAGE_VERSION}-root
Provides: kernel-2.4.20-2.3sparccustom
%define __spec_install_post /usr/lib/rpm/brp-compress || :
%description
The Linux Kernel, the operating system core itself
%prep
%setup -q
%build
make oldconfig dep clean vmlinux modules
%install
mkdir -p $RPM_BUILD_ROOT/boot $RPM_BUILD_ROOT/lib
$RPM_BUILD_ROOT/lib/modules
INSTALL_MOD_PATH=$RPM_BUILD_ROOT make modules_install
cp vmlinux $RPM_BUILD_ROOT/boot/vmlinux-2.4.20-2.3sparccustom
cp System.map $RPM_BUILD_ROOT/boot/System.map-2.4.20-2.3sparccustom
cp .config $RPM_BUILD_ROOT/boot/config-2.4.20-2.3sparccustom
%clean
#echo -rf $RPM_BUILD_ROOT
%files
%defattr (-, root, root)
%dir /lib/modules
/lib/modules/2.4.20-2.3sparccustom
/boot/*
============================
If there are environment variables, command line options, or non-generic
macro files, these need to be identified or distributed. Anything that
deviates from a generic installation should be noted.
> > What packages need to be installed to rebuild the compiler?
>
> gcc's BuildRequires are correct in the SRPM.
Apparently not. rpmbuild doesn't build the RPM from the SRPM. I get
errors on missing 64bit librarires, regardless of whether the build is
done in sparc32bash or not. Perhaps your build machines have different
rpm macros, environment, or something.
It sounds to me like you might not rebuild everything from source using
a generic-installation system for the distribution. We used to call that
'self-hosting' Do you do that? If so, what exactly are the
specifications of those machines?
--Dean
--
Av8 Internet Prepared to pay a premium for better service?
www.av8.net faster, more reliable, better service
617 344 9000
More information about the Aurora-sparc-devel
mailing list