NetBSD Problem Report #16638
Received: (qmail 7710 invoked from network); 3 May 2002 18:20:25 -0000
Message-Id: <20020503182018.24417.qmail@juice.scl.cwru.edu>
Date: 3 May 2002 18:20:18 -0000
From: schmonz@netbsd.org
To: gnats-bugs@gnats.netbsd.org
Subject: most Darwin installs lack a pkgsrc-compatible filesystem
X-Send-Pr-Version: 3.95
>Number: 16638
>Category: pkg
>Synopsis: most Darwin installs lack a pkgsrc-compatible filesystem
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: schmonz
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri May 03 18:21:00 +0000 2002
>Closed-Date: Sat Mar 27 21:31:20 +0000 2004
>Last-Modified: Sat Mar 27 21:31:20 +0000 2004
>Originator: Amitai Schlair
>Release: Darwin 5.4
>Organization:
Schmonz Enterprises
>Environment:
Darwin g3.apart.ment 5.4 Darwin Kernel Version 5.4: Wed Apr 10 09:27:47 PDT 2002; root:xnu/xnu-201.19.3.obj~1/RELEASE_PPC Power Macintosh powerpc
>Description:
Darwin supports two main filesystem types: HFS+ and UFS. The current
consensus is that pkgsrc requires UFS. However, most Darwin systems
are HFS+ and don't have a spare partition to format with UFS. Nor
is there (AFAIK) any easy way to convert from HFS+ to UFS.
(Rationale: The large majority of Darwin systems are factory-installed
Mac OS X, which means the disk is partitioned as one big HFS+. The
remainder are custom installs; the install docs recommend HFS+,
and the installers default to HFS+. Thus the odds are, to put it
delicately, not in our favor.)
>How-To-Repeat:
Given an ordinary Darwin system, attempt to extract pkgsrc.tar.gz
and fail due to filesystem case-insensitivity. Attempt to create
a UFS disk partition and fail for lack of unformatted disk space.
Attempt to prepare a UFS disk image for pkgsrc and fail due to
sub-obvious tools. :-)
>Fix:
I've written a small shell script that provides a sensible interface
to working with UFS disk images on Darwin. The bootstrap kit should
include it in some fashion -- either with instructions for running
it manually, or perhaps by automagically offering to prepare a UFS
disk image if there aren't any mounted UFS filesystems.
It needs a little more work before going in, but here's what I have
so far:
$ ftp http://netbsd.schmonz.com/misc/dmg_create
$ chmod +x dmg_create
$ for i in format mount umount; do ln dmg_create dmg_${i}; done
$ ./dmg_create ufsdisk.dmg 1024 # megabytes
$ ./dmg_format ufsdisk.dmg
$ ./dmg_mount ufsdisk.dmg /path/to/mount/point
$ ./dmg_umount /path/to/mount/point
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->schmonz
Responsible-Changed-By: schmonz
Responsible-Changed-When: Fri May 3 11:23:49 PDT 2002
Responsible-Changed-Why:
I'll take care of this.
State-Changed-From-To: open->analyzed
State-Changed-By: schmonz
State-Changed-When: Sat May 18 18:20:54 PDT 2002
State-Changed-Why:
State-Changed-From-To: analyzed->closed
State-Changed-By: rh
State-Changed-When: Sat Mar 27 21:29:23 UTC 2004
State-Changed-Why:
The current pkgsrc bootstrap directory now contains the ufsdiskimage
script and detailled instructions how to use them on Darwin.
>Unformatted:
This updated bootstrap kit includes a "ufsdiskimage" script and a
README which mentions the problem:
ftp://ftp.netbsd.org/pub/NetBSD/misc/schmonz/bootstrap-pkgsrc-20020518.tgz
(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.