2006年11月1日 星期三

ar / dpkg-deb

[lang_zh]
昨天我提過的問題我在一個討論串中找到答案了。

ar 有不同的版本,例如 SVr4/GNU 的 ar 包成 archive 時,檔名是以 '/' 當作結尾,而 BSD 的 ar 不是。dpkg 用的是 BSD 的格式(而不是 GNU? XD),所以當我在 Debian 上用 GNU 的 ar 做 deb 時,檔名是用 '/' 結尾。而 apt-get 抓下來安裝時,卻發現檔名多了 '/',這不是他喜歡的樣子。

新的 dpkg 應該是同時 support 兩種格式的,但是我測試的 package (in fact, it's locales) 裡面的 debian-binary 是 2.0 (舊版)。不過.. dpkg tools 好像還是沒支援對 deb 寫入的功能 :(

暫時先不理他好了,反正這是 harmless ..
[/lang_zh]

[lang_en]
My problem is located in this discussion

There are different versions of ar. SVr4/GNU's ar packs archive with filename delimited by '/', but BSD's doesn't. dpkg(1) uses BSD's ar format (instead of GNU? XD). So what I built my deb with GNU ar, filenames are end with '/'. When apt-get is trying to install it, it found the filename is not what it expects.

New dpkg supposes to support both format, but the package I'm working on (in fact, it's locales) says it's debian-binary is 2.0, which is old. Anyway, it seems that dpkg tools doesn't support writing to deb until now.

Well, I guess I could ignore it since it's harmless..
[/lang_en]
張貼留言