[pacman-dev] [pacman] [PATCH] makepkg: remove makedepends before installing built package

Levente Polyak anthraxx at archlinux.org
Thu Sep 12 14:01:27 UTC 2019


On 9/12/19 3:22 PM, arch at eckner.net wrote:
> From: Erich Eckner <git at eckner.net>
> 
> When running `makepkg -i` it may be necessary to first remove make- and
> checkdepends before installing the built package - for example if they
> conflict each other. This is the case for wireguard-arch which
> makedepends and conflicts wireguard-dkms.
> 
> Signed-off-by: Erich Eckner <git at eckner.net>
> ---
>  scripts/makepkg.sh.in | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
> index 43484db3..25d97287 100644
> --- a/scripts/makepkg.sh.in
> +++ b/scripts/makepkg.sh.in
> @@ -821,6 +821,9 @@ create_srcpackage() {
>  install_package() {
>  	(( ! INSTALL )) && return 0
>  
> +	remove_deps || return $?
> +	RMDEPS=0
> +
>  	if (( ! SPLITPKG )); then
>  		msg "$(gettext "Installing package %s with %s...")" "$pkgname" "$PACMAN -U"
>  	else
> 


This makes --install imply --rmdeps. I think the minimum would be to
document this behavior in the CLI help and manpage.

cheers
Levente

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/pacman-dev/attachments/20190912/9037ee72/attachment.sig>


More information about the pacman-dev mailing list