Commit Graph

1129 Commits

Author SHA1 Message Date
allanjude
bb3cc43e62 Correctly case FreeBSD in my entry in the tips file
Submitted by:	feld
Approved by:	wblock (mentor)
Differential Revision:	https://reviews.freebsd.org/D3601
2015-09-08 22:51:10 +00:00
brueffer
03cb52e1b5 Fix a typo.
PR:		199453
Submitted by:	John Nielsen
2015-07-02 11:46:35 +00:00
sjg
008d7c831f Add META_MODE support.
Off by default, build behaves normally.
WITH_META_MODE we get auto objdir creation, the ability to
start build from anywhere in the tree.

Still need to add real targets under targets/ to build packages.

Differential Revision:       D2796
Reviewed by: brooks imp
2015-06-13 19:20:56 +00:00
sjg
75a137820d dirdeps.mk now sets DEP_RELDIR 2015-06-08 23:35:17 +00:00
emaste
3c854c4992 Correct grdc(1) 12-hour display between 12:00 and 13:00
PM starts at 12:00, not 13:00.

PR:		194291, 200133
Submitted by:	Nick Price
MFC after:	1 week
2015-06-02 20:53:17 +00:00
sjg
65145fa4c8 Merge sync of head 2015-05-27 01:19:58 +00:00
eadler
e65f7e7e24 fortune/tools/do_uniq.py
slight imporvements to do_uniq.py:
	- use with open()
	- don't depend on sys.argv directly
	- fix style
2015-04-02 22:42:23 +00:00
cperciva
9b1e33af71 Step 2 of eliminating the "games" distribution: Remove punch card
utilities.

I was originally planning on removing the phase-of-moon (pom), clock
(grdc), and caesar cipher (caesar, rot13) utilities as well, but after
I committed r278616 I received an astonishing volume of email informing
me that those are still being widely used.  Much to my relief, nobody
reported continuing to use the punch card utilities in production.

The final step will be to merge src/games into src/usr.bin.

This change will not be MFCed.
2015-02-22 08:50:05 +00:00
cperciva
adc74e8335 Step 1 of eliminating the "games" distribution: Move binaries to /usr/bin;
update paths; and include everything in the "base" distribution.

The "games" distribution being optional made sense when there were more
games and we had small disks; but the "games-like" games were moved into
the ports tree a dozen years ago and the remaining "utility-like" games
occupy less than 0.001% of my laptop's small hard drive.  Meanwhile every
new user is confronted by the question "do you want games installed" when
they they try to install FreeBSD.

The next steps will be:

2. Removing punch card (bcd, ppt), phase-of-moon (pom), clock (grdc), and
caesar cipher (caesar, rot13) utilities.  I intend to keep fortune, factor,
morse, number, primes, and random, since there is evidence that those are
still being used.

3. Merging src/games into src/usr.bin.

This change will not be MFCed.

Reviewed by:	jmg
Discussed at:	EuroBSDCon
Approved by:	gjb (release-affecting changes)
2015-02-12 05:35:00 +00:00
jmg
ec25116175 fetch has supported https for a while..
I would convert the url to https, but we still don't install a CA set
by default...  we even don't install the CA that authenticates
www.FreeBSD.org..
2015-02-10 23:18:36 +00:00
cperciva
07329a4e34 Fix 7-year-old typo: The default directory searched for fortunes is
/usr/share/games/fortune, not /usr/games/fortune (which is the path
to the fortune binary itself).
2015-01-30 23:26:03 +00:00
sjg
b137080f19 Merge from head@274682 2014-11-19 01:07:58 +00:00
sbruno
ac53ffbd58 Update factor for changes to types in primes, which is a dependency.
Fixes build-fail on mips32 introduced at 272207.
2014-09-27 10:57:34 +00:00
cperciva
a742fc39b4 Switch primes(6) from using unsigned long to using uint64_t. This fixes
'limited range of type' warnings about comparisons on 32-bit systems, and
allows 32-bit systems to compute the full range of primes.
2014-09-27 09:00:38 +00:00
cperciva
076bdc812e Correctly enumerate primes between 4295098369 and 3825123056546413050.
Prior to this commit, primes(6) relied solely on sieving with primes up
to 65537, with the effect that composite numbers which are the product
of two non-16-bit primes would be incorrectly identified as prime.  For
example,
# primes 1099511627800 1099511627820
would output
1099511627803
1099511627807
1099511627813
when in fact only the first of those values is prime.

