All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] A few small OpenBSD-ish fixes
@ 2021-05-19  5:14 jacob berkman
  2021-05-19  5:14 ` [PATCH 1/3] Do not fail configure if Python is missing. It's only required for developement of GRUB jacob berkman
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: jacob berkman @ 2021-05-19  5:14 UTC (permalink / raw)
  To: grub-devel; +Cc: jacob berkman

Hello,

I built GRUB on OpenBSD 6.9 over the weekend, and ran into a few
issues. The minor ones attached were easy enough to
fix. Unfortunately, once installed, it merely prints "Grub Loading"
(or something similar) and reboots. In trying to recover from this, I
wiped out the MBR and that's when I gave up and figured maybe I should
do this in a VM instead.

One other issue I ran into was that setjmp.mod would fail to build
because it didn't export any symbols. No other modules seemed to
depend on it. I just removed it from Makefile, but I'm not familiar
enough with GRUB to know whether that's a reasonable enough solution,
or if that's related to the inability to boot.

Cheers,
 // jacob

jacob berkman (3):
  Do not fail configure if Python is missing. It's only required for
    developement of GRUB.
  Fix warning about misleading indentation on OpenBSD 6.9 with -Werror
    enabled (which is the default).
  Use size_t printf format to match type

 configure.ac            | 2 +-
 grub-core/fs/zfs/zfs.c  | 4 ++--
 grub-core/lib/LzmaEnc.c | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

-- 
2.30.1 (Apple Git-130)



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/3] Do not fail configure if Python is missing. It's only required for developement of GRUB.
  2021-05-19  5:14 [PATCH 0/3] A few small OpenBSD-ish fixes jacob berkman
@ 2021-05-19  5:14 ` jacob berkman
  2021-05-19  5:14 ` [PATCH 2/3] Fix warning about misleading indentation on OpenBSD 6.9 with -Werror enabled (which is the default) jacob berkman
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: jacob berkman @ 2021-05-19  5:14 UTC (permalink / raw)
  To: grub-devel; +Cc: jacob berkman

---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 74719416c..dba38d731 100644
--- a/configure.ac
+++ b/configure.ac
@@ -362,7 +362,7 @@ gl_EARLY
 AC_PROG_CXX
 AM_PROG_CC_C_O
 AM_PROG_AS
-AM_PATH_PYTHON([2.6])
+AM_PATH_PYTHON([2.6],, [:])
 
 # Must be GCC.
 test "x$GCC" = xyes || AC_MSG_ERROR([GCC is required])
-- 
2.30.1 (Apple Git-130)



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/3] Fix warning about misleading indentation on OpenBSD 6.9 with -Werror enabled (which is the default).
  2021-05-19  5:14 [PATCH 0/3] A few small OpenBSD-ish fixes jacob berkman
  2021-05-19  5:14 ` [PATCH 1/3] Do not fail configure if Python is missing. It's only required for developement of GRUB jacob berkman
