[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#69476] [PATCH 7/8] guix: cmake-build-system: Handle unknown systems
From: |
Jean-Pierre De Jesus Diaz |
Subject: |
[bug#69476] [PATCH 7/8] guix: cmake-build-system: Handle unknown systems. |
Date: |
Wed, 17 Apr 2024 14:00:55 +0000 |
>That said, we should arrange to land the ‘cmake-build-system.scm’ patch
>either on the next ‘core-updates’ branch or on a topic branch.
>
>Thoughts?
I think it'd appropiate for it to be on core-updates or a topic branch, the most
convenient for you and then the rest of the patches can be applied IMO. Thanks
for applying some of the patches.
P.S.: The patch for CMake was also sent to <https://issues.guix.gnu.org/68366>
before working on this issue as I discovered it while working on other targets.
On Wed, Apr 17, 2024 at 9:54 AM Ludovic Courtès <ludo@gnu.org> wrote:
>
> Jean-Pierre De Jesus DIAZ <jean@foundationdevices.com> skribis:
>
> > * guix/build/cmake-build-system.scm (configure): Use Generic as the
> > system name if the system is unknown.
> >
> > Change-Id: Ifd4a618ef67eb420b02d48f05291571aea44e46e
> > ---
> > guix/build/cmake-build-system.scm | 10 +++++++---
> > 1 file changed, 7 insertions(+), 3 deletions(-)
> >
> > diff --git a/guix/build/cmake-build-system.scm
> > b/guix/build/cmake-build-system.scm
> > index d1ff5071be..0774124c95 100644
> > --- a/guix/build/cmake-build-system.scm
> > +++ b/guix/build/cmake-build-system.scm
> > @@ -69,9 +69,13 @@ (define* (configure #:key outputs (configure-flags '())
> > (out-of-source? #t)
> > target "-gcc")
> > (string-append "-DCMAKE_CXX_COMPILER="
> > target "-g++")
> > - (if (string-contains target "mingw")
> > - "-DCMAKE_SYSTEM_NAME=Windows"
> > - "-DCMAKE_SYSTEM_NAME=Linux"))
> > + (cond
> > + ((string-contains target "mingw")
> > + "-DCMAKE_SYSTEM_NAME=Windows")
> > + ((string-contains target "linux")
> > + "-DCMAKE_SYSTEM_NAME=Linux")
> > + (else
> > + "-DCMAKE_SYSTEM_NAME=Generic")))
>
> I spoke too fast.
>
> This patch is good but it triggers a rebuild of everything that depends
> on CMake.
>
> So for now, I instead amended the last patch of the series like this:
>
>
> I confirmed that this builds and that I get the same hashes.
>
> That said, we should arrange to land the ‘cmake-build-system.scm’ patch
> either on the next ‘core-updates’ branch or on a topic branch.
>
> Thoughts?
>
> Thanks,
> Ludo’.