Bug#413506: strange error from make_disc_trees.pl

2007-03-06 Thread Raphael Hertzog
Hello,

On Tue, 06 Mar 2007, Steffen Joeris wrote:
 Hi mates
 
 The original bug seems to be fixed, thanks a lot.
 However now I get another error, I attached the build log for that one.
 The problem seems to be in add_packages this time with the call of
 -gzclose();

You have many strange messages in your build. Please provide the CONF.sh
that you're using because it looks like it's borked:

 patching file tasks/exclude-etch
 ./build.sh: line 1: ARCHES: command not found

This is the first error that should not happen. And you have many
reference of bad shell script in the log:

 ./build.sh: line 1: ARCHES: command not found
 Using CONF from 
 /home/builder/src/debian-edu/src/build/CD-administrator/CONF-etch-test.sh
 /bin/sh: line 1: [: too many arguments
 Cleaning the build directory
 /bin/sh: line 1: [: too many arguments

Please fix your CONF.sh / CONF-etch-test.sh and try again.
That file changed a lot with debian-cd 3.0.

 Use of uninitialized value in string eq at 
 /home/builder/src/debian-edu/src/build/CD-administrator/debian-cd/tools/make_disc_trees.pl
  line 371.

This means that your CONF.sh doesn't provide DISKTYPE.

 Use of uninitialized value in scalar assignment at 
 /home/builder/src/debian-edu/src/build/CD-administrator/debian-cd/tools/make_disc_trees.pl
  line 392.
 Use of uninitialized value in scalar assignment at 
 /home/builder/src/debian-edu/src/build/CD-administrator/debian-cd/tools/make_disc_trees.pl
  line 393.
 Use of uninitialized value in subtraction (-) at 
 /home/builder/src/debian-edu/src/build/CD-administrator/debian-cd/tools/make_disc_trees.pl
  line 397.
 Use of uninitialized value in concatenation (.) or string at 
 /home/builder/src/debian-edu/src/build/CD-administrator/debian-cd/tools/make_disc_trees.pl
  line 108.
 Use of uninitialized value in string eq at 
 /home/builder/src/debian-edu/src/build/CD-administrator/debian-cd/tools/make_disc_trees.pl
  line 371, INLIST line 1.

This is consequences from the previous error.

 cp: cannot stat `cdrom/2.6/einitrd.gz': No such file or directory

Strange... is that debian-edu specific ?

Please investigate a bit yourself as what I see here is not a debian-cd
problem but a problem of your configuration.

Cheers,
-- 
Raphaël Hertzog

Premier livre français sur Debian GNU/Linux :
http://www.ouaza.com/livre/admin-debian/



Bug#413506: strange error from make_disc_trees.pl

2007-03-05 Thread Steffen Joeris
Package: debian-cd
Severity: grave

Hi mates

Today I started to upgrade the debian-edu version of debian-cd to the newest 
svn version. After some startup configuration I got it to a point where I get 
this error from make_disc_trees.pl :

  Placing packages into image 1
Nested quantifiers in regex; marked by -- HERE in m/^g++ -- HERE $/ 
at 
/home/builder/src/debian-edu/src/build/CD-administrator/debian-cd/tools/make_disc_trees.pl
 
line 246.
make: *** [image-trees] Error 9

I am not quite sure what is going mad there and it is probably too late for me 
to do debugging, sorry.
I attached the output from the build. There are some parts, for instance the 
usage of get_diskusage.pl which was added, but as far as I can see the 
problem is not caused by any patching, maybe a missconfiguration?
So maybe you want to downgrade the priority, but so far I can't get it build 
and maybe there is a problem with the make_disc_trees.pl script.

Cheers and thanks for your help.
Steffen
[EMAIL PROTECTED]:~/src/debian-edu/src/build/CD-administrator$ ./build.sh test 
etch-test
Found old logfiles: -rw-r--r--  1 builder builder  211 2006-10-01 18:09 
/tmp/debian-edu-cd-build-2006-10-01T18:09
-rw-r--r--  1 builder builder  319 2006-10-15 18:30 
/tmp/debian-edu-cd-build-2006-10-15T18:30
-rw-r--r--  1 builder builder  386 2006-10-19 16:21 
/tmp/debian-edu-cd-build-2006-10-19T16:21
-rw-r--r--  1 builder builder  497 2006-12-24 11:15 
/tmp/debian-edu-cd-build-2006-12-24T11:15
-rw-r--r--  1 builder builder  583 2006-12-28 18:08 
/tmp/debian-edu-cd-build-2006-12-28T18:05
-rw-r--r--  1 builder builder  675 2007-01-03 11:15 
/tmp/debian-edu-cd-build-2007-01-03T11:15
-rw-r--r--  1 builder builder  764 2007-01-07 11:15 
/tmp/debian-edu-cd-build-2007-01-07T11:15
-rw-r--r--  1 builder builder  853 2007-01-11 11:15 
/tmp/debian-edu-cd-build-2007-01-11T11:15
-rw-r--r--  1 builder builder  942 2007-01-19 11:15 
/tmp/debian-edu-cd-build-2007-01-19T11:15
-rw-r--r--  1 builder builder 1031 2007-01-22 11:15 
/tmp/debian-edu-cd-build-2007-01-22T11:15
-rw-r--r--  1 builder builder 1130 2007-02-01 11:15 
/tmp/debian-edu-cd-build-2007-02-01T11:15
-rw-r--r--  1 builder builder 1220 2007-02-05 11:15 
/tmp/debian-edu-cd-build-2007-02-05T11:15
-rw-r--r--  1 builder builder 1310 2007-02-12 11:15 
/tmp/debian-edu-cd-build-2007-02-12T11:15
-rw-r--r--  1 builder builder 1400 2007-02-12 11:30 
/tmp/debian-edu-cd-build-2007-02-12T11:30
-rw-r--r--  1 builder builder 1490 2007-02-20 11:16 
/tmp/debian-edu-cd-build-2007-02-20T11:16
-rw-r--r--  1 builder builder 1580 2007-02-23 11:00 
/tmp/debian-edu-cd-build-2007-02-23T11:00
-rw-r--r--  1 builder builder 2210 2007-03-05 13:13 
/tmp/debian-edu-cd-build-2007-03-05T13:13
Debian-edu CD build on administrator.skolelinux.no

Build started 2007-03-05T15:06

Updating build tree
patching file data/etch/i386_udeb_include
patching file data/etch/amd64_udeb_include
patching file data/etch/powerpc_udeb_include
patching file tasks/Debian_etch
patching file tasks/debian-installer+kernel-etch
patching file tasks/debian-installer-etch
patching file tools/list2cds
patching file tools/add-bin-doc
patching file data/etch/exclude-udebs-i386
patching file tools/boot/etch/boot-i386
patching file data/etch/exclude-udebs
patching file tasks/exclude-etch
./build.sh: line 1: ARCHES: command not found

Updating tasks

Missing package file for arch alpha.
Missing package file for arch arm.
Missing package file for arch hppa.
Missing package file for arch hurd-i386.
Missing package file for arch ia64.
Missing package file for arch m68k.
Missing package file for arch mips.
Missing package file for arch mipsel.
Missing package file for arch s390.
Missing package file for arch sparc.
zcat: 
/skolelinux/administrator/debmirror/debian/debian/dists/etch/main/binary-m68k/Packages.gz:
 No such file or directory
zcat: 
/skolelinux/administrator/debmirror/debian/debian/dists/etch/main/binary-m68k/Packages.gz:
 No such file or directory
zcat: 
/skolelinux/administrator/debmirror/debian/debian/dists/etch/main/binary-m68k/Packages.gz:
 No such file or directory
zcat: 
/skolelinux/administrator/debmirror/debian/debian/dists/etch/main/binary-m68k/Packages.gz:
 No such file or directory
zcat: 
/skolelinux/administrator/debmirror/debian/debian/dists/etch/main/binary-m68k/Packages.gz:
 No such file or directory
zcat: 
/skolelinux/administrator/debmirror/debian/debian/dists/etch/main/binary-m68k/Packages.gz:
 No such file or directory

Build begins

./build.sh: line 1: ARCHES: command not found
Using CONF from 
/home/builder/src/debian-edu/src/build/CD-administrator/CONF-etch-test.sh
/bin/sh: line 1: [: too many arguments
Cleaning the build directory
/bin/sh: line 1: [: too many arguments
Using the provided status file for etch-i386 ...
make[1]: Entering directory 
`/skolelinux/administrator/home2/builder/src/debian-edu/src/build/CD-administrator/debian-cd'
/bin/sh: line 1: [: too many arguments
Generating a fake status file for apt-get and apt-cache...
: 

Bug#413506: strange error from make_disc_trees.pl

2007-03-05 Thread Raphael Hertzog
tag 413506 + patch pending
severity 413506 serious
thanks

On Tue, 06 Mar 2007, Steffen Joeris wrote:
   Placing packages into image 1
 Nested quantifiers in regex; marked by -- HERE in m/^g++ -- HERE $/ 
 at 
 /home/builder/src/debian-edu/src/build/CD-administrator/debian-cd/tools/make_disc_trees.pl
  
 line 246.
 make: *** [image-trees] Error 9
 
 I am not quite sure what is going mad there and it is probably too late
 for me to do debugging, sorry.

Please try this patch (or svn update your debian-cd tree) and confirm me
that it fixes your problem.

I already committed it to debian-cd's svn.

I leave the severity at RC level because we need to make sure that
debian-cd 3.0.1 (unreleased) gets into etch, it has many fixes used for
generating the real official Debian CDs and we want this into etch.
I'll leave the upload up to Steve.

Regards,
-- 
Raphaël Hertzog

Premier livre français sur Debian GNU/Linux :
http://www.ouaza.com/livre/admin-debian/
Index: tools/make_disc_trees.pl
===
--- tools/make_disc_trees.pl	(révision 1372)
+++ tools/make_disc_trees.pl	(copie de travail)
@@ -159,7 +159,7 @@
 foreach my $reinclude_pkg (@excluded_package_list) {
 my ($arch, $pkgname) = split /:/, $reinclude_pkg;
 foreach my $entry (@unexclude_packages) {
-if (($pkgname =~ /^$entry$/m)) {
+if (($pkgname =~ /^\Q$entry\E$/m)) {
 print LOG Re-including $reinclude_pkg due to match on \\^$entry\$\\n;
 $guess_size = int($hfs_mult * add_packages($cddir, $reinclude_pkg));
 $size += $guess_size;
@@ -243,7 +243,7 @@
 my $should_exclude = 0;
 
 foreach my $entry (@exclude_packages) {
-	if (($pkgname =~ /^$entry$/m)) {
+	if (($pkgname =~ /^\Q$entry\E$/m)) {
 print LOG Excluding $pkg due to match on \\^$entry\$\\n;
 $should_exclude++;
 }
@@ -254,7 +254,7 @@
 # exclude the package at the same time. If so, complain and
 # bail out
 foreach my $entry (@unexclude_packages) {
-if (($pkgname =~ /^$entry$/m)) {
+if (($pkgname =~ /^\Q$entry\E$/m)) {
 print LOG But ALSO asked to unexclude $pkg due to match on \\^$entry\$\\n;
 print LOG Make your mind up! Bailing out...\n;
 die Incompatible exclude/unexclude entries for $pkg...\n;


Bug#413506: strange error from make_disc_trees.pl

2007-03-05 Thread Steffen Joeris
Hi mates

The original bug seems to be fixed, thanks a lot.
However now I get another error, I attached the build log for that one.
The problem seems to be in add_packages this time with the call of
-gzclose();

Cheers
Steffen
[EMAIL PROTECTED]:~/src/debian-edu/src/build/CD-administrator$ ./build.sh test 
etch-test
Found old logfiles: -rw-r--r--  1 builder builder  211 2006-10-01 18:09 
/tmp/debian-edu-cd-build-2006-10-01T18:09
-rw-r--r--  1 builder builder  319 2006-10-15 18:30 
/tmp/debian-edu-cd-build-2006-10-15T18:30
-rw-r--r--  1 builder builder  386 2006-10-19 16:21 
/tmp/debian-edu-cd-build-2006-10-19T16:21
-rw-r--r--  1 builder builder  497 2006-12-24 11:15 
/tmp/debian-edu-cd-build-2006-12-24T11:15
-rw-r--r--  1 builder builder  583 2006-12-28 18:08 
/tmp/debian-edu-cd-build-2006-12-28T18:05
-rw-r--r--  1 builder builder  675 2007-01-03 11:15 
/tmp/debian-edu-cd-build-2007-01-03T11:15
-rw-r--r--  1 builder builder  764 2007-01-07 11:15 
/tmp/debian-edu-cd-build-2007-01-07T11:15
-rw-r--r--  1 builder builder  853 2007-01-11 11:15 
/tmp/debian-edu-cd-build-2007-01-11T11:15
-rw-r--r--  1 builder builder  942 2007-01-19 11:15 
/tmp/debian-edu-cd-build-2007-01-19T11:15
-rw-r--r--  1 builder builder 1031 2007-01-22 11:15 
/tmp/debian-edu-cd-build-2007-01-22T11:15
-rw-r--r--  1 builder builder 1130 2007-02-01 11:15 
/tmp/debian-edu-cd-build-2007-02-01T11:15
-rw-r--r--  1 builder builder 1220 2007-02-05 11:15 
/tmp/debian-edu-cd-build-2007-02-05T11:15
-rw-r--r--  1 builder builder 1310 2007-02-12 11:15 
/tmp/debian-edu-cd-build-2007-02-12T11:15
-rw-r--r--  1 builder builder 1400 2007-02-12 11:30 
/tmp/debian-edu-cd-build-2007-02-12T11:30
-rw-r--r--  1 builder builder 1490 2007-02-20 11:16 
/tmp/debian-edu-cd-build-2007-02-20T11:16
-rw-r--r--  1 builder builder 1580 2007-02-23 11:00 
/tmp/debian-edu-cd-build-2007-02-23T11:00
-rw-r--r--  1 builder builder 2210 2007-03-05 13:13 
/tmp/debian-edu-cd-build-2007-03-05T13:13
Debian-edu CD build on administrator.skolelinux.no

Build started 2007-03-06T07:45

Updating build tree
patching file data/etch/i386_udeb_include
patching file data/etch/amd64_udeb_include
patching file data/etch/powerpc_udeb_include
patching file tasks/Debian_etch
patching file tasks/debian-installer+kernel-etch
patching file tasks/debian-installer-etch
patching file tools/list2cds
patching file tools/add-bin-doc
patching file data/etch/exclude-udebs-i386
patching file tools/boot/etch/boot-i386
patching file data/etch/exclude-udebs
patching file tasks/exclude-etch
./build.sh: line 1: ARCHES: command not found

Updating tasks

Missing package file for arch alpha.
Missing package file for arch arm.
Missing package file for arch hppa.
Missing package file for arch hurd-i386.
Missing package file for arch ia64.
Missing package file for arch m68k.
Missing package file for arch mips.
Missing package file for arch mipsel.
Missing package file for arch s390.
Missing package file for arch sparc.
zcat: 
/skolelinux/administrator/debmirror/debian/debian/dists/etch/main/binary-m68k/Packages.gz:
 No such file or directory
zcat: 
/skolelinux/administrator/debmirror/debian/debian/dists/etch/main/binary-m68k/Packages.gz:
 No such file or directory
zcat: 
/skolelinux/administrator/debmirror/debian/debian/dists/etch/main/binary-m68k/Packages.gz:
 No such file or directory
zcat: 
/skolelinux/administrator/debmirror/debian/debian/dists/etch/main/binary-m68k/Packages.gz:
 No such file or directory
zcat: 
/skolelinux/administrator/debmirror/debian/debian/dists/etch/main/binary-m68k/Packages.gz:
 No such file or directory
zcat: 
/skolelinux/administrator/debmirror/debian/debian/dists/etch/main/binary-m68k/Packages.gz:
 No such file or directory

Build begins

./build.sh: line 1: ARCHES: command not found
Using CONF from 
/home/builder/src/debian-edu/src/build/CD-administrator/CONF-etch-test.sh
/bin/sh: line 1: [: too many arguments
Cleaning the build directory
/bin/sh: line 1: [: too many arguments
Using the provided status file for etch-i386 ...
make[1]: Entering directory 
`/skolelinux/administrator/home2/builder/src/debian-edu/src/build/CD-administrator/debian-cd'
/bin/sh: line 1: [: too many arguments
Generating a fake status file for apt-get and apt-cache...
: /skolelinux/administrator/temp_storage/builder/etch-test/apt/status
Ign file: etch/main/debian-installer Release
Ign file: etch/local/debian-installer Release
Reading Package Lists...
Reading Package Lists...
Building Dependency Tree...
You might want to run `apt-get -f install' to correct these.
The following packages have unmet dependencies:
  bind9-host: Depends: libisccfg1 but it is not installed
  dnsutils: Depends: libisccfg1 but it is not installed
  libbind9-0: Depends: libisccfg1 but it is not installed
  nfs-common: Depends: ucf but it is not installed
  Depends: libgssapi2 but it is not installed
  openssh-client: Depends: libedit2 (= 2.5.cvs.20010821-1) but it is not 
installed
  pciutils: Depends: libpci2 but it is not