Commit graph

311 commits

Author SHA1 Message Date
Igor Burago
3a877764da 9l: silence the 'ignoring duplicate libraries' warning on macOS 2023-12-18 10:10:55 -05:00
Igor Burago
0bc1ff0fa0 9l: refactor the warning-silencing mechanics to match that of 9c 2023-12-18 10:10:55 -05:00
mmnmnnmnmm
28e91cd879 web: fix plumbing with Firefox
Default builds of Firefox remove the previous X remote interface,
now causing the use of -remote to silently exit and do nothing.

https://hg.mozilla.org/mozilla-central/rev/ef22d8cbf4ef
2022-09-06 13:21:47 -04:00
mmnmnnmnmm
ffdca8f730 9l: without arguments, exit instead of failing to link nothing
Found in Arch Linux but never reported upstream:
https://bugs.archlinux.org/task/55640
2022-08-18 10:48:20 -04:00
Ben Huntsman
6c4260fc67 bin/9c, bin/9l: Re-enable optimization on AIX. 2021-08-30 19:40:49 -04:00
Connor Taffe
90971376a5 mount: find kext with MacFUSE >=4 and macOS >=11 2021-01-31 20:52:49 -05:00
Russ Cox
4692dd4786 9c: drop PLAN9PORT_ASAN
It is no longer special.
2020-12-30 08:38:57 -05:00
Russ Cox
99dee78c2d all: remove $OBJTYPE from build
Now that we assume pthreads, the only assembly
left is in libmp and libsec.
We only ever added assembly for 386.
The portable C code is fine for plan9port.
2020-12-30 07:53:28 -05:00
Russ Cox
0bd1478342 wintext: use rc not bash 2020-12-30 07:53:28 -05:00
Russ Cox
69439fae67 9c: use -fcommon for clang
Fixes #469.
2020-12-30 00:06:35 -05:00
Anthony Sorace
291f741178 9c, 9l: updates for macOS arm64. 2020-09-27 06:45:02 -04:00
Russ Cox
799f330f6d osxvers: use swvers -productVersion to skip one awk call
Fixes #406. Suggested by nms42.
2020-05-30 06:36:14 -04:00
Russ Cox
fa157263c8 9c: fix tab 2020-05-18 22:38:54 -04:00
Ben Huntsman
53bf1f1ccf 9l: xlc_r automatically adds -lpthread. 2020-05-18 22:36:53 -04:00
Russ Cox
9444b8e4bc 9c, 9l: accept CC9FLAGS from config
Also, if CC9FLAGS includes -fsanitize=address (ASAN),
predefine PLAN9PORT_ASAN for use by programs that need
to know (mainly libthread).

The 9c script used to have a variable called ngflags, which
was ccflags except -g (ng stood for "no g"), but nothing needs
it split out anymore, so simplify to just ccflags.
2020-05-17 20:15:41 -04:00
Ben Huntsman
4982d4ebc3 all: update build scripts to fix AIX XL/C compatibility 2020-05-07 20:36:03 -04:00
sean
c1c1b5267f 9c: added explicit -fcommon to gcc defaults.
Version 10 of gcc enforces -fno-common which breaks a lot of things.

This fix reverts to the pre-10 behaviour. The real fix is to clean up
stray redefinitions which should be declarations.
2020-04-30 20:51:47 +02:00
Russ Cox
cb8f735786 all: remove Linux 2.4 vs 2.6 detection
Linux 2.4 is dead.
(The libthread code hasn't worked for Linux 2.4 for a long time.)
2020-01-19 23:04:58 -05:00
Dan Cross
83b1e7a39b 9fs: remove tip (dead?), redirect sources to 9p.io
Fixes #195.

Signed-off-by: Dan Cross <cross@gajendra.net>
2020-01-16 17:22:27 +00:00
sean
40685d24d8 soelim: import from Plan9
Add entry in lib/moveplan9.files to trigger
relocation during INSTALL.
2020-01-15 08:27:57 -05:00
Russ Cox
fa7fecff33 wintext: add tmux support, use in ", ""
Fixes #223.
2020-01-13 11:11:14 -05:00
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