Commit Graph

315 Commits

Author SHA1 Message Date
roy 3728077580 diffutils: execl requires a NULL sentinel 2020-12-13 00:04:40 +00:00
rin a8c74629f6 Support aarch64eb in */config.guess.
Cherry-picked from upstream:
https://git.savannah.gnu.org/gitweb/?p=config.git;a=commit;h=1c4398015583eb77bc043234f5734be055e64bea

Everything except external/apache2/llvm/dist/llvm/cmake/config.guess
is patched, which is under vendor tag and cannot be modified. I expect
that this file is not actually used as we use hand-crafted version of
configure script instead of cmake for building LLVM.

Note that external/apache2/llvm/autoconf/autoconf/config.guess has
already been committed on Oct. 20, but commit message disappeared as
cvs aborted due to "permission denied" when trying to modify the file
mentioned above. Sorry for confusing you.

Also note that GMP uses its own config.guess Patch for
external/lgpl3/gmp/dist/config.guess is provided by ryo@. Thanks!
2020-11-17 10:35:10 +00:00
mlelstv 16a709a022 Moving pointers could fail if realloc() allocates a new memory region
where the difference between old and new address exceeds an int. Use
ptrdiff_t for calculations instead.
2020-09-26 11:39:17 +00:00
kim 54053e79bb Reflect that this is current by using ".99" in the Os version
This helps distinguising NetBSD-current pages from NetBSD-9.0 pages better
on man.netbsd.org, which is still using nroff. (Using mandoc needs more
tweaking to avoid all page footers reflecting the uname release of the
web server.)
2020-09-02 09:28:25 +00:00
wiz 69f2512a80 Add missing linebreak.
Reported by Anon.
2020-07-18 14:53:10 +00:00
thorpej fd0ca8eb0d Hack to get the "has ANSI C headers" check to pass on newer versions
of clang as bundled with Xcode.  If someone really cares about ensuring
NetBSD's host tools build on a system without <stdlib.h>, then I'm sure
that enterprising individual will also find a super #correct fix for this
specific problem.
2020-06-26 06:08:37 +00:00
christos ca704e13dc Add --timestamp for reproducible builds. 2020-06-16 00:47:21 +00:00
rin a3321772bf Check x > 0 *before*, not after, using (x - 1) as index of array. 2020-06-05 12:47:28 +00:00
kamil b4c87b8eb8 Avoid redefining _REENTRANT under sanitizers
Switch away from -Wno-macro-redefined which was Clang specific.
2020-06-01 00:34:25 +00:00
jmcneill 664e0094ef Satisfy -fno-common 2020-05-22 23:19:53 +00:00
kamil cc056601a4 Expand the -Wno-macro-redefined usage to MKLIBCSANITIZER
_REENTRANT can be redefined and this is considered as an error.
2020-02-08 00:11:18 +00:00
skrll 47e7684e70 Update for new DTC 2019-12-22 12:42:23 +00:00
skrll d51be32b57 Update version 2019-12-22 12:41:52 +00:00
skrll 7cdf52c4e1 Merge conflicts 2019-12-22 12:38:24 +00:00
skrll cc7d2833ec Import dtc 1.5.1 2019-12-22 12:34:02 +00:00
mlelstv 656eb63c5c Handle NULL params, fix error paths. 2019-12-14 09:05:30 +00:00
joerg 76c7fc5f6b Update LLVM to 10.0.0git (01f3a59fb3e2542fce74c768718f594d0debd0da) 2019-11-11 22:44:56 +00:00
kamil 77a1ad5f00 Switch the iconv(3) prototype to the POSIX conformant variation
Remove const from the 2nd argument.

const char ** and char ** are incompatible types and it was a cost to keep
the technically incompatible form for a more purist variation. NetBSD was
almost the last alive OS to still keep the const argument (known leftovers:
Minix and Illumos).

Keep the const form for the internal purposes inside citrus and rump.

Address the build breakage fallout in the same change.

There are no ABI changes.

Change accepted by core@.
2019-10-24 18:17:14 +00:00
mrg de11d87641 introduce some common variables for use in GCC warning disables:
GCC_NO_FORMAT_TRUNCATION    -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION  -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW    -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE   -Wno-cast-function-type (GCC 8)