@ 2021-05-19  5:14 ` jacob berkman
  2021-05-19  5:14 ` [PATCH 3/3] Use size_t printf format to match type jacob berkman
  2021-05-27 14:58 ` [PATCH 0/3] A few small OpenBSD-ish fixes Daniel Kiper
  3 siblings, 0 replies; 5+ messages in thread
From: jacob berkman @ 2021-05-19  5:14 UTC (permalink / raw)
  To: grub-devel; +Cc: jacob berkman

---
 grub-core/lib/LzmaEnc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/grub-core/lib/LzmaEnc.c b/grub-core/lib/LzmaEnc.c
index 52b331558..4636a9ffe 100644
--- a/grub-core/lib/LzmaEnc.c
+++ b/grub-core/lib/LzmaEnc.c
@@ -1358,7 +1358,7 @@ static UInt32 GetOptimum(CLzmaEnc *p, UInt32 position, UInt32 *backRes)
       if (repIndex == 0)
         startLen = lenTest + 1;
 
-      /* if (_maxMode) */
+      if (True /* _maxMode */)
       {
           UInt32 lenTest2 = lenTest + 1;
           UInt32 limit = lenTest2 + p->numFastBytes;
-- 
2.30.1 (Apple Git-130)



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 3/3] Use size_t printf format to match type
  2021-05-19  5:14 [PATCH 0/3] A few small OpenBSD-ish fixes jacob berkman
  2021-05-19  5:14 ` [PATCH 1/3] Do not fail configure if Python is missing. It's only required for developement of GRUB jacob berkman
  2021-05-19  5:14 ` [PATCH 2/3] Fix warning about misleading indentation on OpenBSD 6.9 with -Werror enabled (which is the default) jacob berkman
@ 2021-05-19  5:14 ` jacob berkman
  2021-05-27 14:58 ` [PATCH 0/3] A few small OpenBSD-ish fixes Daniel Kiper
  3 siblings, 0 replies; 5+ messages in thread
From: jacob berkman @ 2021-05-19  5:14 UTC (permalink / raw)
  To: grub-devel; +Cc: jacob berkman

---
 grub-core/fs/zfs/zfs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/grub-core/fs/zfs/zfs.c b/grub-core/fs/zfs/zfs.c
index f9e755197..a29db8827 100644
--- a/grub-core/fs/zfs/zfs.c
+++ b/grub-core/fs/zfs/zfs.c
@@ -1881,8 +1881,8 @@ zio_read (blkptr_t *bp, grub_zfs_endian_t endian, void **buf,
 	        << SPA_MINBLOCKSHIFT));
       psize = get_psize (bp, endian);
     }
-  grub_dprintf("zfs", "zio_read: E %d: size %" PRIdGRUB_SSIZE "/%"
-	       PRIdGRUB_SSIZE "\n", (int)BP_IS_EMBEDDED(bp), lsize, psize);
+  grub_dprintf("zfs", "zio_read: E %d: size %" PRIuGRUB_SIZE "/%"
+	       PRIuGRUB_SIZE "\n", (int)BP_IS_EMBEDDED(bp), lsize, psize);
 
   if (size)
     *size = lsize;
-- 
2.30.1 (Apple Git-130)



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 0/3] A few small OpenBSD-ish fixes
  2021-05-19  5:14 [PATCH 0/3] A few small OpenBSD-ish fixes jacob berkman
                   ` (2 preceding siblings ...)
  2021-05-19  5:14 ` [PATCH 3/3] Use size_t printf format to match type jacob berkman
@ 2021-05-27 14:58 ` Daniel Kiper
  3 siblings, 0 replies; 5+ messages in thread
From: Daniel Kiper @ 2021-05-27 14:58 UTC (permalink / raw)
  To: jacob berkman; +Cc: grub-devel

Hi Jacob,

On Tue, May 18, 2021 at 10:14:12PM -0700, jacob berkman wrote:
> Hello,
>
> I built GRUB on OpenBSD 6.9 over the weekend, and ran into a few
> issues. The minor ones attached were easy enough to
> fix. Unfortunately, once installed, it merely prints "Grub Loading"
> (or something similar) and reboots. In trying to recover from this, I
> wiped out the MBR and that's when I gave up and figured maybe I should
> do this in a VM instead.

The patches look more or less good to me. Though I would like to ask you
to add to all of them your SOB line like:

Signed-off-by: jacob berkman <jacob@87k.net>

Additionally, please do not put whole description of the issue into the
subject. The subject should contain only a hint what a given patch does.

> One other issue I ran into was that setjmp.mod would fail to build
> because it didn't export any symbols. No other modules seemed to
> depend on it. I just removed it from Makefile, but I'm not familiar
> enough with GRUB to know whether that's a reasonable enough solution,
> or if that's related to the inability to boot.

Could you provide more details how to reproduce the issue?

Daniel


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-05-27 14:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-19  5:14 [PATCH 0/3] A few small OpenBSD-ish fixes jacob berkman
2021-05-19  5:14 ` [PATCH 1/3] Do not fail configure if Python is missing. It's only required for developement of GRUB jacob berkman
2021-05-19  5:14 ` [PATCH 2/3] Fix warning about misleading indentation on OpenBSD 6.9 with -Werror enabled (which is the default) jacob berkman
2021-05-19  5:14 ` [PATCH 3/3] Use size_t printf format to match type jacob berkman
2021-05-27 14:58 ` [PATCH 0/3] A few small OpenBSD-ish fixes Daniel Kiper

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.