Re: Bug#855035: debian-installer: https does not work with stretch rc2 installer

2017-02-14 Thread Philipp Kern

On 2017-02-13 20:28, Cyril Brulebois wrote:

Hilko Bengen  (2017-02-13):

Here. I have stripped out the kernel messages.


Nothing interesting there, same locally with my own tests with your 
boot

parameters. I guess it wouldn't hurt if we had more details in syslog
from bootstrap-base…

Anyway, adding a few debug bits, I can reproduce your issue and I think
it's quite clear: we run debootstrap from bootstrap-base using
file:///cdrom so we're not hitting the https code path. Cc-ing Philipp
and Marga who worked on adding https support since they might have 
ideas

on how to fix this.


Given that Steve added it to the CD's force list, what about adding the 
two packages to $include in the https check that already exists in 
bootstrap-base.postinst (to set the proxy correctly)? I don't see a good 
way of adding the two packages after debootstrap ran but telling 
debootstrap to pull them in upon initial installation, assuming the 
media has it, seems feasible to me.


Kind regards
Philipp Kern



Re: Bug#855035: debian-installer: https does not work with stretch rc2 installer

2017-02-14 Thread Cyril Brulebois
Philipp Kern  (2017-02-14):
> Given that Steve added it to the CD's force list, what about adding the two
> packages to $include in the https check that already exists in
> bootstrap-base.postinst (to set the proxy correctly)? I don't see a good way
> of adding the two packages after debootstrap ran but telling debootstrap to
> pull them in upon initial installation, assuming the media has it, seems
> feasible to me.

That's exactly the solution I came up with while thinking about it. Since
you agree I suppose this makes it a reasonable solution, and I'll be
implementing and checking that in a moment. Thanks for the quick feedback.


KiBi.


signature.asc
Description: Digital signature


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

2017-02-14 Thread Josua Mayer
Package: debian-cd
Version: 3.1.19
Severity: important

Dear Maintainer,

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 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#


-- System Information:
Debian Release: 9.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: arm64 (aarch64)

Kernel: Linux 4.9.0-1-arm64 (SMP w/3 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages debian-cd depends on:
ii  apt   1.4~rc1
ii  bc1.06.95-9+b2
ii  bzip2 1.0.6-8.1
ii  cpp   4:6.3.0-1
ii  curl  7.52.1-2
ii  dctrl-tools [grep-dctrl]  2.24-2
ii  dpkg-dev  1.18.22
ii  genisoimage   9:1.1.11-3
pn  libcompress-zlib-perl 
pn  libdigest-md5-perl
ii  libdpkg-perl  1.18.22
ii  libperl5.24 [libdigest-sha-perl]  5.24.1-1
ii  lynx  2.8.9dev11-1
ii  lynx-cur  2.8.9dev11-1
ii  make  4.1-9
ii  perl  5.24.1-1
ii  tofrodos  1.7.13+ds-2
ii  xorriso   1.4.6-1+b1

Versions of packages debian-cd recommends:
ii  dosfstools   4.1-1
ii  hfsutils 3.2.6-13
ii  isolinux 3:6.03+dfsg-14.1
ii  mtools   4.0.18-2
ii  netpbm   2:10.0-15.3+b1
ii  syslinux-common  3:6.03+dfsg-14.1
pn  syslinux-utils   

debian-cd suggests no packages.

-- Configuration Files:
/etc/debian-cd/conf.sh changed [not included]

-- no debconf information



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

2017-02-14 Thread Debian Bug Tracking System
Processing control commands:

> tags -1 patch
Bug #855174 [debian-cd] catz: not found. Encountered while running make images.
Added tag(s) patch.

-- 
855174: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=855174
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



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

2017-02-14 Thread Debian Bug Tracking System
Processing control commands:

> tags -1 patch
Bug #855174 [debian-cd] catz: not found. Encountered while running make images.
Ignoring request to alter tags of bug #855174 to the same tags previously set

-- 
855174: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=855174
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



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

2017-02-14 Thread James Clarke
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 
Date: Tue, 14 Feb 2017 23:28:19 +
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



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

2017-02-14 Thread Josua Mayer
Thanks a lot, that does the trick!


Am 15.02.2017 um 00:30 schrieb James Clarke:
> 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#



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

2017-02-14 Thread Steve McIntyre
On Wed, Feb 15, 2017 at 12:17:03AM +0100, Josua Mayer wrote:
>Package: debian-cd
>Version: 3.1.19
>Severity: important
>
>Dear Maintainer,
>
>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.

No, catz is an internal helper script. Looks like I missed a path for
it in one place, now fixed. Thanks for that report.

>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#

But the real reason for the stop here is the missing README.html
file. That should have been generated by the tools/add-bin-doc
script, and that's called each time a new temp disc tree is
started. Do you have logs going back further?

-- 
Steve McIntyre, Cambridge, UK.st...@einval.com
Into the distance, a ribbon of black
Stretched to the point of no turning back



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

2017-02-14 Thread Josua Mayer


Am 15.02.2017 um 00:40 schrieb Steve McIntyre:
> On Wed, Feb 15, 2017 at 12:17:03AM +0100, Josua Mayer wrote:
>> Package: debian-cd
>> Version: 3.1.19
>> Severity: important
>>
>> Dear Maintainer,
>>
>> 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.
> No, catz is an internal helper script. Looks like I missed a path for
> it in one place, now fixed. Thanks for that report.
>
>> 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#
> But the real reason for the stop here is the missing README.html
> file. That should have been generated by the tools/add-bin-doc
> script, and that's called each time a new temp disc tree is
> started. Do you have logs going back further?
Not at this time, but I can produce some tomorrow. At first attempt I
didn't consider catching logs.