Package: remctl
Version: 2.1-1
Severity: serious

This package no longer builds in unstable.  Below is a patch that
addresses the error but it's probably not optimal since it introduces
some warnings.

> Automatic build of remctl_2.1-1 on em64t by sbuild/amd64 0.49
...
>       if gcc -DHAVE_CONFIG_H -I. -I. -I.     -Wall -g -O2 -MT 
> tests/runtests.o -MD -MP -MF "$depbase.Tpo" -c -o tests/runtests.o 
> tests/runtests.c; \
>       then mv -f "$depbase.Tpo" "$depbase.Po"; else rm -f "$depbase.Tpo"; 
> exit 1; fi
> tests/runtests.c: In function 'test_summarize':
> tests/runtests.c:472: error: assignment of read-only member '__in'
> tests/runtests.c: In function 'test_analyze':
> tests/runtests.c:485: error: assignment of read-only member '__in'
> tests/runtests.c:485: error: assignment of read-only member '__in'
> tests/runtests.c:486: error: assignment of read-only member '__in'
> tests/runtests.c:500: error: assignment of read-only member '__in'
> tests/runtests.c:504: error: assignment of read-only member '__in'
> tests/runtests.c:505: error: assignment of read-only member '__in'
> tests/runtests.c: In function 'test_fail_summary':
> tests/runtests.c:594: error: assignment of read-only member '__in'
> tests/runtests.c:595: error: assignment of read-only member '__in'
> make[2]: *** [tests/runtests.o] Error 1
> make[2]: Leaving directory `/build/tbm/remctl-2.1'


--- tests/runtests.c~   2006-09-07 12:27:10.223337750 +0200
+++ tests/runtests.c    2006-09-07 12:30:20.123205750 +0200
@@ -469,7 +469,7 @@
         printf(" (exit status %d)", status);
     else if (status < 0)
         printf(" (killed by signal %d%s)", -status,
-               WCOREDUMP(ts->status) ? ", core dumped" : "");
+               WCOREDUMP((struct testset *)ts->status) ? ", core dumped" : "");
     putchar('\n');
 }
 
@@ -482,8 +482,8 @@
 {
     if (ts->reported)
         return 0;
-    if (WIFEXITED(ts->status) && WEXITSTATUS(ts->status) != 0) {
-        switch (WEXITSTATUS(ts->status)) {
+    if (WIFEXITED((struct testset *)ts->status) && WEXITSTATUS((struct testset 
*)ts->status) != 0) {
+        switch (WEXITSTATUS((struct testset *)ts->status)) {
         case CHILDERR_DUP:
             if (!ts->reported)
                 puts("can't dup file descriptors");
@@ -497,12 +497,12 @@
                 puts("can't open /dev/null");
             break;
         default:
-            test_summarize(ts, WEXITSTATUS(ts->status));
+            test_summarize(ts, WEXITSTATUS((struct testset *)ts->status));
             break;
         }
         return 0;
-    } else if (WIFSIGNALED(ts->status)) {
-        test_summarize(ts, -WTERMSIG(ts->status));
+    } else if (WIFSIGNALED((struct testset *)ts->status)) {
+        test_summarize(ts, -WTERMSIG((struct testset *)ts->status));
         return 0;
     } else {
         test_summarize(ts, 0);
@@ -591,8 +591,8 @@
         printf("%-26.26s %4d/%-4d %3.0f%% %4d ", ts->file, ts->failed,
                total, total ? (ts->failed * 100.0) / total : 0,
                ts->skipped);
-        if (WIFEXITED(ts->status))
-            printf("%4d  ", WEXITSTATUS(ts->status));
+        if (WIFEXITED((struct testset *)ts->status))
+            printf("%4d  ", WEXITSTATUS((struct testset *)ts->status));
         else
             printf("  --  ");
         if (ts->aborted) {

-- 
Martin Michlmayr
http://www.cyrius.com/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to