diff options
author | roam <roam@FreeBSD.org> | 2002-09-06 17:08:45 +0800 |
---|---|---|
committer | roam <roam@FreeBSD.org> | 2002-09-06 17:08:45 +0800 |
commit | 1b93e27946db618b23db0d6cd371fb064f6fb18e (patch) | |
tree | fd885909efd8316bea72e62ac4681578570970f5 /misc | |
parent | 29145783ec46705f5c76cbd05a3d5a2e7a5c0cc3 (diff) | |
download | freebsd-ports-gnome-1b93e27946db618b23db0d6cd371fb064f6fb18e.tar.gz freebsd-ports-gnome-1b93e27946db618b23db0d6cd371fb064f6fb18e.tar.zst freebsd-ports-gnome-1b93e27946db618b23db0d6cd371fb064f6fb18e.zip |
Update to bogosort-0.4.0, which includes fixes to the error handling and
printing routines, the problem originally found by Kris Kennaway.
Unfortunately, the bogosort author did not quite apply the patch I sent,
hence the need for the new files/patch-bogosort.c.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/bogosort/Makefile | 2 | ||||
-rw-r--r-- | misc/bogosort/distinfo | 2 | ||||
-rw-r--r-- | misc/bogosort/files/patch-aa | 18 | ||||
-rw-r--r-- | misc/bogosort/files/patch-bogosort.c | 17 |
4 files changed, 19 insertions, 20 deletions
diff --git a/misc/bogosort/Makefile b/misc/bogosort/Makefile index bc29c535e2ac..3ee6f2eb7fe8 100644 --- a/misc/bogosort/Makefile +++ b/misc/bogosort/Makefile @@ -6,7 +6,7 @@ # PORTNAME= bogosort -PORTVERSION= 0.3.3 +PORTVERSION= 0.4.0 CATEGORIES= misc MASTER_SITES= http://www.lysator.liu.se/~qha/bogosort/ \ ftp://l82.ryd.student.liu.se/pub/unix/bogosort/ diff --git a/misc/bogosort/distinfo b/misc/bogosort/distinfo index 10523e854673..0b0a860b366d 100644 --- a/misc/bogosort/distinfo +++ b/misc/bogosort/distinfo @@ -1 +1 @@ -MD5 (bogosort/0.3.3/bogosort.tar.gz) = 16b37e26af2cc20efdf387dc30679715 +MD5 (bogosort/0.4.0/bogosort.tar.gz) = f8c15c10c7179e1c980bc440e7575717 diff --git a/misc/bogosort/files/patch-aa b/misc/bogosort/files/patch-aa deleted file mode 100644 index 24c651115455..000000000000 --- a/misc/bogosort/files/patch-aa +++ /dev/null @@ -1,18 +0,0 @@ ---- error.c.orig Mon Nov 27 05:38:26 2000 -+++ error.c Fri Aug 23 16:56:57 2002 -@@ -112,6 +112,7 @@ - private_strerror (errnum) - int errnum; - { -+#ifndef __FreeBSD__ - /* - * qha: modified to get round - * error.c:113: conflicting types for `sys_errlist' -@@ -124,6 +125,7 @@ - #error "I don't know what style sys_errlist you have" - #endif - extern int sys_nerr; -+#endif - - if (errnum > 0 && errnum <= sys_nerr) - return _(sys_errlist[errnum]); diff --git a/misc/bogosort/files/patch-bogosort.c b/misc/bogosort/files/patch-bogosort.c new file mode 100644 index 000000000000..c200151429fc --- /dev/null +++ b/misc/bogosort/files/patch-bogosort.c @@ -0,0 +1,17 @@ +--- bogosort.c 6 Sep 2002 08:46:36 -0000 1.1.1.3 ++++ bogosort.c 6 Sep 2002 08:50:10 -0000 1.3 +@@ -77,10 +77,11 @@ + + /* The name the program was run with */ + /* stripped of any leading path. */ +- program_name = strrchr(argv[0], '/') + 1; ++ program_name = strrchr(argv[0], '/'); + if (program_name == NULL) +- program_name = argv[0]; +- ++ program_name = argv[0]; ++ else ++ program_name++; + + nextarg = decode_switches(argc, argv); + |