Commit graph

290 commits

Author SHA1 Message Date
Russ Cox
fafa622a5b all: fix or silence various gcc warnings
As usual, gcc finds some real problems but also reports a ton
of noise. Fix the problems and quiet the noise.
2020-01-12 15:07:42 -05:00
Martin Kühl
194178b578 9c: Fix case patterns for DragonFly and other BSDs
POSIX does not support grouping in case item patterns.
Installing with a strict POSIX shell fails with:

/usr/local/plan9/bin/9c: line 82: syntax error near unexpected token `('
/usr/local/plan9/bin/9c: line 82: `*(DragonFly|BSD)*gcc*)	usegcc ;;'

This change expands the patterns to work around the limitation.

See https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_10
(and search for case_clause)
2020-01-07 18:13:02 -05:00
Leonid Bobrov
cf6b778799 INSTALL, 9c, 9l: improve handling of *BSD (#302) 2020-01-07 14:51:42 -05:00
Jason Felice
436ff26c36 9c, 9l: use $TMPDIR if available (#272)
NixOS sandboxed builds (at least on Mac) don't have access to /tmp,
and this should be better POSIX.
2019-11-11 17:06:55 -05:00
Francis Conti
715807d706 Teach 9l about FreeBSD ≥ 12; address issue #247. (#249) 2019-09-19 16:50:44 -04:00
Günther Noack
13d40aa64c 9l: support Linux version 5.0+ (#274)
Update 9l to support Linux 5.x.
2019-09-19 16:49:08 -04:00
Russ Cox
2ba6fa9a65 web: allow any $BROWSER
Fixes #118.
2018-11-14 00:04:07 -05:00
Russ Cox
13ed1c423e 9l: drop xcode text-based stub warning 2018-11-12 11:09:39 -05:00
Xiao-Yong Jin
a5b24c22a8 mount, 9pfuse: detect macports installed osxfuse
MacPorts installs osxfuse under /opt/local.
2018-03-27 15:01:46 +02:00
Martin Kühl
72fc31acb3 mount: check current osxfuse kext location
Current versions of osxfuse ship with multiple versions of its kernel
extension (kext) for differend versions of macOS.

Running mount(1) on macOS with a current version of osxfuse fails with
`don't know how to mount (no fuse)' since it fails to find the kext.
Running 9pfuse(4) directly works fine.

This change adds a check to mount(1) that determines:
1) which version of macOS we're running on
2) if there is an osxfuse kext available for this version of macOS
2018-03-23 11:58:20 +01:00
Gleydson Soares
7e6c008b73 web: *chrome* matches google-chrome 2017-10-16 06:56:58 +02:00
keks
e4d6099eff 9l: accept Linux kernel version 4.x
Fixes #114.
2017-10-13 15:11:15 +02:00
David du Colombier
67d25b6fb0 web: add Chromium support on FreeBSD
On FreeBSD, the Chromium executable is called chrome.

Fixes #108.
2017-10-01 11:43:35 +02:00
David du Colombier
173295929a 9l: support FreeBSD 10 and 11 (thanks Ori Bernstein) 2017-09-14 22:51:49 +02:00
Kare Nuorteva
b3336e5cbb all: remove .cvsignore files
Rename following .cvsignore files to .gitkeep since they are
required by the build (directories must exist before build):
	- bin/fossil/.gitkeep
	- bin/fs/.gitkeep
	- bin/venti/.gitkeep

Change-Id: I9c2865058480cffb3a4613f25e2eca1f7e5578c0
2017-09-14 17:25:17 +02:00
Russ Cox
6cb3a2b9c3 codereview: delete, now using GitHub pull requests 2017-09-01 13:25:20 -04:00
Russ Cox
a18efdbab8 codereview.py: remove
Change-Id: Ie548b7f45f4b3aa9897bcba19d343cff2dd5afd4
Reviewed-on: https://plan9port-review.googlesource.com/2961
Reviewed-by: Russ Cox <rsc@swtch.com>
2017-07-16 02:52:23 +00:00
Russ Cox
310ae03327 all: fix or silence all INSTALL warnings on macOS
Should be a clean build now.

Change-Id: Id3460371cb5e8d4071f8faa9c2aec870d213a067
Reviewed-on: https://plan9port-review.googlesource.com/2781
Reviewed-by: Russ Cox <rsc@swtch.com>
2017-01-06 21:37:31 +00:00
marius a. eriksen
d52bdd3356 devdraw: plumb drag-n-dropped files
Change-Id: I7585870aee57c7482ebdd19c117be7982123ce79
Reviewed-on: https://plan9port-review.googlesource.com/1130
Reviewed-by: Russ Cox <rsc@google.com>
2015-06-03 15:26:27 +00:00
Russ Cox
01463bacd0 codereview: use 'git branch -v' for pending
Change-Id: Ib80b19cf69a15860315b2d7a38baf3b05d693acc
2014-11-17 20:59:15 -05:00
Russ Cox
0edb04685b codereview: make commit -a the default; warn about uncommitted changes at upload
also update README.md for github

Change-Id: I7d578a902ffed7f6d69780721e29a1972b6f6992
2014-11-16 21:48:16 -05:00
Russ Cox
32f3c4ade4 codereview: fix a few bugs
Change-Id: Ifd9fda05e15c9e1e106ffd4e30e1dafe8423cdf4
2014-11-16 21:28:05 -05:00
Russ Cox
95fee1d42e all: update for Git
- rewrite .gitignore to use git patterns
- mv hg(1) to git(1) and rewrite
- add lib/git/commit-msg.hook
- add skeleton codereview script
- update codereview(1)

Change-Id: I061cd8e4de77ebbd6037a7c5d1582cd1d986f62f
2014-11-16 21:21:28 -05:00
David du Colombier
6c7443a653 fix clang 3.4 warnings and ignore uninteresting ones
fixed warnings:
src/cmd/fossil/disk.c:37:14: warning: use of GNU 'missing =' extension in designator [-Wgnu-designator]
src/cmd/fossil/disk.c:38:14: warning: use of GNU 'missing =' extension in designator [-Wgnu-designator]
src/cmd/fossil/disk.c:39:14: warning: use of GNU 'missing =' extension in designator [-Wgnu-designator]
src/cmd/fossil/disk.c:40:13: warning: use of GNU 'missing =' extension in designator [-Wgnu-designator]
src/cmd/fossil/disk.c:41:14: warning: use of GNU 'missing =' extension in designator [-Wgnu-designator]
src/libndb/ndbreorder.c:41:55: warning: for loop has empty body [-Wempty-body]

ignored warnings:
src/cmd/acid/dbg.y:393:9: warning: array index -1 is before the beginning of the array [-Warray-bounds]
src/cmd/bc.y:1327:9: warning: array index -1 is before the beginning of the array [-Warray-bounds]
src/cmd/bc.y:1327:9: warning: array index -1 is before the beginning of the array [-Warray-bounds]
src/cmd/grep/grep.y:420:9: warning: array index -1 is before the beginning of the array [-Warray-bounds]
src/cmd/grep/grep.y:420:9: warning: array index -1 is before the beginning of the array [-Warray-bounds]
src/cmd/hoc/hoc.y:692:9: warning: array index -1 is before the beginning of the array [-Warray-bounds]
src/cmd/hoc/hoc.y:692:9: warning: array index -1 is before the beginning of the array [-Warray-bounds]
src/cmd/lex/parser.y:886:9: warning: array index -1 is before the beginning of the array [-Warray-bounds]
src/cmd/rc/syn.y:303:9: warning: array index -1 is before the beginning of the array [-Warray-bounds]
src/cmd/units.y:1003:9: warning: array index -1 is before the beginning of the array [-Warray-bounds]
src/libregexp/regcomp.c:19:16: warning: variable 'reprog' is not needed and will not be emitted [-Wunneeded-internal-declaration]

LGTM=rsc
R=rsc
https://codereview.appspot.com/158250043
2014-10-21 14:22:12 +02:00
David du Colombier
fd3496d3ef 9l: link with -lresolv on Linux
LGTM=rsc
R=rsc
https://codereview.appspot.com/136520044
2014-10-20 22:21:43 +02:00
Aram Hăvărneanu
c0ae8e760c g: search in *.s files
LGTM=rsc
R=rsc
CC=plan9port-dev
https://codereview.appspot.com/115100043
2014-08-06 15:36:38 +03:00
Russ Cox
fbe3f344c1 build: rename " and "" to quote1 and quote2 for hg
They'll be copied back during installation
but then hg doesn't have to create those files
on systems that have trouble with them.

TBR=rsc
https://codereview.appspot.com/105800043
2014-06-03 14:29:06 -04:00
Shenghou Ma
20035ed43c all: DragonFly port.
Fix compilation problems, libdraw still doesn't work right yet.

LGTM=rsc
R=rsc
https://codereview.appspot.com/67820046
2014-02-27 23:17:47 -05:00
David du Colombier
f92e70dc11 fossil: create directory
R=rsc
https://codereview.appspot.com/13984043
2013-09-26 22:32:37 +02:00
Russ Cox
b0ae8a46a0 9c: support clang on Mac
R=rsc
http://codereview.appspot.com/6744055
2012-10-21 12:01:13 -04:00
Russ Cox
34d629c857 9c: add more clang warning silencers, use signed chars
R=rsc
http://codereview.appspot.com/6741053
2012-10-20 13:51:01 -04:00
Russ Cox
53527a6e78 web: fix BROWSER=google-chrome on Mac
R=rsc
http://codereview.appspot.com/6750046
2012-10-20 13:28:46 -04:00
Russ Cox
83d065a6b3 mount: fix for osxfuse
R=rsc
http://codereview.appspot.com/6737052
2012-10-20 13:28:29 -04:00
David du Colombier
e31375ac4e srv(4), mount: update v9fs usage
The v9fs usage is documented on
https://www.kernel.org/doc/Documentation/filesystems/9p.txt

R=rsc
http://codereview.appspot.com/6445072
2012-08-05 19:17:18 +02:00
Russ Cox
d2173bb552 disk/mkfs, disk/mkext: add from Plan 9
R=rsc, rsc
http://codereview.appspot.com/6405057
2012-07-17 19:10:45 -04:00
Russ Cox
f0add8ef24 9l: remove debug print
R=rsc
http://codereview.appspot.com/6402049
2012-07-16 10:43:03 -04:00
Russ Cox
5f0bb59e0d 9l: fix for Linux 3.x (thanks Christopher Brannon)
R=rsc
http://codereview.appspot.com/6395047
2012-07-14 08:50:07 -04:00
Russ Cox
5d03af6557 fix INSTALL warnings
R=rsc
http://codereview.appspot.com/6258060
2012-05-29 15:11:14 -04:00
David Jeannot
48107872ba devdraw: update Lion cocoa
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5015042
2011-09-19 08:58:59 -04:00
Fazlul Shahriar
974b0ed330 web: add support for chromium
R=rsc
http://codereview.appspot.com/4863043
2011-08-16 15:50:32 -04:00
Russ Cox
fc567f476a build: OS X 64-bit build
R=rsc
http://codereview.appspot.com/4838047
2011-08-02 14:28:04 -04:00
Russ Cox
babe3439cc g: add *.goc
R=rsc
http://codereview.appspot.com/4832048
2011-08-02 14:23:30 -04:00
Russ Cox
af0dea4531 SunOS fixes (thanks Aram Hăvărneanu)
R=rsc, rsc
http://codereview.appspot.com/4271084
2011-05-17 18:48:42 -04:00
Russ Cox
4f52e8afe9 man: fix -P
R=rsc
http://codereview.appspot.com/3818043
2011-01-02 15:28:01 -05:00
Russ Cox
63097b491d awd: use $sysname
R=rsc
http://codereview.appspot.com/2458041
2010-10-12 10:14:27 -04:00
Russ Cox
1a3b915896 web: pass $BROWSER as open -a argument on OS X
(Suggestion by Martin Kühl)

R=rsc
http://codereview.appspot.com/1772044
2010-07-14 13:21:35 -07:00
Russ Cox
f92863adf4 web: just use "open" on OS X
R=rsc
http://codereview.appspot.com/1764045
2010-07-14 11:12:55 -07:00
Arvindh Rajesh Tamilmani
9fb7a4f7f7 bin/", bin/"": simplify
R=rsc
CC=codebot
http://codereview.appspot.com/953047
2010-05-19 18:20:10 -07:00
Nikolai Saoukh
0c6074b692 9c, 9l: allow CC9=clang
R=rsc
CC=codebot
http://codereview.appspot.com/217045
2010-02-22 16:53:37 -08:00
Russ Cox
7351eea28e merge 2009-12-27 09:19:39 -08:00