--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: allow to inject linux-libc-dev dependency for cross-toolchain-base builds
- From: Matthias Klose <doko@debian.org>
- Date: Thu, 24 Nov 2016 14:06:29 +0100
- Message-id: <4e19ed02-c43c-df63-91f9-04c8bf9c3f78@debian.org>
Package: src:glibc
Version: 2.24-6
Tags: patch
cross-toolchain-base builds both linux-libc-dev and libc-dev packages at the
same time, without having an linux-libc-dev installed. just allow to inject that
dependency by the build environment. It's better than having a local patch in
the cross-toolchain-base package which can fail to apply with further updates.
diff -Nru glibc-2.24/debian/changelog glibc-2.24/debian/changelog
--- glibc-2.24/debian/changelog 2016-11-21 18:22:48.000000000 +0000
+++ glibc-2.24/debian/changelog 2016-11-24 11:19:24.000000000 +0000
@@ -1,3 +1,10 @@
+glibc (2.24-6.1) UNRELEASED; urgency=medium
+
+ * Allow to inject the libc-dev dependency on linux-libc-dev by the build
+ environment.
+
+ -- Matthias Klose <doko@debian.org> Thu, 24 Nov 2016 12:19:24 +0100
+
glibc (2.24-6) unstable; urgency=medium
[ Samuel Thibault ]
diff -Nru glibc-2.24/debian/rules.d/debhelper.mk glibc-2.24/debian/rules.d/debhelper.mk
--- glibc-2.24/debian/rules.d/debhelper.mk 2016-11-21 18:22:01.000000000 +0000
+++ glibc-2.24/debian/rules.d/debhelper.mk 2016-11-24 11:19:21.000000000 +0000
@@ -160,7 +160,14 @@
echo 'libgcc:Depends=libgcc1 [!hppa !m68k], libgcc2 [m68k], libgcc4 [hppa]' >> tmp.substvars
endif
ifeq ($(DEB_HOST_ARCH_OS),linux)
- echo "libc-dev:Depends=$$(dpkg-query -f '$${binary:Package} (>= $${Version}) ' -W linux-libc-dev:$(DEB_HOST_ARCH) | sed -e 's/:\S\+//')" >> tmp.substvars
+ # cross-toolchain-base builds both linux-libc-dev and libc-dev package in one step,
+ # not using an installed linux-libc-dev package. Injecting the dependency by the env.
+ if [ -n "$$CTB_LIBC_DEV_DEPENDS" ]; then \
+ depends=$$CTB_LIBC_DEV_DEPENDS; \
+ else \
+ depends=$$(dpkg-query -f '$${binary:Package} (>= $${Version}) ' -W linux-libc-dev:$(DEB_HOST_ARCH) | sed -e 's/:\S\+//'); \
+ fi; \
+ echo "libc-dev:Depends=$$depends" >> tmp.substvars
endif
for pkg in $(DEB_ARCH_REGULAR_PACKAGES) $(DEB_INDEP_REGULAR_PACKAGES) $(DEB_UDEB_PACKAGES); do \
--- End Message ---
--- Begin Message ---
- To: Matthias Klose <doko@debian.org>, 845544-done@bugs.debian.org
- Subject: Bug#845544: allow to inject linux-libc-dev dependency for cross-toolchain-base builds
- From: Aurelien Jarno <aurelien@aurel32.net>
- Date: Mon, 31 Jul 2017 17:11:10 +0200
- Message-id: <20170731151110.uyhot54n63np3wvp@aurel32.net>
- In-reply-to: <4e19ed02-c43c-df63-91f9-04c8bf9c3f78@debian.org>
- References: <4e19ed02-c43c-df63-91f9-04c8bf9c3f78@debian.org>
Version: 2.24-7
On 2016-11-24 14:06, Matthias Klose wrote:
> Package: src:glibc
> Version: 2.24-6
> Tags: patch
>
> cross-toolchain-base builds both linux-libc-dev and libc-dev packages at the
> same time, without having an linux-libc-dev installed. just allow to inject that
> dependency by the build environment. It's better than having a local patch in
> the cross-toolchain-base package which can fail to apply with further updates.
>
This has been merged in version 2.24-7, but the bug hasn't been closed.
Doing so now.
--
Aurelien Jarno GPG: 4096R/1DDD8C9B
aurelien@aurel32.net http://www.aurel32.net
--- End Message ---