[問題] 打包 Python 3 版 SIP 的 .deb 出現錯誤

看板LinuxDev作者 (Yoxem)時間14年前 (2011/08/27 12:58), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
在下負責某個軟體的 .deb 打包。因為該軟體使用PyQt4 for Python3 作,而 PyQt4 以及 SIP 的 Python3 版並沒有 ubuntu 的 deb 正式檔。因此我想私自打包這兩個 軟體(或函式庫)的 Python 3 版。 SIP 4.12.4 的下載點如下: http://www.riverbankcomputing.co.uk/static/Downloads/sip4/sip-4.12.4.tar.gz 一般而言:編譯 SIP 4.12.4 for Python3 的方式如下: $ tar xvf sip-4.12.4.tar.gz $ cd sip $ python3 configure.py #不含參數 $ make;make install 我打包 deb 包的流程如下($ 號表示命令列): $ tar xvf sip-4.12.4.tar.gz $ python3 -B ./configure.py #不產生 .pyc $ dh_make -f ../sip-4.12.4.tar.gz Type of package: single binary, indep binary, multiple binary, library, kernel module, kernel patch or cdbs? [s/i/m/l/k/n/b] s Maintainer name : ...(以下略)... Hit <enter> to confirm: Done. Please edit the files in the debian/ subdirectory now. You should also check that the sip Makefiles install into $DESTDIR and not in / . $ cd debian debian 中的的檔案,我只改 changelog, control, copyright, docs 詳參附件:http://www.badongo.com/file/25704172 (後續出現 error 後,對 debian 目錄的副本) 最後的工作: $ rm -rf README.Debian README.source $ cd .. $ dpkg-buildpackage -rfakeroot 最後出現了: dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2 的錯誤,詳細訊息請參:http://paste.plurk.com/show/631607/ 根據訊息中「 dpkg-gencontrol -ldebian/changelog -Tdebian/python3-sip.substvars -Pdebian/python3-sip 」這行,我參看了  debian/python3-sip.substvars 這檔案,如下: shlibs:Depends=libc6 (>= 2.4), libgcc1 (>= 1:4.1.1), libstdc++6 (>= 4.1.1) misc:Depends= 敝人用直接編譯方式可以安裝成功,只是 「$ python3 -B ./configure.py 」這行改為 $ python3 -B ./configure.py --destdir /usr/local/stow/sip 不曉得發生什麼問題或設定檔出現什麼錯誤? 開發環境附註: Mint Linux 10 (GNOME, 64-bit) debhelper 8.0.0ubuntu1 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 119.15.250.155 ※ 編輯: Yoxem 來自: 119.15.250.155 (08/27 12:58)
文章代碼(AID): #1EM7bd6j (LinuxDev)
文章代碼(AID): #1EM7bd6j (LinuxDev)