use these to turn off warnings for most GCC-8 complaints.  many
of these are false positives, most of the real bugs are already
commited, or are yet to come.


we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."
2019-10-13 07:28:04 +00:00
kamil 2bb9aadb1b Add missing ; 2019-09-24 21:03:29 +00:00
kamil 6d130c780a Add a bunch of meta files from git and hg to ignore from CVS imports
This will allow interop of src/ with git and hg without malforming repos.
2019-09-24 21:01:50 +00:00
maya 33a768ce2e Ignore our default core file pattern rather than one of another system.
"core" shows up as a path sometimes.
2019-09-24 17:23:06 +00:00
kamil 1a5f018b01 Enhance the support of LLVM sanitizers
Define _REENTRANT for MKSANITIZER build. This is needed for at least stdio
code. This caused new build issued with duplicated symbols in few places
and rump kernel code picking different code paths borrowed from libc.
Handle all this in one go.

Add bsd.sanitizer.mk to share common code used by programs and libraries.

Switch from realall to beforeinstall target in .syms files. This is more
reliable in MKSANITIZER.
2019-08-27 22:48:53 +00:00
martin 3b87693c31 Welcome to NetBSD 9.99.1! 2019-07-30 15:56:53 +00:00
gutteridge d62992cd0f cvs.1 & cvs.texinfo: note global "-u" option
Add details about the global "-u" option, partly to clarify its
distinction from the "admin" command's local "-u" option. Addresses
PR bin/25472.
2019-07-06 00:10:25 +00:00
gutteridge 49b638eae9 cvs.1 & cvs.texinfo: note NetBSD addition of global -D option 2019-07-05 23:30:57 +00:00
gutteridge bfcad2f68f cvs.1 & cvs.texinfo: a couple of minor corrections
Add a caveat about file locking (a.k.a. reserved checkouts) to the
"release" command, and add a missing word elsewhere.
2019-07-05 22:42:09 +00:00
gutteridge a0308593ca cvs.1 & cvs.texinfo: add various small corrections
Add various corrections mostly sourced from upstream's cvs.texinfo,
e.g., note NetBSD's local change to log admin commands in history
(subsequently added on upstream's HEAD, since it was noted in
r. 1.689), add some references to rannotate and rlog (from r. 1.686),
some amendments concerning rdiff (from r. 1.687), and miscellaneous
typo fixes.
2019-05-01 02:15:07 +00:00
gutteridge 914c509bae cvs.1 & cvs.texinfo: add a missing section documenting the "tag" and
"rtag" commands. This is taken mostly from the upstream project's
cvs.texinfo revisions 1.686 and 1.687. Additionally, I've reflected
NetBSD's local changes to log "tag" as well as "rtag" in history, and
to require admin privileges for destructive tagging commands. This
addresses PR bin/33877.
2019-04-28 07:13:16 +00:00
gutteridge 0f149052df cvs.texinfo: add minor formatting fix for Texinfo >5.0
Pull over a tiny fix from pkgsrc's devel/scmcvs patch-ab to support
generating info files with newer versions of Texinfo than what's
shipped in base presently. (Should base be updated at some point, or
for those using an external toolchain here.)
2019-03-03 21:26:18 +00:00
gutteridge da774a65c9 cvs.1 & cvs.texinfo: minor amendments and cvs.1 regen
Put a cross-reference to "init" back in "Creating a Repository" and
other minor formatting tweaks, and regenerate cvs.1 to reflect the
previous changes by christos@ in cvs.texinfo r. 1.7.
2019-03-03 21:11:54 +00:00
christos 7c2e947942 Fix the build by merging duplicate "init" sections. 2019-03-03 02:21:07 +00:00
gutteridge 4e4fac16d4 cvs.1 & cvs.texinfo: add details about "init"
Add a section about the "init" command that has been missing all this
time. Part of the basic description is resurrected from r. 1.20 of
cvs.1 (in its prior incarnation in the CVS project tree under /man
rather than /doc), contributed by Tom Lees back in 1999. The caveat
about the history file is copied from elsewhere in the current
cvs.texinfo file. Additional fragments written by me. Addresses the
PR bin/45446.
2019-03-02 21:30:40 +00:00
gutteridge 794281688a cvs.1 & cvs.texinfo: add information about the "update" command's "-t"
flag to cvs.texinfo, so the installed man and info documentation match
here. This makes cvs.1 auto-generable from cvs.texinfo again, which I
plan to leverage with further additions later.
2019-02-12 01:32:08 +00:00
gutteridge 71192149f4 cvs.1 & cvs.texinfo: add missing sections documenting the "add" and
"remove" commands. These were never present upstream on the branch
NetBSD imported, but were subsequently added on other branches (against
upstream's HEAD: cvs.1: r. 1.53 & cvs.texinfo: r. 1.697).

XXX While cvs.texinfo is supposed to be used to auto-generate cvs.1,
that isn't safe at present, because content has been added direct to
cvs.1 in NetBSD's tree.
2019-02-10 22:36:27 +00:00
christos f7a36a949c When we we fail to remove tags, print an error message since we are going
to be exiting with an error anyway.
2019-01-05 00:27:58 +00:00
mlelstv a8169be6e7 Support device nodes that have no entry in /dev, identify them by major:minor
numbers like the original Linux code.

While here, fix a memory leak.
2018-11-24 11:27:37 +00:00
sevan b62e5649d3 Test for other exit cases.
It might be worth regenerating configure with modern autoconf.

Reviewed by <riastradh>
Closes PR toolchain/53314
2018-11-06 22:01:16 +00:00
christos 70aed070fa support SIGINFO 2018-08-21 15:37:33 +00:00
maya fbe6c43ae6 it's c18, not c17.
thanks ingo schwarze.
2018-07-27 15:13:01 +00:00
maya 76c8e39035 Support -isoC-2017 2018-07-27 14:29:46 +00:00
kamil ee01cd1e81 Specify SANITIZER_RENAME_SYMBOL in cvs
Rename local versions of regcomp regerror regexec regfree in order to
remove symbol clash with libc.
2018-06-25 18:03:56 +00:00
kamil 45d1d00b99 Specify SANITIZER_RENAME_SYMBOL in grep
Rename local versions of regcomp regerror regexec regfree in order to
remove symbol clash with libc.
2018-06-25 18:02:49 +00:00
kamil f1e4bfafe7 Specify SANITIZER_RENAME_SYMBOL in diffutils
Rename local versions of regcomp regerror regexec regfree in order to
remove symbol clash with libc.
2018-06-25 18:01:13 +00:00
kamil ff37330f94 Fix typo in previous
The -Wno-format-extra-args argument to Clang/LLVM needs trailing 's'.

Noted by <joerg>
2018-06-24 19:27:26 +00:00
kamil 64bc8aa106 Specify -Wno-format-extra-args for Clang/LLVM in gpl2/gettext
This is needed with Clang v. 7svn (HEAD) 2018-06-23 snapshot.
2018-06-23 20:15:23 +00:00
christos 32fa9de216 Don't look in random (legacy) places for fonts. We want reproducible builds
to work.
XXX: pullup-8
2018-06-22 17:28:27 +00:00
kamil 079a9ba6ba Make the alignof() usage more portable in grep(1)
Remove NetBSD specific check and replace it with GCC extension __alignof__
that is available since GCC 2.x.

Requested by <kre>
2018-06-14 10:14:39 +00:00
kamil 8317e0eadb Avoid Undefind Behavior in DEFAULT_ALIGNMENT in GNU grep(1)
Replace homegrown logic of calculating alignment with alignof, a C11 header
feature.

Add a check for NetBSD >= 8.0 just in case that someone will want to build
it on older NetBSD.

Issue detected with UBSan.
2018-06-13 17:32:29 +00:00
kamil 1ec328561f Prevent Undefined Behavior in shift of signed integer in grep(1)
There is an interface in grep: dfa.c with functions to test bit, set bit,
clear bit etc. They operate over the INT-wide mask (INTBITS). Use unsigned
shift in these interfaces to prevent UB.

Detected with MKSANITIZER with the undefined behavior sanitizer option.

Sponsored by <The NetBSD Foundation>
2018-06-12 21:22:47 +00:00