I would have used the existing Debian PHP 7.1 package instead...
Anyway, to answer your question, your packaging process as described is valid. To answer properly we’d need to see your debian/control
and debian/rules
files in detail, but the error you’re seeing is easy to fix: the PHP source doesn’t use DESTDIR
, it needs an INSTALL_ROOT
variable instead. In debian/rules
:
override_dh_auto_install: dh_auto_install -- INSTALL_ROOT=$(CURDIR)/debian/php
since you appear to be building a single php
binary package.
manpreet
Best Answer
2 years ago
I want to create a .deb package of PHP 7.1 for Debian with the PHP modules I want.
Here the steps I have followed.
Downloading PHP sources
Here I can compile PHP 7.1, no problem. If I want to build the package, I follow those steps:
Preparing the packaging:
In that file I modify the
Build-Depends:
line with:The packaging:
The result:
But the directory and the file have been created by the packaging process:
Is my packaging process valid?
If so, what could be the causes of the error?
EDIT: @Stephen Kitt answer did the trick. Just to not, you have to use actual tabulations (not space) and not forget to reexecute
debuild -S -sa --lintian-opts -i
after the modification.EDITbis : New question here Installing a created .deb package