[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#855174: catz: not found. Encountered while running make images.



Control: tags -1 patch

On Wed, Feb 15, 2017 at 12:17:03AM +0100, Josua Mayer wrote:
> I am attempting to reproduce creating installer isos using debian-cd.
> Following the README I set up a mirror using debmirror, and then ran the mentioned mkae steps up to make images, where I encountered an error message concerning a command called catz (never heard of it).
> I suspect debian-cd is missing a runtime dependency.

This is found in /usr/share/debian-cd/tools/catz. If you use build.sh,
it adds the directory to PATH, but not if you invoke make manually. The
attached patch fixes this like it is done elsewhere.

Regards,
James

> This is the short log leading to the error:
> root@vm-stretch:/usr/share/debian-cd# make images
> Looking in /opt/debmirror/dists/stretch/ /opt/debmirror/dists/stretch/
> Using MD5 sums from Packages files:
> /opt/debmirror/dists/stretch/contrib/binary-arm64/Packages.xz /opt/debmirror/dists/stretch/contrib/binary-arm64/Packages.gz /opt/debmirror/dists/stretch/main/binary-arm64/Packages.xz /opt/debmirror/dists/stretch/main/binary-arm64/Packages.gz /opt/debmirror/dists/stretch/main/debian-installer/binary-arm64/Packages.xz /opt/debmirror/dists/stretch/main/debian-installer/binary-arm64/Packages.gz /opt/debmirror/dists/stretch/non-free/binary-arm64/Packages.xz /opt/debmirror/dists/stretch/non-free/binary-arm64/Packages.gz /opt/debmirror/dists/stretch/contrib/binary-arm64/Packages.xz /opt/debmirror/dists/stretch/contrib/binary-arm64/Packages.gz /opt/debmirror/dists/stretch/main/binary-arm64/Packages.xz /opt/debmirror/dists/stretch/main/binary-arm64/Packages.gz /opt/debmirror/dists/stretch/main/debian-installer/binary-arm64/Packages.xz /opt/debmirror/dists/stretch/main/debian-installer/binary-arm64/Packages.gz /opt/debmirror/dists/stretch/non-free/binary-arm64/Packages.xz /opt/debmirror/dists/stretch/non-free/binary-arm64/Packages.gz
> /usr/share/debian-cd/tools/grab_md5: 74: /usr/share/debian-cd/tools/grab_md5: catz: not found
> Generating the arm64 iso/jigdo images ...
>   Last-minute updates:
>     README.html
> md5sum: ./README.html: No such file or directory
> Makefile:479: recipe for target 'images' failed
> make: *** [images] Error 1
> root@vm-stretch:/usr/share/debian-cd#
>From 8205b0efe0072a6a6447e930621c5976f30ff1a2 Mon Sep 17 00:00:00 2001
From: James Clarke <jrtc27@jrtc27.com>
Date: Tue, 14 Feb 2017 23:28:19 +0000
Subject: [PATCH] grab_md5: Don't require catz to be in PATH

Closes: #855174
---
 tools/grab_md5 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/grab_md5 b/tools/grab_md5
index e56aad7..bb706d4 100755
--- a/tools/grab_md5
+++ b/tools/grab_md5
@@ -71,7 +71,7 @@ do
                 echo "No files found for arch $ARCH. Abort!"
                 exit 1
             fi
-            catz $FILES | MIRROR=$MIRROR perl -ne '
+            $BASEDIR/tools/catz $FILES | MIRROR=$MIRROR perl -ne '
                 chomp;
                 my $mirror = $ENV{"MIRROR"};
                 my $filename;
-- 
2.11.0


Reply to: