Commit graph

93 commits

Author SHA1 Message Date
Murray Stokely 1dde8e0111 The huge dependency lists of some of our packages has brought
attention to the sub-optimal way that we deal with package
dependencies.  Traditionally, for each package in an INDEX that the
user wants to add, we check all of the dependencies first even if the
package is already installed.  With some GNOME packages, this can
cause package_extract to be called for 50 different dependencies when
we know the top level package is already installed.

The new behavior is to not check dependencies for packages that are
already installed.  This fixes a bug where sysinstall gets itself into
a CPU intensive loop when trying to install sawfish gnome with the
most recent ports/INDEX.  There is a bug somewhere in the ports INDEX,
but with over 6,400 ports we need to be a little more forgiving here.
2002-01-29 21:41:08 +00:00
Murray Stokely 9838440951 Silence warnings :
Use static as necessary.
   Use __unused as necessary.
   sizeof(int) != sizeof(void *)
2001-09-22 22:21:01 +00:00
Kris Kennaway a015c9348c Mark relevant functions __printflike()/__printf0like() and silence some of
the non-constant format string warnings.

MFC after:	1 week
2001-07-05 09:51:09 +00:00
Dima Dorfman 13704ca508 Introduce DEVICE_INIT, DEVICE_GET, and DEVICE_SHUTDOWN macros. As the
names suggest, they perform methods on Device's.  In addition, they
check that the pointer passed to them is valid; if it isn't, they
pretend that the action failed.  This fixes some crashes due to NULL
dereferences (e.g., PR 26509).

Approved by:	jkh (some time ago)
2001-07-02 00:18:04 +00:00
Dima Dorfman 3676cbfbf4 Increase the buffer sizes for the build deps, run deps, and the line
itself verbatim from INDEX.  This fixes seg. faults with newer INDEX
files which have some gnome ports with outrageously long run deps.

Approved by:	jkh
2001-06-22 21:47:55 +00:00
Satoshi Asami db51163fa1 Add picobsd. 2001-04-22 16:55:11 +00:00
Satoshi Asami b44318d3c2 Add new categories science and ukrainian. 2001-03-24 21:52:25 +00:00
Jordan K. Hubbard 7257af7aa3 s/dependant/dependent
Submitted by:	rwatson
2001-03-24 01:26:51 +00:00
Jordan K. Hubbard d97b90c7fc Fix an informational message a little and properly check status of a yes/no
question which I bollicked up in my previous commit.
2000-12-16 05:36:10 +00:00
Jordan K. Hubbard 621005e3cb Adapt sysinstall to use the new msgNoYes() function which assumes
no as a default.  Sysinstall should be both less dangerous and less
annoying as a result of this change, though that's just my opinion
(since they're the defaults which annoy ME the least :).
2000-12-14 02:49:02 +00:00
Maxim Sobolev 301a545c0d "zope language" --> "zope platform".
Requested by:	asami
2000-09-22 06:53:44 +00:00
Satoshi Asami 418c506d48 Add french and zope. 2000-09-22 06:32:55 +00:00
John Baldwin 5d971dc0d9 Add in the linux, tcl83, and tk83 ports categories.
PR:		bin/20328
Submitted by:	obrien
2000-08-16 18:44:40 +00:00
John Baldwin 984f371109 Add new 'ruby' ports category.
PR:		conf/20629
Submitted by:	asami
2000-08-16 17:44:35 +00:00
Satoshi Asami 52527e8d67 Add hebrew. 2000-07-31 00:16:28 +00:00
Jordan K. Hubbard f3026a61ef Increase the size of the various index variables; there was
some overflow occurring.
Submitted by:	steve
2000-02-13 21:11:28 +00:00
Jordan K. Hubbard 1344c9bdf6 MFC: new categories 2000-02-10 01:44:37 +00:00
Jordan K. Hubbard 8e23f29e15 More cosmetic surgery and a nasty null pointer bug in index.c fixed. 1999-12-19 06:34:22 +00:00
Jordan K. Hubbard a322c54678 Yet more cosmetic fixes (I have a little time to kill while waiting for
something else, so I might as well tweak 3.4's look-and-feel for the better
while I'm at it - final release build should be sometime later on tonite).
1999-12-18 03:13:19 +00:00
Jordan K. Hubbard 7025aeb16e Completely rip-out and redesign sysinstall's refresh model as well
as redoing all the menus to have proper, or at least non-hallucinogenic,
keyboard accelerators.

This requires my recent update to libdialog to work properly and will
probably also exhibit some other "interesting" behavior while the last
few missing screen clears are found (which is why I'm not going to MFC
immediately).  At least now, however, sysinstall does not gratuitously
redraw random screens at the drop of a hat and drive serial console
installers out of their minds.
1999-12-14 04:25:29 +00:00
Jordan K. Hubbard bc9c6dbbd6 Add the latest categories. 1999-11-08 16:23:34 +00:00
Jordan K. Hubbard 3910e95363 Oh crud, did I ever screw the pooch! Rather than sync this with -stable,
I backed-out the changes in -current and didn't touch stable at all (I
thought I had my patch order reversed, not what actually happened).
AIEEE!  I can't even blame the crack for this one since I broke my
crack pipe a few weeks ago.  I think sleep deprivation gets the blame
for this one.

Medal for noticing this one goes to:	Jim Bloom <bloom@acm.org>
1999-09-02 00:51:16 +00:00
Jordan K. Hubbard d03dcaa779 MFC: Catch 3.2-stable sysinstall up to 4.0-current level functionality,
bringing in DHCP support.  The only thing I left out were Poul-Henning's
newfs changes since I'm not sure if he's brought the rest of that support
into -stable yet.  If it turns out that this is the case, I'll MFC those
changes too.
1999-09-01 04:29:30 +00:00
Peter Wemm 97d92980a9 $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
Satoshi Asami c32d66c130 Add new ports category "ftp". 1999-08-02 11:33:19 +00:00
Jordan K. Hubbard 7050843886 Eliminate some varargs abuse. 1999-07-02 22:36:14 +00:00
Bill Fumerola 40bebd321a New ports/{java,irc,x11-servers} categories, Step #5 - update misc files. 1999-06-28 02:37:34 +00:00
Jordan K. Hubbard 0550320175 Do a clean-up pass on error/warning messages. 1999-05-27 10:32:50 +00:00
Jordan K. Hubbard b7f708e677 o Prevent alpha installs from grabbing x86 bits and vice-versa, at least
on CDs and FTP sites.

o Collapse some redundant code.

o Fix typo'd menu.

o Restrict searches properly to packages rather than categories.

o Small tweaks to signal handling.

All RELENG_3 candidates.
1999-05-15 14:34:22 +00:00
Jordan K. Hubbard 1398785241 Correct return status logic a bit. 1999-05-14 12:15:34 +00:00
Jordan K. Hubbard b9ad2ee3d4 Completely change the way package_add() does its work. Now we
handle dependencies at a lower level and use package add for this.
Also made index searches stricter.
1999-05-12 09:02:37 +00:00
Jordan K. Hubbard 3e6a56bb87 Add an option for resetting and rescanning the probed device list, perhaps
to now detect that CD you just remembered to put in the drive or that
pccard NIC that you've inserted (anybody can put pccardd in an mfsroot image
now you know.. :)

Requested by:	Annelise Anderson <andrsn@andrsn.Stanford.EDU>
1999-04-06 08:25:53 +00:00
Jordan K. Hubbard 8ac5a460c0 Add entry for gnome category. 1999-02-15 04:57:07 +00:00
Jordan K. Hubbard 5d5c8f3b7b List palm pilot category. 1999-02-02 16:57:55 +00:00
Jordan K. Hubbard 86784dbcd2 Show dependencies in package menu.
PR:		7454
Submitted by:	Stefan Eggers <seggers@semyam.dinoco.de>
1999-02-02 15:57:14 +00:00
Satoshi Asami b563f7147c Merge recent changes from doc/handbook/porting.sgml and www/en/ports/categories. 1999-01-11 12:45:18 +00:00
Jordan K. Hubbard 8d8f2bab5a Collapse the "get" code substantially by combining common functions.
Also make mountpoint for each media type easier to change.
Also reshuffled some menus for easier usage.
1998-12-22 12:31:26 +00:00
Steve Price 23ffc3a6b1 Fix a couple grammar and typographical errors.
PR:		8355
Submitted by:	Bruce A. Mah <bmah@ca.sandia.gov>
1998-12-13 23:37:33 +00:00
Jordan K. Hubbard e05672bb19 snuff warning message if package is not found in INDEX but is found
to be already installed anyway.
1998-10-15 06:50:43 +00:00
Jordan K. Hubbard ee4fd995f8 Update to latest ports categories. 1998-10-13 07:31:37 +00:00
Jordan K. Hubbard bf05096f52 MF22: Important fixes for loading XFree86 distributions I forgot to
merge after 2.2.7 (I was wondering why that bug looked so familiar!).
Also update some docs accordingly.
1998-09-23 12:13:51 +00:00
Jordan K. Hubbard ac4c856698 Sync with 2.2-stable branch. 1998-03-24 09:51:58 +00:00
Jordan K. Hubbard 3d4fcaba36 MF22: catch up with recent changes. 1998-03-23 05:59:18 +00:00
Jordan K. Hubbard 0985a5c811 Whine when a depended package can't be found at all, vs being found
but failing to load.
PR:		4959
1997-11-13 11:44:42 +00:00
Jordan K. Hubbard 54b85ef5cc Document extra tk*/tcl* package categories. 1997-10-08 15:31:13 +00:00
Jordan K. Hubbard 6ca2689df0 DOH! Fix package-extractor looping problem by moving some code
to the *proper* part of the loop.
1997-05-05 08:38:12 +00:00
Jordan K. Hubbard aa733cd0c5 YAMF22 1997-04-05 07:08:14 +00:00
Jordan K. Hubbard 8378bbaded Catch this puppy up to RELENG_2_2 1997-03-29 06:44:57 +00:00
Jordan K. Hubbard 82ac247a53 Sync with 2.2 1997-03-27 01:05:17 +00:00
Jordan K. Hubbard 38abfbea7d YAMF22 1997-03-25 03:12:59 +00:00