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

[debian-users:30046] Re: update of xlibs



佐野@浜松です。

In <20010930154243O.1000@xxxxxxxxxxxxxxxxxxxxxxx>,
  on "Sun, 30 Sep 2001 15:42:50 +0900',
   with "[debian-users:30036] Re: update of xlibs",
 TSUCHIYA Masatoshi <tsuchiya@xxxxxxxxxxxxxxxxxxxxxxx> さん wrote:

> >> On Sun, 30 Sep 2001 14:41:17 +0900
> >> kohda@xxxxxxxxxxxxxxxxxxxx (Atsuhito Kohda) said as follows:
> 
> > しかし tgif を削除すれば xlibs が更新できて,新しい tgif は
> > /usr/X11R6/lib/X11/app-defaults/ を含んでなくて /etc/X11/ に移行して
> > るので更新できる,ということだと思いますが,気にされてるのはそういう
> > 話ではない???
> 
> いえ、testing の tgif なので、以下のように app-defaults は含まれている
> ままなのですよ。
> 
>   [amaru:~]$ dpkg -L tgif | grep app-defaults
>   /usr/X11R6/lib/X11/app-defaults
>   /usr/X11R6/lib/X11/app-defaults/Tgif
>   /usr/X11R6/lib/X11/ja_JP.ujis/app-defaults
>   /usr/X11R6/lib/X11/ja_JP.ujis/app-defaults/Tgif
>   /usr/X11R6/lib/X11/ru/app-defaults
>   /usr/X11R6/lib/X11/ru/app-defaults/Tgif

ちょっと実験してみたのですが、下の階層にファイルが
存在するディレクトリを symlink で置き換えようとすると
エラーになりますけど、symlink をディレクトリで置き換える
場合はエラーにならないようですね。

 $ touch 1
 $ ln -s 1 2
 $ ls -lsa
合計 8
   4 drwxrwxrwx    2 root     root         4096 Oct  2 00:25 .
   4 drwxrwxrwt    9 root     root         4096 Oct  2 00:25 ..
   0 -rw-rw-r--    1 sano     sano            0 Oct  2 00:25 1
   0 lrwxrwxrwx    1 sano     sano            1 Oct  2 00:25 2 -> 1
 $ tar -cvzf test.tgz ./1 ./2
./1
./2
 $ tar -tvzf test.tgz
-rw-rw-r-- sano/sano         0 2001-10-02 00:25:46 ./1
lrwxrwxrwx sano/sano         0 2001-10-02 00:25:48 ./2 -> 1
 $ ls -ls
合計 4
   0 -rw-rw-r--    1 sano     sano            0 Oct  2 00:25 1
   0 lrwxrwxrwx    1 sano     sano            1 Oct  2 00:25 2 -> 1
   4 -rw-rw-r--    1 sano     sano          140 Oct  2 00:25 test.tgz
 $ rm 2
 $ mkdir 2
 $ touch 2/3
 $ tar -cvzf chk.tgz ./1 ./2 ./2/3
./1
./2/
./2/3
./2/3
 $ tar -tvzf chk.tgz
-rw-rw-r-- sano/sano         0 2001-10-02 00:25:46 ./1
drwxrwxr-x sano/sano         0 2001-10-02 00:26:17 ./2/
-rw-rw-r-- sano/sano         0 2001-10-02 00:26:17 ./2/3
-rw-rw-r-- sano/sano         0 2001-10-02 00:26:17 ./2/3
 $ ls -lsa
合計 20
   4 drwxrwxrwx    3 root     root         4096 Oct  2 00:26 .
   4 drwxrwxrwt    9 root     root         4096 Oct  2 00:25 ..
   0 -rw-rw-r--    1 sano     sano            0 Oct  2 00:25 1
   4 drwxrwxr-x    2 sano     sano         4096 Oct  2 00:26 2
   4 -rw-rw-r--    1 sano     sano          158 Oct  2 00:26 chk.tgz
   4 -rw-rw-r--    1 sano     sano          140 Oct  2 00:25 test.tgz
 $ rm 1
 $ rmdir 2
rmdir: 2: ディレクトリは空ではありません
 $ rm -rf 2
 $ ls -lsa
