Bug#930734: glibc: Doesn't honor noudeb build profile

2019-07-29 Thread Aurelien Jarno
On 2019-06-19 14:51, Sven Mueller wrote:
> Package: glibc
> Version: 2.28-10
> Tags: patch
> 
> https://wiki.debian.org/BuildProfileSpec documents noudeb specifically to
> disable building .udeb packages, but the glibc sources only honor the
> (deprecated!) stage1 profile.

Actually it's deprecated for general package, but it's the correct way
for "early cross-compiler bootstrap phase", which is the case here.
Anyway stage1 is still actively used by other packages.

> The attached patch disables building udebs if stage1 isn't given but noudeb
> is (stage1 already disabled them).

Thanks applied.

Cheers,
Aurelien

-- 
Aurelien Jarno  GPG: 4096R/1DDD8C9B
aurel...@aurel32.net http://www.aurel32.net



Bug#930734: glibc: Doesn't honor noudeb build profile

2019-06-19 Thread Sven Mueller
Package: glibc
Version: 2.28-10
Tags: patch

https://wiki.debian.org/BuildProfileSpec documents noudeb specifically to
disable building .udeb packages, but the glibc sources only honor the
(deprecated!) stage1 profile.
The attached patch disables building udebs if stage1 isn't given but noudeb
is (stage1 already disabled them).

Cheers,
Sven
--- debian/rules.orig	2019-06-19 13:59:00.249150884 +0200
+++ debian/rules	2019-06-19 14:00:35.224406795 +0200
@@ -138,7 +138,11 @@
 else
   DEB_ARCH_REGULAR_PACKAGES = $(libc) $(libc)-dev $(libc)-dbg $(libc)-pic libc-bin libc-dev-bin multiarch-support
   DEB_INDEP_REGULAR_PACKAGES = glibc-doc glibc-source libc-l10n locales
-  DEB_UDEB_PACKAGES = $(libc)-udeb
+  ifneq ($(filter noudeb,$(DEB_BUILD_PROFILES)),)
+DEB_UDEB_PACKAGES = 
+  else
+DEB_UDEB_PACKAGES = $(libc)-udeb
+  endif
   ## Locales can only be pre-generated during native compiles
   ifeq ($(DEB_HOST_ARCH),$(DEB_BUILD_ARCH))
 DEB_ARCH_REGULAR_PACKAGES += locales-all