[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[plamo:13566] USAGI on Plamo



有家です。
USAGI のカーネルをインストールしているのですがトラブル続きです。
最大のトラブルは make install の際に
--------------------------------------
/bin/gzip が自分自身を gzip してしまい
つまり /bin/gzip.gz になってしまって
そのあと gzip が使えなくなる。
--------------------------------------
という現象でした。(??)
最近ちょっと無いほどパニクったので、ちょっと長文になりますが報告します。

まず全体の流れ。

# make USAGI kernel
001: cd /usr/local/src
002: wget ftp://ftp.linux-ipv6.org/pub/usagi/stable/kit/usagi-linux22-stable-20020101.tar.bz2
003: tar Ixvf usagi-linux22-stable-20020101.tar.bz2
004: cd usagi
005: make prepare TARGET=linux22
006: cd kernel/linux22
007: make mrproper
008: make xconfig
009: make dep
010: make bzImage
011: make modules
012: make install
013: make modules_install

# install new kernel for GRUB
014: cp -pv ./.config /boot/config-2.2.20
015: cp -pv ./System.map /boot/System.map-2.2.20
016: cp -pv ./arch/i386/boot/bzImage /boot/vmlinuz-2.2.20

# make USAGI tools
017: cd /usr/local/src/usagi/usagi
018: ./configure --prefix=/usr/local
019: make

# modify Makefiles
020: for dir in ifconfig iptunnel ping6 tracepath6 traceroute6; do
021: 	[ -d $dir ] && ( cd $dir; perl -i.bak -pe "s/-D// if /-D -d/" ./Makefile )
022: done
023: perl -i.bak -pe "s|/bin/gzip|/bin/echo| if /^GZIP/" ./mipdiag/Makefile

# install USAGI tools
024: make install
025: make install-includes 

この 014-016, 020-023 は通常不要と思いますが、GRUBのためには014-016が
必要でしょうし、以下述べる理由で 020-023 が必要でした。

020-022 は Plamo の ginstall 3.16 にはオプション "-D" が無いため、
そして 023 が問題の不具合のためでした(gzip を echo にしてごまかしました ;;)。
この 023 が無ければ、冒頭の摩訶不思議な現象が生じます。
(gzip が使えなくなるというのは、予想外に危険なことでした ;_;)

問題の ./mipdiag/Makefile の該当箇所は

GZIP = /bin/gzip
..

install: all
	@for dir in $(bindir) $(man5dir) $(man8dir) $(sysconfdir) $(docdir) ; do \
		$(MKDIR) -p $$dir ; \
	done

	@$(INSTALL_DIR) $(sbindir)
	@$(INSTALL_PROGRAM) -m 0755 $(PROGRAM) $(sbindir)/$(PROGRAM)
	@$(INSTALL_DIR) $(initdir)
	@$(INSTALL_PROGRAM) -m 0755 $(initscript) $(initdir)/$(initscript)

	@$(INSTALL_DIR) $(man8dir)
	@$(INSTALL_DATA) mipdiag.8 $(man8dir)/mipdiag.8
	@$(GZIP) -9 -f $(man8dir)/mipdiag.8     <= ここはちゃんと動作している。

	@$(INSTALL_DIR) $(man5dir)
	@for file in mipv6_acl.conf.5 network-mip6.conf.5 mipv6_sas.conf.5 ; do \
		$(INSTALL_DATA) $$file $(man5dir)/$$file ; \
		$(GZIP) -9 -f $(man5dir)/$$file ; \ <= このとき gzip.gz になっている。
	done

というものです。
$(GZIP) -9 -f $(man5dir)/$$file で $$file に /bin/gzip が代入されているとしか
思えないのですが、この書き方でそんなことが生じるものでしょうか。

(ということで、いまだに ipv6 環境ができません ..;)

-- 
pba00250@nifty.com
yoariie@ehime.med.or.jp
-------------------------
有家佳紀  Yoshinori Ariie

Follow-Ups
[plamo:13568] Re: USAGI on Plamo, KOJIMA Mitsuhiro

[検索ページ] [メール一覧]
Plamo ML 公開システム