ACK: [SRU][F, B, X][PATCH] UBUNTU: [Packaging] Bring back install-<flavour> prerequisite for checks-<flavour>

Stefan Bader stefan.bader at canonical.com
Tue Mar 5 13:59:58 UTC 2024


On 05.03.24 14:42, Roxana Nicolescu wrote:
> BugLink: https://bugs.launchpad.net/bugs/2055686
> 
> Previous commit "UBUNTU: [Packaging] Remove in-tree abi checks" removed
> module-check, abi-check, retpoline-check prerequisites for checks-<flavour>
> target. All these were dependent on the install-<flavour> rule.
> By removing these checks, install rule is now forgotten.
> This caused issues during udeps build step because modules are nowhere
> to be found and depmod failed:
> "
> ...
> depmod: ERROR: could not open directory /build/focal/debian/d-i-amd64/lib/modules/5.4.0-173-generic: No such file or directory
> depmod: FATAL: could not search modules: No such file or directory
> make[1]: *** [debian/rules.d/5-udebs.mk:16: do-binary-udebs] Error 1
> make: *** [debian/rules.d/5-udebs.mk:4: binary-udebs] Error 2
> "
> 
> Note: This should be a temporary fix.
> In newer versions > focal, this is not required because install
> is a prerequisite for the build rule (lp#1930713). This will be
> considered to be backported to focal, bionic and xenial after a thorough
> investigation.
> 
> Signed-off-by: Roxana Nicolescu <roxana.nicolescu at canonical.com>
Acked-by: Stefan Bader <stefan.bader at canonical.com>
> ---

Right now I would also be hard pressed to remember which are the main 
targets used by Debian packaging and in which order deps are needed. As 
this is tested to be working...

>   debian/rules.d/4-checks.mk | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/debian/rules.d/4-checks.mk b/debian/rules.d/4-checks.mk
> index 07bba37139431..bea1060e63f23 100644
> --- a/debian/rules.d/4-checks.mk
> +++ b/debian/rules.d/4-checks.mk
> @@ -1,4 +1,4 @@
> -checks-%:
> +checks-%: install-%
>   	@echo Debug: $@
>   
>   # Check the config against the known options list.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0xE8675DEECBEECEA3.asc
Type: application/pgp-keys
Size: 48643 bytes
Desc: OpenPGP public key
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20240305/cf0af6cc/attachment-0001.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20240305/cf0af6cc/attachment-0001.sig>


More information about the kernel-team mailing list