NetBSD Problem Report #22049
Received: (qmail 1730 invoked by uid 605); 4 Jul 2003 06:14:17 -0000
Message-Id: <20030704061410.91873114DC3@bob.blef.org>
Date: Thu, 3 Jul 2003 23:14:10 -0700 (PDT)
From: soren@bob.blef.org
Sender: gnats-bugs-owner@netbsd.org
Reply-To: soren@blef.org
To: gnats-bugs@gnats.netbsd.org
Subject: grub-install fails calling mkdir
X-Send-Pr-Version: 3.95
>Number: 22049
>Category: pkg
>Synopsis: grub-install fails calling mkdir
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jul 04 06:15:01 +0000 2003
>Closed-Date: Sun Jul 13 17:35:28 +0000 2003
>Last-Modified: Sun Jul 13 18:05:00 +0000 2003
>Originator: Soren Jacobsen
>Release: NetBSD 1.6.1
>Organization:
>Environment:
pkgsrc as of 07/03/2003.
>Description:
$bootdir is empty on NetBSD, but grub-install will try to mkdir it, which
results in an error, and grub-install failing completely.
>How-To-Repeat:
grub-install '(hd0)' or some such, watch it fail.
>Fix:
Add patches/patch-ai and make makepatchsum. I guess bump PKGREVISION as well.
This should probably be sent upstream.
$NetBSD$
--- util/grub-install.in.orig Thu Jul 3 23:01:25 2003
+++ util/grub-install.in Thu Jul 3 23:03:11 2003
@@ -297,7 +297,7 @@
# Stage 1.5 does not exist.
# Create the GRUB directory if it is not present.
-test -d "$bootdir" || mkdir "$bootdir" || exit 1
+test -z "$bootdir" || test -d "$bootdir" || mkdir "$bootdir" || exit 1
test -d "$grubdir" || mkdir "$grubdir" || exit 1
# If --recheck is specified, remove the device map, if present.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: wiz
State-Changed-When: Sun Jul 13 17:35:10 UTC 2003
State-Changed-Why:
Committed, thanks.
Please feed back upstream!
From: Thomas Klausner <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: pr/22049 CVS commit: pkgsrc/sysutils/grub
Date: Sun, 13 Jul 2003 17:35:07 +0000 (UTC)
Module Name: pkgsrc
Committed By: wiz
Date: Sun Jul 13 17:35:06 UTC 2003
Modified Files:
pkgsrc/sysutils/grub: Makefile PLIST distinfo
pkgsrc/sysutils/grub/patches: patch-ah
Added Files:
pkgsrc/sysutils/grub/patches: patch-ai patch-aj
Log Message:
Fix grub-install problem reported in PR 22049 by Soren Jacobsen.
While here, convert to USE_NEW_TEXINFO, and make it compile.
[freestanding, but using nested functions; gcc emits __enable_exec_stack,
which lives in libgcc, but is not linked because the program is supposed
to be freestanding. Provide dummy __enable_exec_stack function.]
Bump PKGREVISION.
To generate a diff of this commit:
cvs rdiff -r1.12 -r1.13 pkgsrc/sysutils/grub/Makefile
cvs rdiff -r1.5 -r1.6 pkgsrc/sysutils/grub/PLIST
cvs rdiff -r1.4 -r1.5 pkgsrc/sysutils/grub/distinfo
cvs rdiff -r1.1 -r1.2 pkgsrc/sysutils/grub/patches/patch-ah
cvs rdiff -r0 -r1.1 pkgsrc/sysutils/grub/patches/patch-ai \
pkgsrc/sysutils/grub/patches/patch-aj
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.