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

Re: cdeboostrap



[Bastian Blank]
> http://debian.ipv4.waldi.eu.org/cdebootstrap/cdebootstrap-0.0.5.tar.gz

I tested v0.1.0, and got it working for Sid (but not Sarge).  It
looked good to me, just using it.  I need Woody support as well to be
able to use it with Skolelinux.

When installing Sarge, I got the following error:

  P: Configuring package bash
  P: Configuring package debianutils
  P: Configuring package initscripts
  P: Configuring package passwd
  P: Configuring package gzip
  P: Configuring package sysvinit
  P: Configuring package modutils
  P: Configuring package dselect
  I: Installing important packages...
  P: Unpacking package apt
  P: Configuring package apt
  E: Couldn't install root!
  
The following patch had to be applied to get it compiling on Woody
with gcc 2.95.4:

diff -ur cdebootstrap/src/frontend/standalone/message.c cdebootstrap.pere/src/frontend/standalone/message.c
--- cdebootstrap/src/frontend/standalone/message.c      Wed Aug 13 12:37:28 2003+++ cdebootstrap.pere/src/frontend/standalone/message.c Sat Aug 16 12:15:57 2003@@ -178,6 +178,7 @@
 int frontend_message (const char *template, ...)
 {
   struct templates_message *it;
+  va_list ap;

   for (it = templates_message; it->name != NULL; ++it)
     if (!strcmp (it->name, template))
@@ -186,7 +187,6 @@
   if (!it->name)
     return frontend_message (FRONTEND_MESSAGE_ERROR_INTERNAL, "undefined template");

-  va_list ap;
   va_start (ap, template);
   switch (it->priority)
   {
@@ -248,6 +248,7 @@
 int frontend_progress_info (const char *template, ...)
 {
   struct templates_progress *it;
+  va_list ap;

   for (it = templates_progress_info; it != NULL; ++it)
     if (!strcmp (it->name, template))
@@ -256,7 +257,6 @@
   if (!it)
     return 1;

-  va_list ap;
   va_start (ap, template);
   message_progress (it->text, ap);
   va_end (ap);
@@ -270,6 +270,7 @@
 int frontend_progress_start (const char *template, int max, ...)
 {
   struct templates_progress *it;
+  va_list ap;
   (void) max;

   for (it = templates_progress_start; it != NULL; ++it)
@@ -279,7 +280,6 @@
   if (!it)
     return 1;

-  va_list ap;
   va_start (ap, max);
   message_info (it->text, ap);
   va_end (ap);



Reply to: