Package: icecc
Version: 0.9.0-1
Severity: normal
Tags: patch

Hi,

when gcc version on the system changes, iceccd needs to be restarted to pick up
the new gcc into its environment, otherwise all subsequent builds will break
until either ICECC_VERSION is reset or iceccd is restarted.

Here comes a patch that uses dpkg triggers to implement a solution (although
that is a little over-paranoid, as it will trigger restarts even if non-default
gcc version is altered, but I can't think of a good way to avoid that).

Yours,
    Petr.

diff -ruN icecc-0.9.0/debian/changelog icecc-0.9.0-2/debian/changelog
--- icecc-0.9.0/debian/changelog        2008-06-17 16:07:23.000000000 +0200
+++ icecc-0.9.0-2/debian/changelog      2008-06-17 15:35:43.000000000 +0200
@@ -1,3 +1,9 @@
+icecc (0.9.0-2) unstable; urgency=low
+
+  * Add a trigger to restart iceccd when gcc changes.
+
+ -- Petr Rockai <[EMAIL PROTECTED]>  Tue, 17 Jun 2008 15:35:20 +0200
+
 icecc (0.9.0-1) unstable; urgency=low
 
   * New upstream release
diff -ruN icecc-0.9.0/debian/control icecc-0.9.0-2/debian/control
--- icecc-0.9.0/debian/control  2008-06-17 16:07:23.000000000 +0200
+++ icecc-0.9.0-2/debian/control        2008-06-17 16:13:08.000000000 +0200
@@ -11,7 +11,7 @@
 
 Package: icecc
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, adduser, lsb-base, c++-compiler | 
c-compiler
+Depends: ${shlibs:Depends}, ${misc:Depends}, adduser, lsb-base, c++-compiler | 
c-compiler, dpkg (>= 1.9.0)
 Suggests: icecc-monitor
 Description: distributed compiler (client and server)
  icecc is a distributed compile system. It allows parallel compiling by
diff -ruN icecc-0.9.0/debian/icecc.postinst icecc-0.9.0-2/debian/icecc.postinst
--- icecc-0.9.0/debian/icecc.postinst   2008-06-17 16:07:23.000000000 +0200
+++ icecc-0.9.0-2/debian/icecc.postinst 2008-06-17 15:42:30.000000000 +0200
@@ -3,6 +3,11 @@
 
 set -e
 
+if test "$1" = triggered; then
+    invoke-rc.d icecc restart
+    exit 0
+fi
+
 # configure some variables
 CONFIGFILE=/etc/default/icecc
 ICECC_GROUP=icecc
diff -ruN icecc-0.9.0/debian/icecc.triggers icecc-0.9.0-2/debian/icecc.triggers
--- icecc-0.9.0/debian/icecc.triggers   1970-01-01 01:00:00.000000000 +0100
+++ icecc-0.9.0-2/debian/icecc.triggers 2008-06-17 16:04:30.000000000 +0200
@@ -0,0 +1,3 @@
+interest /usr/bin/gcc
+interest /usr/bin/g++
+interest /usr/lib/gcc

^^^

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-rc7-1-morn (PREEMPT)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages icecc depends on:
ii  adduser                       3.108      add and remove users and groups
ii  debconf [debconf-2.0]         1.5.22     Debian configuration management sy
ii  g++-4.1 [c++-compiler]        4.1.2-22   The GNU C++ compiler
ii  g++-4.3 [c++-compiler]        4.3.1-2    The GNU C++ compiler
ii  gcc [c-compiler]              4:4.3.0-8  The GNU C compiler
ii  gcc-3.4 [c-compiler]          3.4.6-7    The GNU C compiler
ii  gcc-4.1 [c-compiler]          4.1.2-22   The GNU C compiler
ii  gcc-4.3 [c-compiler]          4.3.1-2    The GNU C compiler
ii  libc6                         2.7-12     GNU C Library: Shared libraries
ii  libgcc1                       1:4.3.1-2  GCC support library
ii  libstdc++6                    4.3.1-2    The GNU Standard C++ Library v3
ii  lsb-base                      3.2-12     Linux Standard Base 3.2 init scrip

icecc recommends no packages.

-- debconf information:
  icecc/daemon: true
  icecc/scheduler: false



_______________________________________________
pkg-kde-extras mailing list
pkg-kde-extras@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-kde-extras

Reply via email to