summaryrefslogtreecommitdiff
path: root/debian/patches/david-fix-mach_debug.patch
blob: 017548de54f836f15c6f6d8dd6b56aa3d239af8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Hi,

The hard-coded /usr/include vpath will break building with sysroot
headers.  Can the mach_debug defs files be handled like the others?

Thanks.

David

 Makeconf        | 4 ++++
 procfs/Makefile | 3 ---
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/Makeconf b/Makeconf
index 5cf995d..32eec13 100644
--- a/Makeconf
+++ b/Makeconf
@@ -576,13 +576,17 @@ vpath %.defs $(top_srcdir)/hurd
 mach_defs_names = bootstrap exc mach mach4 \
 	mach_host mach_port mach_timer_reply memory_object \
 	memory_object_default notify
+mach_debug_defs_names = mach_debug
 device_defs_names = dev_forward device device_reply device_request
 
 mach_defs = $(addsuffix .defs,$(mach_defs_names))
+mach_debug_defs = $(addsuffix .defs,$(mach_debug_defs_names))
 device_defs = $(addsuffix .defs,$(device_defs_names))
 
 $(mach_defs): %.defs:
 	echo '#include <mach/$@>' > $@
+$(mach_debug_defs): %.defs:
+	echo '#include <mach_debug/$@>' > $@
 $(device_defs): %.defs:
 	echo '#include <device/$@>' > $@
 
diff --git a/procfs/Makefile b/procfs/Makefile
index 6d7ca48..78f20c4 100644
--- a/procfs/Makefile
+++ b/procfs/Makefile
@@ -28,7 +28,4 @@ OBJS = $(SRCS:.c=.o)
 HURDLIBS = netfs fshelp iohelp ps ports ihash shouldbeinlibc
 OTHERLIBS = -lpthread
 
-# Where to find .defs files.
-vpath %.defs /usr/include/mach_debug
-
 include ../Makeconf
-- 
1.9.3