Discussion:
[Sisuite-devel] lvm.rul.patch
Bernard Li
2007-02-11 20:54:23 UTC
Permalink
Hi all:

Attached please see a patch to lvm.rul that is necessary to get
SystemImager trunk compiled on Yellow Dog Linux 5.0 ppc64 (on PS3).

I tried compiling the existing code in trunk but LVM failed to build
with a bunch of "undefined reference to `dm_snprintf'". This is
basically due to a device-mapper version mismatch, it would appear
that the following:

LIBRARY_PATH=$(SRC_DIR)/$(DEVMAPPER_DIR)/lib/ioctl \
CPATH=$(SRC_DIR)/$(DEVMAPPER_DIR)/lib

was trying to ensure that LVM is compiled with the version of
device-mapper we bundle, but this doesn't seem to be working with
gcc4.

With the latest LVM, there is a configure option --with-dmdir which
does exactly what the above was trying to do so I thought this may be
more portable.

I successfully built SystemImager trunk on YDL 5.0 ppc64 and RHEL4u3
i386 but I have not tested the LVM code. If someone who could test
this before I check it into SVN, that would be great.

In case you are wondering, we are trying to get SystemImager working
on YDL 5.0 ppc64 such that we can use it for PS3 deployment. If YDL
proves to be problematic, we might switch to Fedora Core 5+.

Special thanks to DongInn Kim from Indiana University for giving me
access to the PS3.

Cheers,

Bernard
Andrea Righi
2007-02-15 19:38:10 UTC
Permalink
Post by Bernard Li
Attached please see a patch to lvm.rul that is necessary to get
SystemImager trunk compiled on Yellow Dog Linux 5.0 ppc64 (on PS3).
I tried compiling the existing code in trunk but LVM failed to build
with a bunch of "undefined reference to `dm_snprintf'". This is
basically due to a device-mapper version mismatch, it would appear
LIBRARY_PATH=$(SRC_DIR)/$(DEVMAPPER_DIR)/lib/ioctl \
CPATH=$(SRC_DIR)/$(DEVMAPPER_DIR)/lib
was trying to ensure that LVM is compiled with the version of
device-mapper we bundle, but this doesn't seem to be working with
gcc4.
With the latest LVM, there is a configure option --with-dmdir which
does exactly what the above was trying to do so I thought this may be
more portable.
I successfully built SystemImager trunk on YDL 5.0 ppc64 and RHEL4u3
i386 but I have not tested the LVM code. If someone who could test
this before I check it into SVN, that would be great.
In case you are wondering, we are trying to get SystemImager working
on YDL 5.0 ppc64 such that we can use it for PS3 deployment. If YDL
proves to be problematic, we might switch to Fedora Core 5+.
Special thanks to DongInn Kim from Indiana University for giving me
access to the PS3.
Cool! Bernard, I can test the LVM code, but only on a i386...

-Andrea
Andrea Righi
2007-02-15 21:43:48 UTC
Permalink
Post by Andrea Righi
Cool! Bernard, I can test the LVM code, but only on a i386...
It seems to work with the current trunk. I don't see any problem to
check it in, so please proceed.

Tomorrow I'll do another test and I'll rebuild RPMs, if someone want to
test it they'll be available here:

http://download.systemimager.org/~arighi/systemimager/

-Andrea

Loading...