[Replicant] [vendor_replicant-scripts] [PATCH v2 2/6] replicant_prepare_patch.py: Makefile: create DESTDIR

Joonas Kylmälä joonas.kylmala at iki.fi
Mon Aug 7 17:36:35 UTC 2023


Hi,

Denis 'GNUtoo' Carikli:
> Some distributions like Guix work best when DESTDIR is created by the
> software build system (here the Makefile).
> 
> [Joonas Kylmälä]: Fixed bug that didn't preserve DESTDIR permissions.
> Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo at cyberdimension.org>
> ---
>   patches/Makefile | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/patches/Makefile b/patches/Makefile
> index 64a3f64..1179215 100644
> --- a/patches/Makefile
> +++ b/patches/Makefile
> @@ -3,4 +3,5 @@ INSTALL ?= install
>   
>   .PHONY: install
>   install:
> +	$(INSTALL) -D $(DESTDIR)
>   	$(INSTALL) -m 755 replicant_prepare_patch.py -t $(DESTDIR)

This should be just a single command (similarly in the other patches):

$(INSTALL) -m 755 -D replicant_prepare_patch.py 
$(DESTDIR)/replicant_prepare_patch.py

Joonas


More information about the Replicant mailing list