[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#633561: pu: package kfreebsd-8/8.1+dfsg-8+squeeze1



Btw, if you can, please also consider this change in addition to the
ones proposed.

  * Add a few missing files in header package to make it possible to
    build external modules.  (Closes: #630509)

Thanks!

-- 
Robert Millan
Index: debian/changelog
===================================================================
--- debian/changelog	(revision 3674)
+++ debian/changelog	(working copy)
@@ -7,6 +7,8 @@
     - 000_msk_backport.diff
   * Disable buggy 009_disable_duped_modules.diff.  It was disabling many
     more modules than built into kernel (e.g. all USB modules).
+  * Add a few missing files in header package to make it possible to
+    build external modules.  (Closes: #630509)
 
  -- Robert Millan <rmh@debian.org>  Mon, 11 Jul 2011 17:32:30 +0200
 
Index: debian/rules
===================================================================
--- debian/rules	(revision 3674)
+++ debian/rules	(working copy)
@@ -157,7 +157,22 @@
 	mkdir -p $(HEADERS_PACKAGE)/usr/src/$(HEADERS_DIR)
 	cd src \
 		&& find . -type f -name "*.h" -not -regex ".*modules.*" -not -regex ".*sys/$(cpu)/.*" -exec cp --parents {} $(HEADERS_PACKAGE)/usr/src/$(HEADERS_DIR) \;
+
+	mkdir -p $(HEADERS_PACKAGE)/usr/src/$(HEADERS_DIR)/conf 
+	cd src && cp --parents \
+		sys/conf/kern.mk \
+		sys/conf/kmod.mk \
+		sys/conf/kmod_syms.awk \
+		sys/kern/bus_if.m \
+		sys/dev/pci/pci_if.m \
+		sys/kern/device_if.m \
+		sys/kern/vnode_if.src \
+		sys/tools/vnode_if.awk \
+		sys/tools/makeobjops.awk \
+		$(HEADERS_PACKAGE)/usr/src/$(HEADERS_DIR)
+
 	find $(HEADERS_PACKAGE)/usr/src/$(HEADERS_DIR) -type f -exec chmod 644 {} \;
+	find $(HEADERS_PACKAGE)/usr/src/$(HEADERS_DIR) -type f -name "*.awk" -exec chmod 755 {} \;
 
 	touch install-common-stamp
 
@@ -232,6 +247,7 @@
 	for dir in `ls $(HEADERS_PACKAGE)/usr/src/$(HEADERS_DIR)/sys` ; do \
 		ln -s ../../$(HEADERS_DIR)/sys/$$dir $(HEADERS_PACKAGE)-$*/usr/src/$(HEADERS_DIR)-$*/sys/$$dir ; \
 	done
+	ln -s $(cpu)/include $(HEADERS_PACKAGE)-$*/usr/src/$(HEADERS_DIR)-$*/sys/machine
 
 	touch install-flavor-$*-stamp
 

Reply to: