Just updated my gentoo box and some features get problem. All should be solved by running "revdep-rebuild" to re-install some missing library. But there's an interesting bug (?) of wicd after update :). You cannot start wicd daemon with error
g3n2 ~ # /etc/init.d/wicd restart
/etc/init.d/wicd: line 12: syntax error: unexpected end of file
* ERROR: /etc/init.d/wicd has syntax errors in it; aborting ...
Take a look at wicd init script, someone who made update for wicd did make a mistake:
#!/sbin/runscript
2 # Copyright 1999-2006 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
4
5 opts="start stop restart"
6
7 WICD_DAEMON=/usr/sbin/wicd
8 WICD_PIDFILE=/var/run/wicd/wicd.pid
9
10 depend() {
11 need dbus
Function depend() has no close parenthesis, and where is start() and stop() function? I don't know.I solved it by adding some line like bellow:
1 #!/sbin/runscript
2 # Copyright 1999-2006 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
4
5 opts="start stop restart"
6
7 WICD_DAEMON=/usr/sbin/wicd
8 WICD_PIDFILE=/var/run/wicd/wicd.pid
9
10 depend() {
11 need dbus
12 }
13 start() {
14 ebegin "Starting wicd daemon"
15 "${WICD_DAEMON}" >/dev/null 2>&1
16 eend $?
17 }
18
19 stop() {
20 ebegin "Stopping wicd daemon"
21 start-stop-daemon --stop --pidfile "${WICD_PIDFILE}"
22 eend $?
23 }
Who works for the maintenance of wicd on gentoo? wtf
No comments:
Post a Comment