Bug#320962: Fails to install, too
Robert Millan
rmh at aybabtu.com
Fri Aug 26 14:40:22 UTC 2005
Hi,
gnome-applets fails to install on GNU/kFreeBSD also, because config/postisnt
scripts assume Linux-specific program `cpufreq' was built and in part of the
package.
Patch to conditionalise the cpufreq SUID handling routines is attached.
--
Robert Millan
-------------- next part --------------
diff -ur gnome-applets-2.10.1.old/debian/gnome-applets.config gnome-applets-2.10.1/debian/gnome-applets.config
--- gnome-applets-2.10.1.old/debian/gnome-applets.config 2005-08-26 16:22:59.000000000 +0200
+++ gnome-applets-2.10.1/debian/gnome-applets.config 2005-08-26 16:37:32.000000000 +0200
@@ -3,6 +3,8 @@
# Debconf config script for gnome-applets
prog=/usr/bin/cpufreq-selector
+test -e $prog || exit 0
+
# Load Debconf
. /usr/share/debconf/confmodule
db_version 2.0
diff -ur gnome-applets-2.10.1.old/debian/gnome-applets.postinst gnome-applets-2.10.1/debian/gnome-applets.postinst
--- gnome-applets-2.10.1.old/debian/gnome-applets.postinst 2005-08-26 16:22:59.000000000 +0200
+++ gnome-applets-2.10.1/debian/gnome-applets.postinst 2005-08-26 16:36:03.000000000 +0200
@@ -10,10 +10,12 @@
case "$1" in
configure)
- db_get gnome-applets/cpufreq_SUID_bit
- if [ "$RET" = "false" ]; then
- chmod 0755 $prog
- fi;
+ if test -e $prog ; then
+ db_get gnome-applets/cpufreq_SUID_bit
+ if [ "$RET" = "false" ]; then
+ chmod 0755 $prog
+ fi;
+ fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
More information about the Pkg-gnome-maintainers
mailing list