GNU bug report logs -
#55449
recutils cross-compilation "fix" breaks bash builtins
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 55449 in the body.
You can then email your comments to 55449 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#55449
; Package
guix
.
(Mon, 16 May 2022 12:53:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Liliana Marie Prikler <liliana.prikler <at> ist.tugraz.at>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Mon, 16 May 2022 12:53:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi Guix,
The fix in commit 20fbd870938e239c038d8524a56729f123f19f80, which lets
recutils cross-compile unfortunately omits support for the bash
builtins in all build modes, as recutils can't actually detect bash
headers there.
Unfortunately, recutils' configure.ac silently swallows this error in
the following check.
AM_CONDITIONAL([BASH_BUILTINS],
[test "x$bash_headers_available" = "xyes" &&
test "x$bash_builtins_enabled" = "xyes"])
I only noticed, because I symlink the builtins to lib/bash, where
they're actually needed, which causes runpath validation to fail
because the symlink points to a file that doesn't exist. I fixed this
locally, but still wanted y'all to know.
Is there a way we can support bash headers in cross-compilation
contexts? I don't think having bash:include as a native input is even
helpful here, is it? WDYT?
Information forwarded
to
bug-guix <at> gnu.org
:
bug#55449
; Package
guix
.
(Mon, 16 May 2022 13:38:01 GMT)
Full text and
rfc822 format available.
Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):
Yeah, I toyed with the idea of a 'assert-readrec-existence phase but it seemed a bit silly at the time. And look, now it vanished.
Headers being a native input looked and still looks hella sus to me, but presumably done for a reason...? (They said, optimistically.)
Kind regards,
T G-R
Sent on the go. Excuse or enjoy my brevity.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#55449
; Package
guix
.
(Mon, 16 May 2022 15:16:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 55449 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Liliana Marie Prikler schreef op ma 16-05-2022 om 14:52 [+0200]:
> Is there a way we can support bash headers in cross-compilation
> contexts? I don't think having bash:include as a native input is even
> helpful here, is it? WDYT?
>
>
Maybe you can give <https://issues.guix.gnu.org/55377> a try ... needs
a rebase though. No idea if it helps here.
Greetings,
Maxime.
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#55449
; Package
guix
.
(Sat, 04 Jun 2022 08:34:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 55449 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/databases.scm (recutils)[arguments]: Convert to G-Expressions.
Drop gratuitous dirname.
[native-inputs]: Drop labels. Move bash:include...
[inputs]: ... here. Also add regular bash.
---
gnu/packages/databases.scm | 19 ++++++++-----------
1 file changed, 8 insertions(+), 11 deletions(-)
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 09d825af3e..5cd8cc2fa3 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -1527,20 +1527,17 @@ (define-public recutils
(build-system gnu-build-system)
(arguments
(list #:configure-flags
- '(list "--disable-static"
- (string-append "--with-bash-headers="
- (dirname (search-input-directory
- %build-inputs
- "include/bash"))))))
+ #~(list "--disable-static"
+ (string-append "--with-bash-headers="
+ (search-input-directory %build-inputs
+ "include/bash")))))
(native-inputs
- ;; XXX Without labels, the default 'configure phase picks the wrong "bash".
- `(("bc" ,bc)
- ("bash:include" ,bash "include")
- ("check" ,check-0.14)
- ("pkg-config" ,pkg-config)))
+ (list bc check-0.14 pkg-config))
(inputs
;; TODO: Add more optional inputs.
- (list curl
+ (list bash ; /bin/bash for native compilation
+ `(,bash "include")
+ curl
libgcrypt
`(,util-linux "lib")))
(synopsis "Manipulate plain text files as databases")
--
2.36.1
Reply sent
to
Liliana Marie Prikler <liliana.prikler <at> gmail.com>
:
You have taken responsibility.
(Sun, 18 Jun 2023 07:40:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Liliana Marie Prikler <liliana.prikler <at> ist.tugraz.at>
:
bug acknowledged by developer.
(Sun, 18 Jun 2023 07:40:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 55449-done <at> debbugs.gnu.org (full text, mbox):
Am Samstag, dem 04.06.2022 um 10:30 +0200 schrieb Liliana Marie
Prikler:
> * gnu/packages/databases.scm (recutils)[arguments]: Convert to G-
> Expressions.
> Drop gratuitous dirname.
> [native-inputs]: Drop labels. Move bash:include...
> [inputs]: ... here. Also add regular bash.
> ---
Hi Guix, I've pushed this now.
There's still a UX issue in that recutils doesn't put these libraries
into lib/bash, but at the very least it works as described in the
manual right now.
Cheers
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 16 Jul 2023 11:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 299 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.