On Fri, Mar 11, 2011 at 06:23:23PM +0100, Marcin Juszkiewicz wrote:
> 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 <[email protected]>
> 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 $@
>  

This basically the whole debian/ directory into eglibc-source, including
patches. However the tarball provided in eglibc-source contains already
patched source, so I don't really understand how it works.

-- 
Aurelien Jarno                          GPG: 1024D/F1BCDB73
[email protected]                 http://www.aurel32.net


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to