合計 16
   4 drwxrwxrwx    2 root     root         4096 Oct  2 00:26 .
   4 drwxrwxrwt    9 root     root         4096 Oct  2 00:25 ..
   4 -rw-rw-r--    1 sano     sano          158 Oct  2 00:26 chk.tgz
   4 -rw-rw-r--    1 sano     sano          140 Oct  2 00:25 test.tgz
 $ tar -xvzf chk.tgz
./1
./2/
./2/3
./2/3
 $ ls -lsa
合計 20
   4 drwxrwxrwx    3 root     root         4096 Oct  2 00:26 .
   4 drwxrwxrwt    9 root     root         4096 Oct  2 00:25 ..
   0 -rw-rw-r--    1 sano     sano            0 Oct  2 00:25 1
   4 drwxrwxr-x    2 sano     sano         4096 Oct  2 00:26 2
   4 -rw-rw-r--    1 sano     sano          158 Oct  2 00:26 chk.tgz
   4 -rw-rw-r--    1 sano     sano          140 Oct  2 00:25 test.tgz
 $ tar -xvzf test.tgz
./1
./2
tar: ./2: ``1'' へのシンボリックリンクが作れません: ファイルが存在します
tar: エラー終了が前のエラーから遅れました
 $ ls -lsa
合計 20
   4 drwxrwxrwx    3 root     root         4096 Oct  2 00:26 .
   4 drwxrwxrwt    9 root     root         4096 Oct  2 00:25 ..
   0 -rw-rw-r--    1 sano     sano            0 Oct  2 00:25 1
   4 drwxrwxr-x    2 sano     sano         4096 Oct  2 00:26 2
   4 -rw-rw-r--    1 sano     sano          158 Oct  2 00:26 chk.tgz
   4 -rw-rw-r--    1 sano     sano          140 Oct  2 00:25 test.tgz
 $ rm -rf 1 2
 $ tar -xvzf test.tgz
./1
./2
 $ ls -lsa
合計 16
   4 drwxrwxrwx    2 root     root         4096 Oct  2 00:27 .
   4 drwxrwxrwt    9 root     root         4096 Oct  2 00:25 ..
   0 -rw-rw-r--    1 sano     sano            0 Oct  2 00:25 1
   0 lrwxrwxrwx    1 sano     sano            1 Oct  2 00:27 2 -> 1
   4 -rw-rw-r--    1 sano     sano          158 Oct  2 00:26 chk.tgz
   4 -rw-rw-r--    1 sano     sano          140 Oct  2 00:25 test.tgz
 $ rm 1 
 $ mkdir 1
 $ ls -lsa
合計 20
   4 drwxrwxrwx    3 root     root         4096 Oct  2 00:27 .
   4 drwxrwxrwt    9 root     root         4096 Oct  2 00:25 ..
   4 drwxrwxr-x    2 sano     sano         4096 Oct  2 00:27 1
   0 lrwxrwxrwx    1 sano     sano            1 Oct  2 00:27 2 -> 1
   4 -rw-rw-r--    1 sano     sano          158 Oct  2 00:26 chk.tgz
   4 -rw-rw-r--    1 sano     sano          140 Oct  2 00:25 test.tgz
 $ tar -xvzf chk.tgz
./1
./2/
./2/3
./2/3
 $ ls -lsa
合計 20
   4 drwxrwxrwx    3 root     root         4096 Oct  2 00:27 .
   4 drwxrwxrwt    9 root     root         4096 Oct  2 00:25 ..
   0 -rw-rw-r--    1 sano     sano            0 Oct  2 00:25 1
   4 drwxrwxr-x    2 sano     sano         4096 Oct  2 00:26 2
   4 -rw-rw-r--    1 sano     sano          158 Oct  2 00:26 chk.tgz
   4 -rw-rw-r--    1 sano     sano          140 Oct  2 00:25 test.tgz

そういうことなのかも。

手で /etc/X11/app-defaults 以下に移動して symlink を
張り直しておいたほうがいいかもしれません。

あるいは sid の tgif を持ってくるか。
この場合でも symlink を張り直す必要はあるかもしれませんが。
BTS すべきなんだろうか、、、ってどこに ?

-- 
 # (わたしのおうちは浜松市、アカウミガメのふるさとの街)
   <kgh12351@xxxxxxxxxxx> : Taketoshi Sano (佐野 武俊)