[patch] fix parallel build failures in xfsprogs-3.0.0

Mike Frysinger
2009-02-24T05:10:58Z

[-- Attachment #1.1.1: Type: text/plain, Size: 341 bytes --]

i noticed that xfsprogs-3.0.0 sometimes fails to build in parallel with an
error about fsr not being able to find libhandle. looking at the top level
Makefile shows the obvious missing depend (fsr: libhandle). playing around a
bit found a few more not so obvious missing depends on the include subdir, so
i fixed that too.
-mike

[-- Attachment #1.1.2: xfsprogs-3.0.0-parallel-build.patch --]
[-- Type: text/x-patch, Size: 914 bytes --]

http://bugs.gentoo.org/260005

--- a/Makefile
+++ b/Makefile
@@ -15,11 +15,11 @@
LDIRT = config.log .dep config.status config.cache confdefs.h conftest* \
Logs/* built .census install.* install-dev.* *.gz

-LIB_SUBDIRS = include libxfs libxlog libxcmd libhandle libdisk
+LIB_SUBDIRS = libxfs libxlog libxcmd libhandle libdisk
TOOL_SUBDIRS = copy db estimate fsck fsr growfs io logprint mkfs quota \
mdrestore repair rtcp m4 man doc po debian build

-SUBDIRS = $(LIB_SUBDIRS) $(TOOL_SUBDIRS)
+SUBDIRS = include $(LIB_SUBDIRS) $(TOOL_SUBDIRS)

default: include/builddefs include/platform_defs.h
ifeq ($(HAVE_BUILDDEFS), no)
@@ -29,9 +29,10 @@
endif

# tool/lib dependencies
-libxcmd: include
+$(LIB_SUBDIRS) $(TOOL_SUBDIRS): include
copy mdrestore: libxfs
db logprint: libxfs libxlog
+fsr: libhandle
growfs: libxfs libxcmd
io: libxcmd libhandle
mkfs: libxfs libdisk

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 121 bytes --]