Commit Graph

10137 Commits

Author SHA1 Message Date
christos ec01565c69 downgrade from LOG_ERR to LOG_DEBUG, requested by uwe@ 2022-06-27 16:44:58 +00:00
rin b9429f260c PR toolchain/56268
For NetBSD/m68k, program header is erroneously readable from core dump,
although a page containing it is missing. This spoils relocation for
the main executable, and debugging with core dumps becomes impossible,
as described in the PR.

In order to avoid this failure, add consistency check for program header;
for NetBSD, 1st entry of program header refers program header itself. If
this is not the case, we should be reading random garbage from core dump.

Yes, this is a kind of the hackest hack. But, unable to debug with core
dump is critical. Therefore, I commit this workaround temporarily until
the real cause is found and fixed.

Note that this is not a recent regression for GDB nor kernel, as
mentioned in the PR. These from netbsd-8 and -9 fail in the same way
without this hack.
2022-06-26 08:28:07 +00:00
rin 33bbb384fc PR port-powerpc/56899
Disable 128-bit long double for NetBSD/powerpc.
2022-06-26 05:55:30 +00:00
rin 85b2a9ecdc PR port-powerpc/56899
In addition to ``powerpc'', register NetBSD OS ABI also for ``rs6000'',
which is default target for powerpc.
2022-06-26 05:52:43 +00:00
rin 5900762b3f Regen for everyone, except for coldfire, for which toolchain does
no longer build...

> Part of PR port-powerpc/56899
>
> Set default OS ABI to NetBSD when target is *-*-netbsd*.
>
> This fixes default behaviors of GDB when no executable is loaded
> (== OS ABI is not determined yet).
2022-06-26 05:48:06 +00:00
rin eb44a997af Part of PR port-powerpc/56899
Set default OS ABI to NetBSD when target is *-*-netbsd*.

This fixes default behaviors of GDB when no executable is loaded
(== OS ABI is not determined yet).
2022-06-26 05:44:28 +00:00
hgutch e1596a186e Cherry-picking two upstream commits[1,2] to fix tools build under gcc 12
if MKCROSSGDB is set.  Without these, gcc 12 correctly points out that
certain checkr for pointers being NULL are always false and errors out
due to -Werror=nonnull-compare/-Werror=address (implicitly set by -Wall).

Build failure reported by Piyush Sachdeva.

[1] https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=fb6262e8534e0148a4a424e9e5138159af19faf1;hp=f681e5867de63f1c8ca692023cf86e4c884fdae7
[2] https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=da7ee7f9ce2fc8c278a46e0b360d44319a5a1e7a;hp=cb2e519a5e41052a4dd55be4f1c4d818d2e8af9d
2022-06-25 17:46:05 +00:00
christos 1e12237fc9 Fix readelf: Error: LEB value too large when running:
readelf --debug-dump /usr/libdata/lib/libc.so.X.Y.debug
Apply patch from:
    https://www.mail-archive.com/bug-binutils@gnu.org/msg35315.html
affects objdump, readelf.
2022-06-17 16:45:22 +00:00
christos d714e8afed Remove comment explaining why the code was disabled before (Jose Luis Duran) 2022-06-13 15:00:20 +00:00
christos 123a18fe3d Handle 0 sized messages (Jose Luis Duran) 2022-06-12 17:54:15 +00:00
christos 029f8ccd89 fix usage for ctl too (Jose Luis Duran) 2022-06-11 19:23:26 +00:00
christos f29041209b fix usage error (Jose Luis Duran) 2022-06-11 19:15:58 +00:00
martin afcc043fd7 PR 56874: avoid using uninitialized memory, patch from Tom Lane. 2022-06-10 06:06:00 +00:00
nia b7957d1677 build system: Revert all the recent additions of MK[...] knobs that
allow conditionally disabling the building of certain user space
programs in the 'base' set.

There is not enough consensus that this is the right way and a few
people had strong objections, see source-changes-d@.
2022-06-06 10:56:27 +00:00
gutteridge 7e1677552f ipf(8): document all -l options
References to "none", "state", and "nat" were missing in places.
Addresses PR bin/36763 from Wolfgang Stukenbrock.
2022-06-03 21:43:37 +00:00
christos 5f34f68b67 fix lint build on vax 2022-05-31 17:52:35 +00:00
nia 8469593b52 mk: Add a MKPPP flag to exclude pppd(8) and related utilities from
the build
2022-05-29 08:09:59 +00:00
nia f2e2da3feb mk: Add MKNTP, MKTCPDUMP knobs. 2022-05-28 11:17:35 +00:00
nia fb225dba9f ctwmrc: Use a slightly more muted orange color. 2022-05-27 17:04:16 +00:00
mlelstv d34fb3e756 Literal backslashes need to be quoted for roff. 2022-05-26 08:06:58 +00:00
nia f52526086f mk: Allow setting MKDHCPD=no to build base without the ISC DHCP server,
useful for embedded images that don't need to act as one.
2022-05-25 20:44:01 +00:00
nia 5571bd7a34 xdm: Revert font changes. Requested by martin.
In addition, we must lower innerFramesWidth to prevent the new-old
fonts from causing the two text input boxes to overlap. xdm really
could be more clever about text layout...

PR xsrc/56855
2022-05-24 14:53:15 +00:00
riastradh 5784999e1a argon2: Silence -Wmissing-noreturn in thread.c on clang.
Saves the trouble of patching it away in external code.
2022-05-21 19:57:06 +00:00
christos 5fc96d7ad8 Move guts of the Makefile into Makefile.inc so it can be re-used. 2022-05-17 18:55:41 +00:00
nia 90ea1fc35b ctwmrc: Turn off sysinst menu item for now, it requires root for most
functions and users likely aren't running X as root.  Also turn off
the xman menu item until a custom greeter screen can be imported
(also note apropos is broken)...
2022-05-16 04:52:11 +00:00
mrg c90a6d284e install the lower case radeon firmware files into /usr/libdata/firmware.
radeon has different case but same name firmware files.  the lower case
ones are already installed into /libdata/firmware, and to avoid having
to provide some special method to build on systems with case-preserving
file systems (such as macOS), we install the lower case ones in /usr.

