APPLIED[U/K]: [Unstable][K][PATCH] UBUNTU: [Packaging] Make stamp-install-<flavor> target reentrant

Andrea Righi andrea.righi at canonical.com
Tue Sep 6 06:03:59 UTC 2022


On Fri, Aug 19, 2022 at 03:35:49PM +0200, Juerg Haefliger wrote:
> During development or for debugging purposes it's sometimes desirable to
> run 'debian/rules build-<flavor>' multiple times in a row without starting
> from scratch, i.e. without cleaning the build first. Currently this fails
> because make tries to move a subdirectory to an already existing location
> when installing files for the modules extra package:
> 
> mv: cannot move '/build/debian/linux-modules-5.15.0-1016-oracle/lib/modules/5.15.0-1016-oracle/kernel' to '/build/debian/linux-modules-extra-5.15.0-1016-oracle/lib/modules/5.15.0-1016-oracle/kernel/kernel': Directory not empty
> make: *** [debian/rules.d/2-binary-arch.mk:155: /build/debian/stamps/stamp-install-oracle] Error 1
> 
> Fix that by properly running dh_prep at the beginning of the install
> target.
> 
> Signed-off-by: Juerg Haefliger <juerg.haefliger at canonical.com>

Makes sense to me, applied both to kinetic/linux and
kinetic/linux-unstable.

Thanks,
-Andrea



More information about the kernel-team mailing list