From 89abc77cb7e6440f436b522f5d46cd5b2654c1a7 Mon Sep 17 00:00:00 2001
From: Gerhard Gonter <ggonter@gmail.com>
Date: Wed, 26 Jul 2023 15:31:45 +0200
Subject: [PATCH] generate the file "debian-binary" if it is not present in the
 staging area

---
 scripts/mkdeb.pl | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/scripts/mkdeb.pl b/scripts/mkdeb.pl
index f369445..4bb24d7 100755
--- a/scripts/mkdeb.pl
+++ b/scripts/mkdeb.pl
@@ -133,6 +133,12 @@ sub mk_package
 
   # the ar file must contain these fils in this order and should be wiped before
   unlink($deb);
+  unless (-f 'debian-binary')
+  {
+    open (FO, '>:utf8', 'debian-binary');
+    print FO "2.0\n";
+    close (FO);
+  }
   cmd('ar', 'rcSv', $deb, 'debian-binary');
   cmd('ar', 'rcSv', $deb, $control_compressed);
   cmd('ar', 'rcSv', $deb, $data_compressed);
-- 
GitLab