Re: git: 606b37bbf06d - main - Mk/Uses: make it possible to compile gems that need rust to build

From: Matthias Fechner <mfechner_at_freebsd.org>
Date: Tue, 09 Jan 2024 12:30:35 UTC
Am 09.01.2024 um 14:13 schrieb Matthias Fechner:
> The branch main has been updated by mfechner:
>
> URL: https://cgit.FreeBSD.org/ports/commit/?id=606b37bbf06dcdfb54480aae8fb69135c06fb11a
>
> commit 606b37bbf06dcdfb54480aae8fb69135c06fb11a
> Author:     Matthias Fechner <mfechner@FreeBSD.org>
> AuthorDate: 2024-01-09 12:04:24 +0000
> Commit:     Matthias Fechner <mfechner@FreeBSD.org>
> CommitDate: 2024-01-09 12:12:47 +0000
>
>      Mk/Uses: make it possible to compile gems that need rust to build
>      
>      This commits defines same variables in a way that they can be overwritten
>      by a port.
>      Refactored the extract target to work together with cargo.mk.
>      
>      The gem.mk file will require more work to be easily usable for gems that
>      required rust. Most of the work is now outsourced to the port.
>      
>      I added comments to parts that needs more love.
>      
>      To test these modification, the following commands can be used:
>      (make sure you adjust the path to match your environment)
>      rm /usr/local/poudriere/ports/gitlab/distfiles/rubygem/gapic-common-*.gem
>      rm /usr/local/poudriere/ports/gitlab/distfiles/rubygem/prome*.gem
>      rm /usr/local/poudriere/ports/gitlab/distfiles/rust/crates/ahash-*crate
>      /usr/local/poudriere/ports/gitlab/distfiles/*.gem
>      cd /usr/local/poudriere/ports/gitlab/devel/rubygem-prometheus-client-mmap
>      make makesum
git removed here:

# check distfiles

>      cd /usr/local/poudriere/ports/gitlab/devel/rubygem-gapic-common
>      make makesum
>      poudriere testport -p gitlab -j 132amd64 devel/rubygem-gapic-common && poudriere testport -p gitlab -j 132amd64 devel/rubygem-prometheus-client-mmap

Gruß
Matthias

-- 

"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the universe trying to
produce bigger and better idiots. So far, the universe is winning." --
Rich Cook