Skip to contentSkip to conversation

stubdom: fix link farm runes

PATCH Superseded Wei Liu 3 participants 7 messages Feb 15, 2016 – Feb 16, 2016

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

PATCH 1/1 stubdom: fix link farm runes

Previously in the three problematic libraries all public headers were linked to source code directory. We should have created a include directory and link headers there.

---
Cc: Ian Jackson <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Ian Campbell <[email protected]>
Cc: Wei Liu <[email protected]>
Cc: Samuel Thibault <[email protected]>

---
 stubdom/Makefile | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
stubdom/Makefile +6 -6
index 6f68e98..2044d76 100644
@@ -314,9 +314,9 @@ mk-headers-$(XEN_TARGET_ARCH): $(IOEMU_LINKFARM_TARGET)
 	  ln -sf $(wildcard $(XEN_ROOT)/tools/include/xen-foreign/*) include/xen-foreign/ && \
 	  $(MAKE) DESTDIR= -C include/xen-foreign/ && \
 	  ( [ -h include/xen/foreign ] || ln -sf ../xen-foreign include/xen/foreign )
-	mkdir -p libs-$(XEN_TARGET_ARCH)/toollog
+	mkdir -p libs-$(XEN_TARGET_ARCH)/toollog/include
 	[ -h libs-$(XEN_TARGET_ARCH)/toollog/Makefile ] || ( cd libs-$(XEN_TARGET_ARCH)/toollog && \
-	  ln -sf $(XEN_ROOT)/tools/libs/toollog/include/*.h . && \
+	  ln -sf $(XEN_ROOT)/tools/libs/toollog/include/*.h include/ && \
 	  ln -sf $(XEN_ROOT)/tools/libs/toollog/*.c . && \
 	  ln -sf $(XEN_ROOT)/tools/libs/toollog/Makefile . )
 	mkdir -p libs-$(XEN_TARGET_ARCH)/evtchn/include
@@ -343,17 +343,17 @@ mk-headers-$(XEN_TARGET_ARCH): $(IOEMU_LINKFARM_TARGET)
 	  ln -sf $(XEN_ROOT)/tools/libs/foreignmemory/include/*.h include/ && \
 	  ln -sf $(XEN_ROOT)/tools/libs/foreignmemory/*.c . && \
 	  ln -sf $(XEN_ROOT)/tools/libs/foreignmemory/Makefile . )
-	mkdir -p libxc-$(XEN_TARGET_ARCH)
+	mkdir -p libxc-$(XEN_TARGET_ARCH)/include
 	[ -h libxc-$(XEN_TARGET_ARCH)/Makefile ] || ( cd libxc-$(XEN_TARGET_ARCH) && \
 	  ln -sf $(XEN_ROOT)/tools/libxc/*.h . && \
-	  ln -sf $(XEN_ROOT)/tools/libxc/include/*.h . && \
+	  ln -sf $(XEN_ROOT)/tools/libxc/include/*.h include/ && \
 	  ln -sf $(XEN_ROOT)/tools/libxc/*.c . && \
 	  ln -sf $(XEN_ROOT)/tools/libxc/Makefile . )
-	mkdir -p xenstore
+	mkdir -p xenstore/include
 	[ -h xenstore/Makefile ] || ( cd xenstore && \
 	  ln -sf $(XEN_ROOT)/tools/xenstore/*.c . && \
 	  ln -sf $(XEN_ROOT)/tools/xenstore/*.h . && \
-	  ln -sf $(XEN_ROOT)/tools/xenstore/include/*.h . && \
+	  ln -sf $(XEN_ROOT)/tools/xenstore/include/*.h include/ && \
 	  ln -sf $(XEN_ROOT)/tools/xenstore/Makefile . )
 	$(MAKE) DESTDIR= -C $(MINI_OS) links
 	touch mk-headers-$(XEN_TARGET_ARCH)
Signature · 1 line
2.1.4
author
#1 lore raw
Quoted 3 lines · Wei Liu

Previously in the three problematic libraries all public headers were linked to source code directory. We should have created a include directory and link headers there.

We should have created an include directory for each library and linked headers there.

Quoted 53 lines

---
Cc: Ian Jackson <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Ian Campbell <[email protected]>
Cc: Wei Liu <[email protected]>
Cc: Samuel Thibault <[email protected]>

---
 stubdom/Makefile | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
stubdom/Makefile +6 -6
index 6f68e98..2044d76 100644
@@ -314,9 +314,9 @@ mk-headers-$(XEN_TARGET_ARCH): $(IOEMU_LINKFARM_TARGET)
 	  ln -sf $(wildcard $(XEN_ROOT)/tools/include/xen-foreign/*) include/xen-foreign/ && \
 	  $(MAKE) DESTDIR= -C include/xen-foreign/ && \
 	  ( [ -h include/xen/foreign ] || ln -sf ../xen-foreign include/xen/foreign )
-	mkdir -p libs-$(XEN_TARGET_ARCH)/toollog
+	mkdir -p libs-$(XEN_TARGET_ARCH)/toollog/include
 	[ -h libs-$(XEN_TARGET_ARCH)/toollog/Makefile ] || ( cd libs-$(XEN_TARGET_ARCH)/toollog && \
-	  ln -sf $(XEN_ROOT)/tools/libs/toollog/include/*.h . && \
+	  ln -sf $(XEN_ROOT)/tools/libs/toollog/include/*.h include/ && \
 	  ln -sf $(XEN_ROOT)/tools/libs/toollog/*.c . && \
 	  ln -sf $(XEN_ROOT)/tools/libs/toollog/Makefile . )
 	mkdir -p libs-$(XEN_TARGET_ARCH)/evtchn/include
@@ -343,17 +343,17 @@ mk-headers-$(XEN_TARGET_ARCH): $(IOEMU_LINKFARM_TARGET)
 	  ln -sf $(XEN_ROOT)/tools/libs/foreignmemory/include/*.h include/ && \
 	  ln -sf $(XEN_ROOT)/tools/libs/foreignmemory/*.c . && \
 	  ln -sf $(XEN_ROOT)/tools/libs/foreignmemory/Makefile . )
-	mkdir -p libxc-$(XEN_TARGET_ARCH)
+	mkdir -p libxc-$(XEN_TARGET_ARCH)/include
 	[ -h libxc-$(XEN_TARGET_ARCH)/Makefile ] || ( cd libxc-$(XEN_TARGET_ARCH) && \
 	  ln -sf $(XEN_ROOT)/tools/libxc/*.h . && \
-	  ln -sf $(XEN_ROOT)/tools/libxc/include/*.h . && \
+	  ln -sf $(XEN_ROOT)/tools/libxc/include/*.h include/ && \
 	  ln -sf $(XEN_ROOT)/tools/libxc/*.c . && \
 	  ln -sf $(XEN_ROOT)/tools/libxc/Makefile . )
-	mkdir -p xenstore
+	mkdir -p xenstore/include
 	[ -h xenstore/Makefile ] || ( cd xenstore && \
 	  ln -sf $(XEN_ROOT)/tools/xenstore/*.c . && \
 	  ln -sf $(XEN_ROOT)/tools/xenstore/*.h . && \
-	  ln -sf $(XEN_ROOT)/tools/xenstore/include/*.h . && \
+	  ln -sf $(XEN_ROOT)/tools/xenstore/include/*.h include/ && \
 	  ln -sf $(XEN_ROOT)/tools/xenstore/Makefile . )
 	$(MAKE) DESTDIR= -C $(MINI_OS) links
 	touch mk-headers-$(XEN_TARGET_ARCH)
Signature · 1 line
2.1.4
Acked-by on v1 1/1
#2 lore raw
In reply to Wei Liu
Quoted 5 lines · Wei Liu, on Mon 15 Feb 2016 19:40:28 +0000, wrote:

Previously in the three problematic libraries all public headers were linked to source code directory. We should have created a include directory and link headers there.

Indeed, 31d2d1e0 (Move xenstore and libxc public headers to include subdir) should have done that.

Quoted 51 lines

---
Cc: Ian Jackson <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Ian Campbell <[email protected]>
Cc: Wei Liu <[email protected]>
Cc: Samuel Thibault <[email protected]>

---
 stubdom/Makefile | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
stubdom/Makefile +6 -6
index 6f68e98..2044d76 100644
@@ -314,9 +314,9 @@ mk-headers-$(XEN_TARGET_ARCH): $(IOEMU_LINKFARM_TARGET)
 	  ln -sf $(wildcard $(XEN_ROOT)/tools/include/xen-foreign/*) include/xen-foreign/ && \
 	  $(MAKE) DESTDIR= -C include/xen-foreign/ && \
 	  ( [ -h include/xen/foreign ] || ln -sf ../xen-foreign include/xen/foreign )
-	mkdir -p libs-$(XEN_TARGET_ARCH)/toollog
+	mkdir -p libs-$(XEN_TARGET_ARCH)/toollog/include
 	[ -h libs-$(XEN_TARGET_ARCH)/toollog/Makefile ] || ( cd libs-$(XEN_TARGET_ARCH)/toollog && \
-	  ln -sf $(XEN_ROOT)/tools/libs/toollog/include/*.h . && \
+	  ln -sf $(XEN_ROOT)/tools/libs/toollog/include/*.h include/ && \
 	  ln -sf $(XEN_ROOT)/tools/libs/toollog/*.c . && \
 	  ln -sf $(XEN_ROOT)/tools/libs/toollog/Makefile . )
 	mkdir -p libs-$(XEN_TARGET_ARCH)/evtchn/include
@@ -343,17 +343,17 @@ mk-headers-$(XEN_TARGET_ARCH): $(IOEMU_LINKFARM_TARGET)
 	  ln -sf $(XEN_ROOT)/tools/libs/foreignmemory/include/*.h include/ && \
 	  ln -sf $(XEN_ROOT)/tools/libs/foreignmemory/*.c . && \
 	  ln -sf $(XEN_ROOT)/tools/libs/foreignmemory/Makefile . )
-	mkdir -p libxc-$(XEN_TARGET_ARCH)
+	mkdir -p libxc-$(XEN_TARGET_ARCH)/include
 	[ -h libxc-$(XEN_TARGET_ARCH)/Makefile ] || ( cd libxc-$(XEN_TARGET_ARCH) && \
 	  ln -sf $(XEN_ROOT)/tools/libxc/*.h . && \
-	  ln -sf $(XEN_ROOT)/tools/libxc/include/*.h . && \
+	  ln -sf $(XEN_ROOT)/tools/libxc/include/*.h include/ && \
 	  ln -sf $(XEN_ROOT)/tools/libxc/*.c . && \
 	  ln -sf $(XEN_ROOT)/tools/libxc/Makefile . )
-	mkdir -p xenstore
+	mkdir -p xenstore/include
 	[ -h xenstore/Makefile ] || ( cd xenstore && \
 	  ln -sf $(XEN_ROOT)/tools/xenstore/*.c . && \
 	  ln -sf $(XEN_ROOT)/tools/xenstore/*.h . && \
-	  ln -sf $(XEN_ROOT)/tools/xenstore/include/*.h . && \
+	  ln -sf $(XEN_ROOT)/tools/xenstore/include/*.h include/ && \
 	  ln -sf $(XEN_ROOT)/tools/xenstore/Makefile . )
 	$(MAKE) DESTDIR= -C $(MINI_OS) links
 	touch mk-headers-$(XEN_TARGET_ARCH)
Signature · 1 line
2.1.4
Signature · 4 lines
Samuel
  bien sûr que ça convient mieux à tout le monde
  enfin, dans la mesure où tout le monde c'est comme moi
 -+- le consensus, c'est facile -+-
#3 lore raw
In reply to Wei Liu
Quoted 3 lines · Wei Liu

Previously in the three problematic libraries all public headers were linked to source code directory. We should have created a include directory and link headers there.

What breakage arose from not having done so?

Quoted 59 lines

---
Cc: Ian Jackson <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Ian Campbell <[email protected]>
Cc: Wei Liu <[email protected]>
Cc: Samuel Thibault <[email protected]>

---
 stubdom/Makefile | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
stubdom/Makefile +2 -3
index 6f68e98..2044d76 100644
@@ -314,9 +314,9 @@ mk-headers-$(XEN_TARGET_ARCH):
 $(IOEMU_LINKFARM_TARGET)
 	  ln -sf $(wildcard $(XEN_ROOT)/tools/include/xen-foreign/*)
 include/xen-foreign/ && \
 	  $(MAKE) DESTDIR= -C include/xen-foreign/ && \
 	  ( [ -h include/xen/foreign ] || ln -sf ../xen-foreign
 include/xen/foreign )
-	mkdir -p libs-$(XEN_TARGET_ARCH)/toollog
+	mkdir -p libs-$(XEN_TARGET_ARCH)/toollog/include
 	[ -h libs-$(XEN_TARGET_ARCH)/toollog/Makefile ] || ( cd libs
-$(XEN_TARGET_ARCH)/toollog && \
-	  ln -sf $(XEN_ROOT)/tools/libs/toollog/include/*.h . && \
+	  ln -sf $(XEN_ROOT)/tools/libs/toollog/include/*.h include/

&& \

stubdom/Makefile +4 -5
 	  ln -sf $(XEN_ROOT)/tools/libs/toollog/*.c . && \
 	  ln -sf $(XEN_ROOT)/tools/libs/toollog/Makefile . )
 	mkdir -p libs-$(XEN_TARGET_ARCH)/evtchn/include
@@ -343,17 +343,17 @@ mk-headers-$(XEN_TARGET_ARCH):
 $(IOEMU_LINKFARM_TARGET)
 	  ln -sf $(XEN_ROOT)/tools/libs/foreignmemory/include/*.h
 include/ && \
 	  ln -sf $(XEN_ROOT)/tools/libs/foreignmemory/*.c . && \
 	  ln -sf $(XEN_ROOT)/tools/libs/foreignmemory/Makefile . )
-	mkdir -p libxc-$(XEN_TARGET_ARCH)
+	mkdir -p libxc-$(XEN_TARGET_ARCH)/include
 	[ -h libxc-$(XEN_TARGET_ARCH)/Makefile ] || ( cd libxc
-$(XEN_TARGET_ARCH) && \
 	  ln -sf $(XEN_ROOT)/tools/libxc/*.h . && \
-	  ln -sf $(XEN_ROOT)/tools/libxc/include/*.h . && \
+	  ln -sf $(XEN_ROOT)/tools/libxc/include/*.h include/ && \
 	  ln -sf $(XEN_ROOT)/tools/libxc/*.c . && \
 	  ln -sf $(XEN_ROOT)/tools/libxc/Makefile . )
-	mkdir -p xenstore
+	mkdir -p xenstore/include
 	[ -h xenstore/Makefile ] || ( cd xenstore && \
 	  ln -sf $(XEN_ROOT)/tools/xenstore/*.c . && \
 	  ln -sf $(XEN_ROOT)/tools/xenstore/*.h . && \
-	  ln -sf $(XEN_ROOT)/tools/xenstore/include/*.h . && \
+	  ln -sf $(XEN_ROOT)/tools/xenstore/include/*.h include/ &&

\

stubdom/Makefile +0 -0
 	  ln -sf $(XEN_ROOT)/tools/xenstore/Makefile . )
 	$(MAKE) DESTDIR= -C $(MINI_OS) links
 	touch mk-headers-$(XEN_TARGET_ARCH)
author
#4 lore raw
Quoted 7 lines · Ian Campbell
Quoted 3 lines · Wei Liu

Previously in the three problematic libraries all public headers were linked to source code directory. We should have created a include directory and link headers there.

What breakage arose from not having done so?

No visible breakage for these three packages. I noticed this deviation when working on devicemodel library and thought they should follow the same pattern as other libraries.

Wei.

#5 lore raw
Quoted 7 lines · Wei Liu
Quoted 2 lines · Ian Campbell
Quoted 1 line · Wei Liu

Previously in the three problematic libraries all public headers

were

Quoted 3 lines
Quoted 2 lines

linked to source code directory. We should have created a include directory and link headers there.

Quoted 6 lines
Quoted 2 lines

What breakage arose from not having done so?

No visible breakage for these three packages. I noticed this deviation when working on devicemodel library and thought they should follow the same pattern as other libraries.

Thanks. This sort of thing is worth noting in the commit log.

Ian.

author
#6 lore raw
Quoted 8 lines · Ian Campbell
Quoted 7 lines · Wei Liu
Quoted 2 lines · Ian Campbell
Quoted 1 line · Wei Liu

Previously in the three problematic libraries all public headers

were

Quoted 3 lines
Quoted 2 lines

linked to source code directory. We should have created a include directory and link headers there.

Quoted 9 lines
Quoted 6 lines
Quoted 2 lines

What breakage arose from not having done so?

No visible breakage for these three packages. I noticed this deviation when working on devicemodel library and thought they should follow the same pattern as other libraries.

Thanks. This sort of thing is worth noting in the commit log.

V2 coming shortly.

Wei.

Quoted 2 lines

Ian.