From: Ole H. N. <Ole...@fy...> - 2012-06-15 13:06:06
|
LAHAYE Olivier <oli...@ce...> wrote: > I've built the rpm on CentOS-6.2. The resulting rpms seems ok. As I'm porting OSCAR on CentOS-6.2, I've been able to build client images so far, but I can't tell if the resulting image is fully functionnal as systemimage-oscar fail to generate the KERNEL0 line in /var/lib/systemimager/images/<imagename>/etc/systemconfig/systemconfig.conf (problem outside these rpms) > > To build the rpms, just look for the missing archive names in google and download the archive into /usr./src directory. > Note that (sadly) you have to be root to build the rpms as the rpm needs mknode if I'm correct and I didn't find time to look at this issue and have the rpm buildable as non-root. > > Although, it would be cool if the source repository could be updated as it's a pain in the ass to google and fetch the correct sources archives and copy those in the /usr/src directory. I've made a bit of progress towards building the SI RPMs on an RHEL6.2 server, but I didn't make it to the goal yet: 1. I copied the downloaded sources from /root/rpmbuild/BUILD/systemimager-4.3.0/initrd_source/src/ to the permanent place /usr/src/. Strangely, today the correct e2fsprogs can be downloaded successfully (it was absent yesterday). 2. The next missing download is a kernel source file http://download.systemimager.org/pub/linux/linux_2.6.34.1.orig.tar.gz. So I grabbed a similar file from http://www.kernel.org/pub/linux/kernel/v2.6/ and renamed it with the .orig (probably a no-no!). The kernel.org version seems to build, but I had to answer a bunch of configure questions. 3. Next failure occurs when building parted-2.3: ... checking for dm_task_create in -ldevmapper... no configure: error: libdevmapper could not be found, but is required for the --enable-device-mapper option, which is enabled by default. Either disable device-mapper support with --disable-device-mapper or download and install device-mapper from: http://sources.redhat.com/dm/ FYI, our RHEL6.2 server does have the device-mapper 32- and 64-bit RPMs installed with /lib/libdevmapper.so.1.02. Question: Am I on the right track, or is there a better way to build the SI RPMs? Thanks a lot, Ole -- Ole Holm Nielsen Department of Physics, Technical University of Denmark |