Bug#840425: mkosi: FTBFS when built with dpkg-buildpackage -A (debian/mkosi.1: No such file or directory)

Felipe Sateler fsateler at debian.org
Tue Oct 11 15:30:04 BST 2016


On 11 October 2016 at 11:23, Santiago Vila <sanvila at unex.es> wrote:
> On Tue, Oct 11, 2016 at 11:07:13AM -0300, Felipe Sateler wrote:
>
>> > I suggest the patch below to fix this. It makes debian/rules a little bit shorter
>> > and maybe a little bit more dh-style.
>>
>> The build target is there because otherwise make does not consider it
>> phony (the build system generates a build subdir).
>
> I don't think that's a real problem.
>
> Please try doing this after applying the patch I suggested:
>
> debian/rules build
>
> You will see that it does what it is supposed to do
> (i.e. building the package).
>
> If your intention is that "debian/rules build" builds everything from
> scratch again if you do it a second time, you can't even do that
> with dh because of dh's own stamping system.
>
> For example, try "debian/rules build" on the hello package, then try
> "debian/rules build" again, you will see that it does not do anything
> the second time.

Debhelper compat level 10 introduced a new stamping system that is
reasonable now. Because mkosi uses level 10, all I need to do is `rm
debian/debhelper-build-stamp`. If I don't do the .PHONY thing, the
only thing that will work is deleting the build dir.

-- 

Saludos,
Felipe Sateler




More information about the Pkg-systemd-maintainers mailing list