Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-fs/mtd-utils/files: mtd-utils-fixup.patch
Date: Wed, 24 Sep 2008 02:11:22
Message-Id: E1KiJqZ-0005WL-Lf@stork.gentoo.org
1 robbat2 08/09/24 02:11:19
2
3 Added: mtd-utils-fixup.patch
4 Log:
5 Fix inverted xattr logic per bug #238435 and also parallel build.
6 (Portage version: 2.2_rc8/cvs/Linux 2.6.27-rc1-10246-gca5de40 x86_64)
7
8 Revision Changes Path
9 1.1 sys-fs/mtd-utils/files/mtd-utils-fixup.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/mtd-utils/files/mtd-utils-fixup.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/mtd-utils/files/mtd-utils-fixup.patch?rev=1.1&content-type=text/plain
13
14 Index: mtd-utils-fixup.patch
15 ===================================================================
16 Fix up the parallel building. Without this fix, each instance of the NTARGETS
17 will try to build the libraries seperately, and on a suitably fast machine this
18 can lead to overwriting. Add a specific instance to build the libraries first.
19
20 Signed-off-by: Robin H. Johnson <robbat2@g.o>
21
22 diff -Nuar mtd-utils.orig/ubi-utils/Makefile mtd-utils/ubi-utils/Makefile
23 --- mtd-utils.orig/ubi-utils/Makefile 2008-09-23 18:51:00.129193374 -0700
24 +++ mtd-utils/ubi-utils/Makefile 2008-09-23 18:54:04.097290355 -0700
25 @@ -34,7 +34,10 @@
26 IGNORE=${wildcard .*.c.dep}
27 -include ${IGNORE}
28
29 -$(NTARGETS):
30 +nlibs:
31 + $(MAKE) -C new-utils libs
32 +
33 +$(NTARGETS): nlibs
34 $(MAKE) -C new-utils $@
35 mv new-utils/$@ $@
36
37 diff -Nuar mtd-utils.orig/ubi-utils/new-utils/Makefile mtd-utils/ubi-utils/new-utils/Makefile
38 --- mtd-utils.orig/ubi-utils/new-utils/Makefile 2008-09-23 18:51:00.179204851 -0700
39 +++ mtd-utils/ubi-utils/new-utils/Makefile 2008-09-23 18:53:32.513881545 -0700
40 @@ -19,6 +19,7 @@
41 vpath %.c src
42
43 all: $(UTILS)
44 +libs: $(addsuffix .a,$(LIBS))
45
46 # The below cancels existing implicite rule to make programs from .c files,
47 # in order to force make using our rule defined below