From: Patrick Steinhardt <ps@pks.im>
To: Nikolaos Chatzikonstantinou <nchatz314@gmail.com>
Cc: Daniel Kiper <dkiper@net-space.pl>,
phcoder@gmail.com, grub-devel@gnu.org
Subject: Re: State of Argon2 support
Date: Fri, 26 Jan 2024 10:55:21 +0100 [thread overview]
Message-ID: <ZbOBieptvmaxL13p@tanuki> (raw)
In-Reply-To: <CAAQmekcwvndw_4R19kwZ76agQp+48dweuYMSYos9B-rytw4==w@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 2218 bytes --]
On Fri, Jan 26, 2024 at 03:18:57AM -0500, Nikolaos Chatzikonstantinou wrote:
> On Thu, Jan 25, 2024 at 1:15 PM Daniel Kiper <dkiper@net-space.pl> wrote:
> >
> > Adding Vladimir who knows GRUB history better than I...
> >
> > On Wed, Jan 24, 2024 at 01:23:55AM -0500, Nikolaos Chatzikonstantinou wrote:
> >
> > [...]
> >
> > > My apologies for the repeated messages, but I came up with just one
> > > more question that I'm curious about. To summarize my questions:
> > >
> > > 1. Where is the libgcrypt bundle from grub from? I think my
> > > investigation has led me around version 1.7.0 of libgcrypt, but if I
> > > can get a precise commit or version, that would be useful.
> > >
> > > ... and now to my new question:
> >
> > Vladimir, could you help with that?
> >
> > > 2. What is the reason libgcrypt is bundled as opposed to a regular dependency?
> >
> > I am not entirely sure I understand the question. Could you elaborate?
>
> By bundling, I mean that someone copied libgcrypt files into the GRUB project.
>
> To elaborate further, regular programs (not like GRUB which is a
> bootloader) can link statically or dynamically to libraries; but also,
> there's a third option, to dump the source code of a library directly
> into the source tree of the project. To my understanding this third
> option (which is not really a third linker option as it is not related
> to the linker) is chosen when the project needs to include its own
> patch set to the library. I am curious if GRUB has patched libgcrypt
> for some reason, and is that why libgcrypt is bundled with GRUB?
Yeah, the libgcrypt version carried by GRUB is heavily patched so that
it compiles within the non-libc environment that GRUB uses. That is the
whole crux of this topic -- if libgcrypt was simply a vanilla version
then it shouldn't be all that hard to update.
I think in the long term it would be great indeed if we could refrain
from patching libgcrypt to the widest extent possible so that future
updates become easier. I guess that would require something of a "shim"
header that makes available all of the prerequisites that are currently
missing for libgcrypt to compile.
Patrick
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
[-- Attachment #2: Type: text/plain, Size: 141 bytes --]
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel
next prev parent reply other threads:[~2024-01-26 9:56 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-22 17:29 State of Argon2 support Nikolaos Chatzikonstantinou
2023-12-23 3:43 ` Oskari Pirhonen
2024-01-01 19:48 ` Patrick Steinhardt
2024-01-04 15:49 ` Nikolaos Chatzikonstantinou
2024-01-23 16:57 ` Daniel Kiper
2024-01-24 5:05 ` Nikolaos Chatzikonstantinou
2024-01-24 5:46 ` Nikolaos Chatzikonstantinou
2024-01-24 6:23 ` Nikolaos Chatzikonstantinou
2024-01-25 18:15 ` Daniel Kiper
2024-01-26 8:18 ` Nikolaos Chatzikonstantinou
2024-01-26 9:55 ` Patrick Steinhardt [this message]
2024-01-26 18:00 ` Daniel Kiper
2024-01-26 17:50 ` Daniel Kiper
2024-01-26 20:31 ` Vladimir 'phcoder' Serbinenko
2024-01-30 15:18 ` Nikolaos Chatzikonstantinou
2024-02-02 14:10 ` Daniel Kiper
2024-02-11 21:01 ` Nikolaos Chatzikonstantinou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZbOBieptvmaxL13p@tanuki \
--to=ps@pks.im \
--cc=dkiper@net-space.pl \
--cc=grub-devel@gnu.org \
--cc=nchatz314@gmail.com \
--cc=phcoder@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.