This commit adds strong pseudoprime tests to validate the candidates
which pass the initial sieving stage, using bases of 2, 3, 5, 7, 11,
13, 17, 19, and 23.  Thanks to papers from C. Pomerance, J.L. Selfridge,
and S.S. Wagstaff, Jr.; G. Jaeschke; and Y. Jiang and Y. Deng, we know
that the smallest value which passes these tests is 3825123056546413051.

At present we do not know how many strong pseudoprime tests are required
to prove primality for values larger than 3825123056546413050, so we
force primes(6) to stop at that point.

Reviewed by:	jmg
Relnotes:	primes(6) now correctly enumerates primes up to
		3825123056546413050
MFC after:	7 days
Sponsored by:	EuroBSDCon devsummit
2014-09-26 09:40:48 +00:00
sjg
d7cd1d425c Merge head from 7/28 2014-08-19 06:50:54 +00:00
allanjude
4da1a3fcb5 Update the freebsd-tips example to use drill instead of dig since bind is no longer in base
CR:		D460
Approved by:	bcr (mentor)
2014-07-25 14:47:44 +00:00
brooks
ea5a037d1f Replace all uses of libncurses and libtermcap with their wide character
variants.  This allows usable file system images (i.e. those with both a
shell and an editor) to be created with only one copy of the curses library.

Exp-run:	antoine
PR:		189842
Discussed with:	bapt
Sponsored by:	DARPA, AFRL
2014-07-17 18:24:34 +00:00
gavin
79ac32d748 fortune(8): Search fortune files installed by ports/packages as well as
those supplied by the base system.

PR:		191800
Submitted by:	Andy Kosela
MFC after:	1 week
2014-07-14 23:25:29 +00:00
gavin
1b2640b4f1 Fix equation and limerick to be correct. NetBSD fixed this 14 years ago
(src/games/fortune/datfiles/fortunes2 1.7).

PR:		188714
Submitted by:	ksmakoto dd.iij4u.or.jp
Reviewed by:	Wolfram Alpha
MFC after:	3 days
2014-07-05 19:37:38 +00:00
bapt
42044eb342 use .Mt to mark up email addresses consistently (part1)
PR:		191174
Submitted by:	Franco Fichtner  <franco@lastsummer.de>
2014-06-20 09:40:43 +00:00
sjg
5860f0d106 Updated dependencies 2014-05-16 14:09:51 +00:00
sjg
1a7e48acf1 Updated dependencies 2014-05-10 05:16:28 +00:00
sjg
ed3fc70bf5 Merge from head 2014-05-08 23:54:15 +00:00
imp
2118f42afd Use src.opts.mk in preference to bsd.own.mk except where we need stuff
from the latter.
2014-05-06 04:22:01 +00:00
sjg
5e568154a0 Merge head 2014-04-28 07:50:45 +00:00
jmmv
64b466d8f8 Add placeholder Kyuafiles for various top-level hierarchies.
This change adds tests/ directories in the source tree to create various
subdirectories in /usr/tests/ and to install placeholder Kyuafiles for
them.

the relevant hierarchies are: cddl, etc, games, gnu and secure.

