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

Re: Single kernel variant: Missing linux-headers-*-common package



Hi Waldi,

thanks for your fast reply.

Yeah, it's a bit a "dirty" hack, but worked-for-me.

What about this solution: Putting the creation of l-h-*-common into
binary-arch-flavour?
OK with that one?
(Untested, doing a next build with stable-queue-2.6.35 patches).

- Sedat -

On Wed, Aug 11, 2010 at 12:44 PM, Bastian Blank <waldi@debian.org> wrote:
> On Wed, Aug 11, 2010 at 04:16:20AM +0200, Sedat Dilek wrote:
>> +# Single kernel variant: Create missing linux-headers-*-common package.
>> +install-headers_$(ARCH)_$(FEATURESET)_$(FLAVOUR): install-headers_$(ARCH)_$(FEATURESET)
>
> No. This is not okay. Both targets are called independent from
> rules.gen.
>
> Bastian
>
> --
> Another dream that failed.  There's nothing sadder.
>                -- Kirk, "This side of Paradise", stardate 3417.3
>
diff -rdup debian/rules.real.orig debian/rules.real
--- debian/rules.real.orig	2010-08-11 13:12:25.981224219 +0200
+++ debian/rules.real	2010-08-11 13:11:25.513224219 +0200
@@ -49,6 +49,8 @@ ifeq ($(DEBUG),True)
 endif
 ifeq ($(MODULES),True)
   binary-arch-flavour: install-headers_$(ARCH)_$(FEATURESET)_$(FLAVOUR)
+  # Single kernel variant: Create missing linux-headers-*-common package.
+  binary-arch-flavour: install-headers_$(ARCH)_$(FEATURESET)
 endif
 
 binary-indep: install-doc
@@ -283,8 +285,9 @@ endif
 	dh_link /usr/lib/$(PACKAGE_NAME_KBUILD)/scripts $(BASE_DIR)/scripts
 
 	mkdir -p $(PACKAGE_DIR)/lib/modules/$(REAL_VERSION)
-	ln -s /usr/src/$(PACKAGE_NAME) $(PACKAGE_DIR)/lib/modules/$(REAL_VERSION)/build
-	ln -s /usr/src/$(PACKAGE_NAME_COMMON) $(PACKAGE_DIR)/lib/modules/$(REAL_VERSION)/source
+	# Force creation of symlinks (even if they exist).
+	ln -s -f /usr/src/$(PACKAGE_NAME) $(PACKAGE_DIR)/lib/modules/$(REAL_VERSION)/build
+	ln -s -f /usr/src/$(PACKAGE_NAME_COMMON) $(PACKAGE_DIR)/lib/modules/$(REAL_VERSION)/source
 
 	install -d $(PACKAGE_DIR)/DEBIAN
 	sed -e 's/=V/$(REAL_VERSION)/g' \

Reply to: