Mark,

I am running a build from scratch, downloading the source code via 'apt source 
ucf' and then building the deb package from there with 'debuild -F -uc -us'

My build environment is a container based on Debian trixie. I tested it with 
podman as well with dockerd.

I guess the problem could be, that you already have the empty folders in your 
file system present.
Git does not track empty folder as source code objects, see here directly in 
the repository     or clone it in a new location. 
https://salsa.debian.org/debian/ucf/-/tree/master/t/options/expected?ref_type=heads

Also the missing folders are not part in the source tarballs, which are 
downloaded by 'apt source ucf'.

You could create the folder on the fly in the run script, see patch below.

From 7a524279897dafe546e51e64fdf5243641226a51 Mon Sep 17 00:00:00 2001
From: Dirk Mayer <dirk.ma...@siemens.com>
Date: Wed, 19 Feb 2025 12:49:03 +0100
Subject: [PATCH] test: create empty folder

---
 t/run | 1 +
 1 file changed, 1 insertion(+)

diff --git a/t/run b/t/run
index 21da6b1..7e748e8 100755
--- a/t/run
+++ b/t/run
@@ -63,6 +63,7 @@ else
  mkdir -p /var/lib/ucf
 fi
 mount -t tmpfs tmpfs /tmp
+mkdir -p expected/target expected/state
 ./test | diff -u expected/output -
 diff -ur expected/target $UCF_TEST_TARGET
 diff -ur expected/state /var/lib/ucf
-- 
2.47.2


Or you could maybe force git to create these empty folder by puttimg a 
.gitignore file in it.

Dirk

Reply via email to