The attached patch modifies the parted build such that it searches 'our' 
e2fsprogs build for library and include files.  In particular, parted needs 
libuuid.so and uuid/uuid.h files.  Without this change, parted is getting 
these files from the build host distro instead of the versions we build.

The patch is structured to skip this on ppc64 so it won't change Sean's build.

With this patch, you no longer need e2fsprogs-devel to build parted.
Index: make.d/parted.rul
===================================================================
RCS file: /cvsroot/systemimager/systemimager/make.d/parted.rul,v
retrieving revision 1.15
diff -u -r1.15 parted.rul
--- make.d/parted.rul	12 May 2005 15:04:34 -0000	1.15
+++ make.d/parted.rul	12 May 2005 21:42:16 -0000
@@ -27,8 +27,14 @@
 	cd $(SRC_DIR) && tar -xvzf $(PARTED_TARBALL)
 	cd $(SRC_DIR)/$(PARTED_DIR) && \
 	  cat $(PARTED_PATCHES) < /dev/null | patch -p1
+ifdef IS_PPC64
 	( cd $(SRC_DIR)/$(PARTED_DIR) && \
 	  ./configure --disable-Werror --prefix= $(PARTED_CONFIGURE))
+else
+	( cd $(SRC_DIR)/$(PARTED_DIR) && \
+	  CPPFLAGS=-I$(SRC_DIR)/$(E2FSPROGS_DIR)/lib CFLAGS=-I$(SRC_DIR)/$(E2FSPROGS_DIR)/lib LDFLAGS=-L$(SRC_DIR)/$(E2FSPROGS_DIR)/lib \
+	  ./configure --disable-Werror --prefix= $(PARTED_CONFIGURE))
+endif
 	$(MAKE) -C $(SRC_DIR)/$(PARTED_DIR)
 
 $(SRC_DIR)/$(PARTED_TARBALL):

Reply via email to