Bug#991774: ucspi-unix FTBFS on architectures without dietlibc

2021-08-01 Thread Peter Pentchev
control: owner -1 !
control: tag -1 + confirmed patch pending

On Sun, Aug 01, 2021 at 05:47:49PM +0300, Adrian Bunk wrote:
> Source: ucspi-unix
> Version: 1.0-1
> Severity: important
> Tags: ftbfs
> 
> https://buildd.debian.org/status/package.php?p=ucspi-unix=sid
> 
> ...
> chmod 755 compile
> ./compile unixclient.c
> ./compile: 4: exec: diet: not found
> make[2]: *** [Makefile:74: unixclient.o] Error 127
> 
> 
> This should either be fixed properly, or the build dependency
> on dietlibc-dev should become unconditional to avoid expected
> build failures.

Thanks for the report and for all your work on Debian. I think I have a
fix for this problem - see the attached patch, a.k.a.:

  
https://salsa.debian.org/debian/ucspi-unix/-/commit/6b39b6e8e4bbccecb140d5bd1519a1c57110a141

I will contact the release team to ask for a pre-approval, just in case
they decide that this is worth doing during the freeze.

Thanks again, and keep up the great work!

G'luck,
Peter

-- 
Peter Pentchev  r...@ringlet.net r...@debian.org p...@storpool.com
PGP key:http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint 2EE7 A7A5 17FC 124C F115  C354 651E EFB0 2527 DF13
commit 6b39b6e8e4bbccecb140d5bd1519a1c57110a141
Author: Peter Pentchev 
Date:   Mon Aug 2 00:51:53 2021 +0300

Only run the dietlibc build if possible.

Closes: #991774
Reported by: Adrian Bunk 

diff --git a/debian/rules b/debian/rules
index 013eb22..747e13b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -41,7 +41,9 @@ override_dh_auto_configure:
echo 'diet gcc $(LDFLAGS)' > diet/conf-ld
 
 override_dh_auto_build:
+ifeq (${HAVE_DIETLIBC},yes)
$(MAKE) -C diet
+endif
$(MAKE) -C glibc
 
 override_dh_auto_install:


signature.asc
Description: PGP signature


Bug#991774: ucspi-unix FTBFS on architectures without dietlibc

2021-08-01 Thread Adrian Bunk
Source: ucspi-unix
Version: 1.0-1
Severity: important
Tags: ftbfs

https://buildd.debian.org/status/package.php?p=ucspi-unix=sid

...
chmod 755 compile
./compile unixclient.c
./compile: 4: exec: diet: not found
make[2]: *** [Makefile:74: unixclient.o] Error 127


This should either be fixed properly, or the build dependency
on dietlibc-dev should become unconditional to avoid expected
build failures.