At Sat, 17 Oct 2009 21:39:40 +0900,
Ryoichi INAGAKI wrote:
>
> ypbind を VineSeed に put しました。
> --disable-nm を外し、NetworkManager の起動直後に ypbind
> が失敗するのを防ぐパッチを Fedora から追加しています。
>
> ypbind-1.20.5-2vl6.src.rpm
> ypbind-1.20.5-2vl6.i386.rpm
>
> 様子をみて、VinePlus/5 にも put 予定です。
> それでは、よろしくお願いいたします。
NetworkManager-devel がインストールされている環境では、
以下のように build が失敗します。
ypbind_dbus_nm.c: In function ‘dbus_filter’:
ypbind_dbus_nm.c:141: error: ‘NM_DBUS_SIGNAL_STATE_CHANGE’ undeclared (first u in this function)
ypbind_dbus_nm.c:141: error: (Each undeclared identifier is reported only once
ypbind_dbus_nm.c:141: error: for each function it appears in.)
make[2]: *** [ypbind_dbus_nm.o] エラー 1
make[2]: ディレクトリ `/home/shaolin/rpm/BUILD/ypbind-mt-1.20.5/src' から出ます
NM_DBUS_STATE_CHANGE の定義は、NetworkManager-0.7.0 系列になる
タイミング (かその近辺) で削除されたようです。
2007-02-20 Tambet Ingo <tambet@xxxxxxxxxx>
* include/NetworkManager.h: Remove NM_DBUS_NO_DEVICES_ERROR,
NM_DBUS_NO_DIALUP_ERROR, NM_DBUS_NO_NETWORKS_ERROR,
NM_DBUS_NO_ACTIVE_DEVICE_ERROR, NM_DBUS_NO_ACTIVE_NET_ERROR errors and
NM_DBUS_SIGNAL_STATE_CHANGE signal.
Remove NMNetworkStatus and NMActStage enums.
なので、以下の様な patch を ypbind に追加しました。
@@ -50,6 +49,10 @@
#endif
+#ifndef NM_DBUS_SIGNAL_STATE_CHANGE
+#define NM_DBUS_SIGNAL_STATE_CHANGE "StateChange"
+#endif
+
#include "ypbind.h"
#include "log_msg.h"
#include "local.h"
あわせて、BuildRequires: NetworkManager-devel >= 0.7.0 を追加し、
ypbind-1.20.5-3vl6.{src,i386,ppc}.rpm を put しておきました。
P.S.
NetworkManager の ChangeLog によると、
2008-03-07 Dan Williams <dcbw@xxxxxxxxxx>
Change manager's StateChange signal to StateChanged for consistency.
* introspection/nm-manager.xml
- Add 'StateChanged' signal
- Move 'StateChange' down to the deprecated section
とあり、じきに 'StateChange' を 'StateChanged' に変更しておいた
方が良いのかもしれません。
--
MATSUBAYASHI, 'Shaolin' Kohji
Vice President & PPC Maintainer, Project Vine shaolin@xxxxxxxxxxxxx
Interaction Designer, Vine Caves Ltd. shaolin@xxxxxxxxxxxxx
GPG Fingerprint: 981C 4171 3044 DC45 6024 EA00 A413 F44D 8FB7 5B97