GNU bug report logs -
#70999
[core-updates] Meson-build system fails to install license
Previous Next
Reported by: Dariqq <dariqq <at> posteo.net>
Date: Fri, 17 May 2024 09:27:01 UTC
Severity: normal
Done: Dariqq <dariqq <at> posteo.net>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 70999 in the body.
You can then email your comments to 70999 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#70999
; Package
guix
.
(Fri, 17 May 2024 09:27:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Dariqq <dariqq <at> posteo.net>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Fri, 17 May 2024 09:27:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi Guix,
I was trying to update a package using meson build system to its newest
version and noticed in the build log
starting phase `install-license-files'
installing 0 license files from '.'
phase `install-license-files' succeeded after 0.0 seconds
Also other packages built using meson don't seem to have license files
in the output.
I think the problem is that the "." directory is the "build" directory
and not the source directory because in meson configure phase we change
directory to the build-dir.
The install-license-files function has an argument for specifying
out-of-source builds and calling it with that set to #t seems to be able
to find license files in the source directory in my limited testing.
Another option would be to specify the build dir in the ninja
invocations without changing to it.
As meson only supports out-of-source builds I think this should be
changed though I am unsure how to best do this.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#70999
; Package
guix
.
(Sat, 25 May 2024 09:38:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 70999 <at> debbugs.gnu.org (full text, mbox):
Hi Dariqq,
Dariqq <dariqq <at> posteo.net> skribis:
> The install-license-files function has an argument for specifying
> out-of-source builds and calling it with that set to #t seems to be
> able to find license files in the source directory in my limited
> testing.
Yes, ‘meson-build-system’ should pass #:out-of-source? #t exactly like
‘cmake-build-system’ does. That should solve the problem.
Thanks,
Ludo’.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#70999
; Package
guix
.
(Sat, 25 May 2024 14:09:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 70999 <at> debbugs.gnu.org (full text, mbox):
Meson currently supports only out-of-source builds. Add the argument out-of-source? with default to #t such that the install-license-files phase searches for the license files in the source directory.
* guix/build-system/meson.scm (meson-build): Add out-of-source? argument.
(meson-cross-build): Likewise.
Change-Id: Ib59d9d93b34fd567f05f5f9a10293f6ab924e399
---
I have tested this with the tio package (both natively building and cross compiling) and seems to work. This will cause a lot of rebuild!
For the position of the argument I've put it above build-type to match the order in cmake-build-system.
guix/build-system/meson.scm | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/guix/build-system/meson.scm b/guix/build-system/meson.scm
index bf9ca15ecc..6c085fa1fe 100644
--- a/guix/build-system/meson.scm
+++ b/guix/build-system/meson.scm
@@ -176,6 +176,7 @@ (define* (meson-build name inputs
(outputs '("out"))
(configure-flags ''())
(search-paths '())
+ (out-of-source? #t)
(build-type "debugoptimized")
(tests? #t)
(test-options ''())
@@ -225,6 +226,7 @@ (define* (meson-build name inputs
#$(if (pair? configure-flags)
(sexp->gexp configure-flags)
configure-flags)
+ #:out-of-source? #$out-of-source?
#:build-type #$build-type
#:tests? #$tests?
#:test-options #$(sexp->gexp test-options)
@@ -257,7 +259,7 @@ (define* (meson-cross-build name
(configure-flags ''())
(search-paths '())
(native-search-paths '())
-
+ (out-of-source? #t)
(build-type "debugoptimized")
(tests? #f)
(test-options ''())
@@ -338,6 +340,7 @@ (define* (meson-cross-build name
,@#$(if (pair? configure-flags)
(sexp->gexp configure-flags)
configure-flags))
+ #:out-of-source? #$out-of-source?
#:build-type #$build-type
#:tests? #$tests?
#:test-options #$(sexp->gexp test-options)
base-commit: 9756d9d6345fb142944261174453ab0a597cc2e7
--
2.41.0
Changed bug title to '[core-updates] Meson-build system fails to install license' from 'Meson-build system fails to install license files'
Request was from
Dariqq <dariqq <at> posteo.net>
to
control <at> debbugs.gnu.org
.
(Wed, 26 Jun 2024 15:36:01 GMT)
Full text and
rfc822 format available.
Reply sent
to
Dariqq <dariqq <at> posteo.net>
:
You have taken responsibility.
(Tue, 06 Aug 2024 19:52:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Dariqq <dariqq <at> posteo.net>
:
bug acknowledged by developer.
(Tue, 06 Aug 2024 19:52:02 GMT)
Full text and
rfc822 format available.
Message #18 received at 70999-done <at> debbugs.gnu.org (full text, mbox):
Closing as the patch was resent in #71785 assigned to guix-patches and
is now included in core-updates as commit
473590fc4cd9d5a833913ce3f7835eeedcecac21
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 04 Sep 2024 11:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 167 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.