misc/bogosort 0.4.2_3 FreeBSD
Sort (or not) stdin using the bogo-sort algorithm
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Categories
- misc
- Package size
- 17.2 KiB, 41.8 KiB installed
Description
Sort files or its standard input using the bogo-sort algorithm described in the Jargon File <http://www.catb.org/~esr/jargon/>.
A quote from the Jargon File 'bogo-sort' entry:
...The archetypical perversely awful algorithm (as opposed to
\_bubble sort\_, which is merely the generic bad algorithm).
\_Bogo-sort\_ is equivalent to repeatedly throwing a deck of cards
in the air, picking them up at random, and then testing whether
they are in order. It serves as a sort of canonical example of
awfulness. Looking at a program and seeing a dumb algorithm, one
might say "Oh, I see, this program uses \_bogo-sort\_." Esp.
appropriate for algorithms with factorial or super-exponential
running time in the average case and probabilistically infinite
worst-case running time. Compare \_bogus\_, \_brute force\_,
\_lasherism\_...
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | misc/bogosort | 0.4.2_3 |
| DragonFly | misc/bogosort | 0.4.2_3 |
Install
Binary package:
pkg install bogosort
From the ports tree:
cd /usr/ports/misc/bogosort/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= bogosort>0:misc/bogosort
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.4.2_3 | 0.4.2_3 | 0.4.2_2 | 0.4.2_3 | 0.4.2_3 |
| FreeBSD:14:quarterly | 0.4.2_3 | 0.4.2_3 | n/a | 0.4.2_3 | 0.4.2_3 |
| FreeBSD:15:latest | 0.4.2_3 | 0.4.2_3 | n/a | 0.4.2_3 | 0.4.2_3 |
| FreeBSD:15:quarterly | 0.4.2_3 | 0.4.2_3 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.4.2_3 | 0.4.2_3 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
The Makefile names none itself; they come from USES and USE_*.
The full lists below include those, and their dependencies in turn.
Run dependencies 1
No port depends on this one.
Configuration
No options to configure.
- Service scripts
- none
Message after installing
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| bogosort/0.4.2/bogosort.tar.gz | 161628 | bfd66ce866bb8935088873c52323a06997f627a209da1017491425d93e5510ef |
Master sites 2
- http://www.lysator.liu.se/~qha/bogosort/
- ftp://l82.ryd.student.liu.se/pub/unix/bogosort/
Commit history 0
No commits in the history this site was built from.