Packaging
即使對程式碼進行了微小的更改,建構 Debian 軟體包也會失敗
我可以
make
使用以下過程建構 Debian 軟體包:apt-get source make cd make-* dpkg-buildpackage --build=binary --no-sign
但是,一旦我對程式碼進行任何更改,甚至更改字元串中的一個字元,那麼在測試期間建構就會失敗:
1 Test in 1 Category Failed (See .diff* files in work dir for details) :-( make[4]: *** [Makefile:1373: check-regression] Error 1 make[4]: Leaving directory '/mnt/src/deb/MAKE/make-dfsg-4.2.1/debian/build-make-guile' make[3]: *** [Makefile:1114: check-am] Error 2 make[3]: Leaving directory '/mnt/src/deb/MAKE/make-dfsg-4.2.1/debian/build-make-guile' make[2]: *** [Makefile:820: check-recursive] Error 1 make[2]: Leaving directory '/mnt/src/deb/MAKE/make-dfsg-4.2.1/debian/build-make-guile' dh_auto_test: error: cd debian/build-make-guile && make -j8 check VERBOSE=1 returned exit code 2 make[1]: *** [debian/rules:50: override_dh_auto_test] Error 255 make[1]: Leaving directory '/mnt/src/deb/MAKE/make-dfsg-4.2.1' make: *** [debian/rules:24: build] Error 2 dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
如何使用自定義更改建構包?
理想情況下,您會更新測試套件以將您的更改考慮在內。
但是,可以使用標準化的建構選項完全避免測試套件:
DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage -us -uc