我正在使用debuild来构建我的debian包。当构建其中一个(包含相当多的php文件)时,我收到以下错误:
dh_installdocs
dh_installchangelogs
dh_perl
dh_link
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol
dpkg-gencontrol: warning: package amazing-php: unused substitution variable ${perl:Depends}
dh_md5sums
Can't exec "/bin/sh": Argument list too long at /usr/share/perl5/Debian/Debhelper/Dh_Lib.pm line 241.
dh_md5sums: (cd debian/amazing-php >/dev/null ; find . -type f ! -path "./etc/apache2/sites-available/amazing-php.conf" ! -path "./etc/amazing-php/extensions/Arrays/arrayLoopsInteractionParserTests.txt" ! < A LONG LIST OF FILES >
使用vi /usr/share/perl5/Debian/Debhelper/Dh_Lib.pm +241
查看文件时,您可以找到
system(join(" ", @_)) == 0
启动带有文件列表的子shell(太长)。这对我来说似乎是个错误?
是否有变通方法?
答案 0 :(得分:1)
我通过将dh_override_md5sums
添加到debian/rules
文件来修复它:
#!/usr/bin/make -f
# Empty target: https://www.gnu.org/software/make/manual/html_node/Empty-Recipes.html
override_dh_md5sums: ;
%:
dh $@