[PATCH] Provide packaging rules in eglibc-source
I am working on package which bootstraps cross compiler using *-source
packages from gcc/eglibc/binutils/linux ones. To make it possible I need
packaging rules from debian/ directory available.
This patch is backport from Ubuntu where it got included in eglibc
2.12.1-0ubuntu1 package - LP: 609162
https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/609162
This will be not needed when multiarch will be working fully as there
will be
no need to bootstrap cross-compiler for existing architectures - cross
build
dependencies will be used instead.
>From f78d8e220d6daf53188e89c3aefa73640498fd55 Mon Sep 17 00:00:00 2001
From: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
Date: Thu, 3 Feb 2011 15:43:15 +0100
Subject: [PATCH] Provide packaging data in eglibc-source package
I am working on package which will bootstrap cross compiler using *-source
packages from gcc/eglibc/binutils/linux ones. To make it possible I need
packaging rules from debian/ directory available.
This patch is backport from Ubuntu where it got included in eglibc
2.12.1-0ubuntu1 package - LP: 609162
This will be not needed when multiarch will be working fully as there will be
no need to bootstrap cross-compiler for existing architectures - cross build
dependencies will be used instead.
---
rules.d/build.mk | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/debian/rules.d/build.mk b/debian/rules.d/build.mk
index ae5678d..092a892 100644
--- a/debian/rules.d/build.mk
+++ b/debian/rules.d/build.mk
@@ -172,6 +172,16 @@ $(stamp)source: $(stamp)patch
tar -c -J -C .. \
-f $(build-tree)/eglibc-$(EGLIBC_VERSION).tar.xz \
$(EGLIBC_SOURCES)
+ mkdir -p debian/eglibc-source/usr/src/glibc
+ tar cf - \
+ debian/{README*,TODO,changelog*,compat,control,copyright} \
+ debian/{debver2localesdep.pl,generate-supported.mk,locales-depver} \
+ debian/{*.symbols.*,symbols.wildcards} \
+ debian/{quiltrc,rules,shlibs-add-udebs,shlibver,watch} \
+ debian/{bug,control.in,debhelper.in,local,patches,po,rules.d} \
+ debian/{script.in,source,sysdeps,testsuite-checking,wrapper} \
+ | tar -x -C debian/eglibc-source/usr/src/glibc -f -
+
touch $@
.NOTPARALLEL: $(patsubst %,check_%,$(EGLIBC_PASSES))
--
1.7.2.3
Reply to: