我可以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
如何使用自定义更改构建包?
理想情况下,您会更新测试套件以将您的更改考虑在内。
但是,可以使用标准化的构建选项完全避免测试套件: