我正在嘗試為軟體建立 deb 包。我正在跟進本教程對於相同的。
當嘗試使用 建置包時bzr builddeb -- -us -uc
,我收到很多遺失檔案的 lintian 錯誤:
E: eyeris source: source-is-missing usr/local/bin/EyeRIS/lib64/libusb-1.0.so
這些文件非常多地存在於提到的資料夾中。
我嘗試添加 lintian 覆蓋,但仍然收到錯誤。
我可能做錯了什麼嗎?或另一種方式?
答案1
Lintian的問題可以透過lintian-info來解釋:
$ lintian-info -t source-is-missing
E: source-is-missing
N:
N: The source of the following file is missing. Lintian checked a few
N: possible paths to find the source, and do not find it.
N:
N: Please repack your package to include the source or add it to
N: "debian/missing-sources" directory.
N:
N: If this is a false-positive, please report a bug against Lintian.
N:
N: Severity: serious, Certainty: possible
N:
N: Check: cruft, Type: source
N:
所以這裡它抱怨它可以找到看起來像編譯物件的東西,但找不到對應的原始碼。
在 libusb 的特定情況下,分發沒有原始碼的二進位檔案將違反其授權 LGPLv2.1。
在這種情況下,我的猜測是您應該從套件中刪除這個嵌入式 libusb 庫,並讓應用程式使用 Ubuntu 中已打包的庫。