this means that anyone that requires the lower case files must either
have /usr as part of the / file system, or manually keep them updated.

last part of PR#54976, though i doubt we'll try to pull up these.

this is enabled on i386, amd64 and arm64.
2022-05-15 00:24:14 +00:00
mrg 659c8d4b87 install the lower case radeon firmware files into /usr/libdata/firmware.
radeon has different case but same name firmware files.  the lower case
ones are already installed into /libdata/firmware, and to avoid having
to provide some special method to build on systems with case-preserving
file systems (such as macOS), we install the lower case ones in /usr.

this means that anyone that requires the lower case files must either
have /usr as part of the / file system, or manually keep them updated.

not yet hooked into build.

part of PR#54976, though i doubt we'll try to pull up these.
2022-05-14 20:54:31 +00:00
mrg 227c529796 initial import of the lower-case radeon firmware files.
these share the same license as amdgpu-firmware, so keep them in
the same license subdir.

skip importing the upper case ones that are already available
in sys/dev/microcode.
2022-05-14 20:49:57 +00:00
rillig a1f9277b31 libdns: suppress a few lint warnings that occur too often 2022-05-14 11:43:25 +00:00
rillig f6f9bb2e4a libxcb: suppress lint warnings that are not useful 2022-05-14 11:26:23 +00:00
rillig b6f12bc4a7 libmpc: suppress wrong lint warnings 2022-05-14 11:12:31 +00:00
brad 3cdfb747ad Add LINKS and MLINKS to the ddns-confgen Makefile to provide
tsig-keygen.  This helps to allow pkgsrc/security/acmesh to function
and should be provided in all BIND >= 9.13 installs anyway.
2022-05-13 16:39:32 +00:00
nia e4c090d717 ctwmrc: Split the automatically generated pkgsrc applications menu
into categories similarly to MATE and Xfce.
2022-05-09 15:05:18 +00:00
nia 428952f0d5 ctwmrc: Use ISO8859-1 for displaying manual pages in xman, because it
gets us some commonly used symbols. xman doesn't grok UTF-8.
2022-05-09 07:15:25 +00:00
jkoshy 5498ebb8e7 Merge from upstream [r3984]: allow the use of the generated
'elfdefinitions.h' file in compilation environments lacking
C99 headers.
2022-05-08 17:28:14 +00:00
nia 9c6935cee5 ctwmrc: make menus more fun, accomodate clock being spawned on startup 2022-05-08 08:20:16 +00:00
nia 8b458fe966 Add RCSID to Xresources config. Use the B/W NetBSD logo on B/W displays. 2022-05-07 06:31:39 +00:00
nia fcccc60ad1 xdm: Match the default ctwm theme. 2022-05-05 15:26:11 +00:00
chs 28cd7476b4 fix ARC checks for available memory:
there's an extra check that we inherited from FreeBSD that tries to
detect KVA exhaustion on platforms with limited KVA, but the condition
that decided whether to use the extra check was using a FreeBSDism
that doesn't exist on NetBSD, resulting in this check being used on
all platforms.  on amd64 systems with lots of memory, this extra check
would result in the ARC thinking that it constantly needed to reclaim memory,
resulting in all the xcall threads running all the time but not doing
anything useful.  change this condition so that this extra check for
KVA exhaustion is only used on 32-bit platforms.  fixes PR 55707.
2022-05-04 15:49:55 +00:00
jkoshy 2dc6aafac8 Add a script from upstream that assists with importing upstream
Elftoolchain sources.
2022-05-04 11:07:43 +00:00
jkoshy 55387571fd Catch up with Elftoolchain head: changes to support 'tools' builds
out of the box.
2022-05-03 16:47:15 +00:00
uwe d9b6d5a181 libXcursor: Add missing MLINKS. 2022-05-03 13:46:22 +00:00
uwe f33c454aa5 xorg-server: Add xorg.conf.d(5) MLINKS. 2022-05-03 12:53:51 +00:00
jkoshy fde05ead87 Minor: fix a typo. 2022-05-03 12:09:19 +00:00
uwe dbbde5bcaf libXrandr: Add missing MLINKS. 2022-05-03 00:29:23 +00:00
jkoshy 4a1c2f9704 Catch up with Elftoolchain upstream <r3980>. 2022-05-02 20:27:43 +00:00
jkoshy 9df6d2eefa Follow FreeBSD revision <0e15d9fbeba4> and simplify #ifdef'ed code.
This change avoids redefining 'SHN_SUNW_IGNORE' if the symbol is already
present.
2022-05-02 20:09:48 +00:00
uwe a1b3837fd8 xterm: Try to make manpage substitutions more readable.
Use X11EXTRAMANTRANSFORMS to set most of them, so that the sed(1)
syntax noise doesn't drown out the keys/values.  Add comments.

Keep using X11EXTRAMANDEFS for __app_version__ - my make-fu is too
weak to figure out how to do that properly while keeping happy
multiple levels of quoting along the way.

Same output is generated.
2022-05-02 10:50:02 +00:00
jkoshy d9c2ca1f96 Add NetBSD version control markers. 2022-05-02 09:43:23 +00:00
uwe 336105f8be xterm(1): Add substitution for __double_buffer__ 2022-05-01 23:24:34 +00:00