The reason for this is to simplify the addition of new test programs for
utilities or libraries under any of these directories.  Doing so on a
case by case basis is unnecessary and is quite an obscure process.
2014-04-21 21:39:25 +00:00
imp
c39e6fc2c9 NO_MAN= has been deprecated in favor of MAN= for some time, go ahead
and finish the job. ncurses is now the only Makefile in the tree that
uses it since it wasn't a simple mechanical change, and will be
addressed in a future commit.
2014-04-13 05:21:56 +00:00
marcus
0b53b054d5 Correct a typo in Malcolm MacDougall's name.
Approved by:	gabor
2014-02-15 22:15:24 +00:00
gavin
aa28d5f109 Fix typo in fortune (go -> to) 2013-12-10 19:42:35 +00:00
marcel
7d6cc00de2 Remove "Warning: file \"%s\" unreadable". It was introduced with revision
44599 and turned less than useful ever since fortunes-o.dat got removed.
Running "fortunes -a" is enough to always see it for fortunes-o.dat.
Since we compile with debugging enabled, the removal is easily compensated
for by running "fortune -D -D".
2013-12-07 02:20:22 +00:00
marcel
fbd9d78c47 Fix r203922 for "fortune -o": we free tpath when was_malloc is true
but don't define tpath everytime we set was_malloc to true. We end
up calling free() multiple times for the same pointer, resulting in:
<jemalloc>: jemalloc_arena.c:355: Failed assertion: ...
When we set path to offensive, we need to set tpath as well.
2013-12-07 01:35:18 +00:00
sjg
7fcd33c1fa Merge head@256284 2013-10-13 02:35:19 +00:00
glebius
ade139e19b Refresh the tips for the new pkg system.
Reviewed by:	bapt
Approved by:	re (hrs)
2013-10-03 11:51:15 +00:00
sjg
97d8b94956 sync from head 2013-04-12 20:48:55 +00:00
eadler
a43818500f Remove a reference to instant-server which has been removed from the
ports tree in r313427.

PR:		177012
Submitted by:	Kevin Zheng <kevinz5000@gmail.com>
Approved by:	bcr (mentor)
2013-03-21 12:42:25 +00:00
jhb
369cfc7386 Remove fortunes-o from the base system. Debating what does or does not
belong in this file is not a useful exercise or conducive to producing a
high quality advanced operating system.

While here, simplify the make rules to autocompute BLDS and FILES from a
single DB variable.

Approved by:	core
MFC after:	1 week
2013-03-12 12:35:02 +00:00
sjg
6d37b86f2b Updated dependencies 2013-03-11 17:21:52 +00:00
sjg
0ee5295509 Updated dependencies 2013-02-16 01:23:54 +00:00
obrien
3028e3f8ab Sync with HEAD. 2013-02-08 16:10:16 +00:00
des
72c8e2de52 Remove political propaganda 2013-02-05 14:39:37 +00:00
eadler
13826589d2 Use Bernard Baruch's full name.
The words "old than" seem to be quoted as "older than" by some sources,
so use the more likely and grammatically correct text.

PR:		docs/173868
Submitted by:	Chris Petrik <c.petrik.sosa@gmail.com>
Approved by:	cperciva
MFC after:	1 week
2012-12-05 13:57:00 +00:00
jmg
fe8941c823 fix a couple of spelling errors... 2012-11-15 03:22:50 +00:00
dim
28618b83a7 In games/fortune/fortune/fortune.c, make 'Debug' the correct type (it is
*not* a boolean).

MFC after:	3 days
2012-11-14 18:52:37 +00:00
sjg
9f7bd28e77 Updated/new Makefile.depend 2012-11-08 21:24:17 +00:00
eadler
63f3f6b3d4 Make OK_TO_WRITE_TO_DISK an envrionment variable instead
of a compile time option.

While here, don't differ based on the existence of LOCK_EX
which doesn't seem to have ever made a difference on FreeBSD.

Approved by:	cperciva (from discussion)
MFC after:	3 days
2012-11-04 15:15:47 +00:00
eadler
0b0da0bc2a Prefer the use of stdbool to custom defines.
Approved by:	cperciva (from discussion)
MFC after:	3 days
2012-11-04 15:15:43 +00:00
sjg
778e93c51a Sync from head 2012-11-04 02:52:03 +00:00
eadler
f368f40efc Remove extra word:
Submitted by:	many
Approved by:	cperciva (implicit)
MFC after:	3 days
2012-10-23 15:03:25 +00:00
eadler
b55c76b1b0 Free buf when its no longer used. This helps eliminate a static analysis
warning.

PR:		ports/172566
Submitted by:	Erik Cederstrand <erik@cederstrand.dk>
Approved by:	cperciva
MFC after:	3 days
2012-10-22 03:06:59 +00:00